:root {
    --bg-dark: #050505;
    --bg-card: #0A0A0A;
    --border-color: #333333;
    --text-primary: #EDEDED;
    --text-secondary: #888888;
    --accent-color: #00E1FF;
    /* Electric Cyan */
    --accent-glow: rgba(0, 225, 255, 0.15);
    --code-bg: #111111;
    --success: #00FF94;
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.mono {
    font-family: var(--font-mono);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.electric-text {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

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

/* Navigation */
nav {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    /* Increased gap for larger logo */
    font-weight: 700;
    font-size: 1.4rem;
}

.brand-name {
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 800;
    margin-right: -0.3em;
    /* Visual alignment */
}

.nav-logo {
    height: 56px;
    /* 64px might be a bit too tall for a standard nav, tweaked slightly or keep as is? Let's respect user's 64px logic but maybe control it via max-height if needed. Actually user set it to 64px. I will leave it at 64px in the user's edit, but here I am modifying a block. User edited lines 90+. I need to target the right lines. */
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link {
    color: var(--text-secondary);
}

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

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.latency-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-color);
    background: rgba(0, 225, 255, 0.05);
    padding: 6px 16px 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(0, 225, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.live-status-dot {
    width: 8px;
    height: 8px;
    background-color: #27C93F;
    border-radius: 50%;
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(39, 201, 63, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(39, 201, 63, 0);
    }
}

/* CRT Terminal Effect */
.crt-terminal {
    border: 1px solid #00ff41;
    /* Hacker Green */
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.15), inset 0 0 20px rgba(0, 255, 65, 0.05);
    background: #060806;
    /* Slightly greenish dark */
    position: relative;
    /* overflow: hidden; Removed to allow other effects if needed, but 'hidden' was in prompt for scanlines. Keeping 'hidden' might clip tooltips etc, but for scanlines it's safer. */
    overflow: hidden;
}

.crt-terminal::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 2;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
}


/* Developer Experience Strip */
.dev-strip {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 50% 0%, #111 0%, transparent 70%);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.dev-copy h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.dev-copy p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.code-block {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    /* Increased padding for more space */
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    /* Ensure content stays inside */
}

/* Header for Code Block (Traffic Lights) */
.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

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

.dot.red {
    background: #FF5F56;
}

.dot.yellow {
    background: #FFBD2E;
}

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

.code-content {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #A9B7C6;
    /* Standard IDE text color */
    white-space: pre;
    /* Maintain formatting */
    overflow-x: auto;
}

.token-method {
    color: #CC7832;
    font-weight: bold;
}

/* Orange keyword */
.token-string {
    color: #6A8759;
}

/* Green string */
.token-key {
    color: #9876AA;
}

/* Purple keys */
.token-number {
    color: #6897BB;
}

/* Blue numbers */
.token-comment {
    color: #808080;
}

/* Grey comment */

/* Architecture Section */
.architecture {
    padding: 100px 0;
    text-align: center;
}

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

.arch-node {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 16px;
    min-width: 200px;
    position: relative;
}

.arch-node.telepath {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 225, 255, 0.05);
}

.node-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.node-label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.node-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.arch-arrow {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    position: relative;
    padding-bottom: 10px;
}

.arch-arrow::after {
    content: '→';
    display: block;
    text-align: center;
    font-size: 1.5rem;
    opacity: 0.5;
}

.guardrail-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

/* Features Grid */
.features {
    padding: 100px 0;
    background: var(--bg-card);
    /* Kept base background, but cards will pop now */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

/* Redesigned Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 Grid */
    gap: 24px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Redesigned Feature Card */
.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 225, 255, 0.05);
    transform: translateY(-2px);
}

.feature-card h3 {
    margin: 16px 0;
    font-size: 1.25rem;
}

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

.feature-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

/* Use Cases */
.use-cases {
    padding: 100px 0;
    text-align: center;
}

.use-case-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.use-case-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px 32px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.use-case-pill:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.use-case-pill h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.use-case-pill p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing-section {
    padding: 120px 0;
    background: var(--bg-dark);
    /* Contrast against bg-card above/below */
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card.highlight {
    border-color: var(--accent-color);
    background: linear-gradient(180deg, rgba(0, 225, 255, 0.03) 0%, rgba(10, 10, 10, 1) 100%);
    box-shadow: 0 0 30px rgba(0, 225, 255, 0.05);
}

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

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 32px;
    font-family: var(--font-mono);
    letter-spacing: -1px;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 4px;
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
    /* Pushes button down */
}

.features-list li {
    margin-bottom: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.features-list li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
}

.badge-pop {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 100px;
    letter-spacing: 1px;
    box-shadow: 0 0 15px var(--accent-color);
}

/* Pricing Buttons */
.btn {
    display: block;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid transparent;
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

.btn.primary.glow {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 225, 255, 0.3);
}

.btn.primary.glow:hover {
    background: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    animation: btn-pulse 1s infinite;
}

@keyframes btn-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 24px 0;
}

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

.fine-print {
    font-size: 0.8rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

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

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

/* SVG Architecture Animation */
.arch-svg-container {
    width: 100%;
    max-width: 900px;
    margin: 60px auto 0;
    filter: drop-shadow(0 0 20px rgba(0, 225, 255, 0.05));
}

.signal-path-active {
    animation: dash 1s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -20;
    }
}

.pulse-ring {
    transform-origin: center;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}