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

:root {
    /* Cosmic palette pulled from the Vibe logo */
    --bg: #0b0014;
    --bg2: #0f0018;
    --bg3: #160020;
    --border: rgba(180, 80, 255, 0.12);
    --border-hover: rgba(180, 80, 255, 0.35);
    --text: #f0e8ff;
    --muted: #9b86b8;
    --accent: #9933ff;        /* deep violet — hat body */
    --accent2: #bf70ff;       /* lighter violet */
    --gold: #ffaa00;          /* golden hat glow */
    --gold2: #ff7700;         /* deeper orange */
    --code-bg: #0a0012;
    --radius: 14px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ── Nav ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 0, 20, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
}

.nav-logo img {
    border-radius: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--gold2) 100%);
    color: #fff;
    box-shadow: 0 0 0 0 rgba(153, 51, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 4px 28px rgba(153, 51, 255, 0.5), 0 2px 12px rgba(255, 119, 0, 0.3);
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(153, 51, 255, 0.06);
}

/* ── Hero ── */
.hero {
    position: relative;
    padding: 140px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background:
        radial-gradient(ellipse at 40% 30%, rgba(255, 100, 0, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 60% 30%, rgba(153, 51, 255, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 60%, rgba(100, 0, 200, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-logo {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 22px;
    margin: 0 auto 28px;
    box-shadow: 0 8px 40px rgba(153, 51, 255, 0.4), 0 4px 20px rgba(255, 119, 0, 0.2);
}

.badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(153, 51, 255, 0.1);
    border: 1px solid rgba(153, 51, 255, 0.35);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--accent2);
    margin-bottom: 28px;
    letter-spacing: 0.01em;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, var(--accent2) 60%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-sub code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: var(--gold);
    background: rgba(255, 170, 0, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 170, 0, 0.2);
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-hint {
    font-size: 0.8rem;
    color: rgba(155, 134, 184, 0.5);
}

/* ── Sections ── */
.features, .how, .quickstart, .manifest {
    padding: 100px 0;
}

.features {
    border-top: 1px solid var(--border);
}

.how {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.quickstart {
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 20%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* ── Feature grid ── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(153, 51, 255, 0.1);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

.feature-card p code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    color: var(--gold);
    background: rgba(255, 170, 0, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(255, 170, 0, 0.15);
}

/* ── AI Section ── */
.ai-section {
    padding: 100px 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.ai-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}

.ai-section .section-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.ai-tools-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 12px;
}

.ai-tool-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.ai-tool {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

.ai-tool img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
}

.ai-steps {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.ai-step {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 24px;
    text-align: left;
}

.ai-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--gold2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.ai-step-label {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.ai-step code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 500;
}

.ai-step-arrow {
    font-size: 1.2rem;
    color: var(--border-hover);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .ai-step-arrow { display: none; }
    .ai-steps { flex-direction: column; }
}

/* ── How grid ── */
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.how-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.how-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 12px;
}

.how-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.how-card ol {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.how-card li {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.how-card code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    color: var(--gold);
    background: rgba(255, 170, 0, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(255, 170, 0, 0.15);
}

/* ── Code blocks ── */
.code-block {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(153, 51, 255, 0.04);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.code-dot.red    { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green  { background: #28c840; }

.code-title {
    margin-left: 4px;
    font-size: 0.8rem;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
}

.code-block pre {
    padding: 24px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #ddd8f0;
    line-height: 1.8;
    white-space: pre;
}

.code-block .comment {
    color: #5a4d72;
}

/* ── CTA ── */
.cta {
    padding: 100px 0;
    text-align: center;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background:
        radial-gradient(ellipse at 40% 50%, rgba(255, 100, 0, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 60% 50%, rgba(153, 51, 255, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.cta h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 20%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.cta p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    position: relative;
}

.cta-note {
    font-size: 0.82rem;
    color: rgba(155, 134, 184, 0.45);
    position: relative;
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.footer-left p {
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 280px;
    margin-top: 10px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

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

.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}

.footer-icon:hover {
    opacity: 1;
    color: var(--accent2);
}

.footer-copy {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.footer-copy p {
    font-size: 0.82rem;
    color: rgba(155, 134, 184, 0.35);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .hero {
        padding: 120px 0 80px;
    }
    .hero-logo {
        width: 80px;
        height: 80px;
    }
    .nav-links a:not(.btn) {
        display: none;
    }
    .features, .how, .quickstart, .manifest, .cta {
        padding: 70px 0;
    }
    .footer-inner {
        flex-direction: column;
    }
}
