:root {
  --paper: #f5f2ea;
  --ink: #102018;
  --muted: #5b655f;
  --line: rgba(16, 32, 24, 0.14);
  --card: rgba(255, 255, 255, 0.76);
  --shadow: 0 26px 70px rgba(22, 30, 25, 0.12);
  --radius: 28px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.96), transparent 28rem),
    var(--paper);
  color: var(--ink);
}
body.app-page {
  --accent: #65f2c2;
  --accent-2: #4b87ff;
  --soft: #e8fff7;
  --app-ink: #081c2c;
  color: var(--app-ink);
  background:
    radial-gradient(circle at 80% -8%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 31rem),
    linear-gradient(180deg, var(--soft), #fff 42%, #f6f3ec 100%);
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .8rem 1rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16,32,24,.08);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(18px);
}
.app-page .site-header { background: color-mix(in srgb, var(--soft) 76%, transparent); }
.nav {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  text-decoration: none;
  font-weight: 780;
  letter-spacing: -.025em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 10px 10px 16px 10px;
  font-size: .78rem;
}
.nav-links { display: flex; align-items: center; gap: .4rem; }
.nav-links a {
  padding: .65rem .8rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
}
.nav-links a:hover, .nav-links a:focus-visible { background: rgba(255,255,255,.7); color: inherit; }

.catalog-hero, .app-hero, .legal-hero {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}
.catalog-hero {
  min-height: 530px;
  padding: 7.5rem 0 4rem;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 4rem;
}
.eyebrow {
  margin: 0 0 1rem;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 850px;
  margin-bottom: 1.4rem;
  font-family: Iowan Old Style, "Palatino Linotype", Georgia, serif;
  font-size: clamp(3.2rem, 7vw, 6.9rem);
  font-weight: 500;
  line-height: .91;
  letter-spacing: -.062em;
}
.catalog-hero h1 em { color: #b94f2c; font-style: italic; }
.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.7vw, 1.32rem);
  line-height: 1.6;
}
.catalog-orbit {
  position: relative;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.catalog-orbit::before, .catalog-orbit::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(16,32,24,.18);
  border-radius: 50%;
}
.catalog-orbit::after { inset: 38%; background: #17271e; }
.orbit-icon {
  position: absolute;
  width: 68px;
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(0,0,0,.16);
  transform: translate(-50%,-50%) rotate(var(--r));
}

.catalog {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto 7rem;
}
.catalog-head {
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}
.catalog-head h2, .section-title {
  margin-bottom: .35rem;
  font-family: Iowan Old Style, "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.2rem, 4.7vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
}
.catalog-head p { margin: 0; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  border: 1px solid var(--line);
  padding: .62rem .9rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.filter[aria-pressed="true"], .filter:hover { background: #13251a; color: #fff; }
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.app-card {
  min-height: 430px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 86%, var(--card-accent) 14%);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.app-card-top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.app-icon { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.card-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: transform .25s ease;
}
.app-card:hover .card-arrow { transform: rotate(-35deg); }
.card-space { flex: 1; min-height: 78px; }
.card-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.pill {
  display: inline-flex;
  padding: .4rem .65rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  font-size: .72rem;
  color: color-mix(in srgb, currentColor 72%, transparent);
}
.app-card h3 { margin-bottom: .55rem; font-size: 1.55rem; letter-spacing: -.035em; }
.app-card p { margin: 0; color: color-mix(in srgb, currentColor 68%, transparent); line-height: 1.5; }

.app-hero {
  min-height: 690px;
  padding: 5.8rem 0 4.5rem;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 5rem;
}
.app-title-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.app-title-row .app-icon { width: 74px; height: 74px; }
.app-title-row strong { display: block; font-size: 1.08rem; }
.app-title-row span { color: color-mix(in srgb, var(--app-ink) 62%, transparent); font-size: .88rem; }
.app-hero h1 { color: var(--app-ink); font-size: clamp(3.4rem, 6.5vw, 6.6rem); }
.app-hero .hero-copy { color: color-mix(in srgb, var(--app-ink) 65%, transparent); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 50px;
  padding: .78rem 1.05rem;
  border: 1px solid var(--app-ink, #102018);
  border-radius: 14px;
  background: var(--app-ink, #102018);
  color: #fff;
  text-decoration: none;
  font-weight: 720;
}
.button.secondary { background: transparent; color: var(--app-ink, #102018); }
.button.disabled { opacity: .55; cursor: default; }
.hero-stage {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--app-ink) 14%, transparent);
  border-radius: 42% 58% 45% 55% / 55% 42% 58% 45%;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.18)),
    var(--accent);
  box-shadow: 0 40px 100px color-mix(in srgb, var(--accent-2) 22%, transparent);
  overflow: hidden;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px dashed color-mix(in srgb, var(--app-ink) 25%, transparent);
  border-radius: inherit;
  transform: rotate(13deg);
}
.stage-card {
  position: relative;
  z-index: 2;
  width: min(82%, 360px);
  padding: 1.6rem;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 30px;
  background: rgba(255,255,255,.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.stage-card .app-icon { width: 118px; height: 118px; border-radius: 30px; margin-bottom: 2.2rem; }
.stage-motif { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.16rem; font-weight: 700; letter-spacing: .04em; }
.stage-line { height: 9px; margin-top: 1rem; border-radius: 999px; background: color-mix(in srgb, var(--accent-2) 40%, #e9ecf1); }
.stage-line.short { width: 64%; }
.floating-chip {
  position: absolute;
  z-index: 3;
  padding: .72rem .9rem;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 35px rgba(0,0,0,.1);
  font-size: .78rem;
  font-weight: 760;
}
.floating-chip.one { top: 14%; right: 12%; }
.floating-chip.two { bottom: 14%; left: 11%; }

.proof-strip {
  border-block: 1px solid color-mix(in srgb, var(--app-ink) 12%, transparent);
  background: rgba(255,255,255,.5);
}
.proof-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.proof-item { padding: 1.4rem 1.6rem; border-right: 1px solid color-mix(in srgb, var(--app-ink) 12%, transparent); }
.proof-item:last-child { border-right: 0; }
.proof-item span { display: block; margin-bottom: .25rem; color: color-mix(in srgb, var(--app-ink) 55%, transparent); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.proof-item strong { font-size: .95rem; }

.section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 7rem 0;
}
.section-head { max-width: 710px; margin-bottom: 2.5rem; }
.section-head p { color: color-mix(in srgb, var(--app-ink) 60%, transparent); line-height: 1.65; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feature-card {
  min-height: 260px;
  padding: 2rem;
  border: 1px solid color-mix(in srgb, var(--app-ink) 12%, transparent);
  border-radius: 28px;
  background: rgba(255,255,255,.68);
}
.feature-no {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 3rem;
  border: 1px solid color-mix(in srgb, var(--app-ink) 20%, transparent);
  border-radius: 50%;
  color: color-mix(in srgb, var(--app-ink) 58%, transparent);
  font-size: .78rem;
}
.feature-card h3 { font-size: 1.5rem; letter-spacing: -.03em; }
.feature-card p { color: color-mix(in srgb, var(--app-ink) 62%, transparent); line-height: 1.62; }
.notes-panel {
  margin-top: 1rem;
  padding: 2.4rem;
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 2rem;
  border-radius: 28px;
  background: var(--app-ink);
  color: #fff;
}
.notes-list { display: grid; gap: .8rem; }
.notes-list p { margin: 0; padding-bottom: .8rem; border-bottom: 1px solid rgba(255,255,255,.16); line-height: 1.5; }
.notes-list p:last-child { border-bottom: 0; }

.closing {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto 6rem;
  padding: 4rem;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--app-ink);
  text-align: center;
}
.closing h2 { max-width: 750px; margin: 0 auto 1rem; font-family: Iowan Old Style, Georgia, serif; font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.closing p { margin-bottom: 1.7rem; }

.legal-hero { padding: 6rem 0 3rem; }
.legal-hero h1 { max-width: 940px; font-size: clamp(3rem, 6vw, 5.8rem); }
.legal-layout {
  width: min(calc(100% - 2rem), 960px);
  margin: 0 auto 7rem;
  display: grid;
  gap: 1rem;
}
.legal-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
}
.legal-card h2 { font-size: 1.35rem; }
.legal-card p, .legal-card li { color: var(--muted); line-height: 1.7; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1.25rem 0; cursor: pointer; font-weight: 720; }
.faq details p { padding-bottom: 1.2rem; }

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-size: .86rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .app-card { transition: none; }
}
@media (max-width: 900px) {
  .catalog-hero, .app-hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .catalog-hero { padding-top: 5.5rem; }
  .catalog-orbit { min-height: 280px; max-width: 520px; width: 100%; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .app-hero { padding-top: 4.5rem; }
  .hero-stage { min-height: 390px; max-width: 620px; width: 100%; }
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-apps) { display: none; }
  .catalog-hero { min-height: 0; padding-top: 4rem; }
  .catalog-orbit { min-height: 240px; }
  .orbit-icon { width: 52px; border-radius: 15px; }
  .catalog-head { align-items: start; flex-direction: column; }
  .app-grid, .feature-grid, .proof-inner, .notes-panel { grid-template-columns: 1fr; }
  .app-card { min-height: 370px; }
  .proof-item { border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--app-ink) 12%, transparent); }
  .proof-item:last-child { border-bottom: 0; }
  .app-hero { min-height: 0; }
  .hero-stage { min-height: 340px; }
  .stage-card .app-icon { width: 92px; height: 92px; }
  .section { padding: 4.8rem 0; }
  .notes-panel { padding: 1.6rem; }
  .closing { padding: 3rem 1.3rem; }
  .footer-inner { flex-direction: column; }
}
