:root {
    --purple: #7c3aed;
    --purple-soft: #f3e8ff;
    --blue: #3b82f6;
    --teal: #14b8a6;
    --ink: #0f172a;
    --text: #475569;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --bg-tint: #f8fafc;
    --radius: 20px;
    --gradient: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%);
    --shadow: 0 20px 45px -18px rgba(15, 23, 42, 0.18);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }
p { margin: 0 0 16px; }
a { color: var(--purple); }
img { max-width: 100%; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
    background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 12px;
    font: inherit;
    font-size: 0.97rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, .nav-toggle:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.35);
    outline-offset: 2px;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 22px -8px rgba(124, 58, 237, 0.45); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 26px -8px rgba(124, 58, 237, 0.55); }
.btn-ghost { background: #fff; color: var(--ink); border-color: #cbd5e1; }
.btn-ghost:hover { background: var(--bg-tint); }
.btn-light { background: #fff; color: var(--purple); }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.brand-small { font-size: 1.05rem; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
    padding: 80px 0 96px;
    background:
        radial-gradient(600px 400px at 90% 10%, rgba(20, 184, 166, 0.12), transparent 70%),
        radial-gradient(600px 400px at 0% 90%, rgba(124, 58, 237, 0.10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.lead { font-size: 1.15rem; max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; min-height: 420px; }
.mock-card {
    position: absolute;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 24px;
}
.mock-title { font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.mock-checkin { top: 0; left: 0; width: 78%; }
.mood-row { display: flex; gap: 10px; margin-bottom: 18px; }
.mood {
    flex: 1;
    display: grid;
    place-items: center;
    height: 46px;
    border-radius: 12px;
    background: var(--bg-tint);
    font-size: 1.35rem;
    border: 2px solid transparent;
}
.mood.active { background: var(--purple-soft); border-color: var(--purple); }
.mock-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.mock-bar span { display: block; height: 100%; background: var(--gradient); }
.mock-caption { font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }

.mock-journey { top: 190px; right: 0; width: 66%; }
.journey { list-style: none; margin: 0; padding: 0; }
.journey li { position: relative; padding: 0 0 12px 26px; font-size: 0.93rem; }
.journey li:last-child { padding-bottom: 0; }
.journey li::before {
    content: '';
    position: absolute;
    left: 0; top: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: #fff;
}
.journey li.done::before { background: var(--teal); border-color: var(--teal); }
.journey li.current { color: var(--ink); font-weight: 600; }
.journey li.current::before { border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-soft); }

.mock-private {
    bottom: 0; left: 6%;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--ink);
}

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:last-child { font-size: 1.08rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature p { margin: 0; font-size: 0.97rem; }
.feature-icon {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--purple-soft);
    margin-bottom: 18px;
}
.feature-icon svg {
    width: 24px; height: 24px;
    fill: none;
    stroke: var(--purple);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink); }
.checks li::before {
    content: '';
    position: absolute; left: 0; top: 4px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.visibility-table {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.vt-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 16px; padding: 15px 24px; border-top: 1px solid var(--line); }
.vt-row span:first-child { font-weight: 600; color: var(--ink); }
.vt-head { border-top: 0; background: var(--bg-tint); }
.vt-head span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted) !important; font-weight: 600; }

/* Roles */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.role { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.role:nth-child(3n) { border-right: 0; }
.role:nth-last-child(-n+3) { border-bottom: 0; }
.role p { margin: 0; font-size: 0.97rem; }

/* Sign in */
.signin-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 44px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background:
        radial-gradient(400px 220px at 100% 0%, rgba(20, 184, 166, 0.10), transparent 70%),
        #fff;
    box-shadow: var(--shadow);
}
.signin-card p { margin: 0; }
.signin-form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: 0.93rem; }
.signin-row { display: flex; gap: 10px; }
.signin-row input {
    flex: 1;
    min-width: 0;
    font: inherit;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
}
.signin-row input:focus { border-color: var(--purple); }
.form-error { color: #b91c1c; font-size: 0.88rem; margin: 8px 0 0 !important; }

/* CTA */
.section-cta { background: var(--gradient); color: rgba(255, 255, 255, 0.9); text-align: center; }
.section-cta h2 { color: #fff; }
.cta-inner p { font-size: 1.1rem; margin-bottom: 28px; }

/* Footer */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
    .hero { padding: 56px 0 72px; }
    .hero-grid, .privacy-grid, .signin-card { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { min-height: 400px; max-width: 520px; }
    .feature-grid, .role-grid { grid-template-columns: repeat(2, 1fr); }
    .role:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .role:nth-child(2n) { border-right: 0; }
    .role:nth-last-child(-n+2) { border-bottom: 0; }
    .section { padding: 72px 0; }
}

@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 68px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 16px 20px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .site-nav a:not(.btn) { padding: 10px 8px; }
    .site-nav .btn { margin-top: 8px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .feature-grid, .role-grid { grid-template-columns: 1fr; }
    .role:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
    .role:last-child { border-bottom: 0; }
    .hero-visual { min-height: 0; display: flex; flex-direction: column; gap: 14px; }
    .mock-card { position: static; width: auto; }
    .mock-checkin { margin-right: 12%; }
    .mock-journey { margin-left: 12%; }
    .signin-card { padding: 28px 20px; }
    .signin-row { flex-direction: column; }
    .hero-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .feature { transition: none; }
}
