/* Stellix Landing Page — Interstellar Control Plane */

:root {
    --void: #04060C;
    --deep: #0A0F1C;
    --surface: #111827;
    --surface-hover: #1A2332;
    --border: rgba(124, 58, 237, 0.1);
    --border-hover: rgba(124, 58, 237, 0.25);
    --text: #E2E8F0;
    --text-secondary: #94A3B8;
    --text-dim: #64748B;
    --violet: #7C3AED;
    --violet-light: #A78BFA;
    --violet-glow: rgba(124, 58, 237, 0.35);
    --cyan: #06B6D4;
    --cyan-dim: rgba(6, 182, 212, 0.7);
    --cyan-glow: rgba(6, 182, 212, 0.2);
    --amber: #F59E0B;
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

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

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

body {
    background: var(--void);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== Navigation ===== */

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.landing-nav.scrolled {
    background: rgba(4, 6, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

.nav-wordmark {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
}

.nav-wordmark span {
    color: var(--violet-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    background: var(--violet);
    color: white !important;
    border-radius: 6px;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-cta:hover {
    background: #6D28D9;
    box-shadow: 0 0 24px var(--violet-glow);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== Hero ===== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 2rem 6rem;
}

/* Perspective grid — receding into the void */
.hero-grid {
    position: absolute;
    top: -20%;
    left: -30%;
    right: -30%;
    bottom: -60%;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(600px) rotateX(55deg);
    transform-origin: center 20%;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
    animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
    from { background-position: 0 0; }
    to { background-position: 0 64px; }
}

/* Nebula glow — central energy source */
.hero-glow {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(
        ellipse at center,
        rgba(124, 58, 237, 0.12) 0%,
        rgba(6, 182, 212, 0.04) 35%,
        transparent 65%
    );
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from { opacity: 0.7; transform: translateX(-50%) scale(1); }
    to { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* Star field — generated by JS, styled here */
.hero-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-stars .star {
    position: absolute;
    border-radius: 50%;
    background: white;
    animation: starTwinkle var(--duration, 4s) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes starTwinkle {
    0%, 100% { opacity: var(--min-opacity, 0.2); }
    50% { opacity: var(--max-opacity, 0.7); }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1.75rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.2s;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--cyan-dim);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.4s;
}

.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--violet-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 1.25rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.6s;
}

.hero-qualifier {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.7s;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.9s;
}

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

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--violet);
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
    background: #6D28D9;
    box-shadow: 0 0 32px var(--violet-glow), 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.05);
}

/* ===== Section Utilities ===== */

.section {
    padding: 7rem 2rem;
    position: relative;
}

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

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--violet-light);
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-subtitle {
    margin: 0 auto;
}

/* Divider line between sections */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

/* ===== Narrative Sections (Infrastructure Shift, Why Now) ===== */

.narrative-section {
    background: var(--deep);
}

.narrative-body {
    max-width: 720px;
}

.narrative-body.centered {
    margin: 0 auto;
    text-align: center;
}

.narrative-body p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.narrative-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.75rem;
}

.narrative-list li {
    font-size: 1.05rem;
    color: var(--text-secondary);
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    line-height: 1.6;
}

.narrative-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 8px var(--violet-glow);
}

.narrative-emphasis {
    font-family: var(--font-display);
    font-size: 1.2rem !important;
    font-weight: 600;
    color: var(--text) !important;
    margin-top: 1rem;
}

/* ===== Problem Section ===== */

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

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

.problem-card {
    padding: 1.75rem;
    background: var(--deep);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.problem-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.problem-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.problem-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.problem-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.problem-conclusion {
    margin-top: 3rem;
    text-align: center;
}

.problem-conclusion p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.conclusion-emphasis {
    font-family: var(--font-display);
    font-size: 1.5rem !important;
    font-weight: 700;
    color: var(--text) !important;
    letter-spacing: -0.01em;
}

/* ===== Platform Section (3 Pillars) ===== */

.platform-section {
    background: var(--deep);
}

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

.pillar-card {
    padding: 2.25rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.pillar-icon.violet {
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.18);
}

.pillar-icon.cyan {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.pillar-icon.amber {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.pillar-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.pillar-features {
    list-style: none;
    padding: 0;
}

.pillar-features li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 0.35rem 0 0.35rem 1.25rem;
    position: relative;
    line-height: 1.6;
}

.pillar-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-dim);
}

.platform-quote,
.architecture-quote,
.controls-quote {
    margin-top: 3rem;
    text-align: center;
}

.platform-quote blockquote,
.architecture-quote blockquote,
.controls-quote blockquote {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-style: italic;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--violet);
    background: rgba(124, 58, 237, 0.04);
    border-radius: 0 8px 8px 0;
    display: inline-block;
    text-align: left;
    max-width: 700px;
}

/* ===== Architecture Section (Stack Table) ===== */

.architecture-section {
    background: var(--void);
}

.stack-table {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.stack-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.stack-row:last-child {
    border-bottom: none;
}

.stack-row:hover {
    background: rgba(124, 58, 237, 0.03);
}

.stack-layer {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    padding: 1.25rem 1.5rem;
    background: var(--deep);
    border-right: 1px solid var(--border);
}

.stack-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
}

.stack-row-stellix {
    background: rgba(124, 58, 237, 0.06);
}

.stack-row-stellix .stack-layer {
    color: var(--violet-light);
    background: rgba(124, 58, 237, 0.1);
}

.stack-row-stellix .stack-desc {
    color: var(--text);
    font-weight: 500;
}

/* ===== Personas Section ===== */

.personas-section {
    background: var(--deep);
}

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

.persona-card {
    padding: 2rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.persona-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.persona-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

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

.persona-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

.persona-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

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

/* ===== Why Now ===== */

.why-now-section {
    background: var(--void);
}

/* ===== Enterprise Controls ===== */

.controls-section {
    background: var(--deep);
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    transition: border-color 0.2s ease;
}

.control-item:hover {
    border-color: var(--border-hover);
}

.control-check {
    color: var(--cyan);
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== Team Section ===== */

.team-section {
    background: var(--void);
}

.team-body {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.team-body > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.team-credentials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.team-credential {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.team-quote {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-style: italic;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--violet);
    background: rgba(124, 58, 237, 0.04);
    border-radius: 0 8px 8px 0;
    text-align: left;
}

/* ===== Demo CTA Section ===== */

.demo-section {
    background: var(--void);
    position: relative;
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(
        ellipse at center,
        rgba(124, 58, 237, 0.08) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.demo-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.demo-form {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.demo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.demo-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.demo-field label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.demo-field input,
.demo-field textarea {
    padding: 0.75rem 1rem;
    background: var(--deep);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.demo-field input:focus,
.demo-field textarea:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.demo-field input::placeholder,
.demo-field textarea::placeholder {
    color: var(--text-dim);
}

.demo-field textarea {
    resize: vertical;
    min-height: 80px;
}

.demo-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.demo-actions .btn-primary {
    flex: 1;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
}

.demo-actions .btn-ghost {
    white-space: nowrap;
}

/* Invite code field — hidden by default */
.invite-field {
    display: none;
    animation: fadeSlideUp 0.4s ease forwards;
}

.invite-field.visible {
    display: flex;
}

/* Success/error messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #4ADE80;
}

.form-message.error {
    display: block;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: #F87171;
}

/* ===== Footer ===== */

.landing-footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--deep);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .nav-wordmark {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 260px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--text-secondary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* ===== Scroll Reveal Animation ===== */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.35s; }
.reveal-delay-5 { transition-delay: 0.4s; }
.reveal-delay-6 { transition-delay: 0.45s; }

/* ===== Responsive ===== */

@media (max-width: 1024px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .pillars-grid .pillar-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

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

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

    .stack-row {
        grid-template-columns: 220px 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .landing-nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(4, 6, 12, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .nav-mobile-toggle {
        display: block;
        z-index: 101;
    }

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

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

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

    .hero {
        padding: 7rem 1.5rem 4rem;
        min-height: 90vh;
    }

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

    .section {
        padding: 5rem 1.5rem;
    }

    .problem-grid,
    .pillars-grid,
    .personas-grid,
    .controls-grid {
        grid-template-columns: 1fr;
    }

    .pillars-grid .pillar-card:last-child {
        max-width: 100%;
    }

    .stack-row {
        grid-template-columns: 1fr;
    }

    .stack-layer {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .demo-form-row {
        grid-template-columns: 1fr;
    }

    .demo-actions {
        flex-direction: column;
    }

    .demo-actions .btn-primary {
        width: 100%;
    }

    .demo-actions .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .conclusion-emphasis {
        font-size: 1.25rem !important;
    }
}
