/* Fluid — fluidbudget.io
   Tokens from the Nocturne design system. */

:root {
  --bg: #161826;
  --surface: #232532;
  --text: #e9e9ed;
  --muted: #9397ab;
  --faint: #75798c;
  --line: rgba(233, 233, 237, .10);
  --rule: rgba(233, 233, 237, .08);
  --accent: #9184d9;
  --accent-dim: #5d5294;
  --accent-soft: #423a6a;
  --accent-text: #b5abfc;
  --measure: 1180px;
  --gutter: clamp(28px, 6vw, 80px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: rgba(145, 132, 217, .32); }

/* ---------- shell ---------- */

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.backdrop {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 16%;
  bottom: -14%;
  z-index: 0;
  pointer-events: none;
}

.backdrop svg { width: 116%; height: 100%; display: block; }

.glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 78% at 62% 30%, rgba(145, 132, 217, .11), transparent 62%);
}

.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- header ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: clamp(20px, 3.4vh, 34px);
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand svg { display: block; flex: none; }
.brand-name { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }

.status {
  margin: 0;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- hero ---------- */

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(34px, 7vh, 84px);
  padding-bottom: clamp(46px, 9vh, 96px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 78px);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.lede {
  margin: clamp(18px, 2.6vh, 30px) 0 0;
  font-size: clamp(16px, 1.5vw, 19.5px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 27ch;
  text-wrap: pretty;
}

.audience {
  margin: clamp(22px, 3.4vh, 34px) 0 0;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  color: var(--faint);
}

.audience::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-dim);
  flex: none;
}

/* ---------- product visual ---------- */

.stage { display: flex; justify-content: center; }

.phone {
  position: relative;
  container-type: inline-size;
  width: clamp(260px, 29vw, 352px);
  border-radius: 11.6% / 5.6%;
  padding: 1.6%;
  background: linear-gradient(158deg, #3a3d52, #1b1d2b 46%, #33364a);
  box-shadow: 0 42px 90px -28px rgba(0, 0, 0, .82), 0 2px 0 rgba(233, 233, 237, .06) inset;
}

.screen {
  position: relative;
  border-radius: 10.2% / 4.9%;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 393 / 852;
}

.island {
  position: absolute;
  left: 50%;
  top: 2.1%;
  transform: translateX(-50%);
  width: 31%;
  height: 3.6%;
  border-radius: 999px;
  background: #0c0d15;
  z-index: 5;
}

.app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: 7.4%;
  font-size: 3.07cqw;
}

.app > * { flex: none; }
.app .spacer { flex: 1; min-height: 0; }

.statusbar {
  display: flex;
  justify-content: space-between;
  padding: 0 7.5% 5.4%;
  font-size: .92em;
  color: var(--muted);
  letter-spacing: .02em;
}

.statusbar span:last-child { letter-spacing: .14em; }

.monthbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7.5% 4.4%;
}

.month {
  font-size: .94em;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill {
  font-size: .86em;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: .34em .8em;
}

.ring { position: relative; display: flex; justify-content: center; padding-top: 1%; }
.ring svg { width: 62%; transform: rotate(-90deg); }

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25em;
  padding-top: 1%;
}

.ring-kicker {
  font-size: .86em;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--faint);
}

.ring-value {
  font-size: 2.72em;
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ring-of { font-size: .98em; color: var(--muted); }

.ring-note {
  margin-top: .5em;
  display: flex;
  align-items: center;
  gap: .5em;
  font-size: .85em;
  color: var(--faint);
}

.ring-note::before {
  content: "";
  width: .5em;
  height: .5em;
  border-radius: 2px;
  background: var(--accent-dim);
}

.stats {
  margin: 5% 7.5% 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.stat {
  background: var(--surface);
  padding: .86em .7em;
  display: flex;
  flex-direction: column;
  gap: .34em;
}

.stat dt {
  margin: 0;
  font-size: .78em;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

.stat dd {
  margin: 0;
  font-size: 1.24em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.stat--accent dd { color: var(--accent); }

.pulse {
  margin: 5% 7.5% 0;
  font-size: 1.02em;
  line-height: 1.5;
  color: var(--muted);
}

.recent { margin: 6% 0 0; display: flex; flex-direction: column; }

.recent-title {
  padding: 0 7.5% .8em;
  font-size: .82em;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

.tx { display: flex; align-items: center; gap: .9em; padding: .7em 7.5%; }

.tx-icon {
  width: 2.4em;
  height: 2.4em;
  border-radius: .72em;
  background: var(--surface);
  flex: none;
}

.tx-body { flex: 1; display: flex; flex-direction: column; gap: .2em; }
.tx-cat { font-size: 1.06em; }
.tx-meta { font-size: .9em; color: var(--faint); }
.tx-amount { font-size: 1.06em; font-variant-numeric: tabular-nums; }
.tx-side { text-align: right; display: flex; flex-direction: column; gap: .2em; }

.tx-flag {
  font-size: .78em;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.tabbar {
  height: 9.6%;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 9%;
}

.tabbar i {
  width: 1.5em;
  height: 1.5em;
  border-radius: .4em;
  background: rgba(233, 233, 237, .14);
}

.tabbar i.on { background: var(--accent); opacity: .9; }

.tabbar i.add {
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
}

/* ---------- philosophy ---------- */

.philosophy {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(18px, 4vw, 64px);
  padding-top: clamp(34px, 6vh, 64px);
  padding-bottom: clamp(34px, 6vh, 64px);
  border-top: 1px solid var(--rule);
}

.philosophy h2 {
  margin: 0;
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.22;
  text-wrap: balance;
}

.philosophy p {
  margin: 0;
  font-size: clamp(14.5px, 1.35vw, 17px);
  line-height: 1.62;
  color: var(--muted);
  max-width: 52ch;
  text-wrap: pretty;
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 26px;
  padding-top: 26px;
  padding-bottom: 40px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--faint);
}

.site-footer .fname { color: var(--muted); }
.site-footer .ftag { flex: 1; min-width: 180px; }

/* ---------- motion ---------- */

@keyframes drift {
  0%   { transform: translate3d(-4%, 0, 0); }
  50%  { transform: translate3d(-1%, -1.1%, 0); }
  100% { transform: translate3d(-4%, 0, 0); }
}

@keyframes drift-slow {
  0%   { transform: translate3d(-1%, 0, 0); }
  50%  { transform: translate3d(-5%, 1.4%, 0); }
  100% { transform: translate3d(-1%, 0, 0); }
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}

.wave-front { animation: drift 34s ease-in-out infinite; }
.wave-back  { animation: drift-slow 46s ease-in-out infinite; }

.rise    { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.rise-2  { animation: rise .9s .08s cubic-bezier(.2, .8, .2, 1) both; }
.rise-3  { animation: rise .9s .16s cubic-bezier(.2, .8, .2, 1) both; }
.rise-4  { animation: rise 1.1s .1s cubic-bezier(.2, .8, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- narrow ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 0; padding-top: clamp(30px, 5vh, 46px); }
  .lede { max-width: 34ch; }
  .stage { margin-top: clamp(36px, 6vh, 54px); }
  .phone { width: min(70vw, 306px); }
  .philosophy { grid-template-columns: 1fr; gap: 16px; }
  .site-footer { padding-bottom: clamp(34px, 6vh, 52px); }
}
