:root {
    --bg: #080c10;
    --bg2: #0d1117;
    --bg3: #161b22;
    --border: #21262d;
    --border2: #30363d;
    --text: #e6edf3;
    --muted: #7d8590;
    --green: #3fb950;
    --green-dim: #1a3a20;
    --green-glow: rgba(63, 185, 80, 0.15);
    --accent: #58a6ff;
    --accent-dim: #1a2a3a;
    --red: #f85149;
    --yellow: #d29922;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Sora', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Grid background */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(63, 185, 80, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(63, 185, 80, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    position: relative;
}

.logo-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 28px;
}

.logo-wave-sm {
    height: 18px;
    display: inline-flex;
    vertical-align: middle;
    margin-right: 8px;
}

.lw-bar {
    width: 3.5px;
    height: var(--h);
    border-radius: 2px;
    background: var(--green);
    animation: lw-wave 1.2s ease-in-out infinite;
    animation-delay: var(--d);
}

@keyframes lw-wave {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(0.35);
        opacity: 0.45;
    }
}

.logo-text {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--green);
}

.nav-cta {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--bg);
    background: var(--green);
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.nav-cta:hover {
    background: #4fca5f;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(63, 185, 80, 0.3);
}

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    text-align: center;
}

/* Glow orb */
.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(63, 185, 80, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Terminal status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg3);
    border: 1px solid var(--green-dim);
    border-radius: 100px;
    padding: 6px 14px;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--green);
    margin-bottom: 32px;
    animation: fadeInDown 0.6s ease both;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 5px rgba(63, 185, 80, 0);
    }
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    animation: fadeInUp 0.7s ease 0.1s both;
}

.hero h1 .line1 {
    display: block;
    color: var(--text);
}

.hero h1 .line2 {
    display: block;
    background: linear-gradient(135deg, var(--green) 0%, var(--accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 48px;
    font-weight: 300;
    animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-sub strong {
    color: var(--text);
    font-weight: 600;
}

/* Waitlist form */
.waitlist-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    width: 100%;
    margin: 0 auto 24px;
    animation: fadeInUp 0.7s ease 0.3s both;
}

.waitlist-form input {
    flex: 1;
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-form input::placeholder {
    color: var(--muted);
}

.waitlist-form input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.1);
}

.waitlist-form button {
    background: var(--green);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.waitlist-form button:hover {
    background: #4fca5f;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(63, 185, 80, 0.35);
}

.form-note {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    animation: fadeInUp 0.7s ease 0.4s both;
}

.form-note span {
    color: var(--green);
}

/* Terminal mockup */
.terminal {
    margin-top: 64px;
    width: 100%;
    max-width: 680px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.5s both;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(63, 185, 80, 0.05);
    text-align: left;
}

.terminal-bar {
    background: var(--bg3);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

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

.t-red {
    background: #ff5f57;
}

.t-yellow {
    background: #febc2e;
}

.t-green {
    background: #28c840;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    pointer-events: none;
    white-space: nowrap;
}

.terminal-body {
    padding: 20px 24px;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 2;
    overflow-x: auto;
}

.t-line {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.t-prompt {
    color: var(--green);
    user-select: none;
}

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

.t-out {
    color: var(--muted);
    padding-left: 16px;
    white-space: nowrap;
}

.t-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.t-up {
    color: var(--green);
}

.t-down {
    color: var(--red);
}

.t-check {
    color: var(--accent);
}

.t-alert {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 4px 0 4px 16px;
    color: var(--red);
    font-size: 0.78rem;
}

.t-ok {
    background: rgba(63, 185, 80, 0.08);
    border: 1px solid rgba(63, 185, 80, 0.15);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 4px 0 4px 16px;
    color: var(--green);
    font-size: 0.78rem;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--green);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Section */
section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-sub {
    color: var(--muted);
    font-size: 1rem;
    max-width: 480px;
    font-weight: 300;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 48px;
}

.feature {
    background: var(--bg2);
    padding: 32px 28px;
    transition: background 0.2s;
}

.feature:hover {
    background: var(--bg3);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--green-dim);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.feature h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 300;
}

.feature .tag {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--green);
    background: var(--green-dim);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Pricing */
.pricing-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 48px;
    max-width: 700px;
}

.plan {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 28px;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.plan:hover {
    transform: translateY(-2px);
    border-color: var(--border2);
}

.plan.featured {
    border-color: var(--green);
    background: linear-gradient(145deg, var(--bg2) 0%, rgba(63, 185, 80, 0.03) 100%);
}

.plan.featured:hover {
    box-shadow: 0 8px 40px rgba(63, 185, 80, 0.15);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--green);
    color: var(--bg);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.plan-name {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}

.plan-price sup {
    font-size: 1.2rem;
    font-weight: 600;
    vertical-align: top;
    margin-top: 8px;
    display: inline-block;
}

.plan-period {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 24px;
    font-weight: 300;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    flex: 1;
}

.plan-features li {
    font-size: 0.88rem;
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 300;
}

.plan-features li::before {
    content: '→';
    color: var(--green);
    font-family: var(--mono);
    flex-shrink: 0;
    font-size: 0.8rem;
    margin-top: 1px;
}

.plan-features li.highlight {
    color: var(--text);
    font-weight: 400;
}

.plan-btn {
    display: block;
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.plan-btn.outline {
    border: 1px solid var(--border2);
    color: var(--text);
}

.plan-btn.outline:hover {
    border-color: var(--green);
    color: var(--green);
}

.plan-btn.solid {
    background: var(--green);
    color: var(--bg);
    border: none;
}

.plan-btn.solid:hover {
    background: #4fca5f;
    box-shadow: 0 4px 20px rgba(63, 185, 80, 0.3);
    transform: translateY(-1px);
}

/* Comparison banner */
.compare-banner {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 24px;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--muted);
    max-width: 700px;
}

.compare-banner strong {
    color: var(--green);
}

/* CTA section */
.cta-section {
    text-align: center;
    padding: 100px 24px;
    position: relative;
    z-index: 1;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(63, 185, 80, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--muted);
    margin-bottom: 40px;
    font-size: 1rem;
    font-weight: 300;
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: gap;
}

footer .footer-logo {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--muted);
}

footer .footer-logo span {
    color: var(--green);
}

footer p {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: #3d444d;
}

/* Divider */
.divider {
    position: relative;
    z-index: 1;
    height: 1px;
    background: var(--border);
    max-width: 1100px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success state */
.success-msg {
    display: none;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid rgba(63, 185, 80, 0.2);
    border-radius: 8px;
    padding: 12px 20px;
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
    nav {
        padding: 12px 16px;
    }

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

    .waitlist-form input,
    .waitlist-form button {
        width: 100%;
    }

    .terminal {
        max-width: 100%;
    }

    .terminal-body {
        font-size: 0.68rem;
        padding: 12px;
        overflow-x: auto;
    }

    .t-out {
        white-space: nowrap;
    }

    footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    section {
        padding: 60px 16px;
    }

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

    .pricing-wrapper {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .compare-banner {
        font-size: 0.75rem;
    }
}