/* ===== ShellBuddy landing page — matches the app palette (css/styles.css) ===== */

:root {
    --bg: #0b0f17;
    --bg-soft: #121826;
    --bg-card: #161e2e;
    --bg-elev: #1c2638;
    --border: #263247;
    --text: #e7edf6;
    --text-dim: #9fb0c7;
    --text-faint: #6c7d96;
    --accent: #4ade80;      /* terminal green */
    --accent-2: #38bdf8;    /* sky */
    --accent-3: #a78bfa;    /* violet */
    --danger: #fb7185;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 14px;
}

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

body {
    font-family: var(--sans);
    background: radial-gradient(1200px 800px at 80% -10%, #16203a 0%, var(--bg) 55%);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 5px;
    color: var(--accent);
}

/* Pixel mascot: keep edges crisp at any size */
img[src="turtle.svg"] { image-rendering: pixelated; border-radius: 6px; }

/* ===== Nav ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
    letter-spacing: -0.3px;
}
.logo:hover { text-decoration: none; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.nav-links a { font-size: 14px; color: var(--text-dim); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links .nav-cta {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    border: 1px solid var(--border);
    background: var(--bg-card);
    padding: 6px 14px;
    border-radius: 8px;
}
.nav-links .nav-cta:hover { border-color: var(--accent); }

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 64px 24px 48px;
    max-width: 780px;
    margin: 0 auto;
}

.hero-turtle {
    width: 112px;
    height: 112px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 32px rgba(74, 222, 128, 0.25));
}

.hero h1 {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -1px;
    margin-bottom: 18px;
}
.hero h1 .accent { color: var(--accent); }

.hero-sub {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 580px;
    margin: 0 auto 28px;
    line-height: 1.65;
}

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

.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn.primary { background: var(--accent); color: #06210f; }
.btn.primary:hover { box-shadow: 0 4px 24px rgba(74, 222, 128, 0.35); }
.btn.secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn.big { font-size: 17px; padding: 15px 36px; }

.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.badge {
    padding: 4px 12px;
    font-size: 12px;
    font-family: var(--mono);
    background: var(--bg-card);
    color: var(--text-dim);
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* ===== Fake terminal ===== */
.term {
    margin: 40px auto 0;
    max-width: 560px;
    text-align: left;
    background: #0a0e15;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.term-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
}
.term-bar .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
}
.term-bar .dot:first-child { background: var(--danger); opacity: 0.7; }
.term-title {
    margin-left: 8px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-faint);
}

.term-body {
    padding: 16px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-dim);
    white-space: pre-wrap;
    word-break: break-word;
}
.term-body .prompt { color: var(--accent); }
.term-body .term-safe { color: var(--accent-2); }
.cursor {
    color: var(--accent);
    animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ===== Sections ===== */
.section {
    max-width: 900px;
    margin: 0 auto;
    padding: 64px 24px;
}
.section h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
.section-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 15px;
    max-width: 560px;
    margin: 0 auto 36px;
}
.alt-bg {
    max-width: none;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.alt-bg > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.alt-bg h2, .alt-bg .section-sub { margin-left: auto; margin-right: auto; }
.alt-bg .section-sub { margin-bottom: 36px; }

/* ===== Journey ===== */
.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.journey-card {
    padding: 26px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.part-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.journey-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.journey-list { list-style: none; }
.journey-list li {
    font-size: 14px;
    color: var(--text-dim);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.journey-list li:last-child { border-bottom: none; }
.journey-list code { color: var(--accent); border: none; background: none; padding-left: 0; }

.journey-payoff {
    margin-top: 14px;
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}

/* ===== Features ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-glyph {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 7px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-card p { font-size: 14px; color: var(--text-dim); }

/* ===== Honest section ===== */
.honest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.honest-card {
    padding: 26px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.honest-card h3 {
    font-family: var(--mono);
    font-size: 14px;
    margin-bottom: 14px;
}
.honest-yes { color: var(--accent); }
.honest-no { color: var(--accent-2); }

.honest-card ul { list-style: none; }
.honest-card li {
    font-size: 14px;
    color: var(--text-dim);
    padding: 7px 0 7px 18px;
    position: relative;
}
.honest-card li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--text-faint);
    font-size: 12px;
}
.honest-card strong { color: var(--text); }

.honest-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-faint);
    font-style: italic;
}

/* ===== CTA band ===== */
.cta-band { text-align: center; }
.cta-turtle { width: 64px; height: 64px; margin-bottom: 16px; }
.cta-band .btn { margin-top: 4px; }
.cta-fineprint {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-faint);
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 40px 24px 56px;
    font-size: 13px;
    color: var(--text-faint);
    border-top: 1px solid var(--border);
}
footer p { margin-bottom: 6px; }
.footer-turtle { vertical-align: -4px; margin-right: 6px; }
.footer-sub { color: var(--text-faint); }

/* ===== Beta pill + waitlist ===== */
[hidden] { display: none !important; }
.hidden { display: none !important; }

.beta-pill {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-signin {
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--text-faint);
}
.hero-signin a { color: var(--accent); font-weight: 600; }

.waitlist-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 440px;
    margin: 6px auto 0;
}
.waitlist-input {
    flex: 1;
    min-width: 200px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 15px;
    font-family: var(--sans);
    outline: none;
}
.waitlist-input:focus { border-color: var(--accent); }
.waitlist-form .btn { flex-shrink: 0; }

.waitlist-msg {
    max-width: 440px;
    margin: 16px auto 0;
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.5;
}
.waitlist-msg.ok {
    color: var(--accent);
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.3);
}
.waitlist-msg.err {
    color: var(--danger);
    background: rgba(251, 113, 133, 0.08);
    border: 1px solid rgba(251, 113, 133, 0.3);
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
    nav { justify-content: center; }
    .nav-links { justify-content: center; gap: 14px; }
    .hero { padding: 44px 18px 36px; }
    .hero-turtle { width: 88px; height: 88px; }
    .section { padding: 48px 18px; }
    .term-body { font-size: 12px; }
    .btn { width: 100%; max-width: 320px; text-align: center; }
    .waitlist-form .btn { width: 100%; }
    .waitlist-input { min-width: 0; width: 100%; }
}
