:root {
    --bg: #0A0A0A;
    --bg-soft: #0F0F0F;
    --fg: #FAFAFA;
    --muted: #B9B9B9;
    --line: #EDEDED;
    --accent: #B8FF3B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(184, 255, 59, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(184, 255, 59, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: grain-drift 20s ease-in-out infinite;
}

@keyframes grain-drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -10px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(237, 237, 237, 0.1);
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(184, 255, 59, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 32px;
    width: auto;
    border-radius: 8px;
}

.domain {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--fg);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--fg) 0%, var(--muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 600px;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--fg);
}

.feature-icon {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 700;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bundle-animation {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.blocks-container {
    transform-origin: 300px 250px;
}

.block {
    transform-origin: 162.5px 112.5px;
    transition: opacity 0.3s ease;
}

.block:hover {
    opacity: 1 !important;
}

.center-node {
    filter: drop-shadow(0 0 12px rgba(184, 255, 59, 0.7));
}

.center-logo {
    filter: drop-shadow(0 0 8px rgba(184, 255, 59, 0.4));
}

.connection-line {
    transform-origin: 300px 250px;
}

@keyframes block-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.block-1 {
    animation: block-pulse 2s ease-in-out infinite;
}

.block-2 {
    animation: block-pulse 2s ease-in-out infinite 0.67s;
}

.block-3 {
    animation: block-pulse 2s ease-in-out infinite 1.33s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    background: transparent;
    color: var(--fg);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(184, 255, 59, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(184, 255, 59, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(184, 255, 59, 0.6);
    }
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(184, 255, 59, 0.5);
}

.btn-secondary {
    border-color: var(--line);
    color: var(--fg);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Value Proposition */
.value-prop {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--bg-soft);
    border: 1px solid rgba(237, 237, 237, 0.1);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(184, 255, 59, 0.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.card p {
    color: var(--muted);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--fg);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.timeline-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--fg);
}

.step-content p {
    color: var(--muted);
    line-height: 1.6;
}

.diagram-container {
    margin-top: 4rem;
    text-align: center;
}

.diagram {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%) brightness(1.1);
}

/* Features */
.features {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.features-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.features-list li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--muted);
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(237, 237, 237, 0.1);
}

.features-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.features-list li:last-child {
    border-bottom: none;
}

/* Playground */
.playground {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.playground-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.playground-left h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--fg);
}

.samples-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sample-item {
    padding: 1rem;
    background-color: var(--bg-soft);
    border: 1px solid rgba(237, 237, 237, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sample-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.sample-item.active {
    border-color: var(--accent);
    background-color: rgba(184, 255, 59, 0.05);
}

.sample-label {
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.25rem;
}

.sample-method {
    font-size: 0.85rem;
    color: var(--accent);
    font-family: 'Courier New', monospace;
}

.sample-path {
    font-size: 0.85rem;
    color: var(--muted);
    font-family: 'Courier New', monospace;
}

.request-panel {
    margin-bottom: 2rem;
}

.request-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.method-select,
.path-input {
    padding: 0.75rem;
    background-color: var(--bg-soft);
    border: 1px solid rgba(237, 237, 237, 0.1);
    border-radius: 4px;
    color: var(--fg);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.method-select {
    min-width: 100px;
}

.path-input {
    flex: 1;
    min-width: 200px;
}

.method-select:focus,
.path-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--accent);
}

.body-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.body-input {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-soft);
    border: 1px solid rgba(237, 237, 237, 0.1);
    border-radius: 4px;
    color: var(--fg);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
}

.body-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--accent);
}

.response-panel {
    background-color: var(--bg-soft);
    border: 1px solid rgba(237, 237, 237, 0.1);
    border-radius: 4px;
    padding: 1.5rem;
    max-width: 100%;
    overflow-x: hidden;
}

.response-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(237, 237, 237, 0.1);
}

.response-status {
    font-weight: 600;
    color: var(--accent);
    font-family: 'Courier New', monospace;
}

.response-duration {
    color: var(--muted);
    font-size: 0.9rem;
}

.response-body {
    margin: 0;
    color: var(--muted);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    max-height: 400px;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: auto;
}

.response-body code {
    color: var(--fg);
}

/* Docs */
.docs {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.docs-content {
    max-width: 800px;
    margin: 0 auto;
}

.docs-section {
    margin-bottom: 3rem;
}

.docs-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.docs-section p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.flow-list {
    list-style: none;
    counter-reset: flow-counter;
}

.flow-list li {
    counter-increment: flow-counter;
    padding: 1rem 0;
    padding-left: 3rem;
    position: relative;
    color: var(--muted);
    line-height: 1.6;
}

.flow-list li::before {
    content: counter(flow-counter);
    position: absolute;
    left: 0;
    width: 32px;
    height: 32px;
    background-color: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.flow-list code {
    background-color: var(--bg-soft);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.disclaimer {
    padding: 1rem;
    background-color: rgba(184, 255, 59, 0.05);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    color: var(--muted);
}

/* CTA Strip */
.cta-strip {
    padding: 6rem 0;
    text-align: center;
    background-color: var(--bg-soft);
    position: relative;
    z-index: 1;
}

.cta-strip h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--fg);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(237, 237, 237, 0.1);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 24px;
    width: auto;
    border-radius: 6px;
}

.footer-copyright {
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-disclaimer {
    color: var(--muted);
    font-size: 0.85rem;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-features {
        gap: 1.5rem;
    }

    .playground-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .nav {
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-disclaimer {
        text-align: center;
    }
}

