/* ═══════════════════════════════════════════════════════════════
   Trellar Landing Page — Light Theme (Framer-matched)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Backgrounds — sections carry a touch of transparency so the fixed
       hero-canvas ink-flow ribbon glows through faintly as you scroll */
    --bg-page:        #ffffff;
    --bg-hero:        #f9f8fc;
    --bg-section:     rgba(255, 255, 255, 0.85);
    --bg-section-alt: rgba(247, 244, 252, 0.85);
    --bg-card:        rgba(255, 255, 255, 0.92);

    /* Text */
    --text-primary:   #1e1b4b;
    --text-secondary: #5b5780;
    --text-muted:     #7d7999;

    /* Accents */
    --accent-orange:  rgba(176, 113, 49, 0.9);
    --accent-purple:  #7c3aed;
    --accent-green:   #16a34a;
    --accent-teal:    #0f766e;

    /* Buttons */
    --btn-primary-bg: #1e1b4b;
    --btn-primary-text: #ffffff;

    /* Borders */
    --border-light:  rgba(30, 27, 75, 0.16);
    --border-card:   rgba(30, 27, 75, 0.12);

    /* Misc */
    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0edf8; }
::-webkit-scrollbar-thumb { background: #d1c9f0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #b5aee0; }

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(30,27,75,0.08);
}

/* Pending-approval modal shown when a blocked SSO login redirects here
   (see base/adapters.py respond_user_inactive). Same pattern as the
   post-registration modal in static/css/base/signup.css. */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 27, 75, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    padding: 20px;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(30, 27, 75, 0.25);
    animation: modalIn 0.2s ease;
}

.modal-card-sm { max-width: 420px; }

.modal-card-video {
    max-width: 900px;
    background: #000;
    padding: 0;
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(30, 27, 75, 0.55);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: background 0.15s ease;
}

.modal-close-btn:hover { background: rgba(30, 27, 75, 0.8); }

.modal-video {
    display: block;
    width: 100%;
    max-height: 80vh;
    background: #000;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header { padding: 22px 24px 0; }

.modal-header h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body { padding: 14px 24px 4px; }

.pending-modal-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 10px 24px 24px;
}

.btn-primary {
    display: inline-block;
    padding: 11px 22px;
    background: var(--btn-primary-bg);
    color: #ffffff;
    border: none;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover { background: #2d2a63; }

.navbar-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-logo-icon { width: 32px; height: 32px; }
.nav-logo-icon .trellar-cube { --cube-size: 32px; }

.nav-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.04em;
}

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

.nav-link-mobile-signin { display: none; }

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--text-primary);
    transition: width 0.25s ease;
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

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

.btn-nav-signin {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.btn-nav-cta {
    padding: 9px 22px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-nav-cta:hover {
    background: #2d2a63;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30,27,75,0.25);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* transparent so the fixed ink-flow canvas behind the page shows
       through unobstructed in the hero, where it's most prominent */
    background: transparent;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

/* Three.js canvas — fixed full-viewport layer behind the ENTIRE page.
   Pinned to the viewport (not absolute within .hero) so it stays in place
   and keeps rendering as the user scrolls past every section. */
#heroCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    display: block;
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
    text-align: center;
    animation: heroFadeUp 0.8s cubic-bezier(0.22,1,0.36,1) both;
    position: relative;
    z-index: 1;
    /* Soft halo keeps text readable wherever the fibers pass through */
    padding: 48px 32px 20px;
    background: radial-gradient(ellipse 80% 90% at 50% 50%, rgba(249,248,252,0.72) 0%, rgba(249,248,252,0) 100%);
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Badge — plain small-caps label, no border */
.hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 32px;
    padding: 5px 14px;
    border: 1px solid rgba(30, 27, 75, 0.18);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.55);
}

.hero-headline {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Orange/amber "Trust Layer" */
.headline-orange {
    color: var(--accent-orange);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 44px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 72px;
}

/* Primary: dark filled pill */
.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(30,27,75,0.2);
}

.btn-primary-hero:hover {
    background: #2d2a63;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(30,27,75,0.28);
}

/* Secondary: ghost style */
.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255,255,255,0.7);
    color: var(--text-primary);
    border: 1px solid rgba(30,27,75,0.15);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.btn-secondary-hero svg { width: 18px; height: 18px; }

.btn-secondary-hero:hover {
    background: rgba(255,255,255,0.9);
    border-color: rgba(30,27,75,0.25);
}

/* ─── Hero stat cards ─── */
.hero-stats {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 760px;
    margin-bottom: 24px;
    animation: heroFadeUp 0.8s 0.15s cubic-bezier(0.22,1,0.36,1) both;
    position: relative;
    z-index: 1;
}

.hero-stat-card {
    flex: 1;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.95);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 4px 32px rgba(30,27,75,0.09);
}

.stat-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-number.stat-accent,
.stat-suffix.stat-accent {
    color: var(--accent-orange);
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.45;
}

/* Gap tagline */
.hero-gap-line {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 0.01em;
    animation: heroFadeUp 0.8s 0.25s cubic-bezier(0.22,1,0.36,1) both;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION BASE
   ═══════════════════════════════════════════════════════════════ */

.section { padding: 104px 24px; }

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 20px;
    text-align: center;
}

.section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.12;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: 56px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Reveal animations ─── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1) var(--reveal-delay, 0s),
                transform 0.65s cubic-bezier(0.22,1,0.36,1) var(--reveal-delay, 0s);
}

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

/* ═══════════════════════════════════════════════════════════════
   FRAMEWORK (HOW IT WORKS)
   ═══════════════════════════════════════════════════════════════ */

.how-section { background: var(--bg-section-alt); }

.steps-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.step:hover {
    border-color: rgba(124,58,237,0.2);
    box-shadow: 0 8px 32px rgba(30,27,75,0.1);
    transform: translateY(-3px);
}

.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(124,58,237,0.06);
    border: 1px solid rgba(124,58,237,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.step-icon svg { width: 24px; height: 24px; stroke: var(--accent-purple); }

.step-icon-unleash {
    background: rgba(249,115,22,0.06);
    border-color: rgba(249,115,22,0.15);
}

.step-icon-unleash svg { stroke: var(--accent-orange); }

.step:hover .step-icon {
    background: rgba(124,58,237,0.1);
    border-color: rgba(124,58,237,0.25);
}

.step:hover .step-icon-unleash {
    background: rgba(249,115,22,0.1);
    border-color: rgba(249,115,22,0.25);
}

.step-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   NARRATIVE SECTIONS (Problem, Difference, Every Team, Why Now)
   ═══════════════════════════════════════════════════════════════ */

.problem-section  { background: var(--bg-section); }

.difference-section,
.democratization-section,
.whynow-section { background: var(--bg-section-alt); }

/* Shared centered narrative body used by all copy-driven sections */
.section-narrative {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 auto;
    text-align: center;
}

.section-narrative p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

/* ═══════════════════════════════════════════════════════════════
   CAPABILITIES
   ═══════════════════════════════════════════════════════════════ */

/* White here (was alt) so backgrounds keep alternating now that the
   Difference section sits between Problem and Capabilities */
.features-section { background: var(--bg-section); }

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.feature-card:hover {
    border-color: rgba(124,58,237,0.18);
    box-shadow: 0 12px 40px rgba(30,27,75,0.1);
    transform: translateY(-4px);
}

.feature-card:hover::after { transform: scaleX(1); }

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(124,58,237,0.06);
    border: 1px solid rgba(124,58,237,0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrap {
    background: rgba(124,58,237,0.1);
    border-color: rgba(124,58,237,0.22);
}

.feature-icon-wrap svg { width: 22px; height: 22px; stroke: var(--accent-purple); }

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    color: var(--accent-purple);
    background: rgba(124,58,237,0.06);
    border: 1px solid rgba(124,58,237,0.14);
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   INTEGRATION BANNER
   ═══════════════════════════════════════════════════════════════ */

.frameworks-section {
    padding: 64px 24px;
    background: var(--bg-section);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

.frameworks-label {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.frameworks-body {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════
   SETUP
   ═══════════════════════════════════════════════════════════════ */

.setup-section { background: var(--bg-section-alt); }

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

.setup-step {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: var(--transition);
}

.setup-step:hover {
    border-color: rgba(124,58,237,0.18);
    box-shadow: 0 10px 32px rgba(30,27,75,0.09);
    transform: translateY(-3px);
}

.setup-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-orange);
    line-height: 1;
    margin-bottom: 20px;
    display: block;
}

.setup-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.setup-step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.setup-note {
    max-width: 680px;
    margin: 40px auto 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.setup-docs-cta {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.setup-docs-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent-purple);
    transition: gap 0.2s ease, opacity 0.2s ease;
}

.setup-docs-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }

.setup-docs-link:hover { opacity: 0.8; }
.setup-docs-link:hover svg { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════════
   FOR WHO
   ═══════════════════════════════════════════════════════════════ */

.forwho-section { background: var(--bg-section); }

/* 5 cards over 2 rows: two wider cards on top, three below,
   all flush with the same outer boundaries (6-col grid) */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.persona-card { grid-column: span 2; }
.persona-card:nth-child(-n+2) { grid-column: span 3; }

.persona-card {
    background: var(--bg-section-alt);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
    text-align: center;
}

.persona-card:hover {
    border-color: rgba(124,58,237,0.18);
    box-shadow: 0 10px 32px rgba(30,27,75,0.09);
    transform: translateY(-3px);
    background: var(--bg-card);
}

.persona-icon {
    width: 56px;
    height: 56px;
    background: rgba(124,58,237,0.06);
    border: 1px solid rgba(124,58,237,0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.persona-card:hover .persona-icon {
    background: rgba(124,58,237,0.1);
    border-color: rgba(124,58,237,0.22);
}

.persona-icon svg { width: 24px; height: 24px; stroke: var(--accent-purple); }

.persona-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.persona-card p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   CTA — Full early-access form
   ═══════════════════════════════════════════════════════════════ */

.cta-section {
    background: rgba(245, 240, 235, 0.86);
    padding: 104px 24px 120px;
}


/* ─── Header (above card) ─── */
.cta-header {
    max-width: 680px;
    margin: 0 auto 40px;
    text-align: center;
}

.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.12;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cta-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 24px;
}

/* Bordered seat counter pill */
.cta-seat-pill {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-primary);
    border: 1px solid rgba(30,27,75,0.2);
    border-radius: 100px;
    padding: 6px 18px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
}

/* ─── Form card ─── */
.cta-card {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.98);
    border-radius: 24px;
    padding: 40px 48px 36px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 48px rgba(30,27,75,0.1);
}

/* ─── Tab toggle ─── */
.cta-tab-group {
    display: flex;
    background: #f0e8f8;
    border-radius: 100px;
    padding: 5px;
    margin-bottom: 32px;
    gap: 4px;
}

.cta-tab {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: var(--accent-purple);
}

.cta-tab.active {
    background: var(--btn-primary-bg);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(30,27,75,0.18);
}

/* ─── Form layout ─── */
.cta-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.form-input {
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
    border-color: rgba(124,58,237,0.35);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
}

.form-input--error,
.form-input--error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.10) !important;
}

.form-select--error .form-select,
.form-select--error.form-select {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.10) !important;
}

.field-error {
    font-size: 0.76rem;
    color: #dc2626;
    font-weight: 500;
    margin-top: -2px;
}

/* ─── Select ─── */
.form-select-wrap {
    position: relative;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.form-select:focus {
    border-color: rgba(124,58,237,0.35);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
}

.select-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
    pointer-events: none;
}

/* ─── Framework chips ─── */
.framework-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 8px 18px;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    background: #ffffff;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.chip:hover {
    border-color: rgba(124,58,237,0.25);
    color: var(--text-primary);
}

.chip.selected {
    background: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
    color: #ffffff;
}

/* ─── Submit button ─── */
.cta-submit-full {
    width: 100%;
    padding: 15px 24px;
    background: var(--btn-primary-bg);
    color: #ffffff;
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(30,27,75,0.2);
}

.cta-submit-full:hover {
    background: #2d2a63;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(30,27,75,0.28);
}

.cta-submit-full:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ─── Form note ─── */
.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
}

/* ─── Sign in note (below card) ─── */
.cta-signin-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 24px;
}

.cta-signin-link {
    color: var(--accent-purple);
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.cta-signin-link:hover { opacity: 0.75; }

/* ─── Hidden company-only fields when on individual tab ─── */
.cta-card.tab-individual .company-field {
    display: none;
}

/* ─── Submitted state — lock form in place with frosted overlay ─── */
.cta-card.form-submitted {
    position: relative;
}

.cta-card.form-submitted::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(3px);
    pointer-events: none;
    z-index: 1;
}

.cta-card.form-submitted .cta-submit-full {
    position: relative;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
}

.cta-card.form-submitted .form-input,
.cta-card.form-submitted .form-select {
    opacity: 0.55;
    cursor: not-allowed;
}

.cta-card.form-submitted .chip {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.cta-card.form-submitted .cta-tab {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid var(--border-light);
    padding: 48px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-logo svg { width: 28px; height: 28px; }
.footer-logo .trellar-cube { --cube-size: 28px; }

.footer-tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
    padding-left: 38px;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps-track   { grid-template-columns: 1fr 1fr; gap: 20px; }
    .persona-grid  { grid-template-columns: 1fr 1fr; }
    .setup-grid    { grid-template-columns: 1fr 1fr; }

    /* 2-col layout: rows of 2, orphan 5th card centered on its own row */
    .persona-card,
    .persona-card:nth-child(-n+2) { grid-column: auto; }

    .persona-card:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        border-bottom: 1px solid var(--border-light);
        gap: 8px;
        z-index: 999;
    }

    .nav-links.mobile-open .nav-link { font-size: 1rem; padding: 12px 0; }
    .nav-links.mobile-open .nav-link-mobile-signin { display: block; border-top: 1px solid var(--border-light); margin-top: 8px; padding-top: 8px; }
    .btn-nav-signin { display: none; }
    .nav-hamburger  { display: flex; }

    .hero           { padding: 100px 20px 64px; }
    .hero-stats     { flex-direction: column; }
    .hero-stat-card { padding: 24px 20px; }
    .stat-number    { font-size: 2.2rem; }

    .features-grid  { grid-template-columns: 1fr; }
    .steps-track    { grid-template-columns: 1fr; }
    .persona-grid   { grid-template-columns: 1fr; }
    .setup-grid     { grid-template-columns: 1fr; }

    .persona-card:nth-child(5) {
        grid-column: auto;
        justify-self: stretch;
        width: 100%;
    }
    .section        { padding: 72px 20px; }
    .section-narrative p { font-size: 1rem; }

    /* CTA form */
    .cta-card       { padding: 28px 20px; }
    .form-row       { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-headline  { font-size: 2rem; }
    .btn-primary-hero, .btn-secondary-hero { padding: 12px 22px; font-size: 0.9rem; }
    .cta-card       { padding: 24px 16px; }
    .cta-tab        { font-size: 0.8rem; padding: 8px 12px; }
}
