/* Vyom CMS — public pages (landing, sign in, sign up, password reset).
   Same palette as the admin theme: navy rail, violet accent, mint/amber/rose signals. */
:root {
    --ink: #182033;
    --ink-2: #35405a;
    --muted: #64708a;
    --line: #e6eaf1;
    --canvas: #f5f7fb;
    --paper: #ffffff;
    --navy: #10182c;
    --navy-2: #1b2442;
    --violet: #635bff;
    --violet-600: #4e46db;
    --violet-soft: #efefff;
    --violet-ink: #4a43d6;
    --mint: #17b890;
    --mint-soft: #e4faf3;
    --amber: #ef9b38;
    --amber-soft: #fff4e6;
    --rose: #e25c72;
    --rose-soft: #fdecef;
    --blue: #3887f6;
    --radius: 10px;
    --shadow-sm: 0 1px 2px rgba(24, 32, 51, .06);
    --shadow: 0 8px 24px rgba(25, 38, 67, .08);
    --shadow-lg: 0 24px 60px rgba(16, 24, 44, .16);
    --focus: 0 0 0 3px rgba(99, 91, 255, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font: 15px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.12; }
p { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 12px; }

.wrap { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }

/* ── Brand ───────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.045em; color: var(--ink); }
.logo-mark {
    width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
    background: linear-gradient(135deg, #8078ff, var(--violet-600)); color: #fff; font-size: 16px; font-weight: 800;
    box-shadow: 0 6px 14px rgba(78, 70, 219, .28);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px; border-radius: 9px; border: 1px solid transparent;
    font: 700 14px/1 Manrope, system-ui, sans-serif; cursor: pointer; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 6px 16px rgba(99, 91, 255, .28); }
.btn-primary:hover { background: var(--violet-600); }
.btn-ghost { background: var(--paper); color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9c6ff; color: var(--violet-ink); }
.btn-light { background: #fff; color: var(--violet-ink); }
.btn-light:hover { background: var(--violet-soft); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-outline-light:hover { border-color: #fff; }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px;
    background: var(--violet-soft); color: var(--violet-ink); border: 1px solid #dddaff;
    font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }

/* ── Header ──────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(245, 247, 251, .82); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-color: var(--line); }
.nav { height: 72px; display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 700; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-login { font-weight: 800; font-size: 14px; color: var(--ink-2); padding: 0 8px; }
.nav-login:hover { color: var(--violet-ink); }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 80px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -260px; top: -420px;
    border-radius: 50%; border: 96px solid #eceaff;
}
.hero::after {
    content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; left: -200px; bottom: -260px;
    border-radius: 50%; background: radial-gradient(circle, #e4faf3 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 70px); letter-spacing: -.06em; line-height: 1.02; margin: 18px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--violet) 10%, #9b6bff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-note code { font: 600 12px "DM Mono", ui-monospace, monospace; color: var(--violet-ink); background: var(--violet-soft); padding: 2px 6px; border-radius: 5px; }

/* Product window (CSS mock of the admin) */
.window { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.window-bar { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #f1a3ae; }
.window-bar i:nth-child(2) { background: #f4cf7a; }
.window-bar i:nth-child(3) { background: #8fdcc4; }
.window-url { margin-left: 10px; font: 11px "DM Mono", ui-monospace, monospace; color: #8a95a8; }
.window-body { display: grid; grid-template-columns: 52px 1fr; min-height: 330px; }
.window-rail { background: var(--navy); padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.window-rail b { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #8078ff, var(--violet-600)); }
.window-rail i { width: 22px; height: 22px; border-radius: 6px; background: #1d2742; }
.window-rail i.on { background: #2c2d6b; box-shadow: inset 0 0 0 1px #6f69ff; }
.window-main { padding: 16px; background: var(--canvas); }
.window-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.window-head strong { font-size: 14px; letter-spacing: -.02em; }
.window-head span { font-size: 11px; font-weight: 800; color: var(--violet-ink); background: var(--violet-soft); padding: 3px 8px; border-radius: 999px; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lane { background: #edf0f6; border-radius: 9px; padding: 8px; }
.lane-title { font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #7d889c; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.lane-title::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9aa5b8; }
.lane.review .lane-title::before { background: var(--blue); }
.lane.scheduled .lane-title::before { background: var(--violet); }
.card-mini { background: #fff; border: 1px solid #e3e7ef; border-radius: 7px; padding: 7px; margin-top: 6px; box-shadow: var(--shadow-sm); }
.card-mini .art { height: 34px; border-radius: 5px; margin-bottom: 6px; background: linear-gradient(135deg, #cfd6ff, #7d75e9 50%, #2d315e); }
.card-mini.warm .art { background: radial-gradient(circle at 30% 30%, #ffd994, #e9897a 40%, #5d4459 75%); }
.card-mini.teal .art { background: linear-gradient(130deg, #9ad9cf, #4d9c9d 50%, #193c54); }
.card-mini b { display: block; font-size: 11px; line-height: 1.25; }
.card-mini small { font-size: 10px; color: #8a95a8; }

/* ── Capability strip ────────────────────────────────── */
.strip { border-block: 1px solid var(--line); background: var(--paper); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 18px 0; }
.strip-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.strip-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.strip-item svg { width: 18px; height: 18px; stroke: var(--violet); fill: none; stroke-width: 2; }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.05em; margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d9d7ff; }
.feature-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.feature-icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon.mint { background: var(--mint-soft); color: #0e9b78; }
.feature-icon.amber { background: var(--amber-soft); color: #c97a1f; }
.feature-icon.rose { background: var(--rose-soft); color: #c84159; }
.feature-icon.blue { background: #eaf3ff; color: var(--blue); }
.feature h3 { font-size: 18px; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* How it works — dark band */
.band { background: var(--navy); color: #fff; border-radius: 22px; padding: 56px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -280px; border-radius: 50%; border: 64px solid rgba(99, 91, 255, .22); }
.band .eyebrow { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #c9c6ff; }
.band .eyebrow::before { background: #a7a2ff; }
.band h2 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.05em; margin: 14px 0 12px; }
.band p { color: #b9c1d6; }
.band .btn { margin-top: 26px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; z-index: 1; align-self: center; }
.step { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 14px 16px; }
.step-num { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #2c2d6b; color: #c9c6ff; font-weight: 800; font-size: 13px; }
.step b { display: block; font-size: 15px; }
.step span { font-size: 13.5px; color: #aeb7cd; }

/* Developers */
.dev-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.dev-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.dev-list li { display: flex; gap: 10px; color: var(--ink-2); font-weight: 600; }
.dev-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e9b78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.code { background: var(--navy); color: #d7dcf0; border-radius: 14px; padding: 20px 22px; font: 13px/1.7 "DM Mono", ui-monospace, monospace; overflow-x: auto; box-shadow: var(--shadow-lg); }
.code .c { color: #7e88a8; }
.code .k { color: #a7a2ff; }
.code .s { color: #8fdcc4; }

/* CTA + footer */
.cta { text-align: center; padding: 40px 0 100px; }
.cta h2 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.055em; margin-bottom: 12px; }
.cta p { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.cta .hero-actions { justify-content: center; }
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 26px 0; font-size: 14px; color: var(--muted); }
.footer-inner nav { display: flex; gap: 20px; font-weight: 700; }
.footer-inner nav a:hover { color: var(--violet-ink); }
.footer-inner .copy { margin-left: auto; }

/* Reveal on scroll (progressive: content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Auth pages ──────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-aside { background: var(--navy); color: #fff; padding: 48px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; bottom: -300px; border-radius: 50%; border: 80px solid rgba(99, 91, 255, .2); }
.auth-aside .logo { color: #fff; }
.auth-aside h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.05em; margin: auto 0 14px; max-width: 420px; position: relative; z-index: 1; }
.auth-aside p { color: #b9c1d6; max-width: 420px; position: relative; z-index: 1; }
.auth-points { list-style: none; padding: 0; margin: 26px 0 auto; display: grid; gap: 12px; position: relative; z-index: 1; }
.auth-points li { display: flex; gap: 10px; color: #dfe3f1; font-weight: 600; font-size: 14.5px; }
.auth-points li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgba(167, 162, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9c6ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(420px, 100%); }
.auth-card .logo { display: none; margin-bottom: 28px; }
.auth-card h1 { font-size: 30px; letter-spacing: -.045em; margin-bottom: 6px; }
.auth-sub { color: var(--muted); margin-bottom: 26px; }
.auth-sub a, .auth-foot a, .link { color: var(--violet-ink); font-weight: 700; }
.auth-sub a:hover, .auth-foot a:hover, .link:hover { text-decoration: underline; }
.auth-foot { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-state { text-align: center; }
.auth-state .state-icon { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--mint-soft); color: #0e9b78; }
.auth-state .state-icon.bad { background: var(--rose-soft); color: #c84159; }
.auth-state .state-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-state h1 { margin-bottom: 8px; }
.auth-state p { color: var(--muted); margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; }
.field .row { display: flex; justify-content: space-between; align-items: baseline; }
.field .row a { font-size: 13px; }
.input {
    width: 100%; height: 44px; border: 1px solid #d9dfe9; border-radius: 9px; padding: 0 13px; background: #fff;
    font: 500 15px Manrope, system-ui, sans-serif; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #a3adbf; }
.input:focus { outline: none; border-color: #9691ff; box-shadow: var(--focus); }
.input[aria-invalid="true"], .input.input-validation-error { border-color: var(--rose); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.hint code { font: 600 12px "DM Mono", ui-monospace, monospace; color: var(--violet-ink); }
.field-error, .field-validation-error { display: block; font-size: 12.5px; color: #c84159; margin-top: 6px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 9px; font-size: 14px; margin-bottom: 18px; }
.alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 2; }
.alert-error { background: var(--rose-soft); color: #a3304a; border: 1px solid #f7cdd5; }
.alert-info { background: var(--violet-soft); color: var(--violet-ink); border: 1px solid #dddaff; }
.alert ul { margin: 0; padding-left: 18px; }
.dev-hint { margin-top: 22px; padding: 12px 14px; border: 1px dashed #cdd5e2; border-radius: 9px; font-size: 13px; color: var(--muted); }
.dev-hint code { font: 600 12px "DM Mono", ui-monospace, monospace; color: var(--ink-2); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .hero { padding-top: 40px; }
    .hero-grid, .band, .dev-grid { grid-template-columns: 1fr; }
    .window { transform: none; max-width: 560px; }
    .features { grid-template-columns: 1fr 1fr; }
    .band { padding: 36px 28px; }
    .auth { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-card .logo { display: inline-flex; }
}
@media (max-width: 620px) {
    body { font-size: 14.5px; }
    .nav { height: 62px; gap: 12px; }
    .nav-login { padding: 0 4px; }
    .nav-actions .btn { height: 36px; padding: 0 12px; font-size: 13px; }
    .hero-lede { font-size: 16px; }
    .features { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .board { grid-template-columns: 1fr 1fr; }
    .board .lane:nth-child(3) { display: none; }
    .footer-inner .copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    .window { transform: none; }
}
