/* Tipto marketing site — hand-written, no build step. */

:root {
  --bg: #0b1120;
  --bg-elev: #111a2d;
  --bg-elev-2: #16223a;
  --line: rgba(199, 206, 216, 0.12);
  --line-strong: rgba(199, 206, 216, 0.22);
  --text: #e8edf5;
  --text-muted: #9aa8bd;
  --text-dim: #6f7f97;

  --blue: #7997d8;
  --amber: #c99b62;
  --teal: #68aa9d;
  --purple: #a78bc3;
  --paper: #c7ced8;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --gutter: 24px;

  --font-sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow behind the top of the page. */
body::before {
  content: "";
  position: fixed;
  inset: -40vh 0 auto 0;
  height: 90vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(48vw 44vh at 22% 40%, rgba(121, 151, 216, 0.16), transparent 70%),
    radial-gradient(42vw 40vh at 78% 30%, rgba(104, 170, 157, 0.13), transparent 70%),
    radial-gradient(36vw 36vh at 52% 62%, rgba(167, 139, 195, 0.12), transparent 72%);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: #9db4e6; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.021em;
  font-weight: 640;
}

p { margin: 0; }

::selection { background: rgba(121, 151, 216, 0.35); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

section { padding-block: 104px; position: relative; z-index: 1; }
section.tight { padding-block: 72px; }

.rule { border-top: 1px solid var(--line); }

.eyebrow {
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 18px;
}

.lede { color: var(--text-muted); font-size: 19px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(11, 17, 32, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 17, 32, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 660;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand:hover { color: var(--text); }

.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 580;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #8ba7e2, #6f8ed2);
  color: #0b1120;
}
.btn-primary:hover { background: linear-gradient(180deg, #9db6ea, #7d9bdb); color: #0b1120; }

.btn-ghost {
  background: rgba(199, 206, 216, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(199, 206, 216, 0.11); color: var(--text); }

.btn svg { width: 17px; height: 17px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }

/* ---------- Hero ---------- */

.hero { padding-block: 96px 88px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(199, 206, 216, 0.04);
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(104, 170, 157, 0.18);
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 54px);
  letter-spacing: -0.032em;
  font-weight: 680;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--blue), var(--teal) 55%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede { margin-top: 22px; max-width: 540px; }
.hero .btn-row { margin-top: 34px; }

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------- App schematic ---------- */

.mock {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--bg-elev-2), var(--bg-elev));
  box-shadow: 0 34px 70px -28px rgba(0, 8, 20, 0.9);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 17, 32, 0.45);
}
.mock-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(199, 206, 216, 0.2);
}
.mock-bar span {
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.mock-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 330px;
}

.mock-side {
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-side b {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  padding: 10px 10px 6px;
}
.mock-side a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.mock-side a.on { background: rgba(121, 151, 216, 0.14); color: var(--text); }
.mock-side a .sw { width: 7px; height: 7px; border-radius: 2px; flex: none; }

.mock-main { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.mock-title { font-size: 16px; font-weight: 620; }
.mock-sub { font-size: 12.5px; color: var(--text-dim); font-family: var(--font-mono); }

.mock-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 15px;
  background: rgba(11, 17, 32, 0.4);
}
.mock-card h5 {
  margin: 0 0 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-card h5::before {
  content: "";
  width: 3px; height: 13px; border-radius: 2px;
  background: var(--accent-color, var(--blue));
}
.line {
  height: 7px;
  border-radius: 4px;
  background: rgba(199, 206, 216, 0.13);
  margin-bottom: 7px;
}
.line:last-child { margin-bottom: 0; }

.cite {
  display: inline-block;
  margin-top: 9px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--blue);
  border: 1px solid rgba(121, 151, 216, 0.3);
  background: rgba(121, 151, 216, 0.1);
  border-radius: 5px;
  padding: 1px 6px;
}

@media (max-width: 520px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .mock-side b { display: none; }
}

/* ---------- Mascot ---------- */

/* The mascot is a charcoal silhouette with two small cream eyes, so on this dark
   background it needs a genuinely light plate behind it rather than a faint
   glow — otherwise it reads as a smudge. The plate is a soft-edged disc on
   ::before, sized as a share of the box so it scales with the image. */
.mascot {
  position: relative;
  display: block;
  line-height: 0;
}
/* Variant B: lift the charcoal body so it reads directly on the navy, with only
   a soft halo for separation — keeps the floating-sprite feel. */
.mascot::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 46%,
    rgba(167, 139, 195, 0.3) 0%,
    rgba(121, 151, 216, 0.18) 50%,
    transparent 72%
  );
  filter: blur(10px);
}
.mascot img {
  position: relative;
  width: 100%;
  height: auto;
  filter: brightness(1.95) drop-shadow(0 8px 18px rgba(0, 8, 20, 0.5));
}

/* Every mascot image carries width/height attributes matching its rendered size,
   so if this stylesheet is missing or stale the image still lands at roughly the
   right size instead of ballooning to its intrinsic 512px. */
.mascot-brand {
  width: 46px;
  flex: none;
  margin-left: -4px;
}
/* Too small for the halo to help; it just muddies the silhouette at this size. */
.mascot-brand::before { display: none; }

.mascot-404 {
  width: 190px;
  margin: 0 auto 26px;
}

/* ---------- Trust strip ---------- */

.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.strip svg { width: 16px; height: 16px; color: var(--teal); flex: none; }

/* ---------- Pillars (three in, one out) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: linear-gradient(180deg, rgba(22, 34, 58, 0.7), rgba(17, 26, 45, 0.5));
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent-color);
}
.pillar .n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-color);
  letter-spacing: 0.1em;
}
.pillar h3 { font-size: 21px; margin: 12px 0 10px; }
.pillar p { color: var(--text-muted); font-size: 15.5px; }
.pillar ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pillar li {
  font-size: 14.5px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.pillar li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--accent-color);
  opacity: 0.75;
}

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--bg);
  padding: 28px 26px;
  transition: background 0.2s ease;
}
.feature:hover { background: var(--bg-elev); }
.feature .ic {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(121, 151, 216, 0.12);
  color: var(--blue);
  margin-bottom: 16px;
}
.feature .ic svg { width: 18px; height: 18px; }
.feature h3 { font-size: 16.5px; margin-bottom: 9px; }
.feature p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper);
  background: var(--bg-elev);
}
.step h3 { font-size: 17px; margin-bottom: 9px; }
.step p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- Split panel ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22, 34, 58, 0.66), rgba(17, 26, 45, 0.4));
  padding: 30px;
}
.panel h3 { font-size: 18px; margin-bottom: 14px; }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li {
  display: flex;
  gap: 13px;
  font-size: 15.5px;
  color: var(--text-muted);
}
.checks svg { width: 19px; height: 19px; color: var(--teal); flex: none; margin-top: 2px; }
.checks b { color: var(--text); font-weight: 580; }

/* ---------- Roadmap ---------- */

.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 880px) { .roadmap { grid-template-columns: 1fr; } }

.milestone {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(17, 26, 45, 0.5);
}
.milestone .tag {
  display: inline-block;
  font-size: 11.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  margin-bottom: 14px;
}
.milestone.now .tag { color: var(--teal); border-color: rgba(104, 170, 157, 0.4); background: rgba(104, 170, 157, 0.1); }
.milestone h3 { font-size: 17px; margin-bottom: 10px; }
.milestone p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  font-size: 17px;
  font-weight: 560;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  padding: 0 44px 24px 0;
  color: var(--text-muted);
  font-size: 15.5px;
  margin-top: -4px;
}

/* ---------- CTA ---------- */

.cta {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 58px 40px;
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(121, 151, 216, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(22, 34, 58, 0.8), rgba(13, 20, 36, 0.7));
}
.cta h2 { font-size: clamp(26px, 4vw, 36px); }
.cta p { margin: 16px auto 30px; color: var(--text-muted); max-width: 500px; }
.cta .btn-row { justify-content: center; }

/* ---------- Download page ---------- */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }

.dl-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: linear-gradient(180deg, rgba(22, 34, 58, 0.6), rgba(17, 26, 45, 0.35));
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dl-card.primary {
  border-color: rgba(121, 151, 216, 0.4);
  box-shadow: 0 0 0 1px rgba(121, 151, 216, 0.12), 0 24px 60px -34px rgba(121, 151, 216, 0.5);
}
.dl-card .os {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 620;
}
.dl-card .os svg { width: 22px; height: 22px; color: var(--paper); }
.dl-meta {
  font-size: 13.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.dl-card .btn { width: 100%; }
.dl-card.unavailable { opacity: 0.66; }

.hashes {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.hashes .row {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.hashes .row:last-child { border-bottom: none; }
.hashes .row span:first-child { color: var(--text); }
.hashes .row span:last-child { color: var(--text-dim); word-break: break-all; }
@media (max-width: 680px) { .hashes .row { grid-template-columns: 1fr; gap: 5px; } }

/* ---------- Prose (privacy / legal) ---------- */

.prose { max-width: 720px; }
.prose h2 { font-size: 23px; margin-top: 46px; margin-bottom: 14px; }
.prose h3 { font-size: 17.5px; margin-top: 30px; margin-bottom: 10px; }
.prose p, .prose li { color: var(--text-muted); font-size: 16.5px; }
.prose p { margin-bottom: 15px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.prose strong { color: var(--text); font-weight: 580; }
.prose .updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px 56px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-brand { max-width: 300px; }
.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-dim);
}
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  font-weight: 620;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
