@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-sunk: #efece5;
  --ink: #12141c;
  --text: #12141c;
  --text-soft: #3e4150;
  --text-muted: #5f6371;
  --border: rgba(18, 20, 28, 0.1);
  --hairline: rgba(18, 20, 28, 0.07);
  --link: #3d4ed8;
  --link-hover: #1e2fb0;

  --warm: #ff6a3d;
  --amber: #ffb648;
  --violet: #7a5cff;
  --blue: #4f8dff;
  --live: #16a34a;
  --soon: #d97706;

  --btn-bg: #12141c;
  --btn-text: #f6f4ef;
  --btn-shadow: 0 10px 24px rgba(18, 20, 28, 0.18);
  --card-shadow: 0 1px 2px rgba(18, 20, 28, 0.04), 0 18px 40px -24px rgba(18, 20, 28, 0.22);
  --tile-shadow: 0 18px 36px -14px rgba(18, 20, 28, 0.35);
  --glow-warm: rgba(255, 140, 80, 0.22);
  --glow-cool: rgba(110, 120, 255, 0.18);
  --tint-strength: 9%;

  --grad-brand: linear-gradient(100deg, var(--warm) 0%, #ff8f45 30%, var(--violet) 68%, var(--blue) 100%);
  --grad-text: linear-gradient(100deg, #c2410c 0%, #d9481f 30%, #6d4dff 68%, #2f62d6 100%);

  --r-pill: 999px;
  --r-tile: 22.5%;
  --r-card: 26px;
  --r-section: 32px;

  --font-ui: "Instrument Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --page-max: 1160px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d14;
    --surface: #131622;
    --surface-sunk: #0f111b;
    --ink: #f4f1ea;
    --text: #f1eee7;
    --text-soft: rgba(236, 233, 226, 0.78);
    --text-muted: rgba(220, 218, 212, 0.62);
    --border: rgba(226, 228, 240, 0.11);
    --hairline: rgba(226, 228, 240, 0.07);
    --link: #a5b4ff;
    --link-hover: #c7d0ff;
    --live: #4ade80;
    --soon: #fbbf24;

    --btn-bg: #f4f1ea;
    --btn-text: #0b0d14;
    --btn-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 24px 48px -28px rgba(0, 0, 0, 0.8);
    --tile-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.75);
    --glow-warm: rgba(255, 120, 60, 0.16);
    --glow-cool: rgba(110, 100, 255, 0.2);
    --tint-strength: 16%;
    --grad-text: var(--grad-brand);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(56rem 32rem at 8% -10rem, var(--glow-warm), transparent 70%),
    radial-gradient(52rem 30rem at 96% -6rem, var(--glow-cool), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--link-hover);
}

.doc p a,
.doc li a,
.doc dd a,
.soon-note a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--page-max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: var(--btn-text);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--hairline);
}

.nav-links .nav-cta {
  margin-left: 6px;
  background: var(--btn-bg);
  color: var(--btn-text);
}

.nav-links .nav-cta:hover {
  background: var(--btn-bg);
  color: var(--btn-text);
  opacity: 0.88;
}

/* Shared bits */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--btn-shadow);
}

.btn-primary:hover {
  color: var(--btn-text);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.arrow-link::after {
  content: "→";
  content: "→" / "";
  transition: transform 0.15s ease;
}

.arrow-link:hover::after {
  transform: translateX(3px);
}

/* Hero */

.hero {
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 120px);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero .lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--text-soft);
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts strong {
  color: var(--text);
  font-weight: 600;
}

.hero-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 24px);
  max-width: 460px;
  margin: 0 auto 32px;
  padding: 0;
  list-style: none;
}

.hero-tiles li {
  position: relative;
  animation: float 7s ease-in-out 3;
}

.hero-tiles li:nth-child(3n + 2) {
  margin-top: 36px;
  margin-bottom: -36px;
  animation-delay: -2.4s;
}

.hero-tiles li:nth-child(3n) {
  animation-delay: -4.6s;
}

.tile {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--r-tile);
  box-shadow: var(--tile-shadow);
  object-fit: cover;
}

.tile-more {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 2px dashed var(--border);
  border-radius: var(--r-tile);
  color: var(--text-muted);
  font-size: 34px;
  font-weight: 400;
}

.tile-badge {
  position: absolute;
  left: 50%;
  bottom: -11px;
  transform: translateX(-50%);
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.2);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

  .hero-tiles li {
    animation: none;
  }

  .btn,
  .arrow-link::after {
    transition: none;
  }
}

/* Sections */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-head p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 1.1rem;
}

.subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin: clamp(56px, 7vw, 80px) 0 24px;
}

.subhead h2 {
  font-size: 1.5rem;
}

.subhead p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* App cards */

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.app-grid--soon {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-card {
  --tint: var(--violet);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background:
    radial-gradient(34rem 18rem at 100% 0, color-mix(in srgb, var(--tint) var(--tint-strength), transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--card-shadow);
}

.app-card--proxv { --tint: #3b82f6; }
.app-card--buywall { --tint: #f08a24; }
.app-card--pausa { --tint: #e08a6a; }
.app-card--soberwise { --tint: #1fa889; }
.app-card--digeo { --tint: #c7865f; }

.app-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-icon {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: var(--r-tile);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.45);
}

.app-card--compact .app-icon {
  width: 64px;
  height: 64px;
}

.app-head h3 {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.app-card--compact .app-head h3 {
  font-size: 1.35rem;
}

.app-kind {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status--live::before {
  background: var(--live);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 22%, transparent);
}

.status--soon::before {
  background: var(--soon);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--soon) 22%, transparent);
}

.app-tagline {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app-card p:not(.app-kind) {
  color: var(--text-soft);
}

.app-card--compact p:not(.app-kind) {
  font-size: 0.98rem;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 12px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
}

.checks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  background: var(--tint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: auto;
  padding-top: 8px;
}

.app-actions .store-badge img {
  width: auto;
  height: 46px;
}

.soon-note {
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 0.97rem;
  text-align: center;
}

.todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--soon) 22%, transparent);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.86em;
}

/* Approach */

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: principle;
}

.principles li {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  counter-increment: principle;
}

.principles li::before {
  content: "0" counter(principle);
  display: block;
  margin-bottom: 26px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.principles h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.principles p {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.97rem;
}

/* Contact */

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px 56px;
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
  border-radius: var(--r-section);
  background:
    radial-gradient(40rem 22rem at 0% 0%, rgba(255, 106, 61, 0.28), transparent 70%),
    radial-gradient(36rem 22rem at 100% 100%, rgba(79, 141, 255, 0.28), transparent 70%),
    #10121c;
  color: #f4f1ea;
}

.contact-card h2 {
  color: #f4f1ea;
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.contact-card p {
  margin-top: 16px;
  color: rgba(244, 241, 234, 0.74);
  font-size: 1.08rem;
}

.contact-lines {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-lines li {
  padding: 18px 20px;
  border: 1px solid rgba(244, 241, 234, 0.12);
  border-radius: 18px;
  background: rgba(244, 241, 234, 0.05);
}

.contact-lines span {
  display: block;
  color: rgba(244, 241, 234, 0.55);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-lines a {
  display: inline-block;
  margin-top: 4px;
  color: #f4f1ea;
  font-size: 1.15rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-lines a:hover {
  color: #ffd3bd;
}

/* Footer */

.site-footer {
  margin-top: clamp(40px, 6vw, 72px);
  padding: 36px 0 48px;
  border-top: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 14.5px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.site-footer .brand {
  font-size: 18px;
}

.site-footer .brand img {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-meta {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

/* Document pages (legal notice, privacy) */

.doc {
  max-width: 760px;
  padding: clamp(48px, 7vw, 88px) 0 24px;
}

.doc h1 {
  font-size: clamp(2.3rem, 5vw, 3.3rem);
}

.doc .updated {
  margin-top: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.doc .intro {
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 1.1rem;
}

.doc section {
  margin-top: 44px;
}

.doc h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.doc p:not(.eyebrow),
.doc li {
  color: var(--text-soft);
}

.doc p + p,
.doc ul + p {
  margin-top: 12px;
}

.doc ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.facts {
  display: grid;
  grid-template-columns: minmax(150px, 0.38fr) 1fr;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.facts dt,
.facts dd {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--hairline);
}

.facts dt {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.facts dd {
  color: var(--text);
}

.facts dt:first-of-type,
.facts dd:first-of-type {
  border-top: 0;
}

/* 404 */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(72px, 12vw, 140px) 0;
  text-align: center;
}

.not-found img {
  width: 96px;
  height: 96px;
}

.not-found .code {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.not-found h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.not-found p {
  max-width: 30em;
  color: var(--text-soft);
}

/* Responsive */

@media (max-width: 1000px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-grid--soon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-tiles {
    max-width: 380px;
  }

  .app-grid:not(.app-grid--soon) {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .app-grid--soon,
  .principles {
    grid-template-columns: 1fr;
  }

  .nav-links .nav-hide-sm {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .app-icon {
    width: 68px;
    height: 68px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts dd {
    padding-top: 0;
    border-top: 0;
  }
}
