/* === Design Tokens === */
:root {
    --bg-primary: #0a0c10;
    --bg-secondary: #11141a;
    --bg-tertiary: #1c2128;
    --bg-card: #161b22;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent: #c9a84c;
    --accent-dim: #8b7730;
    --accent-glow: rgba(201, 168, 76, 0.25);
    --accent-secondary: #58a6ff;
    --accent-tertiary: #a371f7;
    --border: #30363d;
    --success: #3fb950;
    --danger: #f85149;
    --warning: #d29922;
    --font-mono: "JetBrains Mono", monospace;
    --font-body:
        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
        Arial, sans-serif;
}

/* === Reset === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* === Layout === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

h2 {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}


/* === Hero === */
.hero {
    text-align: center;
    padding: 6rem 0 4rem;
    background: var(--bg-primary);
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--accent-dim);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 2rem;
    animation: badgePulse 2s ease-in-out infinite;
    clear: both;
}

@keyframes badgePulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.2);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(201, 168, 76, 0.1);
    }
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-logo {
    font-family: var(--font-mono);
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin: 0 auto 1rem;
    position: relative;
    line-height: 1;
    min-height: 1em;
    text-shadow:
        0 0 20px var(--accent-glow),
        0 0 40px rgba(201, 168, 76, 0.1);
    border-right: 4px solid var(--accent);
    white-space: nowrap;
    display: block;
    width: fit-content;
    padding-right: 0.1em;
}

.hero-logo.cursor-blink {
    animation: cursor-blink 0.8s step-end infinite;
}

@keyframes cursor-blink {
    50% {
        border-color: transparent;
    }
}

.hero-logo::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 3vw, 1.75rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-sub {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-feature::before {
    content: "▸";
    color: var(--accent);
}

/* === Demo Terminal === */
.demo-terminal {
    max-width: 700px;
    margin: 0 auto 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(201, 168, 76, 0.05);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

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

.terminal-dot.red {
    background: var(--danger);
}
.terminal-dot.yellow {
    background: var(--warning);
}
.terminal-dot.green {
    background: var(--success);
}

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

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-align: left;
    min-height: 140px;
}

.terminal-line {
    margin-bottom: 0.75rem;
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

.terminal-line:nth-child(1) {
    animation-delay: 0.5s;
}
.terminal-line:nth-child(2) {
    animation-delay: 1.2s;
}
.terminal-line:nth-child(3) {
    animation-delay: 1.9s;
}
.terminal-line:nth-child(4) {
    animation-delay: 2.6s;
}
.terminal-line:nth-child(5) {
    animation-delay: 3.3s;
}
.terminal-line:nth-child(6) {
    animation-delay: 3.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.command {
    color: var(--text-primary);
}

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

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

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

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* === Signup Form === */
.signup-form {
    max-width: 480px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 0.75rem;
    position: relative;
}

.signup-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.signup-form input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.signup-form button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.signup-form button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.signup-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.3);
}

.signup-form button:hover::before {
    left: 100%;
}

.signup-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.form-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    min-height: 1.4em;
}

.form-status.success {
    color: var(--success);
}
.form-status.error {
    color: var(--danger);
}

.form-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === Features === */
.features {
    background: var(--bg-primary);
    text-align: center;
}

.features h2 {
    margin-bottom: 3rem;
}

.features h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--accent),
        var(--accent-secondary),
        var(--accent-tertiary)
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-dim);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px var(--accent-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: rgba(201, 168, 76, 0.2);
    transform: scale(1.1);
}

.feature-card h3 {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

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

/* === Stats Section === */
.stats-section {
    background: var(--bg-primary);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === Decision Grid === */
.decision-grid-section {
    background: var(--bg-secondary);
    text-align: center;
}

.decision-grid-section h2 {
    margin-bottom: 3rem;
}

.decision-grid-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.decision-grid-section > .container > p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

.grid-wrapper {
    overflow-x: auto;
    padding: 1rem;
}

.decision-grid {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.decision-grid th {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    padding: 1rem;
    font-size: 0.85rem;
    font-weight: 400;
    background: var(--bg-tertiary);
}

.decision-grid thead th {
    border-bottom: 2px solid var(--border);
}

.decision-grid thead th:first-child {
    border-radius: 12px 0 0 0;
}

.decision-grid thead th:last-child {
    border-radius: 0 12px 0 0;
}

.decision-grid tbody th {
    text-align: right;
    padding-right: 1.25rem;
    border-right: 2px solid var(--border);
    background: var(--bg-tertiary);
    white-space: nowrap;
}

.decision-grid tbody tr:last-child th {
    border-radius: 0 0 0 12px;
}

.decision-grid tbody tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

.grid-cell {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.25rem 1rem;
    cursor: default;
    transition: all 0.3s;
    vertical-align: top;
}

.grid-cell:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    box-shadow: inset 0 0 20px var(--accent-glow);
    transform: scale(1.02);
}

.cell-label {
    display: block;
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.cell-desc {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* === Quote Section === */
.quote-section {
    background: var(--bg-primary);
    text-align: center;
    padding: 5rem 0;
}

.quote-section blockquote {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.4rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
    position: relative;
}

.quote-section blockquote::before,
.quote-section blockquote::after {
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    font-family: Georgia, serif;
}

.quote-section blockquote::before {
    content: '"';
    top: -20px;
    left: -40px;
}

.quote-section blockquote::after {
    content: '"';
    bottom: -50px;
    right: -40px;
}

.quote-author {
    margin-top: 2rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* === CTA === */
.cta {
    background: linear-gradient(
        180deg,
        var(--bg-primary) 0%,
        var(--bg-secondary) 100%
    );
    text-align: center;
    position: relative;
}

.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.cta p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* === Footer === */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: var(--bg-primary);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer nav {
    display: flex;
    gap: 1.5rem;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.footer a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.footer-disclaimer {
    margin-top: 1rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.footer a:hover {
    color: var(--accent);
}

.footer a:hover::after {
    width: 100%;
}

/* === Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Scroll Progress === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    z-index: 1000;
    transition: width 0.1s;
}

/* === Floating Elements === */
.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* === Orbit Animation === */
.orbit {
    animation: orbit 20s linear infinite;
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(30px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(30px) rotate(-360deg);
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .hero-features {
        gap: 1rem;
    }

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

    .signup-form button {
        width: 100%;
    }

    .demo-terminal {
        margin: 0 1rem 2rem;
    }

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

    .decision-grid {
        font-size: 0.8rem;
    }

    .grid-cell {
        padding: 0.75rem 0.5rem;
    }

    .quote-section blockquote::before,
    .quote-section blockquote::after {
        display: none;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-feature {
        font-size: 0.75rem;
    }

    .terminal-body {
        padding: 1rem;
        font-size: 0.8rem;
    }
}
