/* =============================================
   COLIZEUM — Redesigned Stylesheet
   Palette: #0d0d0d base · #f6ed40 yellow · #f8753a orange
   ============================================= */

/* ---------- Tokens ---------- */
:root {
    --clr-bg: #0d0d0d;
    --clr-surface: #141414;
    --clr-surface-2: #1a1a1a;
    --clr-border: rgba(255, 255, 255, 0.07);
    --clr-border-hover: rgba(246, 237, 64, 0.35);
    --clr-yellow: #f6ed40;
    --clr-yellow-dim: rgba(246, 237, 64, 0.12);
    --clr-orange: #f8753a;
    --clr-white: #ffffff;
    --clr-text: rgba(255, 255, 255, 0.88);
    --clr-muted: rgba(255, 255, 255, 0.45);
    --clr-num: rgba(255, 255, 255, 0.18);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-card: 0 2px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow-yellow: 0 0 80px rgba(246, 237, 64, 0.18);
    --shadow-glow-blue: 0 0 120px rgba(80, 120, 255, 0.12);

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --max-w: 1200px;
    --gap-section: 112px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

body {
    font-family: "Inter", system-ui, -apple-system, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--clr-bg);
    color: var(--clr-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 32px;
}

/* ---------- Section header ---------- */
.section-header {
    margin-bottom: 64px;
    text-align: center;
}

.section-header--left {
    text-align: left;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-yellow);
    margin-bottom: 16px;
}

.section-eyebrow--dark {
    color: #a0793a;
}

.section-eyebrow::before {
    content: "";
    display: block;
    width: 20px;
    height: 1px;
    background: currentColor;
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--clr-white);
}

.section-title--dark {
    color: #111111;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), background var(--transition);
}

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 16px 36px; font-size: 16px; }
.btn--xl { padding: 20px 48px; font-size: 17px; }

.btn--primary {
    background: var(--clr-yellow);
    color: #111111;
    box-shadow: 0 4px 20px rgba(246, 237, 64, 0.3);
}
.btn--primary:hover {
    box-shadow: 0 8px 32px rgba(246, 237, 64, 0.45);
    transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
    background: transparent;
    color: var(--clr-white);
    border: 1px solid var(--clr-border);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn__arrow {
    transition: transform var(--transition);
}
.btn:hover .btn__arrow {
    transform: translateX(3px);
}

/* ==============================================
   NAVIGATION
   ============================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-block: 16px;
    background: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--clr-border);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav__brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-white);
    letter-spacing: -0.02em;
}

/* ==============================================
   HERO
   ============================================== */
.hero {
    position: relative;
    padding-top: calc(80px + 80px);
    padding-bottom: 100px;
    overflow: hidden;
    background: var(--clr-bg);
}

/* Decorative glows */
.hero__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}
.hero__glow--1 {
    width: 600px;
    height: 600px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(246, 237, 64, 0.08) 0%, transparent 70%);
}
.hero__glow--2 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    left: -80px;
    background: radial-gradient(circle, rgba(80, 100, 255, 0.07) 0%, transparent 70%);
}

/* Grid pattern overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.6) 70%, transparent);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    font-size: 12px;
    font-weight: 500;
    color: var(--clr-muted);
    letter-spacing: 0.04em;
}

.hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3); }
    50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

.hero__title {
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.035em;
    color: var(--clr-white);
}

.hero__title-accent {
    color: var(--clr-yellow);
    position: relative;
    display: inline-block;
}

.hero__sub {
    font-size: 17px;
    font-weight: 300;
    color: var(--clr-muted);
    line-height: 1.65;
    max-width: 420px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__visual-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(246, 237, 64, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.hero__img {
    position: relative;
    width: 100%;
    max-width: 540px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.5));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.hero__scroll-hint {
    display: flex;
    justify-content: center;
    margin-top: 64px;
}

.hero__scroll-line {
    display: block;
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, var(--clr-yellow), transparent);
    animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ==============================================
   STATS
   ============================================== */
.stats {
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    background: var(--clr-surface);
}

.stats__inner {
    display: flex;
    align-items: stretch;
    padding-block: 0;
}

.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 40px 32px;
}

.stats__divider {
    width: 1px;
    background: var(--clr-border);
    align-self: stretch;
}

.stat__value {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--clr-yellow);
}

.stat__label {
    font-size: 13px;
    font-weight: 400;
    color: var(--clr-muted);
    line-height: 1.5;
    max-width: 200px;
}

/* ==============================================
   PROBLEMS
   ============================================== */
.problems {
    padding-block: var(--gap-section);
    background: var(--clr-bg);
}

.problems__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--clr-border);
}

.problem-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 44px 40px;
    background: var(--clr-surface);
    transition: background var(--transition);
    position: relative;
    overflow: hidden;
}

.problem-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(246, 237, 64, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}

.problem-card:hover {
    background: var(--clr-surface-2);
}

.problem-card:hover::after {
    opacity: 1;
}

.problem-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.problem-card__num {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--clr-muted);
    text-transform: uppercase;
}

.problem-card__icon-wrap {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--clr-yellow-dim);
    color: var(--clr-yellow);
    flex-shrink: 0;
    transition: background var(--transition), transform var(--transition);
}

.problem-card:hover .problem-card__icon-wrap {
    background: rgba(246, 237, 64, 0.2);
    transform: scale(1.05);
}

.problem-card__heading {
    font-size: 19px;
    font-weight: 700;
    color: var(--clr-white);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.problem-card__text {
    font-size: 14px;
    font-weight: 300;
    color: var(--clr-muted);
    line-height: 1.7;
    flex: 1;
}

.problem-card__footer {
    margin-top: 8px;
}

.problem-card__tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--clr-yellow-dim);
    color: var(--clr-yellow);
    border: 1px solid rgba(246, 237, 64, 0.15);
}

/* ==============================================
   MOBILE APP
   ============================================== */
.mobile-app {
    position: relative;
    padding-block: var(--gap-section);
    background: #f2f0eb;
    overflow: hidden;
}

.mobile-app__bg-accent {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 237, 64, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.mobile-app__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.mobile-app__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 440px;
}

.mobile-app__visual-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.mobile-app__visual-ring--1 {
    width: 360px;
    height: 360px;
}

.mobile-app__visual-ring--2 {
    width: 480px;
    height: 480px;
    border-style: dashed;
    animation: slow-rotate 30s linear infinite;
}

@keyframes slow-rotate {
    to { transform: rotate(360deg); }
}

.mobile-app__img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    filter: drop-shadow(0 32px 56px rgba(0, 0, 0, 0.18));
    animation: float 7s ease-in-out infinite;
}

.mobile-app__text {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.mobile-app__features {
    display: flex;
    flex-direction: column;
}

.feature-item {
    display: flex;
    gap: 24px;
    padding-block: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-item:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-item__num-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.feature-item__num {
    font-size: 13px;
    font-weight: 700;
    color: #777;
    letter-spacing: 0.05em;
}

.feature-item__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-item__title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.feature-item__text {
    font-size: 14px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.65;
}

/* ==============================================
   SUPPORT
   ============================================== */
.support {
    position: relative;
    padding-block: var(--gap-section);
    background: var(--clr-bg);
    overflow: hidden;
}

.support__glow {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(246, 237, 64, 0.06) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(20px);
}

.support__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.support-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 44px 40px;
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.support-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-yellow) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.support-card:hover {
    border-color: var(--clr-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.support-card:hover::before {
    opacity: 1;
}

.support-card__icon-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--clr-yellow-dim);
    color: var(--clr-yellow);
    transition: background var(--transition);
}

.support-card:hover .support-card__icon-wrap {
    background: rgba(246, 237, 64, 0.2);
}

.support-card__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--clr-white);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.support-card__text {
    font-size: 14px;
    font-weight: 300;
    color: var(--clr-muted);
    line-height: 1.7;
    flex: 1;
}

.support-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 50px;
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    font-size: 12px;
    font-weight: 500;
    color: var(--clr-muted);
    align-self: flex-start;
    letter-spacing: 0.02em;
}

.support-card__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.support-card__badge-dot--blue {
    background: #60a5fa;
    animation: none;
}

/* ==============================================
   CTA
   ============================================== */
.cta {
    position: relative;
    padding-block: 140px;
    background: var(--clr-bg);
    overflow: hidden;
    text-align: center;
}

.cta__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}
.cta__glow--1 {
    width: 700px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(246, 237, 64, 0.09) 0%, transparent 70%);
}
.cta__glow--2 {
    width: 300px;
    height: 300px;
    bottom: 0;
    right: 10%;
    background: radial-gradient(circle, rgba(248, 117, 58, 0.07) 0%, transparent 70%);
}

/* Subtle grid */
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.cta__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.cta__eyebrow {
    color: var(--clr-yellow);
}

.cta__title {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: var(--clr-white);
    line-height: 1.1;
}

.cta__title-accent {
    color: var(--clr-yellow);
}

.cta__sub {
    font-size: 17px;
    font-weight: 300;
    color: var(--clr-muted);
    max-width: 480px;
    line-height: 1.65;
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    padding-block: 56px;
}

.footer__top {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer__brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-white);
    letter-spacing: -0.02em;
}

.footer__tagline {
    font-size: 13px;
    color: var(--clr-muted);
    font-weight: 300;
    line-height: 1.5;
}

.footer__divider {
    height: 1px;
    background: var(--clr-border);
    margin-bottom: 32px;
}

.footer__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer__company-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--clr-white);
    margin-bottom: 4px;
}

.footer__bin {
    font-size: 13px;
    color: var(--clr-muted);
    margin-bottom: 16px;
}

.footer__addr {
    font-size: 13px;
    color: var(--clr-muted);
    line-height: 1.7;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    font-size: 13px;
    font-weight: 400;
    color: var(--clr-muted);
    transition: color var(--transition);
    line-height: 1.5;
}

.footer__link:hover {
    color: var(--clr-white);
}

.footer__link--accent {
    color: var(--clr-orange);
}

.footer__link--accent:hover {
    color: #ff9060;
}

/* ==============================================
   RESPONSIVE — Tablet ≤ 960px
   ============================================== */
@media (max-width: 960px) {
    :root { --gap-section: 80px; }

    .container { padding-inline: 24px; }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero__content {
        align-items: center;
        order: 1;
    }

    .hero__sub { max-width: 480px; }

    .hero__visual { order: 2; }
    .hero__img { max-width: 420px; }

    .stats__inner {
        flex-direction: column;
    }

    .stats__divider {
        width: 100%;
        height: 1px;
    }

    .stat { padding: 28px 24px; }

    .problems__grid {
        grid-template-columns: 1fr;
    }

    .mobile-app__inner {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .mobile-app__visual { order: -1; min-height: 320px; }
    .mobile-app__img { max-width: 300px; }
    .mobile-app__visual-ring--1 { width: 280px; height: 280px; }
    .mobile-app__visual-ring--2 { width: 380px; height: 380px; }

    .mobile-app__text { align-items: center; text-align: center; }
    .section-header--left { text-align: center; }
    .feature-item { text-align: left; }

    .support__grid { grid-template-columns: 1fr; }

    .footer__bottom { grid-template-columns: 1fr; gap: 32px; }
}

/* ==============================================
   RESPONSIVE — Mobile ≤ 640px
   ============================================== */
@media (max-width: 640px) {
    :root { --gap-section: 64px; }

    .container { padding-inline: 16px; }

    .nav__brand-name { display: none; }

    .hero {
        padding-top: calc(72px + 48px);
        padding-bottom: 64px;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__img { max-width: 320px; }
    .hero__scroll-hint { margin-top: 40px; }

    .section-header { margin-bottom: 40px; }
    .section-title { font-size: clamp(24px, 7vw, 36px); }

    .problem-card {
        padding: 28px 24px;
    }

    .support-card {
        padding: 28px 24px;
    }

    .cta { padding-block: 80px; }
    .cta__title { font-size: clamp(28px, 8vw, 44px); }

    .btn--xl {
        padding: 18px 36px;
        font-size: 16px;
        width: 100%;
        max-width: 360px;
    }

    .footer { padding-block: 40px; }

    .mobile-app__visual { min-height: auto; }
    .mobile-app__visual-ring--1,
    .mobile-app__visual-ring--2 { display: none; }
    .mobile-app__img { max-width: 260px; }
}

/* ==============================================
   RESPONSIVE — Small ≤ 400px
   ============================================== */
@media (max-width: 400px) {
    .hero__title { font-size: 26px; }
    .stats__inner { padding-inline: 0; }
}

/* ==============================================
   MODAL
   ============================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.is-open .modal {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--clr-surface-2);
    color: var(--clr-muted);
    border: 1px solid var(--clr-border);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--clr-white);
}

/* ---- body states ---- */
.modal__body {
    padding: 48px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.modal__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal__eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-yellow);
}

.modal__title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--clr-white);
    line-height: 1.15;
}

.modal__sub {
    font-size: 14px;
    font-weight: 300;
    color: var(--clr-muted);
    line-height: 1.6;
    margin-top: 2px;
}

/* ---- form ---- */
.modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field__label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.01em;
}

.form-field__input {
    width: 100%;
    padding: 13px 16px;
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    color: var(--clr-white);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
}

.form-field__input::placeholder {
    color: rgba(255, 255, 255, 0.22);
}

.form-field__input:focus {
    border-color: rgba(246, 237, 64, 0.5);
    box-shadow: 0 0 0 3px rgba(246, 237, 64, 0.08);
}

.form-field__input.is-error {
    border-color: rgba(255, 80, 80, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.08);
}

.form-field__error {
    font-size: 12px;
    font-weight: 400;
    color: #ff6b6b;
    min-height: 16px;
    line-height: 1.4;
}

/* ---- submit button ---- */
.modal__submit {
    width: 100%;
    position: relative;
    margin-top: 4px;
}

.modal__submit-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-top-color: #111;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal__submit.is-loading .modal__submit-text { display: none; }
.modal__submit.is-loading .modal__submit-spinner { display: block; }

/* ---- success state ---- */
.modal__body--success {
    align-items: center;
    text-align: center;
    padding: 56px 40px 48px;
    gap: 20px;
}

.modal__success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: #4ade80;
    margin-bottom: 8px;
}

.modal__success-btn {
    margin-top: 12px;
}

@media (max-width: 480px) {
    .modal__body {
        padding: 40px 24px 32px;
    }

    .modal__body--success {
        padding: 48px 24px 40px;
    }

    .modal__title {
        font-size: 22px;
    }
}
