:root {
    --bg-primary: #080810;
    --bg-secondary: #0e0e1a;
    --bg-card: #141425;
    --bg-card-hover: #1a1a35;
    --text-primary: #e8e8f0;
    --text-secondary: #8888a8;
    --text-muted: #555570;
    --accent-amber: #f59e0b;
    --accent-amber-light: #fbbf24;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --gradient-main: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    --border: rgba(255, 255, 255, 0.06);
    --radius: 12px;
    --radius-sm: 6px;
    --transition: 0.25s ease;
    --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* NAV */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(8, 8, 16, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--mono);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-dot {
    color: var(--accent-amber);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-cta {
    background: var(--accent-amber) !important;
    color: #000 !important;
    padding: 7px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-family: var(--mono) !important;
    font-size: 0.8rem !important;
}

.nav-cta:hover {
    background: var(--accent-amber-light) !important;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    position: relative;
    text-align: center;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(239, 68, 68, 0.04) 40%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-amber);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--sans);
}

.btn-primary {
    background: var(--gradient-main);
    color: #000;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

/* TERMINAL */
.terminal-preview {
    margin-top: 48px;
    position: relative;
    z-index: 2;
}

.terminal-window {
    background: #0c0c14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.terminal-bar {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 6px;
    margin-right: 12px;
}

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

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.terminal-title {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 16px;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.8;
}

.term-line {
    white-space: pre-wrap;
}

.term-line.dim {
    color: var(--text-muted);
}

.term-line.success {
    color: var(--accent-green);
}

.prompt {
    color: var(--accent-amber);
    margin-right: 8px;
}

/* ACCESS METHODS */
.access-methods {
    padding: 100px 24px;
}

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

.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.method-card.featured {
    border-color: rgba(245, 158, 11, 0.3);
}

.method-card:hover {
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-3px);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.method-icon {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.method-card h3 {
    font-size: 1rem;
}

.method-code {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
    overflow-x: auto;
}

.method-code code {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    line-height: 1.7;
}

.method-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* FEATURES */
.features {
    padding: 100px 24px;
    background: var(--bg-secondary);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(245, 158, 11, 0.15);
}

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

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* API */
.api-section {
    padding: 100px 24px;
}

.api-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.api-example {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.api-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-amber);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.code-block {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre;
}

/* HARDWARE TABLE */
.hardware {
    padding: 80px 24px;
    background: var(--bg-secondary);
}

.hardware h2 {
    margin-bottom: 32px;
}

.hw-table-wrap {
    overflow-x: auto;
}

.hw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.hw-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hw-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.hw-table tr.highlight td {
    color: var(--accent-amber);
    font-weight: 500;
}

/* PRICING */
.pricing {
    padding: 100px 24px;
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -32px;
    margin-bottom: 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 650px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent-amber);
}

.pricing-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 4px;
    font-family: var(--mono);
}

.pricing-header {
    margin-bottom: 20px;
}

.pricing-header h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
}

.price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.pricing-card li {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* SIGNUP */
.signup {
    padding: 80px 24px;
    background: var(--bg-secondary);
}

.signup-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.signup-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.signup-card>p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.signup-form {
    display: flex;
    gap: 10px;
}

.signup-form input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--mono);
    outline: none;
    transition: var(--transition);
}

.signup-form input:focus {
    border-color: var(--accent-amber);
}

.signup-note {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.signup-success h3 {
    margin: 16px 0 6px;
}

.signup-success p {
    color: var(--text-secondary);
}

/* FOOTER */
.footer {
    padding: 40px 24px 20px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 700;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

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

    .terminal-window {
        width: 100%;
    }

    .method-grid,
    .feature-grid,
    .api-grid {
        grid-template-columns: 1fr;
    }

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

    .signup-form {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }
}