/* ═══════════════════════════════════════════════════════════
   BRAINZYX — CREATIVE FLOATING CARD LAYOUT
   White card on sage background + 3D illustrations
   Visually rich, unique, editorial design
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');

:root {
    --bg-body: #bcc9a5;
    --white: #ffffff;
    --bg-primary: #ffffff;
    --bg-cream: #f7f8f3;
    --bg-sage-light: #e9eed8;
    --bg-sage-mid: #d5dfc3;

    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #8a8a8a;

    --teal: #2d9688;
    --teal-dark: #217a6e;
    --teal-light: #e6f5f2;
    --black: #111111;
    --yellow: #efd94e;
    --sage: #b8cc94;
    --sage-dark: #8aab5a;

    --border: #e8e8e8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);

    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-full: 999px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'DM Serif Display', Georgia, serif;
    --container: 1060px;
    --section-py: clamp(64px, 8vw, 100px);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Theme Variables for Customization Panel */
    --th-nav-bg: #ffffff;
    --th-nav-color: #555555;
    --th-nav-fontSize: 13.6px;
    --th-logo-color: #111111;
    --th-logo-size: 1.4rem;
    --th-logo-weight: 800;
    --th-logo-mark-color: #2d9688;

    --th-hero-bg: linear-gradient(165deg, #ffffff 55%, #e9eed8 100%);
    --th-hero-color: #111111;
    --th-hero-accent: #2d9688;

    --th-cta-bg: #111111;
    --th-cta-color: #ffffff;
    --th-cta-radius: 8px;

    --th-card-bg: #ffffff;
    --th-card-color: #555555;
    --th-card-radius: 24px;

    --th-footer-bg: #f7f8f3;
    --th-footer-color: #8a8a8a;

    --th-global-bg: #bcc9a5;
    --th-frame-bg: #ffffff;
    --th-heading-color: #111111;

    --th-decor-1: rgba(45, 150, 136, 0.4);
    --th-decor-2: rgba(239, 217, 78, 0.5);
    --th-decor-3: rgba(184, 204, 148, 0.6);

    --th-test-bg: #ffffff;
    --th-test-color: #555555;

    --th-pricing-bg: #ffffff;
    --th-pricing-color: #555555;
    --th-pricing-popBg: #111111;
    --th-pricing-popColor: #ffffff;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    background: var(--th-global-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ═══════════════════════════════════════════
   FLOATING DECORATIVE CIRCLES ON BODY
   ═══════════════════════════════════════════ */
.floating-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
}

.float-1 {
    width: 300px;
    height: 300px;
    background: var(--th-decor-1);
    top: 10%;
    left: -5%;
    animation: floatSlow 18s ease-in-out infinite;
}

.float-2 {
    width: 200px;
    height: 200px;
    background: var(--th-decor-2);
    top: 50%;
    right: -3%;
    animation: floatSlow 22s ease-in-out infinite reverse;
}

.float-3 {
    width: 160px;
    height: 160px;
    background: var(--th-decor-3);
    bottom: 15%;
    left: 10%;
    animation: floatSlow 15s ease-in-out infinite 3s;
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(25px, -35px) scale(1.08);
    }

    66% {
        transform: translate(-15px, 20px) scale(0.95);
    }
}

/* ═══════════════════════════════════════════
   PAGE FRAME — main white card
   ═══════════════════════════════════════════ */
.page-frame {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 28px auto;
    background: var(--th-frame-bg);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
    min-height: calc(100vh - 56px);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: var(--section-py) 0;
}

.accent-text {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    color: var(--teal);
    -webkit-text-fill-color: var(--teal);
}

.accent-text-light {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--teal);
    -webkit-text-fill-color: var(--teal);
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    border-radius: var(--th-cta-radius);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-primary {
    background: var(--th-cta-bg);
    color: var(--th-cta-color);
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    background: var(--white);
}

.btn-outline:hover {
    border-color: var(--black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 0.95rem;
}

/* New Mint Button from reference design */
.btn-mint {
    background: #99E2D0;
    /* Close match to the image mint green */
    color: #0a0e27;
    /* Dark navy text */
    font-weight: 700;
}

.btn-mint:hover {
    background: #80cebc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(153, 226, 208, 0.4);
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
    padding: 18px 0;
    background: var(--th-nav-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Nav bar full width so logo can sit at leftmost; override centered container */
.navbar .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: 12px;
    padding-right: 32px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: nowrap;
}

/* Logo + Brainzyx: left side of nav, first item */
.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    order: 1;
}

.nav-links {
    order: 2;
}

.nav-actions {
    order: 3;
}

.nav-logo-mark {
    display: inline-block;
    height: 36px;
    width: 36px;
    background-color: var(--th-logo-mark-color);
    -webkit-mask-image: url('../images/brainzyx-emblem-logo.png');
    mask-image: url('../images/brainzyx-emblem-logo.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: var(--transition);
}

.logo-brain {
    color: var(--th-logo-color);
    font-size: var(--th-logo-size);
    font-weight: var(--th-logo-weight);
}

.logo-zyx {
    color: var(--teal);
    -webkit-text-fill-color: var(--teal);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: var(--th-nav-fontSize);
    font-weight: 500;
    color: var(--th-nav-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-login {
    font-size: var(--th-nav-fontSize);
    font-weight: 500;
    color: var(--th-nav-color);
    transition: var(--transition);
}

.nav-login:hover {
    color: var(--text-primary);
}

.nav-cta {
    font-size: 0.82rem;
    padding: 9px 20px;
    border: 1.5px solid var(--black);
    border-radius: 8px;
    color: var(--black);
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
}

.nav-cta:hover {
    background: var(--black);
    color: #fff;
}

/* Logged-in user nav — Quiz Dashboard & Welcome stand out (no buttons) */

/* Quiz Dashboard: teal “active” tab feel — underline accent */
.nav-dashboard-link {
    font-size: var(--th-nav-fontSize);
    font-weight: 600;
    color: var(--teal);
    padding-bottom: 2px;
    border-bottom: 2px solid var(--teal);
    transition: color var(--transition), border-color var(--transition);
}

.nav-dashboard-link:hover {
    color: var(--teal-dark);
    border-bottom-color: var(--teal-dark);
}

/* Welcome: soft “you are here” pill — very light tint, not a button */
.nav-welcome {
    font-size: var(--th-nav-fontSize);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    white-space: nowrap;
    padding: 6px 14px;
    background: rgba(45, 150, 136, 0.09);
    border-radius: 20px;
}

/* Separator between Welcome and Logout */
.nav-actions .btn-logout::before {
    content: '·';
    margin-right: 12px;
    color: var(--text-muted);
    font-weight: 400;
    pointer-events: none;
}

.btn-logout {
    font-size: var(--th-nav-fontSize);
    font-weight: 500;
    color: var(--th-nav-color);
    text-decoration: none;
    transition: color var(--transition);
}

.btn-logout:hover {
    color: var(--teal);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ═══════════════════════════════════════════
   HERO — 3D character + animation card
   ═══════════════════════════════════════════ */
.hero {
    padding: 40px 0 20px;
    background: var(--th-hero-bg);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-sans);
    font-size: clamp(2.4rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--th-hero-color);
}

.hero-accent {
    font-family: var(--font-sans);
    font-weight: 700;
    font-style: normal;
    color: var(--th-hero-accent);
    -webkit-text-fill-color: var(--th-hero-accent);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--th-hero-color);
    opacity: 0.8;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 32px;
}

.badge-you {
    display: inline-block;
    background: var(--teal-light);
    color: var(--teal-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(45, 150, 136, 0.15);
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}

.hero-trial-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
}

.stat-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #00d4aa;
    /* Vibrant teal/green for the numbers */
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero visual — 3D WebGL scene */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scene-container {
    width: 100%;
    height: 480px;
    /* Reduced from 560px to shrink hero height */
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.scene-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.scene-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scene-container:hover .scene-hint {
    opacity: 1;
}


/* ═══════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--teal-light);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
    color: var(--th-heading-color);
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Also need avatar for testimonials */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    border: 2.5px solid var(--white);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════ */
.features {
    background: var(--bg-cream);
}

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

/* Character sitting directly on the heading text */
.efficiency-heading-wrapper {
    position: relative;
    display: inline-block;
}

.couch-student-img {
    position: absolute;
    width: 400px;
    height: auto;
    bottom: 0px;
    /* Bring her all the way down to the text baseline */
    left: 50%;
    transform: translateX(-50%) translateY(35px);
    /* Push her down further to physically overlap the text */
    z-index: 10;
    pointer-events: none;
    /* Allows text selection underneath */
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
    /* Real dynamic shadow on the true transparent PNG */
    transition: transform 0.4s ease;
}

/* Hide the 'Features' tag underneath her as requested */
.section.features .section-tag {
    opacity: 0;
    pointer-events: none;
    margin-bottom: 0;
}

.efficiency-heading-wrapper:hover .couch-student-img {
    transform: translateX(-50%) translateY(0);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 24px;
}

.bento-card {
    background: var(--th-card-bg);
    border: 1px solid var(--border);
    border-radius: var(--th-card-radius);
    padding: 32px 32px 0 32px;
    /* Pad sides/top, no bottom pad so image bleeds */
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy smooth expansion */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    z-index: 1;
}

.bento-card:hover {
    transform: scale(1.25) !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2), 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--teal);
    z-index: 50;
}

/* Smart transform origins so huge scaled cards don't bleed off screen edges */
.bento-wide {
    transform-origin: top left;
}

.bento-tall {
    transform-origin: right top;
}

/* The two small square cards are at the bottom */
.bento-card:nth-child(3) {
    transform-origin: left bottom;
}

.bento-card:nth-child(4) {
    transform-origin: center bottom;
}

.bento-content {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.bento-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--th-card-color);
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--th-card-color);
    line-height: 1.6;
}

.bento-media {
    flex: 1;
    position: relative;
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.bento-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

/* 1. Wide card (spans 2 columns) */
.bento-wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    padding: 0;
    /* Clear padding for horizontal layout */
}

.bento-wide .bento-content {
    flex: 0 0 40%;
    padding: 40px;
}

.bento-wide .bento-media {
    flex: 1;
    margin-top: 0;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
}

.bento-wide .bento-media img {
    width: 140%;
    /* Force image to bleed out the right side */
    border-radius: 8px 0 0 8px;
    /* Curve left side, right bleeds off */
    transform: translateX(10%);
}

/* 2. Tall card (spans 2 rows) */
.bento-tall {
    grid-row: span 2;
    padding: 40px 40px 0 40px;
}

.bento-tall .bento-media {
    margin-top: 40px;
    align-items: stretch;
}

.bento-tall .bento-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Phone UI is fully framed */
    border-radius: 16px 16px 0 0;
    box-shadow: none;
    /* Inherent shadow in the image likely */
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.testimonials {
    background: var(--white);
}

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

.testimonial-card {
    background: var(--th-test-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sage);
}

.testimonial-card.featured {
    border-color: var(--teal);
    background: var(--teal-light);
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--sage);
    line-height: 0.5;
    margin-bottom: 12px;
    opacity: 0.6;
}

.testimonial-card.featured .quote-mark {
    color: var(--teal);
    opacity: 0.3;
}

.testimonial-card>p {
    font-size: 0.9rem;
    color: var(--th-test-color);
    line-height: 1.75;
    margin-bottom: 20px;
    font-style: italic;
}

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

.testimonial-author strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
}

.testimonial-stars {
    font-size: 0.7rem;
    color: var(--yellow);
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════
   WHY BRAINZYX — Comparison with images
   ═══════════════════════════════════════════ */
.why-section {
    background: var(--bg-cream);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 880px;
    margin: 0 auto;
}

.comparison-card {
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

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

.comparison-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.comparison-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comparison-card li {
    font-size: 0.85rem;
    line-height: 1.6;
    padding-left: 26px;
    position: relative;
    text-align: left;
}

.comparison-card li::before {
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 0.85rem;
}

.comparison-card.traditional {
    background: var(--white);
}

.comparison-card.traditional li {
    color: var(--text-muted);
}

.comparison-card.traditional li.negative::before {
    content: '✗';
    color: #d44;
}

.comparison-card.brainzyx {
    background: var(--black);
    color: #fff;
    border-color: var(--black);
    box-shadow: var(--shadow-xl);
}

.comparison-card.brainzyx h3 {
    color: #fff;
}

.comparison-card.brainzyx li {
    color: rgba(255, 255, 255, 0.8);
}

.comparison-card.brainzyx li.positive::before {
    content: '✓';
    color: var(--yellow);
}

/* ═══════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════ */
.pricing {
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: start;
}

.pricing-card {
    background: var(--th-pricing-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 22px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sage);
}

.pricing-card.popular {
    border-color: var(--black);
    background: var(--th-pricing-popBg);
    color: var(--th-pricing-popColor);
    transform: scale(1.04);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular:hover {
    transform: scale(1.04) translateY(-4px);
}

.pricing-card.popular .pricing-name {
    color: rgba(255, 255, 255, 0.5);
}

.pricing-card.popular .price-currency {
    color: rgba(255, 255, 255, 0.6);
}

.pricing-card.popular .price-amount {
    color: var(--th-pricing-popColor);
}

.pricing-card.popular .price-period {
    color: rgba(255, 255, 255, 0.4);
}

.pricing-card.popular .pricing-list li {
    color: rgba(255, 255, 255, 0.75);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pricing-card.popular .pricing-list li::before {
    color: var(--yellow);
}

.pricing-card.popular .btn-primary {
    background: var(--white);
    color: var(--black);
}

.pricing-card.popular .btn-primary:hover {
    opacity: 0.9;
}

.popular-tag {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 0 0 8px 8px;
    background: var(--teal);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.pricing-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--th-pricing-color);
    margin-bottom: 8px;
}

.pricing-card.popular .pricing-name {
    margin-top: 12px;
}

.pricing-price {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price-currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--th-pricing-color);
    margin-top: 6px;
    align-self: flex-start;
}

.price-amount {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.price-period {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-list {
    margin-bottom: 24px;
    text-align: left;
}

.pricing-list li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    padding-left: 22px;
    position: relative;
}

.pricing-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
    font-size: 0.8rem;
}

.pricing-list li:last-child {
    border-bottom: none;
}

/* ═══════════════════════════════════════════
   REFERRAL — Split layout with 3D illustration
   ═══════════════════════════════════════════ */
.referral {
    background: var(--bg-cream);
}

.referral-box {
    background: var(--bg-sage-light);
    border-radius: var(--radius-xl);
    padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px);
    position: relative;
    overflow: hidden;
}

.referral-box::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: var(--teal);
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
}

.referral-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.referral-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--teal-light);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.referral-text h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.referral-text p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.referral-text p strong {
    color: var(--text-primary);
}

.referral-note {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 20px !important;
}

.referral-text .btn {
    position: relative;
    z-index: 1;
}

.referral-visual {
    text-align: center;
}

.referral-img {
    max-width: 340px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.1));
}

/* Referral: form, gate, message (same flow as old home) */
.referral-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.ref-content {
    position: relative;
    z-index: 1;
}

.invite-form {
    display: flex;
    gap: 12px;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.invite-input {
    flex: 1;
    min-width: 180px;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: inherit;
}

.btn-invite {
    background: var(--black);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-invite:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-invite:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.referral-msg {
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.referral-msg-success {
    background: rgba(45, 150, 136, 0.15);
    color: var(--teal-dark);
    border: 1px solid rgba(45, 150, 136, 0.35);
}

.referral-msg-error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.referral-gate {
    margin-top: 1.25rem;
}

.referral-gate-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.referral-gate-text i {
    color: var(--teal);
}

.referral-gate-text a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: underline;
}

.ref-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.referral-ticket-container {
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.referral-ticket {
    width: 260px;
    height: 150px;
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 1rem;
    color: #1a1a2e;
    position: relative;
    transform: rotateY(-6deg) rotateX(3deg);
    transition: transform 0.3s ease;
}

.referral-ticket:hover {
    transform: rotateY(0) rotateX(0) scale(1.02);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ticket-brand {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.5px;
}

.ticket-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
    letter-spacing: 0.05em;
}

.ticket-body .ticket-sub {
    font-size: 0.75rem;
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.ticket-code {
    font-family: monospace;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.35);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 900px) {
    .referral-content {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    background: var(--th-footer-bg);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

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

.footer-links a {
    font-size: 0.82rem;
    color: var(--th-footer-color);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--teal);
}

.footer-bottom {
    padding-top: 14px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.72rem;
    color: var(--th-footer-color);
}

/* ═══════════════════════════════════════════
   REGISTER MODAL (Google + signup form, same as old home)
   ═══════════════════════════════════════════ */
.register-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.register-modal.show {
    display: flex;
}

.register-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.register-modal-content {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    color: var(--text-primary);
}

.register-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.register-modal-close:hover {
    background: var(--teal-light);
    color: var(--teal);
}

.register-modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.register-modal-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-google-register {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    background: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.btn-google-register:hover {
    background: #333;
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 150, 136, 0.2);
}

.register-modal-error {
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #b91c1c;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.35;
    margin: 10px 0 16px;
}

.register-modal-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: var(--text-muted);
    font-size: 14px;
}

.register-modal-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.register-modal-divider span {
    background: var(--white);
    padding: 0 16px;
    position: relative;
}

.register-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.register-modal-form input:not(.register-honeypot):not(.register-captcha-input) {
    padding: 14px 16px;
    background: var(--bg-cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.2s;
    font-family: inherit;
}

.register-modal-form input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(45, 150, 136, 0.1);
}

.register-modal-form .register-captcha-input {
    background: var(--bg-cream);
    color: var(--text-primary);
}

/* Captcha visible on white modal (must override register-captcha.css dark-theme) */
.register-modal .register-captcha-box,
.register-modal .register-captcha-box .register-captcha-question,
.register-modal .register-captcha-box #regCaptchaA,
.register-modal .register-captcha-box #regCaptchaB {
    color: var(--text-primary);
}

.register-modal .register-captcha-box .register-captcha-question {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.register-modal .register-captcha-box .register-captcha-input {
    background: var(--bg-cream);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.register-modal .register-captcha-box .register-captcha-input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.btn-register-submit {
    width: 100%;
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    margin-top: 8px;
}

.btn-register-submit:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 150, 136, 0.3);
}

.register-modal-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.register-modal-footer a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
}

.register-modal-footer a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.features-grid .reveal:nth-child(2) {
    transition-delay: 0.08s;
}

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

.features-grid .reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.testimonials-grid .reveal:nth-child(2),
.pricing-grid .reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.testimonials-grid .reveal:nth-child(3),
.pricing-grid .reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.pricing-grid .reveal:nth-child(4) {
    transition-delay: 0.24s;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .page-frame {
        margin: 16px;
        border-radius: 16px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .hero-subtitle {
        margin: 0 auto 28px;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-hint {
        text-align: center;
    }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .scene-container {
        height: 340px;
    }

    .couch-student-img {
        width: 280px;
        bottom: 0px;
        /* Keep centered horizontally on mobile too */
        left: 50%;
        transform: translateX(-50%) translateY(20px);
    }

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

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

    .comparison-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .footer-row {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .page-frame {
        margin: 10px;
        border-radius: 14px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        padding: 12px 20px;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.95rem;
    }

    .features-grid,
    .testimonials-grid,
    /* Mobile Bento Collapse */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-wide {
        grid-column: span 1;
        flex-direction: column;
        padding: 32px 32px 0 32px;
    }

    .bento-wide .bento-content {
        padding: 0;
        margin-bottom: 24px;
    }

    .bento-wide .bento-media img {
        width: 100%;
        transform: none;
        border-radius: 12px 12px 0 0;
    }

    .bento-card:hover {
        /* Restrict massive scaling on mobile since cards are already 100% width */
        transform: scale(1.02) translateY(-4px) !important;
    }

    .bento-tall {
        grid-row: span 1;
    }

    .bento-tall .bento-media {
        height: 300px;
    }

    .testimonials-grid,
    .pricing-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }

    .hero h1 {
        font-size: clamp(1.9rem, 7vw, 2.6rem);
    }

    .scene-container {
        height: 280px;
    }

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

    .btn-lg {
        width: 100%;
    }

    .footer-row {
        flex-direction: column;
        gap: 12px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .floating-decor {
        display: none;
    }
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Floating Customize Button */
.floating-customize-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--black);
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.floating-customize-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    color: #fff;
}