/* ============================================================
   LEARNLY — GLOBAL DESIGN SYSTEM
   ============================================================ */

:root {
    --purple-50:  #F5F3FF;
    --purple-100: #EDE9FE;
    --purple-400: #A78BFA;
    --purple-500: #8B5CF6;
    --purple-600: #7C3AED;
    --purple-700: #6D28D9;
    --purple-900: #4C1D95;

    --ink:        #09090B;       /* almost-black text */
    --ink-soft:   #3F3F46;
    --ink-muted:  #71717A;
    --ink-faint:  #A1A1AA;

    --surface:    #FFFFFF;
    --surface-2:  #FAFAFA;
    --surface-3:  #F4F4F5;
    --border:     #E4E4E7;
    --border-soft: rgba(0,0,0,0.05);

    --dark-bg:    #09090B;
    --dark-card:  #111113;
    --dark-border:#27272A;

    --radius-xs:  6px;
    --radius-sm:  10px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-xl:  32px;
    --radius-full: 9999px;

    --shadow-xs:  0 1px 2px rgba(0,0,0,.05);
    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.05);
    --shadow-xl:  0 24px 64px rgba(0,0,0,.12);
    --shadow-purple: 0 8px 32px rgba(124, 58, 237, 0.28);

    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;

    --container: 1200px;
    --nav-h: 72px;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--ink);
    line-height: 1.6;
    background: var(--surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }
button, input { font-family: inherit; }

/* ============================================================
   CANVAS & CURSOR GLOW
   ============================================================ */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
}

.cursor-glow {
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
    will-change: transform;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
}

/* ============================================================
   HEADER & NAV
   ============================================================ */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(200%) blur(24px);
    -webkit-backdrop-filter: saturate(200%) blur(24px);
    border-bottom: 1px solid var(--border-soft);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 1px 32px rgba(0,0,0,0.07);
    background: rgba(255,255,255,0.90);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.04em;
    text-decoration: none;
}

.logo-icon {
    color: var(--purple-600);
    font-size: 18px;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--ink);
    background: var(--surface-3);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
    padding: 6px;
    border-radius: var(--radius-xs);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s var(--ease-out-expo);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-hero {
    padding: 14px 24px;
    font-size: 15px;
}

.btn-primary {
    background: var(--purple-600);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.32);
}

.btn-primary:hover {
    background: var(--purple-700);
    box-shadow: var(--shadow-purple);
    transform: translateY(-1px) scale(1.01);
}

.btn-primary:active {
    transform: translateY(0) scale(0.99);
}

.btn-white {
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--surface-2);
    transform: translateY(-1px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s var(--ease-spring);
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding-top: calc(var(--nav-h) + 72px);
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

/* Subtle grid overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.grid-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.gl-v1 { width: 1px; height: 100%; left: 25%; top: 0; }
.gl-v2 { width: 1px; height: 100%; left: 75%; top: 0; }

.grid-line.gl-h1,
.grid-line.gl-h2 {
    background: linear-gradient(to right, transparent, var(--border), transparent);
    height: 1px;
    width: 100%;
}

.gl-h1 { top: 35%; left: 0; }
.gl-h2 { top: 70%; left: 0; }

.hero-inner {
    display: grid;
    grid-template-columns: 5fr 6fr;
    align-items: flex-start;
    gap: 32px;
    position: relative;
    z-index: 2;
}

/* Hero Content (left) */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--purple-50);
    border: 1px solid var(--purple-100);
    color: var(--purple-700);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    width: fit-content;
    letter-spacing: 0.01em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--purple-500);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

.badge-dot-white {
    background: rgba(255,255,255,0.7);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--ink);
}

.text-gradient {
    background: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-400) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 17px;
    color: var(--ink-muted);
    line-height: 1.7;
    max-width: 440px;
}

/* Form */
.hero-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 440px;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--ink-faint);
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 14px 14px 14px 42px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--surface);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.form-input::placeholder {
    color: var(--ink-faint);
}

.form-input-dark {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}

.form-input-dark::placeholder { color: rgba(255,255,255,0.4); }

.form-input-dark:focus {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

.input-dark .input-icon {
    color: rgba(255,255,255,0.35);
}

/* Social Proof */
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-left: -8px;
    color: #fff;
}

.avatar:first-child { margin-left: 0; }
.av1 { background: #8B5CF6; }
.av2 { background: #06B6D4; }
.av3 { background: #F59E0B; }
.av4 { background: #10B981; }

.proof-text {
    font-size: 13px;
    color: var(--ink-muted);
}

.proof-text strong {
    color: var(--ink);
    font-weight: 600;
}

/* Hero Mockup (right) */
.hero-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%       { transform: scale(1.1); opacity: 1; }
}

.mockup-frame {
    position: relative;
    z-index: 2;
    width: 420px;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.20)) drop-shadow(0 8px 28px rgba(124,58,237,0.18));
    transform-style: preserve-3d;
    transition: transform 0.08s linear;
    will-change: transform;
    animation: float 6s ease-in-out infinite;
}

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

.mockup-img {
    width: 100%;
    height: auto;
    border-radius: 28px;
    display: block;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-full);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    z-index: 4;
    animation: badge-float 5s ease-in-out infinite;
}

.badge-top-right {
    top: 10%;
    right: -16px;
    animation-delay: -2.5s;
}

.badge-bottom-left {
    bottom: 12%;
    left: -16px;
}

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

.badge-icon {
    width: 14px;
    height: 14px;
    color: var(--purple-600);
}

/* ============================================================
   MARQUEE TICKER
   ============================================================ */
.marquee-bar {
    padding: 18px 0;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    z-index: 2;
    /* Fade out the edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: marquee-scroll 22s linear infinite;
    white-space: nowrap;
}

/* Pause on hover for accessibility */
.marquee-bar:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: -0.01em;
}

.marquee-sep {
    color: var(--purple-500);
    font-size: 12px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* ============================================================
   SECTIONS (SHARED)
   ============================================================ */
.section {
    padding: 96px 0;
    position: relative;
}

.section-dark {
    background: var(--dark-bg);
    color: #fff;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--purple-600);
    background: var(--purple-50);
    border: 1px solid var(--purple-100);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.badge-light {
    color: var(--purple-400);
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--ink);
    margin-bottom: 14px;
}

.text-white {
    color: #fff !important;
}

.section-subtitle {
    font-size: 17px;
    color: var(--ink-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.text-muted-light {
    color: rgba(255,255,255,0.5) !important;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: box-shadow 0.3s ease, transform 0.3s var(--ease-out-expo), border-color 0.3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139,92,246,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: var(--purple-400);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.10);
    transform: translateY(-5px);
}

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

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--purple-50);
    border: 1px solid var(--purple-100);
    color: var(--purple-600);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.feature-text {
    font-size: 14.5px;
    color: var(--ink-muted);
    line-height: 1.65;
}

.feature-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-600), var(--purple-400));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-line {
    opacity: 1;
}

/* ============================================================
   TOOLS GRID (dark section)
   ============================================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tool-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 32px;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.tool-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-4px);
}

.tool-number {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--purple-400);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.tool-icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-400);
    margin-bottom: 18px;
}

.tool-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.tool-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.tool-text {
    font-size: 14.5px;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
}

/* ============================================================
   REWARDS GRID
   ============================================================ */
.rewards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Referral card takes the full width of the grid */
.reward-card-referral {
    grid-column: 1 / -1;
}

.reward-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.reward-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.reward-card-inner {
    padding: 36px 32px;
}

.reward-card-highlight {
    background: linear-gradient(145deg, #1E1B4B 0%, #312E81 100%);
    border-color: rgba(167, 139, 250, 0.2);
}

.reward-card-highlight .reward-title { color: #fff; }
.reward-card-highlight .reward-text  { color: rgba(255,255,255,0.55); }
.reward-card-highlight .stat-label   { color: rgba(255,255,255,0.45); }
.reward-card-highlight .stat-num     { color: #fff; }

.reward-card:not(.reward-card-highlight) .reward-title { color: var(--ink); }
.reward-card:not(.reward-card-highlight) .reward-text  { color: var(--ink-muted); }

.reward-icon {
    width: 48px;
    height: 48px;
    background: var(--purple-50);
    border: 1px solid var(--purple-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-600);
    margin-bottom: 20px;
}

.reward-card-highlight .reward-icon {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.25);
    color: var(--purple-400);
}

.reward-icon svg { width: 22px; height: 22px; }

.reward-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.reward-text {
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 24px;
}

.reward-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--purple-600);
}

.reward-card-highlight .stat-num { color: var(--purple-400); }

.stat-label {
    font-size: 12px;
    color: var(--ink-faint);
}

/* ============================================================
   REFERRAL CARD
   ============================================================ */
.reward-card-referral {
    background: linear-gradient(135deg, var(--purple-50) 0%, #fff 100%);
    border-color: var(--purple-100);
}

.reward-card-referral:hover {
    border-color: var(--purple-400);
    box-shadow: 0 16px 48px rgba(124, 58, 237, 0.12);
}

.reward-card-referral-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.referral-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.referral-icon {
    background: var(--purple-100);
    border-color: var(--purple-100);
}

.referral-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.referral-step {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--ink-soft);
    font-weight: 500;
}

.referral-step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--purple-600);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
}

.referral-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    background: var(--purple-600);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    width: fit-content;
}

.referral-cta-badge .badge-icon {
    width: 15px;
    height: 15px;
    color: #fff;
}

/* ============================================================
   WAITLIST CARD
   ============================================================ */
.section-waitlist {
    background: var(--surface-2);
}

.waitlist-card {
    background: linear-gradient(145deg, #1E1B4B 0%, #2D1B6B 50%, #1E1B4B 100%);
    border-radius: var(--radius-xl);
    padding: 72px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(49, 46, 129, 0.5);
}

.waitlist-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.waitlist-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.waitlist-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.waitlist-title {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    max-width: 560px;
    line-height: 1.05;
}

.waitlist-description {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    max-width: 480px;
    line-height: 1.7;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 440px;
}

.waitlist-note {
    font-size: 12.5px;
    color: rgba(255,255,255,0.35);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    padding: 60px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-desc {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.65;
    margin-top: 12px;
}

.footer-links-group {
    display: flex;
    gap: 64px;
}

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

.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-family: var(--font-sans);
}

.footer-link {
    font-size: 14px;
    color: var(--ink-muted);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--purple-600);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--ink-faint);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.65s var(--ease-out-expo),
                transform 0.65s var(--ease-out-expo);
}

/* JS adds .will-animate before the observer runs, then .visible on entry */
.reveal.will-animate {
    opacity: 0;
    transform: translateY(28px);
}

.reveal.will-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children inside grids */
.features-grid .reveal:nth-child(1),
.tools-grid    .reveal:nth-child(1),
.rewards-grid  .reveal:nth-child(1) { transition-delay: 0.05s; }

.features-grid .reveal:nth-child(2),
.tools-grid    .reveal:nth-child(2),
.rewards-grid  .reveal:nth-child(2) { transition-delay: 0.13s; }

.features-grid .reveal:nth-child(3),
.tools-grid    .reveal:nth-child(3) { transition-delay: 0.21s; }

/* ============================================================
   SUCCESS TOAST
   ============================================================ */
.success-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #18181B;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out-expo), opacity 0.35s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-form {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-social-proof {
        justify-content: center;
    }

    .hero-mockup {
        max-width: 400px;
        margin: 0 auto;
    }

    .mockup-frame {
        width: 340px;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding-top: calc(var(--nav-h) + 40px);
        padding-bottom: 48px;
    }

    .hero-title {
        font-size: 40px;
    }

    .section {
        padding: 64px 0;
    }

    .features-grid,
    .tools-grid,
    .rewards-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .waitlist-card {
        padding: 40px 24px;
    }

    .waitlist-form,
    .hero-form {
        flex-direction: column;
    }

    .footer-links-group {
        gap: 40px;
    }

    .badge-top-right {
        top: -16px;
        right: 0;
    }

    .badge-bottom-left {
        bottom: -16px;
        left: 0;
    }

    .mockup-frame {
        width: 280px;
    }
}
