/* ==========================================================================
   Gradefully marketing site — single stylesheet, no build step.
   Edit tokens below to retheme; sections are ordered top-of-page → bottom.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
    /* Brand darks (hero, how-it-works, CTA, footer) */
    --navy-950: #0a0e1a;
    --navy-900: #0c2340;
    --teal-900: #004d6e;
    /* Brand accents */
    --blue: #33c5ff;
    --mint: #1aefaf;
    --orchid: #dc54f1;
    /* Light-section neutrals */
    --paper: #f6f8fa;
    --card: #ffffff;
    --line: #e5e7eb;
    --ink-900: #111827;
    --ink-600: #4b5563;
    --ink-500: #6b7280;
    /* On-dark text */
    --mist: #b0bec5;
    --mist-dim: #64748b;
    /* Composites */
    --grad-hero: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--teal-900) 100%);
    --grad-accent: linear-gradient(90deg, var(--blue), var(--mint));
    /* Shape & rhythm */
    --radius: 16px;
    --radius-lg: 24px;
    --container: 1120px;
    --nav-h: 64px;
    --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-script: 'Pacifico', cursive;
    --shadow-card: 0 1px 3px rgba(17, 24, 39, .06), 0 8px 24px -12px rgba(17, 24, 39, .12);
    --shadow-float: 0 30px 80px -20px rgba(0, 0, 0, .55);
    color-scheme: light;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px); /* anchor jumps clear the fixed nav */
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-900);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, iframe { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--blue); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.icon {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex: none;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    border: 1px solid transparent;
    font: 600 1rem var(--font-sans);
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease;
}

.btn-primary {
    background: var(--grad-accent);
    color: var(--navy-950);
    box-shadow: 0 8px 24px -8px rgba(51, 197, 255, .55);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

.btn-ghost {
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
    background: rgba(255, 255, 255, .04);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

.btn-sm { padding: 9px 18px; font-size: .9rem; border-radius: 10px; }

/* ---- Logo ---------------------------------------------------------------- */
.logo { display: inline-flex; align-items: baseline; text-decoration: none; }
.logo-grade { font: 600 1.35rem var(--font-sans); color: #fff; letter-spacing: -.02em; }
.logo-fully { font: 400 1.2rem var(--font-script); color: var(--blue); margin-left: 1px; }

/* ---- Nav ----------------------------------------------------------------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--nav-h);
    background: rgba(10, 14, 26, .78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.nav-links a:not(.btn) {
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--mist);
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease;
}
.nav-links a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-links .btn { margin-left: 10px; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px 24px 24px;
        background: rgba(10, 14, 26, .97);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    body.nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
    body.nav-open .nav-toggle .icon-menu { display: none; }
    body.nav-open .nav-toggle .icon-close { display: block; }
    .nav-links a:not(.btn) { padding: 12px 14px; }
    .nav-links .btn { margin: 10px 0 0; }
}

/* ---- Section scaffolding -------------------------------------------------- */
.section { padding: 88px 0; }
.section-dark { background: var(--grad-hero); color: #fff; position: relative; overflow: hidden; }
.section-light { background: var(--paper); }
.section-white { background: #fff; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; position: relative; z-index: 1; }
.eyebrow {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; }
.section-sub { margin-top: 12px; color: var(--ink-500); }
.section-dark .section-sub { color: var(--mist); }

/* Decorative glow blobs for dark sections */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

/* ---- Hero ----------------------------------------------------------------- */
.hero {
    background: var(--grad-hero);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-h) + 72px) 0 96px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 14px;
    border: 1px solid rgba(51, 197, 255, .45);
    border-radius: 999px;
    color: var(--blue);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 0 rgba(26, 239, 175, .5);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(26, 239, 175, .45); }
    70% { box-shadow: 0 0 0 9px rgba(26, 239, 175, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 239, 175, 0); }
}

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

.hero-title {
    margin-top: 22px;
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
}
.text-gradient {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    margin-top: 20px;
    max-width: 34em;
    font-size: 1.13rem;
    line-height: 1.65;
    color: var(--mist);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 36px;
    color: var(--mist-dim);
    font-size: .85rem;
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row .icon { width: 17px; height: 17px; }

/* ---- Hero product mockup --------------------------------------------------
   Pure HTML/CSS stand-in for a real app screenshot. When screenshots are
   ready, swap .mock-body's content for an <img> — the frame stays. */
.mock-wrap { position: relative; padding: 0 10px 44px 0; }

.mock {
    background: #0b1322;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-float), 0 0 0 1px rgba(51, 197, 255, .07), 0 0 70px -12px rgba(51, 197, 255, .3);
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; opacity: .85; }
.mock-url {
    flex: 1;
    margin-left: 10px;
    padding: 3px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
    color: #8aa0b8;
    font: 11px ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

.mock-body { padding: 6px 14px 14px; }

.mgrid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mgrid th {
    padding: 10px 8px 8px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7c8ea6;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    white-space: nowrap;
}
.mgrid td {
    padding: 9px 8px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    white-space: nowrap;
}
.mgrid tr.hl td { background: rgba(51, 197, 255, .07); }
.mgrid .num { text-align: right; font-variant-numeric: tabular-nums; }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 50%;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--navy-950);
    background: var(--grad-accent);
    vertical-align: middle;
}

.chip {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.chip-a { background: rgba(26, 239, 175, .16); color: var(--mint); }
.chip-b { background: rgba(51, 197, 255, .16); color: var(--blue); }
.chip-c { background: rgba(245, 158, 11, .18); color: #fbbf24; }
.chip-x { background: rgba(239, 68, 68, .14); color: #f87171; }

/* Floating AI-comment card overlapping the frame */
.mock-comment {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(320px, 86%);
    padding: 14px 16px;
    border: 1px solid rgba(51, 197, 255, .3);
    border-radius: 12px;
    background: linear-gradient(180deg, #101c33, #0d1526);
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .6);
}
.mock-comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--blue);
}
.mock-comment-head .icon { width: 14px; height: 14px; }
.mock-comment p { margin-top: 8px; font-size: 12px; line-height: 1.55; color: #b6c2d4; }
.mock-comment-actions { display: flex; gap: 8px; margin-top: 12px; }
.mock-btn {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}
.mock-btn-ghost { border: 1px solid rgba(255, 255, 255, .18); color: var(--mist); }
.mock-btn-solid { background: var(--mint); color: var(--navy-950); }

@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-copy { align-items: center; text-align: center; }
    .hero-sub { margin-inline: auto; }
    .hero-actions, .trust-row { justify-content: center; }
    .badge { align-self: center; }
    .mock-wrap { max-width: 620px; margin: 0 auto; }
}
@media (max-width: 480px) {
    .mgrid th:nth-child(4), .mgrid td:nth-child(4) { display: none; } /* drop a column on tiny screens */
}

/* ---- Feature cards --------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px -12px rgba(17, 24, 39, .18); }

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    margin-bottom: 18px;
}
.card-icon .icon { width: 28px; height: 28px; }
.tint-blue { background: rgba(51, 197, 255, .12); color: #0ea5e9; }
.tint-mint { background: rgba(26, 239, 175, .14); color: #0d9f74; }
.tint-orchid { background: rgba(220, 84, 241, .12); color: #c026d3; }

.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--ink-500); font-size: .95rem; line-height: 1.65; }

/* ---- How it works (dark) ---------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; z-index: 1; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.step { text-align: center; }
.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    margin-bottom: 16px;
}
.step-icon .icon { width: 28px; height: 28px; }
.step-icon.tint-blue { color: var(--blue); }
.step-icon.tint-mint { color: var(--mint); }
.step-icon.tint-orchid { color: var(--orchid); }

.step-num {
    display: inline-block;
    padding: 4px 13px;
    border-radius: 999px;
    margin-bottom: 12px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
}
.step:nth-child(1) .step-num { background: rgba(51, 197, 255, .15); color: var(--blue); }
.step:nth-child(2) .step-num { background: rgba(26, 239, 175, .15); color: var(--mint); }
.step:nth-child(3) .step-num { background: rgba(220, 84, 241, .15); color: var(--orchid); }

.step h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 10px; color: #fff; }
.step p { color: var(--mist); font-size: .95rem; line-height: 1.7; }

.step-callout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 11px 16px;
    border: 1px solid rgba(26, 239, 175, .18);
    border-radius: 12px;
    background: rgba(26, 239, 175, .06);
    color: var(--mint);
    font-size: .8rem;
    font-weight: 600;
    text-align: left;
}
.step-callout .icon { width: 17px; height: 17px; }

.security-banner { margin-top: 56px; text-align: center; position: relative; z-index: 1; }
.security-banner-inner {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 28px;
    padding: 20px 32px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .03);
    color: var(--mist);
    font-size: .85rem;
}
.security-banner-inner span { display: inline-flex; align-items: center; gap: 8px; }
.security-banner-inner .icon { width: 17px; height: 17px; }

/* ---- FAQ ---------------------------------------------------------------------- */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.faq { border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: 0; }

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 19px; height: 19px; color: var(--ink-500); transition: transform .2s ease; }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq-a { padding: 0 24px 20px; color: var(--ink-500); font-size: .95rem; line-height: 1.7; }

/* ---- Signup (Brevo) -------------------------------------------------------------- */
.signup-card {
    max-width: 620px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.signup-frame { display: block; width: 100%; height: 720px; border: 0; }
@media (max-width: 600px) { .signup-frame { height: 700px; } }

/* ---- Final CTA -------------------------------------------------------------------- */
.cta-box { position: relative; z-index: 1; text-align: center; max-width: 620px; margin: 0 auto; }
.cta-note { margin-top: 16px; color: var(--mist-dim); font-size: .85rem; }

/* ---- Footer ------------------------------------------------------------------------ */
.footer {
    background: var(--navy-950);
    border-top: 1px solid #1a2332;
    padding: 30px 0;
    color: var(--mist);
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a { color: var(--mist); font-size: .85rem; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-meta { color: var(--mist-dim); font-size: .8rem; }
.footer .logo-grade { font-size: 1.1rem; }
.footer .logo-fully { font-size: 1rem; }

/* ---- Sub-page headers (contact / privacy) ------------------------------------------- */
.page-hero {
    background: var(--grad-hero);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-h) + 64px) 0 72px;
    text-align: center;
}
.page-hero .icon-lg { width: 44px; height: 44px; color: var(--blue); margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; }
.page-hero p { margin: 16px auto 0; max-width: 34em; color: var(--mist); }
.page-hero .big-link { display: inline-block; margin-top: 22px; font-size: 1.25rem; font-weight: 600; color: var(--blue); text-decoration: none; }

/* Contact cards reuse .cards/.card; center 3-up grid collapses the same way */

/* ---- Privacy page ---------------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; position: relative; z-index: 1; }
.tab {
    padding: 9px 22px;
    border-radius: 999px;
    border: 1px solid rgba(51, 197, 255, .3);
    background: transparent;
    color: var(--mist);
    font: 500 .92rem var(--font-sans);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.tab:hover { color: #fff; }
.tab.active { background: var(--blue); border-color: var(--blue); color: var(--navy-950); font-weight: 600; }

.policy-shell { background: var(--paper); padding: 48px 0; min-height: 60vh; }
.policy-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 36px;
    max-width: 980px;
    margin: 0 auto;
    overflow-x: auto;
}
.policy-tab[hidden] { display: none; }
.policy-card a { color: #0284c7; }

.privacy-contact {
    background: var(--grad-hero);
    color: #fff;
    text-align: center;
    padding: 56px 0;
}
.privacy-contact h2 { font-size: 1.2rem; font-weight: 600; }
.privacy-contact p { color: var(--mist); margin: 8px 0 12px; }
.privacy-contact a { color: var(--blue); font-weight: 600; font-size: 1.1rem; text-decoration: none; }

/* ---- 404 -------------------------------------------------------------------------------- */
.notfound {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--grad-hero);
    color: #fff;
    padding: 24px;
}
.notfound h1 { font-size: 5rem; font-weight: 800; }
.notfound p { color: var(--mist); margin: 12px 0 28px; }

/* ---- Scroll-reveal animation -------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .badge-dot { animation: none; }
    .btn, .card { transition: none; }
}
