/* ──────────────────────────────────────────────────────────────────
   Inflastra — marketing site
   Visual language mirrors the app (Vault palette + Fraunces serif).
   No external dependencies — pure CSS, self-hosted fonts via Google CDN.
   ────────────────────────────────────────────────────────────────── */

/* Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

/* Design tokens ------------------------------------------------------- */
:root {
    /* Vault palette (matches src/index.html in the app) */
    --bg:               #0B0F14;
    --bg-elevated:      #11161D;
    --bg-card:          #161B23;
    --bg-hover:         #1C222B;
    --border:           rgba(255, 255, 255, 0.06);
    --border-strong:    rgba(255, 255, 255, 0.12);

    --text:             #F5F7FA;
    --text-dim:         #B8C0CC;
    --text-muted:       #7C8694;
    --text-faint:       #4F5662;

    /* Accents */
    --teal:             #13ECEC;
    --teal-dim:         #0AA3A3;
    --champagne:        #C9A961;
    --champagne-soft:   #f0d590;
    --loss:             #FF6B6B;

    /* Effects */
    --shadow-soft:      0 10px 32px rgba(0, 0, 0, 0.35);
    --shadow-glow:      0 0 60px rgba(201, 169, 97, 0.18);
    --glow-teal:        0 0 40px rgba(19, 236, 236, 0.25);

    /* Typography scale */
    --font-serif:       "Fraunces", "Times New Roman", serif;
    --font-sans:        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Layout */
    --container:        1140px;
    --gutter:           1.25rem;
    --radius-sm:        8px;
    --radius:           14px;
    --radius-lg:        20px;
    --radius-xl:        28px;
}

/* Body ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Section wrapper ---------------------------------------------------- */
.section { padding: 6rem 0; }
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Typography --------------------------------------------------------- */
.serif {
    font-family: var(--font-serif);
    font-optical-sizing: auto;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.kicker {
    color: var(--champagne);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
}
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lead { font-size: 1.125rem; color: var(--text-dim); line-height: 1.65; max-width: 38rem; }

/* Gradient text accent (for hero headline highlights) */
.text-gradient {
    background: linear-gradient(135deg, var(--champagne) 0%, var(--champagne-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-teal {
    background: linear-gradient(135deg, var(--teal) 0%, #4dfff5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header / nav ------------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(11, 15, 20, 0.72);
    border-bottom: 1px solid var(--border);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--gutter);
    max-width: var(--container);
    margin: 0 auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}
.brand__mark {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0E5C5E 0%, #0B0F14 100%);
    border: 1px solid rgba(201, 169, 97, 0.35);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(201, 169, 97, 0.18);
}
.brand__mark span {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--champagne);
    font-size: 1.1rem;
    line-height: 1;
}
.nav__links {
    display: flex; gap: 2rem;
    font-size: 0.875rem;
    color: var(--text-dim);
}
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { font-size: 0.875rem; }

/* Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn--primary {
    background: var(--teal);
    color: var(--bg);
    box-shadow: 0 4px 18px rgba(19, 236, 236, 0.28);
}
.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(19, 236, 236, 0.4);
}
.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-strong);
    color: var(--text);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn--champagne {
    background: linear-gradient(135deg, var(--champagne) 0%, var(--champagne-soft) 100%);
    color: var(--bg);
    font-weight: 700;
}
.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }

/* Hero --------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 7rem 0 5rem;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero__bg::before, .hero__bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.hero__bg::before {
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
}
.hero__bg::after {
    bottom: -150px; left: -150px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--champagne) 0%, transparent 70%);
    opacity: 0.25;
}
.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
}
.hero__copy h1 { margin-bottom: 1.5rem; }
.hero__copy .lead { margin-bottom: 2rem; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Phone mockup ------------------------------------------------------- */
.phone {
    position: relative;
    margin: 0 auto;
    width: 280px;
    aspect-ratio: 9 / 19.5;
    border-radius: 36px;
    padding: 8px;
    background: linear-gradient(145deg, #2a2f38 0%, #0a0d12 100%);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.phone__screen {
    width: 100%;
    height: 100%;
    background: var(--bg);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 1rem;
}
.phone__notch {
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 22px;
    background: #000;
    border-radius: 12px;
    z-index: 5;
}
.phone__brand {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.05rem;
    padding-top: 2rem;
}
.phone__card {
    background: linear-gradient(135deg, rgba(19, 236, 236, 0.08) 0%, rgba(11, 15, 20, 0.5) 100%);
    border: 1px solid rgba(19, 236, 236, 0.2);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--glow-teal);
}
.phone__label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}
.phone__big {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 2rem;
    color: var(--text);
    margin-top: 0.3rem;
    text-shadow: 0 0 16px rgba(19, 236, 236, 0.3);
}
.phone__sub {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 0.2rem;
}
.phone__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 107, 107, 0.15);
    color: var(--loss);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 0.4rem;
}
.phone__chart {
    height: 60px;
    background:
        linear-gradient(180deg, rgba(19, 236, 236, 0.15) 0%, transparent 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}
.phone__chart::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, var(--teal) 60%, transparent 80%);
    transform: rotate(-8deg) translateY(20px);
    opacity: 0.6;
    clip-path: polygon(0 100%, 0 60%, 30% 50%, 60% 30%, 100% 20%, 100% 100%);
}

/* Logos / brand row ------------------------------------------------- */
.brand-row {
    padding: 2rem 0 4rem;
    border-bottom: 1px solid var(--border);
}
.brand-row__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.5;
}
.brand-row p {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Features grid ----------------------------------------------------- */
.features {
    background:
        radial-gradient(ellipse at top, rgba(19, 236, 236, 0.04) 0%, transparent 60%),
        var(--bg);
}
.features__header { text-align: center; max-width: 42rem; margin: 0 auto 4rem; }
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 800px) { .features__grid { grid-template-columns: 1fr; } }

.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.feature:hover {
    border-color: rgba(19, 236, 236, 0.3);
    transform: translateY(-4px);
}
.feature:hover::before { opacity: 1; }
.feature__icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: rgba(19, 236, 236, 0.12);
    color: var(--teal);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.feature p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.65; }

/* How it works ----------------------------------------------------- */
.how__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}
@media (max-width: 800px) { .how__grid { grid-template-columns: 1fr; } }

.how-step {
    text-align: left;
    padding: 2rem 0;
}
.how-step__num {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--champagne) 0%, transparent 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}
.how-step h3 { margin-bottom: 0.75rem; }
.how-step p { color: var(--text-dim); font-size: 0.95rem; }

/* Premium teaser --------------------------------------------------- */
.premium {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, rgba(11, 15, 20, 0.5) 100%);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: var(--radius-xl);
    padding: 4rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}
@media (max-width: 700px) { .premium { padding: 2.5rem 1.5rem; } }
.premium::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.06) 0%, transparent 50%);
    z-index: 0;
}
.premium > * { position: relative; z-index: 1; }
.premium .kicker { color: var(--champagne); }
.premium h2 { margin-bottom: 1rem; }
.premium__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    max-width: 42rem;
    margin: 2.5rem auto;
    text-align: left;
}
@media (max-width: 700px) { .premium__features { grid-template-columns: 1fr; } }
.premium__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dim);
}
.premium__features li::before {
    content: '✓';
    color: var(--champagne);
    font-weight: 700;
    flex-shrink: 0;
}

/* FAQ -------------------------------------------------------------- */
.faq__list { max-width: 720px; margin: 4rem auto 0; display: flex; flex-direction: column; gap: 0.75rem; }
.faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}
.faq__q {
    padding: 1.25rem 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    transition: background 0.2s;
}
.faq__q:hover { background: var(--bg-hover); }
.faq__q::after {
    content: '+';
    color: var(--champagne);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-dim);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* CTA section ------------------------------------------------------ */
.cta-final {
    text-align: center;
    padding: 6rem 0;
    background:
        radial-gradient(ellipse at center, rgba(19, 236, 236, 0.08) 0%, transparent 60%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.cta-final h2 { margin-bottom: 1.5rem; }
.cta-final .lead { margin: 0 auto 2.5rem; }
.cta-final .btn { margin: 0 0.5rem; }

/* Footer ----------------------------------------------------------- */
.footer {
    padding: 4rem 0 3rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 700px) {
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.footer h4 {
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a { transition: color 0.2s; }
.footer ul a:hover { color: var(--text); }
.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-faint);
}

/* Legal page layout ------------------------------------------------ */
.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 5rem 1.25rem 4rem;
}
.legal h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.legal .updated { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 3rem; }
.legal h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p, .legal li {
    color: var(--text-dim);
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.legal ul { padding-left: 1.5rem; list-style: disc; }
.legal ul li { margin-bottom: 0.5rem; }
.legal a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--champagne); }
.legal__lang {
    display: inline-flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}
.legal__lang button {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-dim);
    transition: all 0.2s;
}
.legal__lang button.is-active {
    background: var(--teal);
    color: var(--bg);
    font-weight: 600;
}

/* Animations ------------------------------------------------------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}
.phone { animation: float 6s ease-in-out infinite; }
.hero__bg::before { animation: pulse-glow 5s ease-in-out infinite; }

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* Mobile nav ------------------------------------------------------- */
@media (max-width: 700px) {
    .nav__links { display: none; }
    .section { padding: 4rem 0; }
    .hero { padding: 4rem 0 3rem; }
}
