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

:root {
    --color-bg: #0a0a0f;
    --color-bg-alt: #111115;
    --color-surface: #1a1a1f;
    --color-surface-hover: #242428;
    --color-border: #2a2a30;
    --color-text: #ffffff;
    --color-text-muted: #a0a0b0;
    --color-text-dim: #606070;
    --color-accent: #FFD60A;
    --color-accent-light: #FFE44D;
    --color-accent-glow: rgba(255, 214, 10, 0.25);
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-glow: 0 0 60px rgba(255, 214, 10, 0.15);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent-light);
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

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

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

.btn-primary {
    background: var(--color-accent);
    color: #000;
    box-shadow: 0 4px 24px var(--color-accent-glow);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 32px var(--color-accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    color: var(--color-text);
    border-color: var(--color-text-dim);
    background: var(--color-surface);
}

.nav-links .btn {
    color: #000;
    background: var(--color-accent);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 214, 10, 0.10) 0%, rgba(255, 214, 10, 0.03) 40%, transparent 70%);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-accent-light);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(42px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== HERO VISUAL: STACK DEMO ===== */
.hero-visual {
    position: relative;
    z-index: 2;
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.stack-demo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.stack-frame {
    width: 160px;
    text-align: center;
}

.frame-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
    margin-bottom: 8px;
}

.frame-image {
    height: 200px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.focus-zone {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

.focus-near::before,
.focus-near::after,
.focus-mid::before,
.focus-mid::after,
.focus-far::before,
.focus-far::after {
    content: '';
    flex: 1;
}

.focus-near::before {
    background: linear-gradient(180deg, #10b981 0%, #10b98140 50%);
}
.focus-near::after {
    background: linear-gradient(180deg, transparent 0%, #ef444440 100%);
}

.focus-mid::before {
    background: linear-gradient(180deg, #ef444420 0%, #10b98140 60%);
}
.focus-mid::after {
    background: linear-gradient(180deg, #10b98140 40%, #ef444420 100%);
}

.focus-far::before {
    background: linear-gradient(180deg, #ef444440 0%, transparent 50%);
}
.focus-far::after {
    background: linear-gradient(180deg, transparent 50%, #10b981 100%);
}

.focus-all {
    background: linear-gradient(180deg, #10b981 0%, #10b981cc 25%, #10b981 50%, #10b981cc 75%, #10b981 100%) !important;
}

.stack-arrow {
    color: var(--color-accent-light);
    transform: rotate(-90deg);
    flex-shrink: 0;
}

.stack-result {
    width: 200px;
    text-align: center;
}

.result-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-light);
    margin-bottom: 8px;
}

.result-image {
    height: 200px;
    background: var(--color-surface);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-glow);
}

.result-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    background: var(--color-success);
    color: #000;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-light);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ===== EXPLAINER ===== */
.explainer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.explainer-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
}

.explainer-card-highlight {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(180deg, rgba(255, 214, 10, 0.06) 0%, var(--color-surface) 60%);
}

.explainer-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--color-text-dim);
}

.explainer-card-highlight .explainer-icon {
    color: var(--color-accent-light);
}

.explainer-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.explainer-card p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Depth of Field Visual */
.dof-visual {
    margin-top: 8px;
}

.dof-bar {
    height: 24px;
    background: var(--color-bg);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.dof-blur {
    flex: 1;
    background: repeating-linear-gradient(
        90deg,
        rgba(239, 68, 68, 0.15) 0px,
        rgba(239, 68, 68, 0.08) 4px,
        transparent 4px,
        transparent 8px
    );
}

.dof-sharp {
    flex: 1;
    background: linear-gradient(90deg, var(--color-success), #34d399);
    border-radius: 4px;
}

.dof-bar-full {
    border-color: var(--color-accent);
}

.dof-sharp-full {
    flex: 1;
    border-radius: 12px;
}

.dof-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--color-text-dim);
    font-weight: 500;
}

/* ===== STEPS ===== */
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 0 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: #000;
    font-size: 16px;
    font-weight: 800;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--color-text-muted);
}

.step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.step-connector {
    width: 80px;
    color: var(--color-text-dim);
    margin-top: 55px;
    flex-shrink: 0;
}

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

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color 0.3s, transform 0.3s;
}

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

.feature-card-large {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.06) 0%, var(--color-surface) 50%);
    border-color: var(--color-accent);
}

.feature-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-accent);
    color: #000;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: var(--color-accent-light);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Performance Visual */
.feature-visual {
    width: 100%;
    margin-top: 24px;
}

.perf-bar {
    height: 36px;
    background: var(--color-bg);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.perf-bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 7px;
    transition: width 1.5s ease;
}

.perf-bar:first-child .perf-bar-fill {
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    color: #000;
}

.perf-bar-slow .perf-bar-fill {
    background: var(--color-surface-hover);
    color: var(--color-text-dim);
}

/* ===== USE CASES ===== */
.usecases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.usecase-card {
    text-align: center;
}

.usecase-image {
    height: 260px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
}

.usecase-macro {
    background: linear-gradient(135deg, #1a3a2a, #0f2620, #1a2a1a);
    background-image:
        radial-gradient(ellipse at 60% 40%, rgba(16, 185, 129, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(245, 158, 11, 0.15) 0%, transparent 40%);
}

.usecase-product {
    background: linear-gradient(135deg, #1a1a1f, #16161a, #1a1a1f);
    background-image:
        radial-gradient(ellipse at 50% 50%, rgba(255, 214, 10, 0.10) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 228, 77, 0.08) 0%, transparent 40%);
}

.usecase-landscape {
    background: linear-gradient(135deg, #1a2030, #0f1a28, #152030);
    background-image:
        radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 40%);
}

.usecase-science {
    background: linear-gradient(135deg, #201a1a, #1a161a, #2a1a1a);
    background-image:
        radial-gradient(ellipse at 40% 60%, rgba(239, 68, 68, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(255, 214, 10, 0.08) 0%, transparent 40%);
}

.usecase-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
}

.usecase-tag {
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.usecase-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.usecase-card p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ===== COMPARISON ===== */
.comparison-container {
    max-width: 900px;
    margin: 0 auto;
}

.comparison-box {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.comparison-side {
    flex: 1;
}

.comparison-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
    margin-bottom: 12px;
    text-align: center;
}

.comparison-label-highlight {
    color: var(--color-accent-light);
}

.comparison-image {
    height: 300px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.comparison-before {
    background: var(--color-surface);
}

.comparison-after {
    background: var(--color-surface);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.blur-demo {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
    gap: 4px;
}

.blur-zone {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.blur-fg {
    background: repeating-linear-gradient(
        90deg,
        rgba(239, 68, 68, 0.1) 0px,
        rgba(239, 68, 68, 0.05) 6px,
        transparent 6px,
        transparent 12px
    );
    color: var(--color-text-dim);
    filter: blur(1px);
}

.blur-bg {
    background: repeating-linear-gradient(
        90deg,
        rgba(239, 68, 68, 0.1) 0px,
        rgba(239, 68, 68, 0.05) 6px,
        transparent 6px,
        transparent 12px
    );
    color: var(--color-text-dim);
    filter: blur(1px);
}

.sharp-zone {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-success);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.sharp-demo .sharp-zone {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.15);
}

.comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comparison-divider span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text-dim);
}

.comparison-note {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--color-text-dim);
    font-style: italic;
}

/* ===== TECH GRID ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    background: var(--color-surface);
    padding: 28px 32px;
}

.tech-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent-light);
    margin-bottom: 6px;
}

.tech-value {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ===== CTA ===== */
.section-cta {
    text-align: center;
    padding: 120px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(255, 214, 10, 0.04) 50%, var(--color-bg) 100%);
}

.cta-content h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 36px;
}

.cta-buttons {
    margin-bottom: 24px;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge svg {
    width: 180px;
    height: 60px;
}

.app-store-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.cta-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    color: var(--color-text-dim);
}

.cta-dot {
    width: 4px;
    height: 4px;
    background: var(--color-text-dim);
    border-radius: 50%;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.footer-logo {
    width: 24px;
    height: 24px;
    color: var(--color-accent-light);
}

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

.footer-links a {
    font-size: 13px;
    color: var(--color-text-dim);
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 12px;
    color: var(--color-text-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-card-large {
        grid-column: span 2;
    }
    .usecases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }

    .stack-demo {
        flex-direction: column;
        gap: 8px;
    }

    .stack-frame {
        width: 120px;
    }

    .frame-image, .result-image {
        height: 100px;
    }

    .stack-arrow {
        transform: rotate(0deg);
    }

    .stack-result {
        width: 160px;
    }

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

    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .step-connector {
        transform: rotate(90deg);
        margin: -20px 0;
    }

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

    .feature-card-large {
        grid-column: span 1;
    }

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

    .usecase-image {
        height: 200px;
    }

    .comparison-box {
        flex-direction: column;
    }

    .comparison-image {
        height: 220px;
    }

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

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

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .section-cta {
        padding: 80px 0;
    }

    .stack-demo {
        gap: 4px;
    }

    .stack-frame {
        width: 90px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge,
.hero-title,
.hero-subtitle,
.hero-cta {
    animation: fadeInUp 0.8s ease backwards;
}

.hero-badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.35s; }
.hero-cta { animation-delay: 0.5s; }
.hero-visual { animation: fadeInUp 1s ease backwards; animation-delay: 0.7s; }
