:root {
    --purple: #6B3FA0;
    --purple-dark: #553280;
    --purple-light: #8B5FC0;
    --lavender: #F4EDF7;
    --cream: #FBF5E9;
    --text: #1A1625;
    --muted: #6B6478;
    --border: #E4DEEA;
    --white: #FFFFFF;
    --success: #2D7A3E;
    --error: #B32D2D;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", Cambria, serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(26, 22, 37, 0.06), 0 1px 3px rgba(26, 22, 37, 0.04);
    --shadow-md: 0 4px 12px rgba(107, 63, 160, 0.10), 0 2px 4px rgba(26, 22, 37, 0.06);
    --shadow-lg: 0 20px 40px rgba(107, 63, 160, 0.15), 0 8px 16px rgba(26, 22, 37, 0.08);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--purple);
    text-decoration: none;
    transition: color 120ms ease;
}
a:hover { color: var(--purple-dark); text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--text);
    line-height: 1.2;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: 1100px;
    margin: 0 auto;
    gap: 16px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}
.nav-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-cta {
    background: var(--text);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
}
.nav-cta:hover { background: var(--purple); text-decoration: none; }

@media (max-width: 640px) {
    .nav-links li:not(:last-child) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(180deg, var(--lavender) 0%, var(--cream) 100%);
    padding: 80px 0 100px;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--purple);
    background: rgba(107, 63, 160, 0.08);
    padding: 6px 12px;
    border-radius: 99px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    margin-bottom: 16px;
}
.hero-lede {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 32px;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hero-image {
    position: relative;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotate(2deg);
}
.hero-image img { width: 100%; display: block; }

@media (max-width: 820px) {
    .hero { padding: 48px 0 72px; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-cta { justify-content: center; }
    .hero-lede { margin-left: auto; margin-right: auto; }
    .hero-image { max-width: 260px; transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
    background: var(--text);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--purple);
    color: var(--white);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover {
    background: var(--white);
    border-color: var(--purple-light);
    color: var(--purple);
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--lavender);
    color: var(--purple);
    margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; font-family: var(--font-sans); font-size: 1.1rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

@media (max-width: 960px) {
    .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .features { grid-template-columns: 1fr; }
}

/* ---------- Screenshots showcase ---------- */
.showcase {
    background: var(--cream);
}
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: end;
}
.showcase-item {
    text-align: center;
}
.showcase-phone {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
    margin-bottom: 16px;
    transition: transform 180ms ease;
}
.showcase-phone img { display: block; width: 100%; }
.showcase-item:hover .showcase-phone { transform: translateY(-4px); }
.showcase-caption {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}
.showcase-sub {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 2px;
}
@media (max-width: 900px) {
    .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ---------- Token pricing ---------- */
.pricing {
    background: var(--lavender);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.price-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.price-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.price-card.featured {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.12);
}
.price-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--purple);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
}
.price-tier {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 8px;
}
.price-amount {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 4px 0;
}
.price-tokens {
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px;
}
.price-bonus {
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 600;
}
@media (max-width: 800px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- Final CTA ---------- */
.final-cta {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 24px;
}
.final-cta h2 { color: var(--white); margin-bottom: 12px; }
.final-cta p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; max-width: 520px; margin: 0 auto 28px; }
.final-cta .btn-primary { background: var(--white); color: var(--purple); }
.final-cta .btn-primary:hover { background: var(--cream); color: var(--purple-dark); }

/* ---------- Footer ---------- */
.footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0;
    font-size: 0.9rem;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}
.footer-brand {
    color: var(--white);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
}
.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: var(--white); }

/* ---------- Prose (legal pages) ---------- */
.page-header {
    background: linear-gradient(180deg, var(--lavender) 0%, var(--white) 100%);
    padding: 64px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 8px; }
.page-header .updated {
    color: var(--muted);
    font-size: 0.95rem;
}
.prose {
    padding: 56px 0 80px;
}
.prose h2 {
    margin-top: 2em;
    font-size: 1.5rem;
}
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; }
.prose ul { padding-left: 1.2em; }
.prose ul li { margin-bottom: 0.4em; }

/* ---------- FAQ ---------- */
.faq {
    max-width: 720px;
    margin: 0 auto;
}
.faq details {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0;
    margin-bottom: 12px;
    background: var(--white);
    transition: border-color 120ms ease;
}
.faq details[open] { border-color: var(--purple-light); }
.faq summary {
    padding: 18px 22px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--purple);
    transition: transform 160ms ease;
    line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body {
    padding: 0 22px 20px;
    color: var(--muted);
}
.faq-body p { margin-bottom: 0.5em; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- Contact form ---------- */
.contact {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.contact h2 { margin-top: 0; }
.form-field {
    margin-bottom: 18px;
}
.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}
.form-field .required { color: var(--error); }
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    font: inherit;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.15);
}
.form-field textarea {
    min-height: 140px;
    resize: vertical;
    font-family: var(--font-sans);
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.form-message {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    display: none;
}
.form-message.show { display: block; }
.form-message.success {
    background: rgba(45, 122, 62, 0.08);
    color: var(--success);
    border: 1px solid rgba(45, 122, 62, 0.2);
}
.form-message.error {
    background: rgba(179, 45, 45, 0.06);
    color: var(--error);
    border: 1px solid rgba(179, 45, 45, 0.18);
}
.recaptcha-notice {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.5;
}

/* Ensure reCAPTCHA v3 badge doesn't overlap footer links oddly on mobile */
.grecaptcha-badge { bottom: 80px !important; }
