:root {
    --ink: #172033;
    --muted: #647087;
    --violet: #6f52ed;
    --violet-dark: #5238c7;
    --mint: #b9f4df;
    --paper: #fbfaff;
    --line: rgba(41, 35, 73, .12);
    --shadow: 0 28px 80px rgba(47, 35, 105, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 82% 4%, rgba(185, 244, 223, .72), transparent 26rem),
        radial-gradient(circle at 10% 18%, rgba(132, 102, 246, .14), transparent 30rem),
        var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a { color: inherit; }
.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.25rem; font-weight: 800; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    color: white;
    font-size: .82rem;
    letter-spacing: -.04em;
    background: linear-gradient(145deg, #8466f6, #563bd0);
    box-shadow: 0 10px 28px rgba(111, 82, 237, .3);
}
nav { display: flex; align-items: center; gap: 28px; }
nav a { text-decoration: none; color: #3d4659; font-weight: 650; font-size: .94rem; }
.nav-login { padding: 11px 19px; color: white; background: var(--ink); border-radius: 999px; }

.hero {
    min-height: 650px;
    padding: 72px 0 82px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    align-items: center;
    gap: 72px;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--violet-dark); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 26px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(3.2rem, 6vw, 5.8rem); line-height: .96; letter-spacing: -.065em; }
h1 em { color: var(--violet); font-style: normal; }
.hero-lead { max-width: 650px; margin-bottom: 30px; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 15px; text-decoration: none; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(135deg, var(--violet), var(--violet-dark)); box-shadow: 0 15px 35px rgba(111, 82, 237, .28); }
.button-secondary { color: var(--ink); background: rgba(255, 255, 255, .7); border-color: var(--line); }
.access-note { max-width: 610px; margin: 18px 0 0; color: #778197; font-size: .83rem; }

.calendar-preview { position: relative; border: 1px solid rgba(255,255,255,.8); border-radius: 30px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); backdrop-filter: blur(18px); transform: rotate(1.5deg); overflow: hidden; }
.calendar-preview::before { content: ""; position: absolute; inset: -1px auto auto -1px; width: 170px; height: 170px; background: linear-gradient(135deg, rgba(111,82,237,.15), transparent 65%); pointer-events: none; }
.preview-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.preview-top div { display: flex; align-items: center; gap: 9px; }
.preview-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 6px rgba(111,82,237,.12); }
.preview-month { color: var(--muted); font-size: .82rem; }
.preview-body { padding: 28px; }
.preview-profile { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.preview-profile p { margin: 0; }
.preview-profile small { color: var(--muted); }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: white; font-weight: 900; background: linear-gradient(145deg, #172033, #516078); }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; text-align: center; }
.week span { padding-bottom: 6px; color: #8991a2; font-size: .72rem; font-weight: 700; }
.week button { aspect-ratio: 1; border: 0; border-radius: 13px; color: var(--ink); background: #f0eef8; font: inherit; font-weight: 700; }
.week button.selected { color: white; background: var(--violet); box-shadow: 0 10px 24px rgba(111,82,237,.28); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 20px; }
.slots span { padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-size: .82rem; font-weight: 700; }
.slots .active { color: #174d3d; border-color: #94dfc4; background: var(--mint); }
.preview-badge { margin: 0 28px 28px; padding: 11px 14px; border-radius: 12px; color: #4d586e; background: #f6f4fb; font-size: .78rem; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.trust-strip p { margin: 0; padding: 28px 24px; }
.trust-strip p + p { border-left: 1px solid var(--line); }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip span { margin-top: 4px; color: var(--muted); font-size: .86rem; }

.features { padding: 120px 0; }
.section-heading { max-width: 760px; margin-bottom: 50px; }
.section-heading h2, .steps h2, .final-cta h2 { font-size: clamp(2.3rem, 4.5vw, 4.15rem); line-height: 1.04; letter-spacing: -.05em; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.07rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid article { min-height: 245px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.72); }
.feature-grid article:nth-child(2), .feature-grid article:nth-child(5) { transform: translateY(18px); }
.feature-number { color: var(--violet); font-weight: 900; font-size: .8rem; letter-spacing: .1em; }
.feature-grid h3 { margin: 44px 0 10px; font-size: 1.2rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .94rem; }

.steps { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding: 90px 70px; border-radius: 34px; color: white; background: #172033; }
.steps ol { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.steps li > span { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 12px; color: var(--ink); background: var(--mint); font-weight: 900; }
.steps li p { margin: 5px 0 0; color: #b9c0cf; }

.final-cta { margin: 110px 0; padding: 75px; border-radius: 36px; color: white; background: linear-gradient(130deg, #6f52ed, #4c32bc 62%, #34227f); box-shadow: var(--shadow); }
.final-cta .eyebrow { color: var(--mint); }
.final-cta h2 { max-width: 760px; }
.button-light { color: var(--violet-dark); background: white; }
.button-ghost { color: white; border-color: rgba(255,255,255,.45); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 0 0 38px; color: var(--muted); font-size: .86rem; }
footer p { margin: 0; }

@media (max-width: 900px) {
    nav a:not(.nav-login) { display: none; }
    .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 50px; }
    .calendar-preview { max-width: 570px; transform: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid article:nth-child(2), .feature-grid article:nth-child(5) { transform: none; }
    .steps { grid-template-columns: 1fr; gap: 30px; padding: 55px 38px; }
}

@media (max-width: 600px) {
    .site-header, main, footer { width: min(100% - 28px, 1180px); }
    .site-header { min-height: 70px; }
    h1 { font-size: clamp(3rem, 15vw, 4.2rem); }
    .hero { padding: 42px 0 64px; }
    .hero-actions, .button { width: 100%; }
    .calendar-preview { border-radius: 23px; }
    .preview-body { padding: 22px 17px; }
    .trust-strip, .feature-grid { grid-template-columns: 1fr; }
    .trust-strip p + p { border-left: 0; border-top: 1px solid var(--line); }
    .features { padding: 85px 0; }
    .steps { padding: 45px 23px; border-radius: 25px; }
    .final-cta { margin: 80px 0; padding: 48px 24px; border-radius: 26px; }
    footer { flex-direction: column; }
}

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