/* ─── GitHub Primer Design System ──────────────────── */
:root {
    /* Backgrounds */
    --bg-default:   #0d1117;
    --bg-overlay:   #161b22;
    --bg-inset:     #010409;
    --bg-subtle:    #21262d;

    /* Keep legacy aliases for components */
    --bg-dark:              #0d1117;
    --bg-surface:           #161b22;
    --bg-surface-elevated:  rgba(22, 27, 34, 0.95);

    /* Text */
    --text-primary:   #e6edf3;
    --text-secondary: #8b949e;
    --text-muted:     #6e7681;

    /* Borders */
    --border-color:  #30363d;
    --border-muted:  #21262d;
    --border-hover:  #8b949e;

    /* Accents — GitHub palette */
    --accent-primary:   #58a6ff;   /* GH blue */
    --accent-secondary: #a371f7;   /* GH purple */
    --accent-green:     #3fb950;   /* GH signature green */
    --accent-green-btn: #238636;   /* GH green button */
    --accent-green-hover: #2ea043;
    --accent-glow: rgba(88, 166, 255, 0.1);

    /* Typography — GitHub's system stack */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
                 Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                 "Liberation Mono", monospace;

    /* Shape */
    --radius-sm: 6px;
    --radius-md: 6px;   /* GitHub uses 6px almost everywhere */
    --radius-lg: 12px;

    --transition: 0.15s ease;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-default);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── Layout ────────────────────────────────────────── */
section {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    line-height: 1.25;
    font-weight: 600;
}

a { color: var(--accent-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    font-family: var(--font-mono);
    font-size: 85%;
    background: var(--bg-subtle);
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* ─── Gradient text helpers ─────────────────────────── */
.gradient-text {
    background: linear-gradient(90deg, #58a6ff, #a371f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-accent {
    background: linear-gradient(90deg, #e6edf3, #8b949e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─── Glass → now GitHub-card style ────────────────── */
.glass {
    background: var(--bg-overlay);
    border: 1px solid var(--border-color);
}

/* ─── Buttons ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

/* GitHub's primary = green */
.btn-primary {
    background-color: var(--accent-green-btn);
    border-color: rgba(240, 246, 252, 0.1);
    color: #ffffff;
    box-shadow: 0 0 transparent, inset 0 1px 0 rgba(255,255,255,0.06);
}

.btn-primary:hover {
    background-color: var(--accent-green-hover);
    border-color: rgba(240, 246, 252, 0.1);
    text-decoration: none;
    color: #ffffff;
}

.btn-primary:active {
    background-color: #196c2e;
}

/* Outline / secondary */
.btn-outline {
    background-color: var(--bg-subtle);
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 0 transparent, inset 0 1px 0 rgba(255,255,255,0.04);
}

.btn-outline:hover {
    background-color: #30363d;
    border-color: var(--border-hover);
    color: var(--text-primary);
    text-decoration: none;
}

/* ─── Navbar ─────────────────────────────────────────── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    max-width: 100%;
    background: rgba(13, 17, 23, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none;
}

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

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-subtle);
    text-decoration: none;
}

.nav-link-maintainer {
    color: var(--accent-primary) !important;
    font-weight: 500;
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
    padding: 80px 2rem 64px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    overflow-x: hidden;
}

/* Subtle GitHub-style radial glow at top */
.hero::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 400px;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(88, 166, 255, 0.06) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-inner > * {
    min-width: 0;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    animation: heroFloat 6s ease-in-out infinite;
}

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

.hero-screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
    display: block;
}

.hero-img-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 30px;
    background: rgba(63, 185, 80, 0.2);
    filter: blur(24px);
    border-radius: 50%;
    pointer-events: none;
}

/* Pill chip */
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px 2px 4px;
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.4);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-green);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 0 32px;
    line-height: 1.6;
}

/* ─── Waitlist form ──────────────────────────────────── */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 480px;
}

.waitlist-form-row {
    display: flex;
    gap: 0;
    background: var(--bg-inset);
    padding: 4px 4px 4px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    align-items: center;
    min-height: 44px;
}

.waitlist-form-row:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.12);
}

.waitlist-form .btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-sans);
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid rgba(240, 246, 252, 0.1);
    background: var(--accent-green-btn);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    transition: var(--transition);
}

.waitlist-form .btn-cta:hover {
    background: var(--accent-green-hover);
    text-decoration: none;
    color: #fff;
}

.waitlist-form .btn-cta .icon-sm {
    transition: transform 0.15s ease;
}
.waitlist-form .btn-cta:hover .icon-sm {
    transform: translateX(3px);
}

.waitlist-select,
.waitlist-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    padding: 0 8px;
    outline: none;
    height: 100%;
}

.waitlist-select {
    color: var(--text-secondary);
    cursor: pointer;
    border-right: 1px solid var(--border-color);
}

.waitlist-select option { background: var(--bg-overlay); }

.waitlist-input { flex-grow: 1; }
.waitlist-input::placeholder { color: var(--text-muted); }

.form-feedback {
    margin-top: 8px;
    font-size: 12px;
    color: var(--accent-green);
    height: 18px;
}

/* ─── Hero subtext ───────────────────────────────────── */
.hero-subtext {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.hero-subtext a {
    color: var(--accent-primary);
    text-decoration: none;
}
.hero-subtext a:hover { text-decoration: underline; }

/* ─── Section header ─────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
}

/* ─── Repo Grid ──────────────────────────────────────── */
.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.repo-card {
    padding: 16px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color var(--transition);
    cursor: default;
}

.repo-card:hover {
    border-color: var(--border-hover);
}

.repo-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.repo-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.repo-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.repo-owner {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.repo-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.repo-slot-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 100px;
    background: rgba(63, 185, 80, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(63, 185, 80, 0.4);
    white-space: nowrap;
}

.repo-verified-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(63, 185, 80, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(63, 185, 80, 0.5);
    white-space: nowrap;
}

/* Comparison Table */
.compare-table {
    border: 1px solid var(--border-primary);
}

.compare-row {
    display: grid;
    grid-template-columns: 140px 1fr 1fr;
    border-bottom: 1px solid var(--border-primary);
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-cell {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    background: rgba(0, 0, 0, 0.15);
}

.compare-highlight {
    background: rgba(63, 185, 80, 0.05);
    color: var(--text-primary);
    font-weight: 500;
}

.compare-header .compare-cell {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.2);
}

.compare-header .compare-highlight {
    background: rgba(63, 185, 80, 0.1);
}

@media (max-width: 640px) {
    .compare-row {
        grid-template-columns: 100px 1fr 1fr;
    }
    .compare-cell {
        padding: 10px 12px;
        font-size: 12px;
    }
    .compare-label {
        font-size: 11px;
    }
}

.repo-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.repo-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-muted);
}

.repo-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.lang-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.repo-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ─── Book This Slot button ──────────────────────────── */
.repo-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 5px 12px;
    margin-top: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.repo-book-btn:hover {
    background: #30363d;
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.repo-book-btn:hover .icon-xs {
    transform: translateX(2px);
}

.repo-book-btn .icon-xs {
    transition: transform 0.15s ease;
}

/* ─── Repo grid footer ───────────────────────────────── */
.repo-grid-footer {
    text-align: center;
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.repo-grid-footer a {
    color: var(--accent-primary);
    text-decoration: none;
}
.repo-grid-footer a:hover { text-decoration: underline; }

/* ─── Features (benefits) section ───────────────────── */

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

.feature-card {
    padding: 24px;
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent-primary);
}

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

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

/* ─── How It Works ───────────────────────────────────── */
.how-it-works {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.how-it-works-content h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.steps {
    list-style: none;
}

.steps li {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-muted);
}

.steps li:last-child { border-bottom: none; }

.step-number {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    min-width: 24px;
    padding-top: 2px;
}

.step-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.step-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Ad Preview Card ────────────────────────────────── */
.ad-preview-card {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-overlay);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ad-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-subtle);
}

.ad-preview-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ad-preview-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ad-preview-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 5px rgba(63, 185, 80, 0.7);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.ad-preview-live-text {
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 500;
}

.ad-preview-repo {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* Simulated README */
.ad-preview-readme {
    padding: 16px 20px;
    background: #0d1117;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.readme-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.readme-h1 {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: #e6edf3;
}

.readme-badge-stars {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 2px 8px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
}

.readme-body-text {
    font-size: 12px;
    color: #8b949e;
    font-family: var(--font-mono);
}

.readme-faded { opacity: 0.35; }

.readme-ad-slot {
    border: 1px solid rgba(63, 185, 80, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(63, 185, 80, 0.04);
    padding: 2px;
    margin: 4px 0;
}

.readme-ad-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #010409;
    border-radius: 4px;
}

.readme-ad-tag {
    font-size: 10px;
    padding: 2px 6px;
    border: 1px solid #856404;
    color: #e3b341;
    border-radius: 100px;
    font-family: var(--font-mono);
    flex-shrink: 0;
    white-space: nowrap;
}

.readme-ad-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.readme-ad-brand-icon { font-size: 14px; color: #e6edf3; }

.readme-ad-brand-name {
    font-size: 13px;
    font-weight: 600;
    color: #e6edf3;
    line-height: 1.2;
}

.readme-ad-brand-sub {
    font-size: 11px;
    color: #8b949e;
}

.readme-ad-cta {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-green);
    white-space: nowrap;
    cursor: pointer;
    padding: 3px 10px;
    border: 1px solid rgba(63, 185, 80, 0.4);
    border-radius: 100px;
    transition: var(--transition);
}

.readme-ad-cta:hover {
    background: rgba(63, 185, 80, 0.1);
    text-decoration: none;
}

/* Stats row */
.ad-preview-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 14px 20px;
    background: var(--bg-subtle);
}

.ad-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.ad-stat-value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.ad-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ad-stat-divider {
    width: 1px;
    height: 28px;
    background: var(--border-color);
}

/* ─── Code Window ────────────────────────────────────── */
.code-window {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-overlay);
    max-width: 100%;
    width: 100%;
}

.window-header {
    background: var(--bg-subtle);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.dots { display: flex; gap: 6px; }

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

.filename {
    margin-left: 12px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 12px;
}

.code-content {
    padding: 20px;
    background: #0d1117;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    width: 0;
    min-width: 100%;
}

.code-content pre {
    margin: 0;
    overflow-x: auto;
    white-space: pre;
}

.syntax-heading  { color: #a371f7; font-weight: 600; }
.syntax-html     { color: #6e7681; }
.syntax-comment  { color: #8b949e; font-style: italic; }
.syntax-link     { color: #58a6ff; }
.syntax-url      { color: #3fb950; }
.syntax-cli      { color: #e6edf3; }

.demo-render {
    padding: 16px 20px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
}

.demo-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    font-weight: 500;
}

.demo-banner {
    background: #010409;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sponsor-tag {
    font-size: 10px;
    padding: 2px 6px;
    border: 1px solid #856404;
    color: #e3b341;
    border-radius: 100px;
    font-family: var(--font-mono);
}

.sponsor-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.sponsor-text {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ─── Pricing ────────────────────────────────────────── */
.pricing {
    padding: 80px 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

.pricing-card {
    padding: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-overlay);
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition);
}

.pricing-card:hover {
    border-color: var(--border-hover);
}

.pricing-highlight {
    border-color: var(--accent-green) !important;
    box-shadow: 0 0 0 1px rgba(63, 185, 80, 0.1), inset 0 0 0 1px rgba(63, 185, 80, 0.05);
}

.pricing-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 16px;
}

.badge-accent { color: var(--accent-green); }

.pricing-amount {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price {
    font-size: 40px;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: -1px;
    color: var(--text-primary);
}

.period {
    color: var(--text-muted);
    font-size: 14px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--border-muted);
}

.pricing-features li:last-child { border-bottom: none; }

.icon-check {
    width: 16px;
    height: 16px;
    color: var(--accent-green);
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-note {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ─── Footer ─────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 32px;
    background: var(--bg-overlay);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

/* ─── Icons ──────────────────────────────────────────── */
.icon-xs { width: 13px; height: 13px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── Earnings Preview ───────────────────────────────── */
.earnings-preview {
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-overlay);
    min-width: 280px;
}

.earnings-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-bottom: 16px;
}

.earnings-header svg { width: 14px; height: 14px; color: var(--accent-green); }

.earnings-tiers { display: flex; flex-direction: column; gap: 8px; }

.earnings-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-muted);
    transition: border-color var(--transition);
}

.earnings-tier.highlight {
    border-color: var(--accent-green);
    background: rgba(63, 185, 80, 0.06);
}

.tier-stars { font-size: 13px; color: var(--text-secondary); }

.tier-amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.earnings-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── Booking Review Card ────────────────────────────── */
.booking-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.booking-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
}

.booking-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 6px rgba(88, 166, 255, 0.7);
    animation: livePulse 2s ease-in-out infinite;
}

.booking-header-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.booking-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Advertiser row */
.booking-advertiser {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-muted);
}

.booking-adv-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: #000;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.booking-adv-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.booking-adv-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.booking-adv-domain {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.booking-adv-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.booking-price-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.booking-price-period {
    font-size: 12px;
    color: var(--text-muted);
}

/* About the advertiser */
.booking-about {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-about-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.booking-about-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 100px;
    padding: 2px 8px;
    letter-spacing: 0.03em;
}

.booking-about-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.booking-website-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-primary);
    text-decoration: none;
    width: fit-content;
}

.booking-website-link:hover {
    text-decoration: underline;
}

/* Banner preview */
.booking-preview-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    font-weight: 500;
    padding: 12px 16px 6px;
}

.booking-banner-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 16px 12px;
    padding: 10px 14px;
    background: #010409;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.booking-banner-cta {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-green);
    padding: 3px 10px;
    border: 1px solid rgba(63, 185, 80, 0.4);
    border-radius: 100px;
    white-space: nowrap;
    cursor: pointer;
}

/* Details */
.booking-details {
    padding: 4px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border-muted);
}

.booking-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-muted);
    font-size: 13px;
}

.booking-detail-row:last-child { border-bottom: none; }

.booking-detail-label { color: var(--text-secondary); }
.booking-detail-val   { color: var(--text-primary); font-weight: 500; }

/* Action buttons */
.booking-actions {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    background: var(--bg-subtle);
}

.booking-btn-deny,
.booking-btn-accept {
    flex: 1;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition);
    border: 1px solid transparent;
}

.booking-btn-deny {
    background: var(--bg-overlay);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.booking-btn-deny:hover {
    background: rgba(248, 81, 73, 0.1);
    border-color: rgba(248, 81, 73, 0.5);
    color: #f85149;
}

.booking-btn-accept {
    background: var(--accent-green-btn);
    border-color: rgba(240, 246, 252, 0.1);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.booking-btn-accept:hover {
    background: var(--accent-green-hover);
}

/* ─── FAQ Grid ───────────────────────────────────────── */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-overlay);
    transition: border-color var(--transition);
}

.faq-item:hover { border-color: var(--border-hover); }

.faq-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ─── Hero stats ─────────────────────────────────────── */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat-number {
    font-size: 24px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Nav maintainer link ────────────────────────────── */
/* already defined above */

/* ─── Mobile Menu Toggle (hamburger) ────────────────── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--bg-subtle);
    border-color: var(--border-hover);
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Responsive ─────────────────────────────────────── */

/* ── Tablet ≤ 1024px ──────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-left {
        align-items: center;
        text-align: center;
    }

    .hero-subtitle { margin: 0 auto 32px; }
    .waitlist-form { max-width: 100%; }

    .hero-right { max-width: 600px; margin: 0 auto; width: 100%; }

    .how-it-works {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pricing-grid[style*="1fr 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }

    .pricing-grid[style*="1fr 1fr 1fr"] .pricing-highlight {
        grid-column: 1 / -1;
        order: -1;
    }
}

/* ── Small Tablet ≤ 768px ──────────────────────────────── */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .mobile-menu-toggle { display: flex; }

    .nav-cta { display: none; }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        order: 10;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }

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

    .nav-links a {
        width: 100%;
        padding: 10px 12px;
        border-radius: var(--radius-sm);
    }

    /* Sections */
    section { padding: 48px 16px; }

    .hero { padding: 48px 16px 40px; }

    .hero-right { display: none; }

    .booking-card { display: none; }

    .hero-subtext { text-align: center; }

    /* Grids → single column */
    .feature-grid,
    .repo-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid,
    .pricing-grid[style*="1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .pricing-grid[style*="1fr 1fr 1fr"] .pricing-highlight {
        grid-column: auto;
    }

    /* Hero stats */
    .hero-stats { gap: 24px; flex-wrap: wrap; }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Compare table */
    .compare-row {
        grid-template-columns: 100px 1fr 1fr;
    }
    .compare-cell {
        padding: 10px 12px;
        font-size: 12px;
    }
    .compare-label {
        font-size: 11px;
    }
    .compare-header .compare-cell {
        font-size: 13px;
        padding: 12px;
    }

    /* How it works — ad preview card */
    .how-it-works-content h2 {
        font-size: clamp(22px, 5vw, 32px);
    }

    /* Pricing section width */
    .pricing {
        max-width: 100% !important;
    }
}

/* ── Mobile ≤ 480px ────────────────────────────────────── */
@media (max-width: 480px) {
    section { padding: 36px 12px; }

    .hero { padding: 36px 12px 32px; }

    .hero-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-chip {
        font-size: 11px;
    }

    .section-header h2 {
        font-size: clamp(20px, 5vw, 32px);
    }

    .section-header p {
        font-size: 14px;
    }

    /* Waitlist form */
    .waitlist-form .btn-cta {
        font-size: 14px;
        padding: 10px 16px;
    }

    /* Ad preview card — stats wrap */
    .ad-preview-stats {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }

    .ad-stat-divider { display: none; }

    .ad-stat {
        min-width: 70px;
    }

    /* README ad inner — wrap */
    .readme-ad-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .readme-ad-brand { min-width: 0; }

    /* Ad preview header */
    .ad-preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .ad-preview-repo {
        font-size: 11px;
    }

    /* Code window */
    .code-content {
        padding: 14px;
        font-size: 11px;
    }

    .code-content pre {
        overflow-x: auto;
    }

    /* Demo banner */
    .demo-banner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }

    /* Booking card */
    .booking-advertiser {
        flex-wrap: wrap;
        gap: 10px;
    }

    .booking-adv-price {
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid var(--border-muted);
    }

    .booking-banner-preview {
        flex-wrap: wrap;
        gap: 8px;
        margin: 0 12px 12px;
        padding: 10px 12px;
    }

    .booking-banner-cta {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .booking-actions {
        flex-direction: column;
    }

    /* Compare table — tighter */
    .compare-row {
        grid-template-columns: 80px 1fr 1fr;
    }
    .compare-cell {
        padding: 8px;
        font-size: 11px;
    }
    .compare-label {
        font-size: 10px;
    }

    /* Pricing */
    .pricing-card {
        padding: 20px;
    }

    .price {
        font-size: 32px;
    }

    /* Feature cards */
    .feature-card {
        padding: 20px;
    }

    /* Footer */
    footer {
        padding: 24px 16px;
    }

    /* Steps spacing */
    .steps li {
        gap: 14px;
        padding: 12px 0;
    }
}