:root {
    --coral: #d4847d;
    --coral-deep: #b9645c;
    --ink: #1e1716;
    --paper: #fbf7f5;
    --card: #ffffff;
    --muted: #6b5f5c;
    --line: #ece2de;
    --radius: 16px;
    --maxw: 1040px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #1e1716;
        --card: #2a2120;
        --ink: #f6efec;
        --muted: #b8a8a3;
        --line: #3a2e2c;
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--coral-deep); }

/* Hero */
.hero {
    background: radial-gradient(120% 120% at 50% -20%, rgba(212, 132, 125, 0.22), transparent 60%);
    padding-bottom: 64px;
}

.nav {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand { font-weight: 700; font-size: 1.15rem; margin-right: auto; }

.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-link:hover { color: var(--ink); }

.nav-cta {
    background: var(--coral);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 999px;
}
.nav-cta:hover { background: var(--coral-deep); }

.hero-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 24px 0;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    align-items: center;
}

.hero-copy { text-align: left; }

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    line-height: 1.1;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

.tagline { font-size: 1.12rem; color: var(--muted); margin: 0 0 30px; max-width: 560px; }

.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-copy .cta { justify-content: flex-start; }

/* Floating-widget mock */
.widget-wrap { text-align: center; }
.widget-mock {
    display: inline-grid;
    grid-template-columns: repeat(4, auto);
    gap: 10px 18px;
    padding: 18px 22px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--card) 86%, transparent);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(30, 23, 22, 0.18);
    backdrop-filter: blur(8px);
}
.wm-cell {
    display: flex;
    align-items: center;
    gap: 7px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.wm-glyph { color: var(--muted); font-size: 0.95rem; }
.wm-val { font-weight: 600; font-size: 0.98rem; }
.wm-graph { gap: 6px; }
.spark { width: 46px; height: 16px; }
.spark polyline { fill: none; stroke: var(--coral); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.widget-caption { color: var(--muted); font-size: 0.85rem; margin-top: 16px; }

@media (max-width: 820px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-copy { text-align: center; }
    .hero-copy .cta { justify-content: center; }
    .tagline { margin-left: auto; margin-right: auto; }
    .widget-wrap { margin-top: 36px; }
    .widget-mock { grid-template-columns: repeat(2, auto); }
}

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.08s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 8px 24px rgba(212, 132, 125, 0.4);
}
.btn-primary:hover { background: var(--coral-deep); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--coral); }

.hero-note { margin-top: 22px; color: var(--muted); font-size: 0.9rem; }

/* Sections */
.section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 72px 24px;
}
.section-alt { background: rgba(212, 132, 125, 0.06); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    text-align: center;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }

/* Feature grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.card ul { margin: 8px 0 0; padding-left: 18px; }
.card li { color: var(--muted); font-size: 0.95rem; margin: 5px 0; }

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Privacy */
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 30px;
}
.privacy-point {
    display: flex;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.privacy-point .pp-icon { font-size: 1.4rem; line-height: 1.2; }
.privacy-point strong { display: block; margin-bottom: 2px; }
.privacy-point div:last-child { color: var(--muted); font-size: 0.95rem; }

/* System requirements row */
.req {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    justify-content: center;
    margin-top: 32px;
    color: var(--muted);
    font-size: 0.96rem;
}
.req > div { text-align: center; }
.req-k {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--coral-deep);
    margin-bottom: 2px;
}

/* FAQ */
.faq { max-width: 760px; margin: 30px auto 0; }
.faq details {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: var(--card);
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Footer */
.footer {
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 36px 24px;
    color: var(--muted);
    font-size: 0.92rem;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .muted { margin-top: 8px; font-size: 0.85rem; }

/* Legal pages */
.legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal h2 { margin-top: 32px; font-size: 1.25rem; }
.legal .updated { color: var(--muted); font-size: 0.9rem; }
.legal a { color: var(--coral-deep); }
.back-link { display: inline-block; margin-bottom: 24px; text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--ink); }
