/* timai.id — Bobby Heykal · dark + neon cyber · 2026 */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/spacegrotesk-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}

:root {
  --bg: #05060a;
  --bg-2: #0a0d16;
  --ink: #e8edf7;
  --ink-dim: #a5b4cd;
  --ink-faint: #7b8aa0; /* ≥4.5:1 on --bg for small text (AA) */
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --hairline: rgba(148, 163, 184, .14);
  --glass: rgba(255, 255, 255, .025);
  --glow-cyan: rgba(34, 211, 238, .35);
  --glow-violet: rgba(167, 139, 250, .3);
  --display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --grad: linear-gradient(100deg, var(--cyan) 0%, #67e8f9 35%, var(--violet) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(34, 211, 238, .28); color: #fff; }

a { color: inherit; }

/* ---------- ambient layers ---------- */

#net {
  position: fixed;
  top: -15vh; /* overscan ABOVE the viewport: parallax shifts down, so the
                 exposed band is always at the top — pad that edge */
  left: 0;
  width: 100vw;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* aurora — soft radial blobs drifting behind the network (gradients carry
   the softness; no filter blur, so no re-raster cost) */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.aurora span { position: absolute; border-radius: 50%; }

.aurora span:nth-child(1) {
  width: 58vw; height: 58vw; left: -12%; top: -18%;
  background: radial-gradient(circle, rgba(34, 211, 238, .14) 0%, rgba(34, 211, 238, .05) 45%, transparent 70%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.aurora span:nth-child(2) {
  width: 46vw; height: 46vw; right: -10%; top: 8%;
  background: radial-gradient(circle, rgba(167, 139, 250, .13) 0%, rgba(167, 139, 250, .04) 45%, transparent 70%);
  animation: drift-b 34s ease-in-out infinite alternate;
}

.aurora span:nth-child(3) {
  width: 52vw; height: 52vw; left: 22%; bottom: -28%;
  background: radial-gradient(circle, rgba(103, 232, 249, .09) 0%, transparent 65%);
  animation: drift-c 40s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate(7vw, 6vh) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-6vw, 8vh) scale(.92); } }
@keyframes drift-c { to { transform: translate(5vw, -6vh) scale(1.08); } }

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 0%, transparent 75%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(34, 211, 238, .07) 0%, rgba(167, 139, 250, .04) 40%, transparent 70%);
  opacity: 0;
  will-change: transform;
}

main { position: relative; z-index: 2; }

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

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.overline {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.overline .line {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--grad);
  box-shadow: 0 0 8px var(--glow-cyan);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 55%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 80px rgba(34, 211, 238, .18);
  margin-bottom: 1.6rem;
}

.tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--ink-dim);
  max-width: 36ch;
  margin-bottom: 2.8rem;
  text-wrap: balance;
}

/* keep "I ship them" on one line — balance alone breaks it as "I ship / them" */
.tagline .accent { white-space: nowrap; }

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

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .85rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  /* magnetic drift sets --mx/--my (JS-lerped); hover adds the lift */
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
  will-change: transform;
}

.btn:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 12px;
}

.btn-primary {
  color: #041016;
  background: var(--grad);
  box-shadow: 0 0 24px rgba(34, 211, 238, .35), 0 0 60px rgba(167, 139, 250, .18), inset 0 0 0 1px rgba(255, 255, 255, .25);
}

.btn-primary:hover {
  transform: translate(var(--mx, 0px), var(--my, 0px)) translateY(-2px);
  box-shadow: 0 0 30px rgba(34, 211, 238, .45), 0 0 72px rgba(167, 139, 250, .24), inset 0 0 0 1px rgba(255, 255, 255, .35);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .02);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  transform: translate(var(--mx, 0px), var(--my, 0px)) translateY(-2px);
  border-color: rgba(34, 211, 238, .6);
  box-shadow: 0 0 24px rgba(34, 211, 238, .18);
}

.locale {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, .5);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .5); }
  70% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: var(--hairline);
}

.scroll-hint span {
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--grad);
  animation: drop 2.2s cubic-bezier(.65, 0, .35, 1) infinite;
}

@keyframes drop {
  0% { top: -40%; }
  100% { top: 110%; }
}

/* ---------- sections ---------- */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) 1.5rem;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(34, 211, 238, .55) 30%, rgba(167, 139, 250, .65) 50%, rgba(34, 211, 238, .55) 70%, transparent 100%);
  background-size: 200% 100%;
  animation: divider-sweep 7s linear infinite;
}

@keyframes divider-sweep { to { background-position: -200% 0; } }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -.01em;
  text-align: center;
  margin-bottom: 3.2rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card {
  position: relative;
  padding: 2rem 1.7rem 1.8rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 2px;
  background: var(--grad);
  box-shadow: 0 0 12px var(--glow-cyan);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, .4);
  box-shadow: 0 12px 44px rgba(10, 13, 22, .8), 0 0 30px rgba(34, 211, 238, .12);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, .07);
  border: 1px solid rgba(34, 211, 238, .25);
  margin-bottom: 1.3rem;
}

.card:nth-child(2) .card-icon {
  color: var(--violet);
  background: rgba(167, 139, 250, .07);
  border-color: rgba(167, 139, 250, .25);
}

.card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

.card p { color: var(--ink-dim); font-size: .95rem; }

/* light-sweep across a card on hover */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .07) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform .9s ease;
  pointer-events: none;
}

.card:hover::after { transform: translateX(130%); }

/* capabilities — a spec sheet, not card grid #2: hairline rows, no boxes */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2.5rem;
  max-width: 880px;
  margin: 0 auto;
}

.cap {
  padding: 1.15rem .2rem 1.05rem;
  border-top: 1px solid var(--hairline);
  text-align: left;
}

.cap h3 { font-family: var(--display); font-size: .98rem; font-weight: 700; margin-bottom: .3rem; }

.cap h3::before {
  content: '▸ ';
  color: var(--cyan);
}

.cap p { color: var(--ink-dim); font-size: .88rem; }

/* process steps */
.steps {
  list-style: none;
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color .3s ease, transform .3s ease;
}

.step:hover { border-color: rgba(167, 139, 250, .4); transform: translateX(4px); }

.step-n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.6;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 700; margin-bottom: .3rem; }

.step p { color: var(--ink-dim); font-size: .95rem; }

/* built-in-public statement */

.section-public { max-width: 860px; text-align: center; }

.statement {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.4vw, 2.15rem);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: balance;
}

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

.footer {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .5), rgba(167, 139, 250, .5), transparent);
}

.closing {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  margin-bottom: 1.4rem;
}

.identity {
  color: var(--ink-faint);
  font-size: .9rem;
  letter-spacing: .08em;
  margin-bottom: 1.8rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 2.2rem;
}

.footer-links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--hairline);
  color: var(--ink-dim);
  background: var(--glass);
  transition: color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.footer-links a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, .5);
  box-shadow: 0 0 20px rgba(34, 211, 238, .18);
  transform: translateY(-2px);
}

.copyright { color: var(--ink-faint); font-size: .8rem; }

/* ---------- reveals (JS-gated so noscript stays readable) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2, .65, .3, 1), transform .8s cubic-bezier(.2, .65, .3, 1), filter .8s cubic-bezier(.2, .65, .3, 1), border-color .3s ease, box-shadow .3s ease;
  transition-delay: calc(var(--i, 0) * 120ms);
}

.js .reveal.in { opacity: 1; transform: none; }

/* hover microinteractions must outrank the reveal reset above */
.js .reveal.in.card:hover { transform: translateY(-5px); }
.js .reveal.in.step:hover { transform: translateX(4px); }

/* titles also de-blur into place */
.js .section-title.reveal { filter: blur(10px); }
.js .section-title.reveal.in { filter: none; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .cap-grid { grid-template-columns: 1fr 1fr; max-width: 640px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .cta-row { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .btn { justify-content: center; }
  .overline { letter-spacing: .3em; text-indent: .3em; }
  .overline .line { width: 26px; }
  .cap-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: .5rem; }
}

/* ---------- failsafes: reveals can never trap content hidden ---------- */

/* if main.js never arrives (js class set by the inline head script, but the
   deferred file 404s), unhide everything after 3s */
.js-failsafe .reveal { opacity: 1; transform: none; }

/* ---------- print: white paper, solid ink — gradient text renders blank
   without background graphics, so restore plain color ---------- */

@media print {
  body { background: #fff !important; color: #111 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero h1, .accent, .closing .accent, .step-n {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: #111 !important;
    text-shadow: none !important;
  }
  .btn-primary { background: none !important; color: #111 !important; box-shadow: none !important; }
  #net, .aurora, .grid-overlay, .noise, #cursor-glow, .scroll-hint { display: none !important; }
}

/* ---------- forced colors (Windows High Contrast): same gradient-text hazard ---------- */

@media (forced-colors: active) {
  .hero h1, .accent, .step-n {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
  .btn-primary {
    background: none;
    color: ButtonText;
    box-shadow: none;
  }
}

/* ---------- reduced motion: calm, complete, no drift ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .aurora span, .section::before { animation: none; }
  .pulse { animation: none; box-shadow: 0 0 10px rgba(34, 211, 238, .6); }
  .scroll-hint { display: none; }
  #cursor-glow { display: none; }
  .card::after { display: none; }
}
