/* AXIOMIC — Apps section (apps/index.html, apps/<app>/index.html). The company site's palette and type
   (Figtree, Fragment Mono, black canvas) with product pages laid out like Apple's: a global header that scrolls
   away, a sticky product bar, big statements, alternating feature rows, pricing, tech specs. */
:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #0d0d0f;
  --panel-2: #131417;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.52);
  --purple: #814ac8;
  --pink: #df7afe;
  --cyan: #55d6ff;
  --green: #45d18f;
  --green-deep: #1f6b49;
  --amber: #f5a634;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; min-width: 320px; background: var(--bg); color: var(--text);
  font: 17px/1.55 "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.mono { font-family: "Fragment Mono", ui-monospace, monospace; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* global header (company) */
.site-header { border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(18px); }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 12px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--pink)); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset; }
.brand-mark svg { width: 20px; height: 20px; }
.site-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.site-links a:hover, .site-links a[aria-current] { color: var(--text); }
.header-action { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px; background: rgba(255, 255, 255, 0.05); font-size: 14px; font-weight: 700; }
.header-action:hover { border-color: rgba(223, 122, 254, 0.56); background: rgba(129, 74, 200, 0.2); }

/* product bar */
.product-bar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 12, 0.72); backdrop-filter: saturate(180%) blur(20px); }
.product-bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 16px; max-width: 1200px; }
.product-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; white-space: nowrap; }
.product-name img { width: 26px; height: 26px; }
.product-links { display: flex; align-items: center; gap: 22px; font-size: 13px; color: var(--muted); }
.product-links a:hover { color: var(--text); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 999px;
  background: var(--green); color: #04120b; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill:hover { filter: brightness(1.08); }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font-weight: 700; font-size: 16px; border: 1px solid transparent; transition: transform 160ms ease, filter 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green); color: #04120b; box-shadow: 0 10px 40px rgba(69, 209, 143, 0.25); }
.button-primary:hover { filter: brightness(1.06); }
.button-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.04); }
.link-more { color: var(--green); font-weight: 600; }
.link-more::after { content: " ›"; }

/* type */
.eyebrow { font-family: "Fragment Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; }
.display { font-size: clamp(48px, 9vw, 104px); line-height: 0.98; font-weight: 800; }
.headline { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.04; font-weight: 800; }
.title { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; font-weight: 750; }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; color: var(--muted); font-weight: 500; }
.gradient { background: linear-gradient(100deg, #fff 10%, #b8ffd9 45%, var(--green) 70%, var(--cyan)); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.small { font-size: 14px; color: var(--soft); }

/* sections */
section { padding: 120px 0; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; max-width: 760px; }
.hero { padding: 96px 0 40px; text-align: center; overflow: hidden; }
.hero .icon { width: 112px; height: 112px; margin: 0 auto 26px; filter: drop-shadow(0 20px 50px rgba(69, 209, 143, 0.35)); }
.hero .lede { max-width: 780px; margin: 22px auto 34px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .small { margin-top: 18px; }
.stage { position: relative; margin-top: 64px; }
.stage::before { content: ""; position: absolute; inset: 8% 10% -6%; background: radial-gradient(60% 60% at 50% 40%, rgba(69, 209, 143, 0.28), transparent 70%),
  radial-gradient(40% 50% at 80% 70%, rgba(129, 74, 200, 0.28), transparent 70%); filter: blur(30px); z-index: 0; }
.device { position: relative; z-index: 1; margin: 0 auto; max-width: 1040px; padding: 12px; border-radius: 26px;
  background: linear-gradient(180deg, #2a2b30, #111215); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 50px 120px rgba(0, 0, 0, 0.6); }
.device img { border-radius: 16px; }
.device-base { position: relative; z-index: 1; width: 108%; max-width: 1120px; height: 16px; margin: 0 auto; border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, #3a3b40, #1a1b1f); transform: translateX(-3.7%); }
.device-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 7px; transform: translateX(-50%);
  border-radius: 0 0 10px 10px; background: #0f1012; }
.shot { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); }

/* highlights */
.highlights { padding-top: 80px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 16px; overflow-x: auto; padding: 32px 24px 16px;
  scroll-snap-type: x mandatory; scroll-padding: 0 24px; scrollbar-width: none; max-width: 1120px; margin: 0 auto; }
.rail::-webkit-scrollbar { display: none; }
.tile { scroll-snap-align: start; min-height: 300px; padding: 28px; border-radius: var(--radius); background: var(--panel-2);
  border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.tile .glyph { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: rgba(69, 209, 143, 0.12); border: 1px solid rgba(69, 209, 143, 0.28); }
.tile h3 { font-size: 26px; line-height: 1.15; }
.tile p { margin: 0; color: var(--muted); }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature > * { min-width: 0; }
.feature.flip .copy { order: 2; }
.feature .headline { font-size: clamp(34px, 4.4vw, 54px); }
.feature .copy p { color: var(--muted); font-size: 19px; margin: 18px 0 0; }
.feature ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.feature li { display: flex; gap: 12px; color: var(--muted); }
.feature li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.wide { margin-top: 56px; }

/* app-like mockups */
.mock { border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, #17181c, #0e0f12); padding: 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); }
.search { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #1d1f24; border: 1px solid var(--line-strong); font-size: 17px; }
.search .caret { width: 2px; height: 20px; background: var(--green); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.result { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px; margin-top: 10px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.result .file { width: 44px; height: 52px; border-radius: 8px; background: linear-gradient(180deg, #f3f4f6, #d9dce2); position: relative; }
.result .file::after { content: attr(data-ext); position: absolute; left: 6px; bottom: 6px; font: 700 9px "Fragment Mono", monospace; color: #c0392b; }
.result b { display: block; font-size: 15px; }
.result span { font-size: 13px; color: var(--soft); }
.badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; font: 600 11px "Fragment Mono", monospace; letter-spacing: 0.04em;
  color: var(--green); background: rgba(69, 209, 143, 0.12); border: 1px solid rgba(69, 209, 143, 0.3); white-space: nowrap; }
.badge.amber { color: var(--amber); background: rgba(245, 166, 52, 0.12); border-color: rgba(245, 166, 52, 0.3); }
.badge.violet { color: #c4a6ff; background: rgba(150, 110, 255, 0.12); border-color: rgba(150, 110, 255, 0.3); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.doc { padding: 18px; border-radius: 16px; background: #15161a; border: 1px solid var(--line); }
.doc .type { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.doc h4 { margin: 0 0 12px; font-size: 16px; }
.doc dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.doc dt { color: var(--soft); } .doc dd { margin: 0; }
.clone { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.clone .files { display: grid; gap: 10px; }
.clone .f { padding: 12px 14px; border-radius: 12px; background: #17181c; border: 1px solid var(--line); font-size: 14px; }
.clone .f small { display: block; color: var(--soft); font-size: 12px; }
.clone .arrow { font-size: 28px; color: var(--green); }
.clone .block { padding: 18px; border-radius: 14px; border: 1px dashed rgba(69, 209, 143, 0.5); background: rgba(69, 209, 143, 0.07); text-align: center; }
.clone .block b { display: block; font-size: 28px; }

/* numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.number { padding: 26px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); }
.number b { display: block; font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.number span { display: block; margin-top: 10px; color: var(--muted); }

/* privacy */
.privacy { background: radial-gradient(60% 45% at 50% 32%, rgba(69, 209, 143, 0.11), transparent 72%); }
.lock { width: 76px; height: 76px; margin: 0 auto 28px; display: grid; place-items: center; border-radius: 22px;
  background: linear-gradient(160deg, rgba(69, 209, 143, 0.3), rgba(69, 209, 143, 0.05)); border: 1px solid rgba(69, 209, 143, 0.35); }
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; text-align: left; }
.point { padding: 24px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line); }
.point h3 { font-size: 19px; margin-bottom: 8px; } .point p { margin: 0; color: var(--muted); font-size: 15px; }

/* languages */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 14px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 24px; background: var(--panel-2); border: 1px solid var(--line); }
.plan.featured { border-color: rgba(69, 209, 143, 0.55); box-shadow: 0 0 0 1px rgba(69, 209, 143, 0.25), 0 30px 80px rgba(69, 209, 143, 0.12); }
.plan .ribbon { position: absolute; top: -12px; left: 30px; }
.plan h3 { font-size: 24px; }
.plan .who { color: var(--soft); margin: 6px 0 18px; font-size: 15px; }
.plan .price { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan .per { color: var(--muted); font-size: 15px; margin-top: 8px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--muted); font-size: 15px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 800; }
.plan .button { width: 100%; }
.plan .button + .button { margin-top: 10px; }
.fine { margin-top: 26px; text-align: center; }

/* specs */
.specs { border-top: 1px solid var(--line); margin-top: 48px; }
.spec { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.spec h3 { font-size: 19px; }
.spec p, .spec li { color: var(--muted); margin: 0; }
.spec ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.compare th { color: var(--text); font-weight: 700; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-size: 19px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; max-width: 820px; }

/* closing + footer */
.closing { text-align: center; padding: 140px 0; background: radial-gradient(50% 70% at 50% 100%, rgba(69, 209, 143, 0.16), transparent 70%); }
.closing .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.footer { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--soft); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* apps index */
.app-card { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; padding: 40px; border-radius: 28px;
  background: linear-gradient(150deg, #121317, #0b0c0e); border: 1px solid var(--line); margin-top: 56px; transition: border-color 200ms ease, transform 200ms ease; }
.app-card:hover { border-color: rgba(69, 209, 143, 0.45); transform: translateY(-2px); }
.app-card img { width: 180px; height: 180px; filter: drop-shadow(0 20px 40px rgba(69, 209, 143, 0.3)); }
.app-card h2 { font-size: 40px; }
.app-card p { color: var(--muted); margin: 10px 0 18px; font-size: 19px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

/* motion */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .search .caret { animation: none; }
}

/* responsive */
@media (max-width: 980px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feature.flip .copy { order: 0; }
  .plans, .points, .numbers { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .site-links { display: none; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  section { padding: 80px 0; }
  .product-links a:not(.pill) { display: none; }
  .plans, .points, .numbers { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; gap: 10px; }
  .app-card { grid-template-columns: 1fr; text-align: center; padding: 28px; }
  .app-card img { margin: 0 auto; width: 140px; height: 140px; }
  .meta { justify-content: center; }
  .clone { grid-template-columns: 1fr; }
  .clone .arrow { transform: rotate(90deg); text-align: center; }
  .rail { padding: 24px 16px 12px; }
  .device-base { display: none; }
  .header-action { display: none; }
}
