/* ============================================
   CALORIEAI — LANDING PAGE
   Clean white, warm health-tech aesthetic
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Surfaces — clean white */
    --bg-deep: #ffffff;
    --bg-base: #f7f8fc;
    --bg-raised: #f0f1f7;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafd;
    --border: #e4e6f0;
    --border-light: #d0d3e0;

    /* Primary — app indigo */
    --accent: #4355FA;
    --accent-dim: #3545d9;
    --accent-glow: rgba(67, 85, 250, 0.10);
    --accent-glow-strong: rgba(67, 85, 250, 0.18);
    --accent-bright: #6B7AFF;
    --accent-surface: #eef0ff;

    /* Macro colors */
    --green: #66BB6A;
    --green-dim: rgba(102, 187, 106, 0.12);
    --orange: #FFA726;
    --orange-dim: rgba(255, 167, 38, 0.12);
    --red: #EF5350;
    --red-dim: rgba(239, 83, 80, 0.12);

    /* Text — dark on white */
    --text-1: #111827;
    --text-2: #4b5563;
    --text-3: #9ca3af;

    /* Typography */
    --font-display: 'Sora', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-pad: clamp(4rem, 8vw, 7.5rem);
    --container-max: 1140px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-2);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input { font: inherit; color: inherit; }

::selection {
    background: var(--accent);
    color: #ffffff;
}

/* ---------- SECTION UTILITIES ---------- */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.section-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-2);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.text-accent { color: var(--accent); }

.text-strike {
    text-decoration: line-through;
    text-decoration-color: var(--red);
    text-decoration-thickness: 3px;
}

/* ---------- ANIMATIONS ---------- */
.anim-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow-strong); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@keyframes ring-fill {
    from { stroke-dashoffset: 314; }
    to { stroke-dashoffset: 94; }
}

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

/* ---------- NAVIGATION ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

.nav.is-scrolled {
    border-bottom-color: var(--border);
    background: rgba(255, 255, 255, 0.96);
}

.nav__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav__logo-icon {
    flex-shrink: 0;
}

.nav__logo-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.02em;
}

.nav__logo-text--sm {
    font-size: 0.95rem;
}

.nav__logo-accent {
    color: var(--accent);
}

.nav__free-badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-dim);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(102, 187, 106, 0.2);
    line-height: 1;
    white-space: nowrap;
}

.nav__links {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-3);
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--text-1);
}

.nav__cta {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow-strong);
}

.nav__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav__mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-2);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav__mobile-toggle.is-open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.nav__mobile-toggle.is-open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.nav__mobile {
    display: none;
    flex-direction: column;
    padding: 1rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
    border-top: 1px solid var(--border);
    background: #ffffff;
}

.nav__mobile.is-open {
    display: flex;
}

.nav__mobile-link {
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
}

.nav__mobile-link--cta {
    margin-top: 0.5rem;
    border: none;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: calc(64px + var(--section-pad)) 0 var(--section-pad);
    overflow: hidden;
    background: var(--bg-deep);
}

.hero__mesh {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 10%, transparent 70%);
    opacity: 0.5;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hero__glow--1 {
    width: 500px;
    height: 500px;
    top: -80px;
    left: 50%;
    transform: translateX(-70%);
    background: radial-gradient(circle, rgba(67, 85, 250, 0.08) 0%, transparent 70%);
}

.hero__glow--2 {
    width: 350px;
    height: 350px;
    bottom: 10%;
    right: 5%;
    background: radial-gradient(circle, rgba(102, 187, 106, 0.06) 0%, transparent 70%);
}

.hero__glow--3 {
    width: 300px;
    height: 300px;
    top: 30%;
    left: 5%;
    background: radial-gradient(circle, rgba(255, 167, 38, 0.05) 0%, transparent 70%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: center;
}

.hero__content {
    text-align: left;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    color: var(--text-2);
    background: var(--bg-base);
    border: 1px solid var(--border);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 2s infinite;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    font-weight: 800;
    color: var(--text-1);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.hero__title-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 50%, var(--green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-2);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Hero Form Card */
.hero__form-card {
    max-width: 520px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.03),
        0 12px 40px rgba(67, 85, 250, 0.06);
}

.hero__form-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.hero__form-arrow i {
    font-size: 0.8rem;
    animation: bounce-arrow 1.5s ease infinite;
}

.hero__form { max-width: none; margin: 0; }

.hero__form-fields {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.hero__form-group { flex: 1; }

.hero__input {
    width: 100%;
    background: var(--bg-base);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    outline: none;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: var(--text-1);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hero__input:hover { border-color: var(--border-light); }

.hero__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.hero__input::placeholder { color: var(--text-3); }

.hero__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 10px;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.hero__submit:hover {
    transform: translateY(-1px);
    background: var(--accent-dim);
    box-shadow: 0 4px 20px var(--accent-glow-strong);
}

.hero__submit i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.hero__submit:hover i { transform: translateX(3px); }

.hero__form-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--green);
    font-weight: 500;
    font-size: 0.92rem;
    animation: fade-in-up 0.5s ease;
}

.hero__form-success.is-visible { display: flex; }
.hero__form-success i { font-size: 1.1rem; }

.hero__proof {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-3);
    text-align: center;
}

.hero__proof i {
    margin-right: 0.3rem;
    font-size: 0.7rem;
}

/* ---------- PHONE MOCKUP ---------- */
.hero__phone {
    display: flex;
    justify-content: center;
    animation: float-phone 4s ease-in-out infinite;
}

.phone-mockup {
    width: 280px;
    background: var(--bg-card);
    border-radius: 32px;
    border: 3px solid var(--border);
    box-shadow:
        0 20px 60px rgba(67, 85, 250, 0.10),
        0 8px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255,255,255,0.8);
    overflow: hidden;
    position: relative;
}

.phone-mockup__notch {
    width: 100px;
    height: 24px;
    background: var(--bg-deep);
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    border: 2px solid var(--border);
    border-top: none;
}

.phone-mockup__screen {
    padding: 0.75rem 1rem 1.25rem;
}

/* Phone UI Elements */
.phone-ui__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.phone-ui__greeting {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-1);
}

.phone-ui__streak {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.phone-ui__ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.phone-ui__ring-svg {
    width: 100%;
    height: 100%;
}

.phone-ui__ring-progress {
    animation: ring-fill 1.5s ease-out 0.5s both;
}

.phone-ui__ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.phone-ui__ring-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1;
}

.phone-ui__ring-unit {
    font-size: 0.55rem;
    color: var(--text-3);
    margin-top: 2px;
}

.phone-ui__macros {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.phone-ui__macro {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-2);
}

.phone-ui__macro-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-raised);
    border-radius: 3px;
    overflow: hidden;
}

.phone-ui__macro-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out 0.8s;
}

.phone-ui__macro--protein .phone-ui__macro-fill { background: var(--green); }
.phone-ui__macro--carbs .phone-ui__macro-fill { background: var(--orange); }
.phone-ui__macro--fat .phone-ui__macro-fill { background: var(--red); }

.phone-ui__meal {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem;
    background: var(--bg-base);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.phone-ui__meal-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent-surface);
    color: var(--accent);
    font-size: 0.7rem;
}

.phone-ui__meal-info {
    display: flex;
    flex-direction: column;
}

.phone-ui__meal-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-1);
}

.phone-ui__meal-cal {
    font-size: 0.58rem;
    color: var(--text-3);
}

/* ---------- PROBLEM ---------- */
.problem {
    padding: var(--section-pad) 0;
    background: var(--bg-base);
}

.problem__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.problem__card {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.problem__card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.problem__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--red-dim);
    color: var(--red);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.problem__title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 0.5rem;
}

.problem__desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-2);
}

/* ---------- FEATURES ---------- */
.features {
    padding: var(--section-pad) 0;
    background: var(--bg-deep);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.feature:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(67, 85, 250, 0.08);
}

.feature__number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-3);
    margin-bottom: 1rem;
}

.feature__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.feature__icon--primary {
    background: var(--accent-glow);
    color: var(--accent);
}

.feature__icon--green {
    background: var(--green-dim);
    color: var(--green);
}

.feature__icon--orange {
    background: var(--orange-dim);
    color: var(--orange);
}

.feature__icon--red {
    background: var(--red-dim);
    color: var(--red);
}

.feature__title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 0.5rem;
}

.feature__desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-2);
}

/* ---------- HOW IT WORKS ---------- */
.steps {
    padding: var(--section-pad) 0;
    background: var(--bg-base);
}

.steps__grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.step:hover {
    border-color: var(--border-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.step__number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.step__content { flex: 1; }

.step__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 0.5rem;
}

.step__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-2);
    margin-bottom: 1rem;
}

.step__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.step__tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.3rem 0.65rem;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-3);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.step__tag i {
    color: var(--accent);
    font-size: 0.6rem;
}

/* ---------- STATS ---------- */
.stats {
    padding: var(--section-pad) 0;
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat { padding: 1.5rem 1rem; }

.stat__value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-1);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.stat__unit { color: var(--accent); }

.stat__label {
    font-size: 0.85rem;
    color: var(--text-3);
}

/* ---------- PLATFORMS ---------- */
.platforms {
    padding: var(--section-pad) 0;
    background: var(--bg-base);
}

.platforms__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.platforms__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.platforms__desc {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 460px;
}

.platforms__badges {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    transition: border-color 0.3s, box-shadow 0.3s;
    min-width: 170px;
}

.platform-badge i {
    font-size: 1.6rem;
    color: var(--text-1);
}

.platform-badge__label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.platform-badge__store {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-1);
}

.platform-badge--active {
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.platform-badge--soon {
    opacity: 0.6;
}

/* ---------- FINAL CTA ---------- */
.cta {
    padding: var(--section-pad) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-deep);
}

.cta__glow {
    position: absolute;
    width: 600px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(67, 85, 250, 0.06) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.cta__inner {
    position: relative;
    z-index: 1;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.cta__sub {
    font-size: 1.05rem;
    color: var(--text-2);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta__form {
    max-width: 540px;
    margin: 0 auto 1rem;
}

.cta__form-fields {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.cta__input {
    flex: 1;
    min-width: 0;
    background: var(--bg-base);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    outline: none;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: var(--text-1);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cta__input:hover { border-color: var(--border-light); }

.cta__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.cta__input::placeholder { color: var(--text-3); }

.cta__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 10px;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.cta__submit:hover {
    transform: translateY(-1px);
    background: var(--accent-dim);
    box-shadow: 0 4px 20px var(--accent-glow-strong);
}

.cta__submit i { font-size: 0.75rem; }

.cta__form-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--green);
    font-weight: 500;
    font-size: 0.92rem;
    animation: fade-in-up 0.5s ease;
}

.cta__form-success.is-visible { display: flex; }

.cta__note {
    font-size: 0.78rem;
    color: var(--text-3);
}

.cta__note i {
    margin-right: 0.3rem;
    font-size: 0.7rem;
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__links a {
    font-size: 0.8rem;
    color: var(--text-3);
    transition: color 0.2s;
}

.footer__links a:hover { color: var(--text-2); }

.footer__copy {
    font-size: 0.75rem;
    color: var(--text-3);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .nav__links,
    .nav__cta {
        display: none;
    }

    .nav__mobile-toggle {
        display: flex;
    }

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

    .hero__content {
        text-align: center;
    }

    .hero__sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__form-card {
        margin: 0 auto;
    }

    .hero__phone {
        order: -1;
        margin-bottom: 1rem;
    }

    .phone-mockup {
        width: 240px;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .platforms__inner {
        flex-direction: column;
        text-align: center;
    }

    .platforms__desc {
        margin: 0 auto;
    }

    .platforms__badges {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .problem__grid {
        grid-template-columns: 1fr;
    }

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

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .step {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .step__number {
        width: auto;
        text-align: left;
        font-size: 2rem;
    }

    .hero__form-fields,
    .cta__form-fields {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero__submit,
    .cta__submit {
        width: 100%;
        justify-content: center;
        padding: 0.9rem;
    }

    .platforms__badges {
        flex-direction: column;
        align-items: center;
    }

    .platform-badge {
        width: 100%;
        max-width: 220px;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .hero__title {
        font-size: 2rem;
    }

    .stat__value {
        font-size: 2rem;
    }

    .phone-mockup {
        width: 220px;
    }
}
