:root {
    --purple: #7b2ff7;
    --blue: #2f80ed;
    --bg: #05060a;
    --bg-soft: #0c0f1f;
    --text: #f5f7ff;
    --muted: #a7aed4;
    --border: #1c2245;
    --radius: 18px;
    --pill: 999px;
    --max: 1180px;
    --font:
        system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    background: radial-gradient(
        circle at top,
        #12152b 0,
        #05060a 55%,
        #020308 100%
    );
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===================== */
/* NAV */
/* ===================== */

/* .nav {
    border-bottom: 1px solid var(--border);
    background: rgba(5, 6, 10, 0.9);
    position: fixed;
    width: 100%;
} */

.nav {
  border-bottom: 1px solid transparent;
  background: transparent;
  position: fixed;
  width: 100%;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid var(--border);
}

.nav.scrolled {
  background: rgba(5, 6, 10, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px); /* optional, looks premium */
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

main {
    margin-top: 80px;
}

/* Brand */

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.brand-logo {
    height: 60px;
}

/* Desktop links */

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 0.9rem;
    color: var(--muted);
}

.nav-links a:hover {
    color: #fff;
}

.nav-cta {
    padding: 10px 22px;
    border-radius: var(--pill);
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: #05060a;
    font-weight: 600;
}

/* Hamburger */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: 0.3s ease;
}

/* ===================== */
/* MOBILE NAV */
/* ===================== */

@media (max-width: 760px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: flex-start;
        gap: 20px;

        background: #0a0e22;
        border-top: 1px solid var(--border);
        padding: 24px 32px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        position: relative;
        width: 100%;
        height: 30px;
        padding-bottom: 40px;
        border-bottom: 1px solid #0d1433;
    }
}

/* Hamburger animation */

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===================== */
/* HERO */
/* ===================== */

.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 90px 32px 100px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 70px;
    align-items: center;
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 70px 32px;
    }
}

.eyebrow {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 18px;
}

h1 {
    font-size: clamp(2.4rem, 3.6vw, 3.3rem);
    line-height: 1.05;
    margin: 0 0 22px;
}

.accent {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    -webkit-background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1rem;
    color: #d6daf7;
    max-width: 40rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.badge {
    padding: 8px 16px;
    border-radius: var(--pill);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    font-size: 0.82rem;
}

.actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 13px 28px;
    border-radius: var(--pill);
    background: linear-gradient(135deg, var(--purple), var(--blue));
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-ghost {
    padding: 12px 24px;
    border-radius: var(--pill);
    border: 1px solid var(--border);
    background: transparent;
    color: #fff;
    cursor: pointer;
}

/* ===================== */
/* SECTION */
/* ===================== */

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px 90px;
}

.section h2 {
    font-size: 1.7rem;
    margin-bottom: 14px;
}

.section p.sub {
    color: var(--muted);
    max-width: 40rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

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

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

.card {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #0a0e22;
}

.card h3 {
    margin: 6px 0 10px;
}

.tag {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: #9aa4ff;
    text-transform: uppercase;
}

/* ===================== */
/* FOOTER */
/* ===================== */

.footer {
    margin-top: auto;
    padding: 50px 32px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ===================== */
/* MODAL */
/* ===================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 10, 0.75);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    width: 100%;
    max-width: 480px;
    background: #0a0e22;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 32px;
    position: relative;
}

@media (max-width: 640px) {
    .modal {
        margin: 10px;
    }
}

.modal h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.modal-sub {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 22px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted);
    cursor: pointer;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: var(--muted);
}

.form-group input,
.form-group textarea {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    color: #fff;
    font-size: 0.9rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

.modal-footnote {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 10px;
}

.modal-success {
    text-align: center;
    padding: 20px 0;
}

.modal-success h3 {
    margin-bottom: 10px;
}

/* TERMINAL */

.terminal-card {
    background: linear-gradient(160deg, #181d3a 0, #070915 100%);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 28px;
}
.terminal {
    font-family: monospace;
    font-size: 0.85rem;
    color: #dfe3ff;
    line-height: 1.6;
}
.success {
    color: #7cf791;
}
.comment {
    color: #7b88c8;
}

html {
    background: #020308;
}
