/* Techmatix — site styles. Fonts are self-hosted (no third-party requests). */
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f7f6f2;
  --bg-2: #efede6;
  --ink: #12110e;
  --ink-2: #4a4740;
  --ink-3: #7c786d;
  --line: #dcd8cc;
  --card: #ffffff;
  --accent: #ff5b2e;      /* signal orange */
  --accent-2: #6b5cff;    /* electric violet */
  --accent-3: #12b5a5;    /* teal */
  --glow-a: rgba(255, 91, 46, .28);
  --glow-b: rgba(107, 92, 255, .24);
  --glow-c: rgba(18, 181, 165, .22);
  --radius: 22px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0c0a;
    --bg-2: #15130f;
    --ink: #f4f1e8;
    --ink-2: #bdb7a8;
    --ink-3: #8a8476;
    --line: #2a2720;
    --card: #17150f;
    --glow-a: rgba(255, 91, 46, .22);
    --glow-b: rgba(107, 92, 255, .26);
    --glow-c: rgba(18, 181, 165, .18);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 "Bricolage", sans-serif; letter-spacing: -.02em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 6px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
@media (max-width: 560px) { .nav a:not(.nav-cta) { display: none; } }
.nav-cta { background: var(--ink); color: var(--bg) !important; }
.nav-cta:hover { background: var(--accent) !important; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 120px 0 96px; isolation: isolate; }
.aurora { position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1; pointer-events: none; filter: blur(70px); }
.aurora span { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 520px; height: 520px; left: 8%; top: 4%; background: var(--glow-a); }
.aurora span:nth-child(2) { width: 600px; height: 600px; right: 4%; top: -6%; background: var(--glow-b); animation-duration: 22s; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 420px; height: 420px; left: 38%; top: 30%; background: var(--glow-c); animation-duration: 26s; animation-delay: -12s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(60px, 40px, 0) scale(1.15); } }
.grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); opacity: .55; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--card) 70%, transparent); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 0 var(--accent-3); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-3) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }

h1, h2, h3 { font-family: "Bricolage", "Inter", sans-serif; letter-spacing: -.035em; line-height: 1.02; margin: 0; }
.hero h1 { font-size: clamp(46px, 8.4vw, 104px); font-weight: 700; margin: 28px 0 0; max-width: 11ch; }
.hero h1 .swap { display: inline-block; background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 9s ease-in-out infinite alternate; }
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero .lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--ink-2); max-width: 36ch; margin: 28px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; padding: 15px 22px; border-radius: 999px; transition: transform .2s, background .2s, box-shadow .2s; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--glow-a); background: var(--accent); }
.btn-ghost { border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 60%, transparent); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

.ticker { margin-top: 84px; border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: inline-flex; gap: 48px; padding: 18px 0; animation: scroll 40s linear infinite; font: 600 15px/1 "Inter", sans-serif; color: var(--ink-3); letter-spacing: .02em; }
.ticker-track span::before { content: "✦"; margin-right: 48px; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.kicker { font: 600 13px/1 "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 650; max-width: 16ch; }
.section-head p { color: var(--ink-2); max-width: 40ch; margin: 0; }

/* app cards */
.apps { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
@media (max-width: 860px) { .apps { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--ink) 35%, transparent); border-color: var(--ink-3); }
.app-card { display: grid; grid-template-rows: auto 1fr auto; min-height: 420px; text-decoration: none; }
.app-card::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, var(--glow-a), transparent 70%); transition: transform .5s; }
.app-card:hover::after { transform: scale(1.25); }
.app-top { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.tag { display: inline-block; font: 600 12px/1 "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.tag.live { background: color-mix(in srgb, var(--accent-3) 16%, transparent); color: var(--accent-3); }
.app-card h3 { font-size: 40px; font-weight: 700; margin-top: 30px; }
.app-card p { color: var(--ink-2); max-width: 44ch; }
.app-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; position: relative; z-index: 1; font-weight: 600; }
.arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); transition: transform .3s, background .3s; }
.app-card:hover .arrow { transform: rotate(-45deg); background: var(--accent); }

.next-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 420px; background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--line) 45%, transparent) 14px 15px), var(--card); border-style: dashed; }
.next-card h3 { font-size: 30px; font-weight: 650; }
.next-card p { color: var(--ink-2); }
.matrix { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; width: 180px; }
.matrix i { aspect-ratio: 1; border-radius: 50%; background: var(--line); animation: blink 3.2s infinite; }
@keyframes blink { 0%, 100% { background: var(--line); } 50% { background: var(--accent-2); } }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }
.principle .num { font: 700 15px/1 "Bricolage", sans-serif; color: var(--ink-3); }
.principle h3 { font-size: 27px; font-weight: 650; margin: 40px 0 12px; }
.principle p { color: var(--ink-2); margin: 0; }
.principle .glyph { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-top: 22px; }
.principle:nth-child(1) .glyph { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.principle:nth-child(2) .glyph { background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent-2); }
.principle:nth-child(3) .glyph { background: color-mix(in srgb, var(--accent-3) 14%, transparent); color: var(--accent-3); }
.glyph svg { width: 26px; height: 26px; }

/* contact band */
.contact { position: relative; border-radius: calc(var(--radius) + 8px); padding: 72px 48px; background: var(--ink); color: var(--bg); overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 85% 10%, rgba(255,91,46,.45), transparent 70%), radial-gradient(500px 320px at 10% 100%, rgba(107,92,255,.45), transparent 70%); }
.contact h2 { color: inherit; max-width: 14ch; }
.contact p { color: color-mix(in srgb, var(--bg) 72%, transparent); max-width: 44ch; }
.contact .btn-primary { background: var(--bg); color: var(--ink); }
.contact .btn-primary:hover { background: var(--accent); color: #fff; }
.contact .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 30%, transparent); background: transparent; }
@media (max-width: 560px) { .contact { padding: 48px 26px; } }

/* footer */
.site-footer { padding: 56px 0 48px; color: var(--ink-3); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* reveal on scroll (progressive: content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- document pages (legal, support) ---------- */
.doc { padding: 72px 0 40px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; margin: 18px 0 10px; }
.doc .meta { color: var(--ink-3); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: 28px; font-weight: 650; max-width: none; margin: 52px 0 14px; }
.doc h3 { font-size: 20px; font-weight: 650; margin: 30px 0 8px; letter-spacing: -.02em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 600; background: var(--bg-2); }
@media (max-width: 640px) { .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; } .doc thead { display: none; } .doc td { border: 0; padding: 4px 0; } .doc tr { border-bottom: 1px solid var(--line); padding: 12px 0; } }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--card); border-radius: 14px; padding: 16px 20px; color: var(--ink-2); margin: 0 0 32px; }
.crumbs { font-size: 14px; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.address { font-style: normal; line-height: 1.8; color: var(--ink-2); }

/* app page */
.app-hero { padding: 96px 0 40px; position: relative; isolation: isolate; }
.app-hero .app-icon { width: 112px; height: 112px; border-radius: 26px; }
.app-hero h1 { font-size: clamp(48px, 8vw, 96px); font-weight: 700; margin-top: 28px; }
.app-hero .lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--ink-2); max-width: 40ch; margin-top: 22px; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature h3 { font-size: 26px; font-weight: 650; margin: 18px 0 10px; }
.feature p { color: var(--ink-2); margin: 0; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink-3); font-weight: 600; font-size: 15px; }
.links-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.link-tile { display: flex; justify-content: space-between; align-items: center; text-decoration: none; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); font-weight: 600; transition: border-color .2s, transform .2s; }
.link-tile:hover { border-color: var(--ink-3); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
