/* ============================================================
   Gonokjontro International Limited — one-page site
   Design tokens
   ============================================================ */

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/chakrapetch-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plexsans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plexsans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plexmono-500.woff2") format("woff2");
}

:root {
  /* ground */
  --paper: #ffffff;
  --paper-dim: #f3f6fb;
  --paper-dim-2: #eaf0f8;
  --line: #e1e7f0;
  --line-strong: #ccd6e4;

  /* ink */
  --ink: #0b1526;
  --ink-dim: #55637a;
  --ink-faint: #8592a6;

  /* brand accents (from mark) */
  --cyan: #12aecb;
  --cyan-ink: #0c8aa2;
  --blue: #2354d6;
  --blue-ink: #1a3fa8;
  --gold: #b9862f;
  --gold-ink: #9c6f22;

  /* dark panel (echoes the mark's brushed-steel ground) */
  --panel: #0b1526;
  --panel-2: #111e35;
  --panel-line: rgba(255, 255, 255, 0.1);
  --panel-ink: #eef2f8;
  --panel-ink-dim: #9fb0c7;

  --display: "Chakra Petch", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  letter-spacing: 0.005em;
}

p { margin: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 28px;
}

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.on-dark { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(35, 84, 214, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(35, 84, 214, 0.6); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-ink); }
.btn-on-dark {
  background: var(--panel-ink);
  color: var(--panel);
}
.btn-on-dark:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(0,0,0,0.5); }
.btn-outline-dark {
  background: transparent;
  color: var(--panel-ink);
  border-color: var(--panel-line);
}
.btn-outline-dark:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  flex: none;
  display: grid;
  place-items: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); }
.brand-word {
  font-family: var(--display);
  font-size: 16.5px;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.brand-word span {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.13em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-dim);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--blue-ink); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- Sections generic ---------------- */
section { position: relative; }
.section-pad { padding-block: 108px; }
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
.section-head p { color: var(--ink-dim); font-size: 17px; }
.section-head.centered { margin-inline: auto; text-align: center; align-items: center; }

.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

/* ---------------- Hero ---------------- */
.hero {
  background: var(--paper);
  overflow: hidden;
}
.hero-grid {
  padding-top: 88px;
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; max-width: 560px; }
.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--blue) 10%, var(--cyan) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .lede { font-size: 17.5px; color: var(--ink-dim); max-width: 52ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.hero-tags span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 0.92;
  border-radius: 24px;
  background: radial-gradient(120% 130% at 30% 20%, var(--panel-2) 0%, var(--panel) 62%);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(11, 21, 38, 0.45);
}
.hero-visual .circuit-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero-visual .glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(18, 174, 203, 0.35), transparent 68%);
  filter: blur(10px);
}
.hero-visual img {
  position: relative;
  width: 70%;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; }
}
.hero-visual .chip-label {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--panel-ink-dim);
}
.hero-visual .chip-label .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(18,174,203,0.18);
  display: inline-block; margin-right: 8px;
}

/* subtle background circuitry for hero copy side */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}

/* ---------------- Capabilities (bento) ---------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-row-2 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -22px rgba(11, 21, 38, 0.25);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--paper-dim);
  color: var(--blue-ink);
  flex: none;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; }
.card p { color: var(--ink-dim); font-size: 15px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.card-tags span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan-ink);
  background: rgba(18, 174, 203, 0.09);
  border-radius: 999px;
  padding: 5px 10px;
}

/* ---------------- Products ---------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-dim) 100%);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.product-card .tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  border: 1px solid rgba(185, 134, 47, 0.35);
  background: rgba(185, 134, 47, 0.08);
  padding: 5px 11px;
  border-radius: 999px;
}
.product-card .card-icon { background: var(--panel); color: var(--cyan); }
.product-card h3 { font-size: 21px; }
.product-card p { color: var(--ink-dim); font-size: 15px; flex: 1; }
.product-card .status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.product-card .status .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
}

/* ---------------- Manifesto (dark band) ---------------- */
.manifesto {
  background: var(--panel);
  color: var(--panel-ink);
  padding-block: 88px;
}
.manifesto-head { max-width: 560px; margin-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.manifesto-head h2 { color: var(--panel-ink); font-size: clamp(26px, 3vw, 36px); }
.manifesto-head p { color: var(--panel-ink-dim); font-size: 16.5px; }
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.principle {
  border-top: 1px solid var(--panel-line);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.principle .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.principle h3 { color: var(--panel-ink); font-size: 18px; font-family: var(--body); font-weight: 600; }
.principle p { color: var(--panel-ink-dim); font-size: 14.5px; }

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}
.contact-copy { display: flex; flex-direction: column; gap: 20px; max-width: 480px; }
.contact-copy .lede { color: var(--ink-dim); font-size: 17px; }
.contact-list { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .card-icon { width: 40px; height: 40px; }
.contact-item .label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.contact-item .value { font-size: 16px; font-weight: 600; }
.contact-item .value.muted { font-weight: 400; color: var(--ink-dim); }

.contact-panel {
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
}
.contact-panel h3 { color: var(--panel-ink); font-size: 20px; }
.contact-panel p { color: var(--panel-ink-dim); font-size: 15px; }
.contact-panel .btn { width: 100%; }
.hours-row { display: flex; justify-content: space-between; font-size: 14px; padding: 10px 0; border-top: 1px solid var(--panel-line); }
.hours-row span:first-child { color: var(--panel-ink-dim); }
.hours-row span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--panel);
  color: var(--panel-ink-dim);
  border-top: 1px solid var(--panel-line);
  padding-block: 40px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { background: var(--panel-2); }
.footer-brand span {
  font-family: var(--display);
  color: var(--panel-ink);
  font-size: 15px;
}
.footer-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { font-size: 14px; color: var(--panel-ink-dim); }
.footer-links a:hover { color: var(--cyan); }
.footer-fine { font-size: 13px; color: var(--ink-faint); }

/* ---------------- Reveal-on-scroll ----------------
   Visible by default so content never depends on JS running.
   The "js" class (set synchronously in <head>) opts into the
   hidden-until-revealed treatment; anything left unrevealed is
   force-shown by a backstop timer in main.js. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-row-2 { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .principles { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 720px) {
  .section-pad { padding-block: 72px; }
  .nav-links { position: fixed; top: 74px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 28px 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-primary.desktop-only { display: none; }
  .bento { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1; }
}
