:root {
  --bg: #0b0d12;
  --surface: #141821;
  --surface-2: #1b2130;
  --text: #eef1f7;
  --muted: #9aa4b6;
  --border: #262d3b;
  --accent: #6366f1;
  --accent-2: #f97316;
  --radius: 18px;
  --max: 1040px;
  --shadow: 0 10px 40px rgba(0,0,0,.25);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-2: #f0f2f7;
    --text: #101521;
    --muted: #5a6577;
    --border: #e5e9f0;
    --shadow: 0 10px 40px rgba(20,30,60,.08);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.nav a { color: var(--muted); margin-left: 22px; font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 88px 0 56px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 420px;
  background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 6.2vw, 58px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.025em; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 auto; }

/* Value chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px;
}
.chip svg { width: 16px; height: 16px; color: var(--accent); }

/* Sections */
section { scroll-margin-top: 80px; }
.section-head { text-align: center; margin: 0 auto 40px; max-width: 640px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.pad { padding: 64px 0; }
.pad-t { border-top: 1px solid var(--border); }

/* Value pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center;
}
.pillar .ico {
  width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 13px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.pillar .ico svg { width: 24px; height: 24px; }
.pillar h3 { margin: 0 0 8px; font-size: 18px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }

/* Story */
.story { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.story .photo { margin: 0; }
.story .photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.story .photo figcaption { color: var(--muted); font-size: 13px; text-align: center; margin-top: 12px; }
.story h2 { font-size: clamp(24px, 3.6vw, 34px); margin: 0 0 18px; letter-spacing: -0.02em; }
.story p { color: var(--text); margin: 0 0 16px; }
.story p.muted { color: var(--muted); }
.pullquote {
  border-left: 3px solid var(--accent); padding-left: 18px; margin: 22px 0;
  font-size: 18px; font-style: italic; color: var(--text);
}

/* App grid */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.app-card {
  display: flex; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.app-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: var(--shadow); text-decoration: none; }
.app-icon {
  width: 66px; height: 66px; border-radius: 16px; flex-shrink: 0; object-fit: cover;
  display: grid; place-items: center; font-weight: 700; font-size: 26px; color: #fff;
}
.app-meta h3 { margin: 0 0 4px; font-size: 18px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.app-meta p { margin: 0; font-size: 14px; color: var(--muted); }
.pill-os { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }

/* Buttons / badges */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 13px;
}
.btn:hover { text-decoration: none; opacity: .93; }
.btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn.soon { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--border); cursor: default; }
.btn svg { width: 18px; height: 18px; }

/* App landing hero */
.app-hero { display: flex; gap: 28px; align-items: center; padding: 64px 0 40px; }
.app-hero .big-icon { width: 108px; height: 108px; border-radius: 26px; flex-shrink: 0; box-shadow: var(--shadow); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 44px; }
.app-hero h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 8px; letter-spacing: -0.02em; }
.app-hero .lede { color: var(--muted); font-size: 18px; margin: 0 0 20px; max-width: 560px; }
.app-hero .os-tag { display: inline-block; font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; margin-bottom: 14px; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Note / disclaimer box */
.note {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; color: var(--muted); font-size: 15px;
}
.note strong { color: var(--text); }

/* Screenshot gallery */
.shots {
  display: flex; gap: 20px; overflow-x: auto; padding: 6px 4px 20px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.shot {
  flex: 0 0 auto; width: 244px; scroll-snap-align: center;
  border-radius: 30px; overflow: hidden;
  border: 6px solid var(--surface-2);
  box-shadow: var(--shadow);
  background: var(--surface-2);
}
.shot img { display: block; width: 100%; height: auto; border-radius: 24px; }
.shots-hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 780px) { .shot { width: 200px; } }

/* Content pages */
.content { padding: 56px 0 80px; }
.content h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: -0.01em; }
.content .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.content h2 { font-size: 22px; margin: 34px 0 12px; }
.content p, .content li { color: var(--text); }
.content ul { padding-left: 20px; }
.content .muted { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 34px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
.site-footer a { color: var(--muted); margin-right: 18px; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 780px) {
  .pillars { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 28px; }
  .story .photo { order: -1; }
  .features { grid-template-columns: 1fr; }
  .app-hero { flex-direction: column; text-align: center; }
  .app-hero .btn-row { justify-content: center; }
  .nav a { margin-left: 14px; }
}
