@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Tokens. Brand colours come from the TickSig icon: deep navy + mint. */
:root {
  --bg: #fbfbfd;
  --surface: #f2f3f6;
  --surface-2: #ffffff;
  --ink: #12141c;
  --body: #3c404c;
  --muted: #5d6270;
  --hairline: #e3e5ea;
  --accent: #2f8a57;
  --accent-ink: #ffffff;
  --navy: #161c33;
  --shadow: 0 30px 80px -30px rgb(22 28 51 / .35), 0 8px 24px -12px rgb(22 28 51 / .18);
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d14;
    --surface: #131622;
    --surface-2: #171b29;
    --ink: #f2f3f7;
    --body: #c3c7d2;
    --muted: #9298a8;
    --hairline: #232838;
    --accent: #7fcb98;
    --accent-ink: #0b0d14;
    --shadow: 0 40px 100px -30px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .06);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 30;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1288px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--hairline); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 40px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.mark { width: 24px; height: 24px; color: var(--ink); }
.nav-links { display: flex; gap: 28px; margin-right: auto; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* Buttons: full pill everywhere */
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  height: 46px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:active { transform: scale(.98); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.btn-quiet { color: var(--ink); border: 1px solid var(--hairline); background: transparent; }
.btn-quiet:hover { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }

/* Screen 1: hero */
.hero { padding: 88px 0 0; overflow: hidden; }
.hero-title {
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -.045em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero-row {
  margin-top: 36px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
}
.hero-sub { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 44ch; line-height: 1.5; }
.hero-ctas { display: flex; gap: 12px; }

.display {
  margin: 72px 0 0;
  padding: 10px;
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(180deg, #2a3047, #12162a);
  box-shadow: var(--shadow);
  transform-origin: 50% 0;
}
.display-screen { border-radius: var(--radius); overflow: hidden; background: #131722; aspect-ratio: 1241 / 796; }
.display-screen img { width: 100%; height: 100%; object-fit: cover; }

/* Screen 2: products */
.products { padding: 160px 0 140px; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2, .company-statement h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05; letter-spacing: -.035em; text-wrap: balance;
}
.section-head p { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 52ch; }

.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "chart  chart   signals"
    "script desktop signals";
}
.tile {
  position: relative; overflow: hidden;
  background: var(--surface); border-radius: var(--radius);
  padding: 36px; display: flex; flex-direction: column; gap: 28px;
  min-height: 300px;
}
.tile h3 { font-size: 22px; letter-spacing: -.02em; }
.tile p { margin-top: 8px; color: var(--muted); max-width: 38ch; }
.tile-copy { position: relative; z-index: 1; }

.tile-chart { grid-area: chart; background: var(--navy); color: #c9cde0; }
.tile-chart h3 { color: #f4f5fa; }
.tile-chart p { color: #a9aec4; }
.tile-media-chart {
  margin-top: auto;
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 24px 48px -24px rgb(0 0 0 / .6);
}
.tile-media-chart img { width: 100%; }

.link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 500; color: #7fcb98; }
.link svg { width: 14px; height: 14px; fill: currentColor; transition: transform .25s var(--ease); }
.link:hover svg { transform: translate(2px, -2px); }

.tile-signals {
  grid-area: signals; padding-bottom: 0;
  background:
    radial-gradient(120% 70% at 100% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--surface);
}
.phone {
  margin: auto; width: min(100%, 272px);
  padding: 7px; border-radius: 40px;
  background: linear-gradient(180deg, #2a3047, #12162a);
  box-shadow: var(--shadow);
  transition: transform .6s var(--ease);
}
.phone img { width: 100%; border-radius: 33px; }
.tile-signals:hover .phone { transform: translateY(-6px); }

.tile-script { grid-area: script; }
.code {
  margin: auto 0 0; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--hairline);
  font: 12.5px/1.75 "Geist Mono", ui-monospace, monospace; color: var(--body);
  overflow-x: auto; white-space: pre;
}
.code .k { color: var(--accent); }
.code .s { color: color-mix(in srgb, var(--ink) 60%, #c0623d); }
.code .n { color: color-mix(in srgb, var(--ink) 55%, #3d6bd6); }

.tile-desktop {
  grid-area: desktop;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--navy) 8%, var(--surface)), var(--surface) 60%);
}
.app-icon { margin-top: auto; }
.app-icon img {
  width: 96px; height: 96px; border-radius: 22px;
  box-shadow: 0 18px 40px -14px rgb(22 28 51 / .55);
  transition: transform .4s var(--ease);
}
.tile-desktop:hover .app-icon img { transform: translateY(-4px); }

/* Screen 3: company */
.company { padding: 140px 0 120px; border-top: 1px solid var(--hairline); }
.company-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 96px; align-items: start; }
.company-statement p { margin-top: 28px; font-size: 19px; max-width: 50ch; color: var(--muted); }
.principles { margin: 8px 0 0; display: grid; gap: 36px; }
.principles dt { color: var(--ink); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.principles dd { margin: 6px 0 0; color: var(--muted); }
.principles > div { padding-left: 20px; border-left: 2px solid var(--hairline); transition: border-color .3s; }
.principles > div:hover { border-left-color: var(--accent); }

.contact {
  margin-top: 140px; padding: 56px 0 0; border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 40px;
}
.contact-line { font-size: clamp(22px, 2.4vw, 30px); color: var(--ink); letter-spacing: -.02em; font-weight: 500; }
.contact-mail {
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; font-weight: 500; color: var(--accent);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .4s var(--ease);
  padding-bottom: 2px;
}
.contact-mail:hover { background-size: 100% 1.5px; }

/* Footer */
.footer { padding: 40px 0 48px; font-size: 13px; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.footer-brand .mark { width: 18px; height: 18px; }
.footer-note { max-width: 60ch; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--ink); }

/* Motion: entry reveal (JS adds .is-in), and the hero display settles flat as it scrolls in. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  @supports (animation-timeline: view()) {
    .display.reveal.is-in {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
    @keyframes settle {
      from { transform: perspective(1600px) rotateX(14deg) scale(.94); }
      to   { transform: perspective(1600px) rotateX(0deg) scale(1); }
    }
  }
}

/* Responsive */
@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "chart   chart"
      "signals script"
      "signals desktop";
  }
  .company-grid { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .wrap, .nav-inner { padding: 0 16px; }
  .nav-inner { gap: 20px; }
  .nav-links { gap: 18px; }
  .hero { padding-top: 48px; }
  .hero-row { grid-template-columns: 1fr; gap: 28px; margin-top: 24px; }
  .display { margin-top: 48px; padding: 5px; border-radius: 16px; }
  .display-screen { border-radius: 11px; }
  .products { padding: 104px 0 96px; }
  .section-head { margin-bottom: 40px; }
  .section-head p, .company-statement p { font-size: 17px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "chart" "signals" "script" "desktop"; }
  .tile { padding: 28px; min-height: 0; }
  .phone { width: min(100%, 240px); }
  .company { padding: 96px 0 80px; }
  .contact { margin-top: 88px; padding-top: 40px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .nav-links { display: none; }
  .brand { margin-right: auto; }
  .hero-ctas .btn { flex: 1; }
}
