/* Hokma InnoTech: site styles */
:root {
  --black: #000;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --light: #f5f5f7;
  --white: #fff;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --blue: #0071e3;
  --blue-dark: #2997ff;
  --g1: #5ac8fa;
  --g2: #7d7aff;
  --g3: #c38bff;
  --grad: linear-gradient(90deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial,
          "PingFang HK", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--black); }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--ink);
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Language switch: both languages live in the page, one is shown */
html[data-lang="zh"] .en, html[data-lang="en"] .zh { display: none !important; }
html[data-lang="zh"] h1, html[data-lang="zh"] h2, html[data-lang="zh"] h3, html[data-lang="zh"] .hl,
html[data-lang="zh"] .belief, html[data-lang="zh"] .eyebrow { letter-spacing: .02em; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 48px;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-inner {
  max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--on-dark); text-decoration: none;
  font-size: 17px; font-weight: 600; letter-spacing: -.02em;
}
.links { display: flex; gap: 34px; margin-left: auto; }
.links a, .lang button {
  color: rgba(245, 245, 247, .8); font-size: 12px; text-decoration: none;
  transition: color .3s var(--ease);
}
.links a:hover, .lang button:hover { color: #fff; }
.lang { display: flex; align-items: center; gap: 2px; color: rgba(245, 245, 247, .3); font-size: 12px; }
.lang button { background: none; border: 0; padding: 6px 5px; cursor: pointer; color: rgba(245, 245, 247, .5); }
.lang button.active { color: #fff; }

/* Shared */
section { scroll-margin-top: 48px; }
.section { padding: clamp(96px, 13vw, 168px) 22px; }
.container { max-width: 980px; margin: 0 auto; }
.narrow { max-width: 820px; }
.dark { background: var(--black); color: var(--on-dark); }
.light { background: var(--light); color: var(--ink); }
.white { background: var(--white); color: var(--ink); }
.eyebrow { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: var(--ink-3); }
.dark .eyebrow { color: var(--on-dark-2); }
h2 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
html[data-lang="zh"] h2 { line-height: 1.25; font-weight: 600; }
em { font-style: normal; }
h1, h2, h3, .hl { text-wrap: balance; }
p { text-wrap: pretty; }
br.m { display: none; }
.section-head { text-align: center; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head h2 { margin-top: 10px; }
.grad-text, h1 em, .hl.grad span, .soon h2 span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  padding: 132px 22px 24px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; background: var(--black); color: var(--on-dark);
}
.hero::before { /* faint light from above */
  content: ""; position: absolute; left: 50%; top: -30%; width: 140vw; height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(125, 122, 255, .12), transparent 70%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  margin-top: 14px;
  font-size: clamp(44px, 7.6vw, 96px); line-height: 1.05;
  font-weight: 700; letter-spacing: -.035em;
}
html[data-lang="zh"] .hero h1 { line-height: 1.2; font-weight: 600; }
.hero .lead {
  max-width: 660px; margin: 26px auto 0;
  font-size: clamp(19px, 2.1vw, 24px); line-height: 1.42; font-weight: 500;
  color: var(--on-dark-2);
}
.cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: center; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 980px;
  background: var(--blue); color: #fff; font-size: 17px; text-decoration: none;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: #0077ed; }
.btn:active { transform: scale(.98); }
.more { color: var(--blue-dark); font-size: 17px; text-decoration: none; }
.more::after { content: " \203A"; font-size: 1.15em; line-height: 0; }
.more:hover { text-decoration: underline; }

/* The orb: a lens of light with an orbiting spark */
.orb {
  position: relative; z-index: 1;
  width: min(520px, 78vw, 54svh); aspect-ratio: 1 / 1;
  margin-top: clamp(48px, 7vw, 80px);
}
.orb > * { position: absolute; border-radius: 50%; }
.orb .glow {
  inset: -32%;
  background: radial-gradient(closest-side, rgba(90, 200, 250, .30), rgba(125, 122, 255, .20) 42%, rgba(195, 139, 255, .06) 62%, transparent 74%);
  filter: blur(24px);
  animation: breathe 9s ease-in-out infinite;
}
.orb .sphere {
  inset: 17%;
  background: radial-gradient(120% 120% at 32% 26%, #ffffff 0%, #d6efff 5%, #93cbff 15%, #5d7dff 33%, #4a35c8 52%, #23165f 72%, #07051a 100%);
  box-shadow:
    inset -26px -40px 80px rgba(3, 2, 15, .85),
    inset 16px 20px 44px rgba(255, 255, 255, .16),
    0 0 110px rgba(100, 130, 255, .38);
}
.orb .sphere::after { /* rim light */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, transparent 90%, rgba(170, 205, 255, .42) 97%, transparent 100%);
}
.orb .ring {
  background: conic-gradient(from 0deg, transparent 0 6%, rgba(255, 255, 255, .85) 13%, transparent 21% 46%, rgba(160, 145, 255, .75) 55%, transparent 64% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
}
.orb .r1 { inset: 3%; animation: spin 20s linear infinite; }
.orb .r2 { inset: -9%; opacity: .45; animation: spin 34s linear infinite reverse; }
.orb .sat { inset: 3%; animation: spin 20s linear infinite; }
.orb .sat::before {
  content: ""; position: absolute; top: -3.5px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px 3px rgba(170, 200, 255, .95), 0 0 28px 8px rgba(125, 122, 255, .55);
}
.orb.reveal { transition-duration: 1.6s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.07); opacity: 1; } }

/* About: lines light up as you scroll */
.about { padding-top: clamp(64px, 8vw, 112px); }
.statement { margin-top: 28px; }
.hl {
  font-size: clamp(40px, 7vw, 80px); line-height: 1.12; font-weight: 700; letter-spacing: -.03em;
  color: var(--on-dark); opacity: .2;
  transition: opacity .9s var(--ease);
}
html[data-lang="zh"] .hl { font-weight: 600; line-height: 1.3; }
.hl + .hl { margin-top: .12em; }
.hl.lit { opacity: 1; }
.belief {
  margin-top: clamp(40px, 6vw, 64px); max-width: 760px;
  font-size: clamp(21px, 2.4vw, 28px); line-height: 1.42; font-weight: 600; color: var(--on-dark-2);
}

/* What we do */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; min-height: 340px;
  padding: 36px 32px 40px; border-radius: 28px; background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity 1s var(--ease);
}
.card .num { font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; }
.card .icon { width: 64px; height: 64px; margin-top: 28px; }
.card h3 { margin-top: auto; padding-top: 48px; font-size: clamp(24px, 2.4vw, 28px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.card p { margin-top: 10px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0, 0, 0, .09); }
}

/* Values */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.principle .picon { width: 44px; height: 44px; }
.principle h3 { margin-top: 22px; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.principle p { margin-top: 10px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }

/* Coming soon */
.soon { text-align: center; }
.soon h2 { font-size: clamp(38px, 6.4vw, 80px); line-height: 1.08; }
html[data-lang="zh"] .soon h2 { line-height: 1.25; }
.soon p { margin-top: 18px; font-size: clamp(19px, 2vw, 24px); color: var(--on-dark-2); font-weight: 500; }
.beam {
  position: relative; overflow: hidden; height: 1px; max-width: 640px; margin: 0 auto clamp(48px, 6vw, 72px);
  background: linear-gradient(90deg, transparent, rgba(125, 122, 255, .55), transparent);
}
.beam::after {
  content: ""; position: absolute; top: -1px; left: -140px; width: 140px; height: 3px;
  background: linear-gradient(90deg, transparent, #fff, transparent); filter: blur(1px);
  animation: sweep 5s var(--ease) infinite;
}
@keyframes sweep { 0% { left: -140px; } 65%, 100% { left: 100%; } }

/* Contact */
.contact { text-align: center; }
.contact h2 { margin-top: 10px; }
.contact .sub { margin-top: 18px; font-size: clamp(19px, 2vw, 21px); line-height: 1.45; color: var(--ink-2); }
.mail {
  display: inline-block; margin-top: clamp(14px, 2vw, 22px);
  font-size: clamp(26px, 4.4vw, 48px); font-weight: 600; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.mail:hover { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.place { margin-top: 14px; font-size: 17px; color: var(--ink-3); }

/* Footer */
.footer { background: var(--light); color: var(--ink-2); font-size: 12px; line-height: 1.6; padding: 0 22px 36px; }
.foot, .foot-legal { max-width: 980px; margin: 0 auto; }
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 18px 0 14px; border-top: 1px solid var(--line);
}
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: #424245; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; color: var(--ink-3); }

/* Reveal on scroll (only when JS runs) */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Privacy page: light navigation over white content */
[data-page="privacy"] .nav { background: rgba(255, 255, 255, .78); border-bottom-color: rgba(0, 0, 0, .08); }
[data-page="privacy"] .brand { color: var(--ink); }
[data-page="privacy"] .links a, [data-page="privacy"] .lang button { color: rgba(29, 29, 31, .72); }
[data-page="privacy"] .links a:hover, [data-page="privacy"] .lang button:hover,
[data-page="privacy"] .lang button.active { color: var(--ink); }
[data-page="privacy"] .lang { color: rgba(29, 29, 31, .3); }
[data-page="privacy"], [data-page="privacy"] ~ * { background: var(--white); }

/* Privacy page */
.doc { background: var(--white); color: var(--ink); padding: 120px 22px 96px; }
.doc .container { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.doc .updated { margin-top: 12px; color: var(--ink-3); font-size: 15px; }
.doc h2 { margin-top: 44px; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.doc p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: #424245; }
.doc a { color: var(--blue); }

/* Responsive */
@media (max-width: 1068px) {
  .links { gap: 24px; }
}
@media (max-width: 834px) {
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { min-height: 0; }
  .card h3 { padding-top: 36px; }
  .principles { grid-template-columns: 1fr; gap: 44px; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
  br.m { display: inline; }
  .links { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-top: 112px; }
  .card { padding: 30px 26px 34px; border-radius: 24px; }
}

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