:root {
    --color-bg: #0f172a;
    --color-bg-alt: #1e293b;
    --color-amber: #fbbf24;
    --color-text: #f8fafc;
    --color-text-dim: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

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

.amber {
    color: var(--color-amber);
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.badge {
    font-size: 0.6rem;
    background: var(--color-amber);
    color: var(--color-bg);
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 4px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-primary {
    background: var(--color-amber);
    color: var(--color-bg);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #f59e0b;
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--glass-border);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-dim);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hero-visual {
    flex: 1;
    position: relative;
}

/* Code Card */
.code-card {
    padding: 2rem;
    font-family: var(--font-mono);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.endpoint {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--color-amber);
}

pre {
    color: #d1d5db;
    font-size: 0.9rem;
}

.token-key {
    color: #38bdf8;
}

.token-val {
    color: var(--color-amber);
}

/* Playground Section */
.playground,
.scenarios {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-text-dim);
}

.console-container {
    display: flex;
    height: 500px;
}

.console-sidebar {
    width: 250px;
    border-right: 1px solid var(--glass-border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--color-text-dim);
    transition: all 0.3s;
}

.sidebar-item:hover {
    background: var(--glass-bg);
    color: var(--color-text);
}

.sidebar-item.active {
    background: var(--color-amber);
    color: var(--color-bg);
    font-weight: 600;
}

.console-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.console-url {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.method {
    color: #27c93f;
    font-weight: 700;
    font-family: var(--font-mono);
}

.console-url input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--color-text-dim);
    font-family: var(--font-mono);
}

.console-url button {
    background: #38bdf8;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.console-output {
    flex: 1;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.1);
    font-family: var(--font-mono);
    overflow-y: auto;
}

/* Scenario Cards */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.scenario-card {
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

.scenario-card:hover {
    border-color: var(--color-amber);
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.scenario-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.scenario-card h3 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.scenario-card p {
    color: var(--color-text-dim);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.scenario-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-amber);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.btn-text {
    background: none;
    border: none;
    color: #38bdf8;
    cursor: pointer;
    font-weight: 600;
}

/* Methodology Section */
/* --- Scrollytelling Section (Apple Style) --- */

.scroll-track {
    height: 500vh;
    /* Long scroll area */
    background: #000;
    position: relative;
    z-index: 10;
}

.sticky-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1c1c1c 0%, #000 70%);
}

.stage-content {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 800px;
}

.stage-header {
    position: absolute;
    top: -30vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #555;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
}

.cards-container {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    transition: transform 0.1s linear;
    will-change: transform, opacity;
}

.card-number {
    font-size: 14rem;
    font-weight: 900;
    line-height: 1;
    background: -webkit-linear-gradient(top, #333, #000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.3;
}

.scroll-card h3 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    font-family: var(--font-heading);
}

.scroll-card p {
    font-size: 1.5rem;
    color: #a1a1aa;
    margin-top: 1rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.card-visual {
    font-size: 5rem;
    margin-top: 2rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

@media (max-width: 1024px) {
    .scenario-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
        height: auto;
        padding-top: 150px;
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        margin: 0 auto 3rem;
    }

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

@media (max-width: 768px) {
    .truth-stack {
        flex-direction: column;
    }

    .truth-stack::after {
        display: none;
    }
}

/* --- Pricing Section --- */
.pricing-section {
    padding: 100px 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
    /* Vertically align cards if heights differ */
}

.pricing-grid .card {
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-grid .card:hover {
    transform: translateY(-5px);
}

/* Featured Card Styling */
.card.featured {
    border: 1px solid var(--color-amber);
    background: rgba(251, 191, 36, 0.05);
    /* Slight amber tint */
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.1);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-amber);
    color: #000;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.period {
    font-size: 1rem;
    color: #9ca3af;
    font-weight: 400;
}

.card p {
    color: #9ca3af;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.card li {
    margin-bottom: 0.8rem;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check {
    color: #4ade80;
}

.cross {
    color: #f87171;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--color-text-dim);
    font-size: 0.8rem;
}