/* YUHI website — tokens mirror Packages/YuhiUI/YuhiTheme.swift */
@font-face {
  font-family: "Archivo Expanded";
  src: url("/assets/fonts/archivo-expanded.woff2") format("woff2");
  font-weight: 600 800;
  font-stretch: 125%;
  font-display: swap;
}

:root {
  --amber: #F5A33C;
  --coral: #F0684A;
  --moon: #DCE2EE;
  --blue: #8FB2FF;
  --text: #F6F3EC;
  --text-2: rgba(246, 243, 236, 0.66);
  --text-3: rgba(246, 243, 236, 0.44);
  --line: rgba(255, 255, 255, 0.08);
  --surface: #0C1229;
  --surface-2: #111938;
  --bg: #060914;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-brand: "Archivo Expanded", var(--font);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--amber); color: #0B1020; padding: 8px 14px; border-radius: 10px; }
.num { font-family: var(--font-rounded); font-variant-numeric: tabular-nums; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 9, 20, 0.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.wordmark { font-family: var(--font-brand); font-stretch: 125%; font-weight: 800; letter-spacing: 0.05em; font-size: 17px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--text-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } .nav { gap: 18px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 14px; font-weight: 600; font-size: 16px; border: 1px solid transparent; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--text); color: #0B1020; }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.16); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 88px 0 96px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 70%, rgba(242, 107, 74, 0.22), transparent 70%),
    radial-gradient(50% 45% at 70% 40%, rgba(74, 111, 194, 0.22), transparent 70%),
    linear-gradient(180deg, #070B1A 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } .hero { padding-top: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); margin-bottom: 24px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--amber), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(18px, 1.8vw, 20px); color: var(--text-2); max-width: 520px; margin: 22px 0 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 14px; color: var(--text-3); list-style: none; padding: 0; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 15px; height: 15px; color: var(--amber); }

/* Phone mockup (drawn in CSS, fed by sky.js) */
.phone { position: relative; width: 300px; max-width: 100%; aspect-ratio: 300 / 620; margin: 0 auto; border-radius: 48px; padding: 10px; background: linear-gradient(145deg, #2A2F3D, #12151E); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.screen { position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: linear-gradient(180deg, #121C45, #3E5BA9 55%, #F4A548); transition: background 1.2s ease-in-out; display: flex; flex-direction: column; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.scr-top { padding: 52px 20px 0; }
.scr-place { font-size: 13px; color: rgba(246, 243, 236, 0.75); display: flex; align-items: center; gap: 5px; }
.scr-label { font-size: 13px; color: rgba(246, 243, 236, 0.8); margin-top: 14px; }
.scr-count { font-family: var(--font-rounded); font-variant-numeric: tabular-nums; font-size: 44px; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.scr-arc { position: relative; margin-top: 18px; height: 120px; }
.scr-arc svg { width: 100%; height: 100%; overflow: visible; }
.scr-arc .path { fill: none; stroke: rgba(246, 243, 236, 0.55); stroke-width: 1.6; stroke-dasharray: 0.5 6; stroke-linecap: round; }
.scr-arc .horizon { stroke: rgba(246, 243, 236, 0.5); stroke-width: 1; }
.scr-arc .sun { fill: var(--amber); filter: drop-shadow(0 0 8px rgba(245, 163, 60, 0.95)); }
.scr-ground { flex: 1; background: linear-gradient(180deg, rgba(6, 9, 20, 0.15), rgba(6, 9, 20, 0.92) 26%); padding: 16px 14px 18px; display: grid; gap: 8px; align-content: start; }
.scr-card { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 16px; background: rgba(14, 21, 49, 0.78); border: 1px solid rgba(255, 255, 255, 0.07); font-size: 13px; color: rgba(246, 243, 236, 0.8); }
.scr-card b { font-family: var(--font-rounded); font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 600; }

/* Today strip */
.today { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #070B19; }
.today .wrap { display: grid; grid-template-columns: repeat(6, 1fr); }
.today .cell { padding: 22px 0 22px 20px; border-left: 1px solid var(--line); }
.today .cell:first-child { border-left: 0; padding-left: 0; }
.today .label { font-size: 13px; color: var(--text-3); }
.today .time { font-family: var(--font-rounded); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 600; }
.today-note { font-size: 13px; color: var(--text-3); text-align: center; padding: 14px 0 0; }
@media (max-width: 760px) {
  .today .wrap { grid-template-columns: repeat(3, 1fr); }
  .today .cell { padding: 16px 0 16px 14px; }
  .today .cell:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .today .cell:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .today .time { font-size: 20px; }
}
.t-amber { color: var(--amber); } .t-coral { color: var(--coral); } .t-blue { color: var(--blue); } .t-moon { color: var(--moon); }

/* Sections */
section { padding: 112px 0; }
@media (max-width: 720px) { section { padding: 80px 0; } }
.head { max-width: 640px; margin-bottom: 56px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: block; font-size: 14px; font-weight: 600; color: var(--amber); margin-bottom: 12px; }
.head h2 { font-size: clamp(30px, 3.8vw, 44px); }
.head p { color: var(--text-2); font-size: 19px; margin-top: 16px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--bg); padding: 32px 30px 34px; }
.feature .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(245, 163, 60, 0.12); color: var(--amber); margin-bottom: 20px; }
.feature .ico.coral { background: rgba(240, 104, 74, 0.12); color: var(--coral); }
.feature .ico.blue { background: rgba(143, 178, 255, 0.12); color: var(--blue); }
.feature .ico.moon { background: rgba(220, 226, 238, 0.1); color: var(--moon); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 16px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 48px; } }
.split h2 { font-size: clamp(30px, 3.8vw, 44px); }
.split .body { color: var(--text-2); font-size: 18px; margin-top: 18px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: rgba(245, 163, 60, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11.5l2.8 2.7L15.5 8.5' fill='none' stroke='%23F5A33C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; }

.privacy-card { border-radius: 28px; padding: 40px; background: radial-gradient(80% 70% at 50% 0%, rgba(74, 111, 194, 0.22), transparent 70%), var(--surface); border: 1px solid var(--line); text-align: center; }
.privacy-card .shield { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 22px; display: grid; place-items: center; background: rgba(245, 163, 60, 0.12); color: var(--amber); }
.privacy-card .shield svg { width: 36px; height: 36px; }
.privacy-card .big { font-size: 22px; font-weight: 650; }
.privacy-card .small { color: var(--text-2); font-size: 15px; margin-top: 8px; }
.label-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.label-row span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); }

/* Devices */
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .devices { grid-template-columns: 1fr; } }
.device { border: 1px solid var(--line); border-radius: 24px; padding: 30px; background: var(--surface); }
.device h3 { font-size: 20px; margin: 18px 0 8px; }
.device p { color: var(--text-2); font-size: 16px; }
.device .ico { color: var(--text-2); }
.device .ico svg { width: 30px; height: 30px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--text-2); padding: 0 0 22px; }

/* CTA */
.cta-band { text-align: center; }
.cta-box { border-radius: 32px; padding: 72px 24px; position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--line); }
.cta-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0B1230 0%, #1E3170 45%, #5A4FA0 75%, #F26B4A 115%); }
.cta-box img { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.cta-box h2 { font-size: clamp(30px, 4vw, 44px); }
.cta-box p { color: rgba(246, 243, 236, 0.8); font-size: 18px; max-width: 520px; margin: 14px auto 30px; }
.cta-box .btn-row { justify-content: center; }

/* Footer */
.site-footer { padding: 40px 0 56px; font-size: 14px; color: var(--text-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }

/* Prose pages */
.page-hero { padding: 80px 0 24px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 52px); }
.page-hero p { color: var(--text-2); margin-top: 14px; font-size: 18px; }
.prose { max-width: 760px; padding-top: 16px; padding-bottom: 112px; }
.prose h2 { font-size: 24px; margin: 52px 0 14px; letter-spacing: -0.01em; }
.prose p, .prose li { color: rgba(246, 243, 236, 0.8); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 12px 0 0; }
.prose li { margin: 8px 0; }
.prose .summary { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px; margin-bottom: 32px; }
.prose .summary p { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text-3); font-weight: 500; font-size: 15px; width: 34%; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: rgba(255, 255, 255, 0.07); padding: 2px 6px; border-radius: 6px; }
.prose .faq { margin: 0; }
.contact-card { margin-top: 56px; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.contact-card p { color: var(--text-2) !important; margin: 4px 0 0; }
.contact-card strong { font-size: 18px; }
.downloads { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); margin: 20px 0; }
.downloads a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; color: var(--text); font-size: 15px; }
.downloads a:hover { text-decoration: none; border-color: rgba(245, 163, 60, 0.5); }
.downloads img { width: 100%; border-radius: 22%; margin-bottom: 12px; }
.downloads span { font-size: 13px; color: var(--text-3); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 14px; }
.notfound p { color: var(--text-2); margin-bottom: 28px; }

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