@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Outfit:wght@500;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-void: #020202;
    --bg-grid: #080808;
    --accent-primary: #00f3ff;
    --accent-secondary: #00ff9d;
    --text-main: #ededed;
    --text-muted: #888888;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 243, 255, 0.3);
    --glass-surface: rgba(10, 10, 10, 0.6);
    --code-bg: #050505;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-void);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    /* Cyber Grid Background */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 243, 255, 0.05), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
}

code,
.mono {
    font-family: 'JetBrains Mono', monospace;
}

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

/* --- Header --- */
header {
    height: 80px;
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 2, 2, 0.8);
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand span {
    color: var(--accent-primary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-secondary);
    animation: pulse 2s infinite;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-left: 32px;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent-primary);
}

/* --- Hero --- */
.hero {
    padding: 120px 0 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff, #888);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 480px;
}

.btn {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 32px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--border-glow);
    color: var(--accent-primary);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
}

/* --- Terminal --- */
.code-window {
    background: #0d1117;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #c9d1d9;
    overflow-x: auto;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    white-space: pre;
}

.terminal-window {
    background: var(--code-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-light);
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-body {
    padding: 24px;
    min-height: 300px;
    color: #a9b7c6;
}

.cmd-line {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.prompt {
    color: var(--accent-secondary);
}

.cmd {
    color: var(--text-main);
}

.json-key {
    color: #9876aa;
}

.json-string {
    color: #6a8759;
}

.json-number {
    color: #6897bb;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--accent-secondary);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

/* --- Use Cases --- */
.use-cases {
    padding: 80px 0;
    border-top: 1px solid var(--border-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent-secondary);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.use-case-item {
    padding: 24px;
    border-left: 2px solid var(--accent-secondary);
    background: linear-gradient(90deg, rgba(0, 255, 157, 0.05), transparent);
}

.use-case-item h3 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.use-case-item p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* --- Architecture --- */
.architecture {
    padding: 100px 0;
    border-top: 1px solid var(--border-light);
    background: linear-gradient(180deg, transparent, rgba(0, 243, 255, 0.02));
}

.arch-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
}

.arch-node {
    background: #0a0a0a;
    border: 1px solid var(--border-light);
    padding: 24px 32px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    width: 200px;
}

.arch-node h3 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.arch-node p {
    font-size: 12px;
    color: var(--text-muted);
}

.arch-node.center {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
}

.connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--accent-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
}

.arrow-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
    position: relative;
}

.arrow-line::after {
    content: '>';
    position: absolute;
    right: 0;
    top: -6px;
    font-size: 10px;
    color: var(--accent-secondary);
}

/* --- Pricing (Gas) --- */
.pricing {
    padding: 100px 0;
    border-top: 1px solid var(--border-light);
}

.gas-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    font-family: 'JetBrains Mono', monospace;
}

.gas-table th {
    text-align: left;
    padding: 16px;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
    border-bottom: 1px solid var(--border-light);
}

.gas-table td {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-size: 14px;
}

.gas-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.cost {
    color: var(--accent-primary) !important;
}

.coming-soon {
    color: var(--text-muted) !important;
    font-style: italic;
    font-size: 12px !important;
}

/* --- Features --- */
.features {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid var(--border-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: #050505;
    border: 1px solid var(--border-light);
    padding: 32px;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    /* Corner Brackets */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent-primary);
    border-left: 2px solid var(--accent-primary);
    opacity: 0;
    transition: 0.3s;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
    opacity: 0;
    transition: 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-card:hover::before,
.feature-card:hover::after {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-main);
}

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

.tech-specs {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    display: flex;
    gap: 16px;
}

.spec-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-item span {
    color: var(--accent-secondary);
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

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

.copyright {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin: 0 12px;
    transition: 0.3s;
}

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

@keyframes pulse {
    0% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.4);
    }

    70% {
        opacity: 0.7;
        box-shadow: 0 0 0 10px rgba(0, 255, 157, 0);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
    }
}

@keyframes blink {}

.k {
    color: #ff7b72;
}

/* keyword */
.f {
    color: #d2a8ff;
}

/* function */
.s {
    color: #a5d6ff;
}

/* string */
.c {
    color: #8b949e;
}

/* comment */
.v {
    color: #79c0ff;
}

/* variable */

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 60px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .terminal-window {
        margin-top: 40px;
    }

    .feature-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .arch-diagram {
        flex-direction: column;
        gap: 24px;
    }

    .arrow-line {
        width: 1px;
        height: 40px;
        background: linear-gradient(180deg, transparent, var(--accent-secondary), transparent);
    }

    .arrow-line::after {
        content: 'v';
        right: -4px;
        top: auto;
        bottom: -6px;
        transform: rotate(0deg);
    }

    .gas-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    header .container {
        padding: 0 20px;
    }

    nav {
        display: flex;
        gap: 16px;
    }

    nav a {
        display: block;
        margin-left: 0;
        font-size: 11px;
    }
}