:root {
    --navy: #101d3a;
    --navy-2: #18294e;
    --blue: #315ff4;
    --blue-light: #eaf0ff;
    --ink: #172033;
    --muted: #647087;
    --line: #dfe5ef;
    --paper: #ffffff;
    --canvas: #f5f7fb;
    --success: #157a54;
    --danger: #b42318;
    --radius: 22px;
    --shadow: 0 22px 60px rgba(16, 29, 58, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; color: white; background: var(--navy); border-radius: 10px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(223,229,239,.85); background: rgba(255,255,255,.92); backdrop-filter: blur(18px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 780; letter-spacing: -.02em; }
.brand small { display: block; margin-top: -4px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; color: white; background: var(--navy); border-radius: 13px; font-size: 18px; box-shadow: 0 8px 20px rgba(16,29,58,.18); }
.main-nav { display: flex; align-items: center; gap: 28px; color: #35415a; font-size: 14px; font-weight: 650; }
.main-nav a:hover, .nav-button:hover { color: var(--blue); }
.inline-form { display: inline; margin: 0; }
.nav-button { border: 0; padding: 8px 0; color: #35415a; background: transparent; cursor: pointer; }

.hero { position: relative; overflow: hidden; padding: 88px 0 96px; background: linear-gradient(145deg, #f9fbff 0%, #f2f6ff 58%, #edf3ff 100%); }
.hero::before { content: ""; position: absolute; width: 440px; height: 440px; right: -150px; top: -180px; border: 1px solid rgba(49,95,244,.14); border-radius: 50%; box-shadow: 0 0 0 80px rgba(49,95,244,.035), 0 0 0 160px rgba(49,95,244,.025); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 86px; position: relative; }
.eyebrow { display: inline-block; margin-bottom: 16px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 760px; color: var(--navy); font-size: clamp(46px, 6vw, 78px); line-height: 1.02; letter-spacing: -.055em; }
.hero h1 span { color: var(--blue); }
.hero-copy > p { max-width: 670px; margin: 28px 0 34px; color: var(--muted); font-size: 19px; line-height: 1.75; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--blue); padding: 11px 22px; color: white; background: var(--blue); border-radius: 13px; font-weight: 720; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); background: #244ed8; box-shadow: 0 12px 26px rgba(49,95,244,.22); }
.button.secondary { color: var(--navy); border-color: var(--line); background: white; }
.button.secondary:hover { color: var(--blue); box-shadow: 0 10px 24px rgba(16,29,58,.08); }
.button.disabled { color: #7a8498; border-color: #dce2ec; background: #edf0f5; cursor: default; }
.button.disabled:hover { transform: none; box-shadow: none; }
.button.full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-card { position: relative; min-height: 470px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.55); border-radius: 44px; box-shadow: var(--shadow); }
.signal { position: absolute; top: 22px; left: 25px; display: flex; gap: 6px; }
.signal span { width: 7px; height: 7px; border-radius: 50%; background: #ccd4e3; }
.signal span:first-child { background: var(--blue); }
.hero-device { width: 255px; height: 360px; position: relative; display: grid; place-items: center; border: 9px solid var(--navy); background: #edf1f8; border-radius: 35px; box-shadow: 0 28px 55px rgba(16,29,58,.26); transform: rotate(3deg); }
.device-top { width: 74px; height: 18px; position: absolute; top: -2px; background: var(--navy); border-radius: 0 0 14px 14px; }
.document-sheet { width: 145px; height: 192px; padding: 25px 20px; background: white; border-radius: 8px; box-shadow: 0 14px 32px rgba(16,29,58,.14); }
.document-sheet b { display: inline-grid; place-items: center; width: 48px; height: 31px; color: white; background: var(--blue); border-radius: 6px; font-size: 13px; }
.document-sheet i { display: block; height: 7px; margin-top: 17px; background: #dbe1eb; border-radius: 5px; }
.document-sheet i:nth-of-type(2) { width: 80%; }.document-sheet i:nth-of-type(3) { width: 58%; }
.privacy-pill { position: absolute; left: -86px; bottom: 35px; width: 230px; padding: 12px 14px 12px 38px; color: var(--navy); background: white; border-radius: 14px; box-shadow: 0 12px 30px rgba(16,29,58,.16); font-size: 12px; font-weight: 750; transform: rotate(-3deg); }
.privacy-pill::before { content: "✓"; position: absolute; left: 13px; color: var(--success); font-size: 17px; }

.values { border-block: 1px solid var(--line); background: white; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-grid article { padding: 44px 36px; border-right: 1px solid var(--line); }
.value-grid article:last-child { border-right: 0; }
.value-grid article > span { color: var(--blue); font-size: 12px; font-weight: 800; }
.value-grid h2 { margin: 9px 0 6px; color: var(--navy); font-size: 21px; }
.value-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.apps-section { padding: 104px 0 116px; background: var(--canvas); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(34px,4vw,48px); letter-spacing: -.04em; }
.section-heading > p { max-width: 340px; margin: 0; color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.app-card { display: grid; grid-template-columns: 126px 1fr; gap: 27px; padding: 30px; border: 1px solid var(--line); background: white; border-radius: var(--radius); box-shadow: 0 12px 34px rgba(16,29,58,.05); transition: transform .2s ease, box-shadow .2s ease; }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.app-icon, .large-icon { object-fit: cover; background: var(--navy); border-radius: 28px; box-shadow: 0 13px 30px rgba(16,29,58,.2); }
.app-icon { width: 126px; height: 126px; }
.generated { display: grid; place-items: center; position: relative; color: var(--navy); background: var(--navy); overflow: hidden; }
.generated::before { content: ""; position: absolute; width: 58%; height: 70%; background: white; border-radius: 5px; box-shadow: 7px 7px 0 rgba(49,95,244,.45); }
.generated span { position: relative; z-index: 1; margin-top: 30%; padding: 4px 7px; color: white; background: var(--blue); border-radius: 4px; font-size: 11px; font-weight: 850; }
.platform { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.app-card h3 { margin: 4px 0 6px; color: var(--navy); font-size: 25px; letter-spacing: -.025em; }
.app-card p { min-height: 52px; margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.text-link { color: var(--blue); font-weight: 750; }
.text-link span { display: inline-block; transition: transform .18s ease; }.text-link:hover span { transform: translateX(4px); }
.empty-state { padding: 54px; text-align: center; border: 1px dashed #c7d0df; background: white; border-radius: var(--radius); }
.empty-state h2,.empty-state h3 { margin: 0 0 6px; color: var(--navy); }.empty-state p { margin: 0; color: var(--muted); }
.trust-strip { padding: 30px 0; color: white; background: var(--navy); }
.trust-strip .container { display: flex; justify-content: center; gap: 70px; font-size: 14px; }

.app-hero { padding: 90px 0; background: linear-gradient(145deg,#f7f9fe,#edf2fc); }
.app-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 80px; }
.back-link { display: block; width: fit-content; margin-bottom: 32px; color: var(--muted); font-size: 14px; font-weight: 650; }
.back-link:hover { color: var(--blue); }
.app-hero h1, .document-header h1 { margin: 8px 0 18px; color: var(--navy); font-size: clamp(46px,7vw,72px); line-height: 1.05; letter-spacing: -.05em; }
.lead { color: var(--muted); font-size: 19px; }
.app-hero .lead { max-width: 620px; }
.package-name { margin-top: 18px; color: #8992a3; font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.app-showcase { min-height: 420px; display: grid; place-items: center; border-radius: 38px; background: var(--navy); box-shadow: var(--shadow); }
.large-icon { width: 220px; height: 220px; }
.large-icon.generated span { font-size: 18px; padding: 7px 11px; }
.content-section { padding: 92px 0; }.rich-text { color: #47536a; font-size: 18px; }.rich-text p { margin: 0 0 22px; }
.privacy-summary { padding: 70px 0; background: var(--blue-light); }.privacy-summary h2 { margin: 0 0 10px; color: var(--navy); font-size: 34px; }.privacy-summary p { color: #52617b; }

.document-header { padding: 80px 0 55px; background: #f5f8ff; }.document-header h1 { font-size: clamp(38px,6vw,58px); }.document-header p { color: var(--muted); }
.document-body { padding: 60px 0 100px; background: var(--canvas); }
.policy-paper { max-width: 850px; padding: clamp(30px,6vw,72px); background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.policy-paper h2 { margin: 44px 0 12px; color: var(--navy); font-size: 26px; }.policy-paper h2:first-child { margin-top: 0; }.policy-paper p { color: #47536a; }
.not-found { min-height: 62vh; display: grid; place-items: center; padding: 80px 0; text-align: center; }.error-code { color: var(--blue); font-size: 13px; font-weight: 850; letter-spacing: .15em; }.not-found h1 { margin: 8px 0; font-size: 45px; color: var(--navy); }.not-found p { margin-bottom: 28px; color: var(--muted); }

.admin-page { background: var(--canvas); }.admin-shell { min-height: 70vh; padding: 62px 0 100px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }.admin-heading.compact { margin-bottom: 25px; }
.admin-heading h1 { margin: 0; color: var(--navy); font-size: 42px; letter-spacing: -.04em; }.admin-heading p { margin: 6px 0 0; color: var(--muted); }
.admin-list { display: grid; gap: 12px; }
.admin-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 18px; padding: 19px 20px; border: 1px solid var(--line); background: white; border-radius: 16px; }
.admin-app-icon { width: 52px; height: 52px; display: grid; place-items: center; color: white; background: var(--navy); border-radius: 14px; font-weight: 850; }
.title-line { display: flex; align-items: center; gap: 10px; }.title-line h2 { margin: 0; color: var(--navy); font-size: 18px; }.admin-app-main p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.status { padding: 3px 8px; border-radius: 20px; font-size: 10px; font-weight: 800; text-transform: uppercase; }.status.published { color: #087449; background: #e7f8f0; }.status.draft { color: #795507; background: #fff4d5; }
.admin-actions { display: flex; gap: 14px; font-size: 13px; font-weight: 700; }.admin-actions a { color: var(--blue); }.danger-link { border: 0; padding: 0; color: var(--danger); background: transparent; font: inherit; cursor: pointer; }
.form-container { max-width: 920px; }.editor-form { display: grid; gap: 18px; }.form-panel { padding: 30px; border: 1px solid var(--line); background: white; border-radius: 18px; }.form-panel h2 { margin: 0 0 22px; color: var(--navy); font-size: 19px; }.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.field { display: grid; align-content: start; gap: 7px; }.field.full,.divider.full { grid-column: 1/-1; }.field.small { max-width: 160px; }
.field label { color: #33405a; font-size: 13px; font-weight: 750; }.field small { color: var(--muted); font-size: 12px; }
.field input,.field textarea,.field select { width: 100%; min-height: 48px; border: 1px solid #ccd4e1; padding: 11px 13px; color: var(--ink); background: white; border-radius: 10px; outline: none; transition: border .15s, box-shadow .15s; }.field textarea { resize: vertical; line-height: 1.6; }.field input:focus,.field textarea:focus,.field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,95,244,.13); }
.input-prefix { display: flex; align-items: center; border: 1px solid #ccd4e1; background: #f4f6fa; border-radius: 10px; overflow: hidden; }.input-prefix span { padding-left: 13px; color: var(--muted); font-size: 13px; }.input-prefix input { border: 0; background: white; border-radius: 0; }.input-prefix:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,95,244,.13); }.input-prefix input:focus { box-shadow: none; }
.policy-editor { margin-top: 20px; }.policy-editor textarea { min-height: 560px; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 14px; }
.login-section { min-height: 72vh; display: grid; place-items: center; padding: 70px 20px; }.login-card,.setup-card { width: min(100%,520px); padding: 42px; border: 1px solid var(--line); background: white; border-radius: 24px; box-shadow: var(--shadow); }.login-card h1,.setup-card h1 { margin: 4px 0 8px; color: var(--navy); font-size: 38px; }.login-card > p,.setup-card > p { margin-top: 0; color: var(--muted); }.stack-form { display: grid; gap: 18px; margin-top: 26px; }
.setup-page { min-height: 100vh; display: grid; place-items: center; padding: 50px 20px; background: var(--canvas); }.setup-card { width: min(100%,760px); }.setup-card > .brand { margin-bottom: 28px; }.setup-card .form-grid { margin-top: 26px; }.divider { height: 1px; margin: 5px 0; background: var(--line); }.success-panel { padding-top: 18px; text-align: center; }.status-dot { display: inline-grid; width: 54px; height: 54px; place-items: center; color: white; background: var(--success); border-radius: 50%; }.status-dot::before { content: "✓"; font-size: 26px; }.success-panel .button { margin-top: 20px; }
.alert { margin: 18px auto; padding: 13px 16px; border-radius: 11px; font-size: 14px; }.alert.error { color: #8d1b13; border: 1px solid #f3bbb7; background: #fff0ef; }.alert.success { color: #086744; border: 1px solid #a9dfc8; background: #eaf9f2; }

.site-footer { padding: 58px 0 20px; color: #bfc9da; background: #0c1730; }.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 70px; }.site-footer strong { color: white; }.site-footer p { max-width: 400px; margin: 8px 0 0; }.site-footer a { display: block; width: fit-content; margin-top: 7px; color: white; }.footer-label { display: block; margin-bottom: 7px; color: #7887a2; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }.footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09); color: #71809a; font-size: 12px; }

@media (max-width: 900px) {
    .hero-grid,.app-hero-grid { grid-template-columns: 1fr; }.hero-card { min-height: 410px; }.hero-grid { gap: 55px; }.app-showcase { min-height: 350px; }
    .app-grid { grid-template-columns: 1fr; }.value-grid { grid-template-columns: 1fr; }.value-grid article { border-right: 0; border-bottom: 1px solid var(--line); }.value-grid article:last-child { border-bottom: 0; }
    .admin-row { grid-template-columns: 52px 1fr; }.admin-actions { grid-column: 1/-1; padding-top: 12px; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
    .container,.narrow { width: min(100% - 28px,1180px); }.header-inner { min-height: 68px; }.main-nav { gap: 14px; }.main-nav a:first-child { display: none; }
    .hero { padding: 60px 0 65px; }.hero h1 { font-size: 47px; }.hero-copy > p { font-size: 17px; }.hero-card { min-height: 355px; border-radius: 28px; }.hero-device { width: 205px; height: 295px; }.document-sheet { transform: scale(.84); }.privacy-pill { left: -45px; width: 195px; font-size: 10px; }
    .section-heading,.admin-heading { display: block; }.section-heading > p { margin-top: 14px; }.admin-heading .button { margin-top: 20px; }.apps-section { padding: 72px 0; }
    .app-card { grid-template-columns: 82px 1fr; gap: 18px; padding: 21px; }.app-icon { width: 82px; height: 82px; border-radius: 20px; }.app-card p { min-height: 0; }.trust-strip .container { flex-direction: column; gap: 8px; text-align: center; }
    .form-grid,.footer-grid { grid-template-columns: 1fr; }.field.full,.divider.full { grid-column: auto; }.form-panel,.login-card,.setup-card { padding: 24px; }.form-actions { flex-direction: column-reverse; }.form-actions .button { width: 100%; }.admin-actions { flex-wrap: wrap; gap: 12px 18px; }
    .app-hero { padding: 60px 0; }.app-hero h1,.document-header h1 { font-size: 43px; }.large-icon { width: 175px; height: 175px; }.footer-grid { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }
