/* ============================================================
   GOALTECH — dark, sleek, high-contrast tech system
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* surfaces — cool near-black */
  --bg:        oklch(0.16 0.012 250);
  --bg-2:      oklch(0.19 0.013 250);
  --surface:   oklch(0.215 0.014 250);
  --surface-2: oklch(0.25 0.015 250);
  --line:      oklch(0.32 0.018 250 / 0.7);
  --line-soft: oklch(0.32 0.018 250 / 0.35);

  /* text */
  --fg:        oklch(0.97 0.004 250);
  --fg-mid:    oklch(0.78 0.012 250);
  --fg-dim:    oklch(0.6 0.014 250);

  /* accents — shared chroma/lightness, varied hue */
  --accent:    oklch(0.74 0.15 232);   /* electric blue */
  --accent-2:  oklch(0.74 0.15 178);   /* teal */
  --accent-ink:oklch(0.2 0.05 232);

  --glow: oklch(0.74 0.15 232 / 0.5);

  --maxw: 1240px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

/* faint engineering grid over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
}

#root { position: relative; z-index: 1; }

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- typography helpers ---------- */
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }

.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: oklch(0.16 0.012 250 / 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 7px;
  object-fit: contain; flex: none;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: 0.04em; }
.brand-name b { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--fg-mid);
  padding: 9px 15px; border-radius: 8px; position: relative;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover { color: var(--fg); background: var(--surface); }
.nav-link.active { color: var(--fg); }
.nav-link.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
}

.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--bg-2);
}
.lang-toggle button {
  background: transparent; border: none; color: var(--fg-dim);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  padding: 7px 11px; transition: all 0.2s var(--ease);
}
.lang-toggle button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

.nav-cta {
  font-size: 13.5px; font-weight: 600; color: var(--fg);
  border: 1px solid var(--line); padding: 9px 16px; border-radius: 8px;
  transition: all 0.2s var(--ease);
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

.burger { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 10px;
  border: 1px solid transparent; transition: all 0.22s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 24px -8px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px var(--glow); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arr { transition: transform 0.22s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ============================================================
   SECTIONS / GENERIC
   ============================================================ */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); margin: 18px 0 0; }
.section-head p { color: var(--fg-mid); font-size: 17px; margin-top: 16px; }

.page-enter { animation: pageIn 0.45s var(--ease); }
@media (prefers-reduced-motion: reduce) { .page-enter { animation: none; } }
@keyframes pageIn { from { transform: translateY(16px); } to { transform: translateY(0); } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 92px 0 84px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--glow), transparent 62%);
  opacity: 0.5; filter: blur(20px);
}
.hero-inner { position: relative; }
.hero h1 {
  font-size: clamp(32px, 4.5vw, 60px); font-weight: 700; margin: 26px 0 0;
  letter-spacing: -0.035em; max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(17px, 1.7vw, 20px); color: var(--fg-mid); max-width: 60ch; margin-top: 26px; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 46px; }
.chip {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-mid);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px;
  background: var(--bg-2); transition: all 0.2s var(--ease); white-space: nowrap;
}
.chip:hover { border-color: var(--accent); color: var(--fg); }
.chip b { color: var(--accent); font-weight: 600; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 16px;
  overflow: hidden; margin-top: 70px; }
.stat { background: var(--bg); padding: 28px 26px; }
.stat .num { font-family: var(--font-display); font-size: 38px; font-weight: 600; letter-spacing: -0.02em; }
.stat .num span { color: var(--accent); }
.stat .lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--fg-dim); text-transform: uppercase; margin-top: 8px; }

/* ============================================================
   CARDS / GRID
   ============================================================ */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: 16px; padding: 28px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }

/* logo plate (light, so colored brand logos read clearly) */
.logo-plate {
  background: #fff; border-radius: 12px; height: 92px;
  display: flex; align-items: center; justify-content: center;
  padding: 18px 22px;
}
.logo-plate img { max-height: 56px; width: auto; object-fit: contain; }
.logo-plate .wm {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: 0.01em; color: #16181d; text-align: center; line-height: 1.1;
}

/* agent cards */
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.agent-card .agent-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.agent-card .idx { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); }
.agent-card .cats { display: flex; flex-direction: column; gap: 2px; }
.cat-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 14px; color: var(--fg-mid); padding: 10px 2px;
  border-top: 1px solid var(--line-soft); transition: color 0.18s var(--ease), padding 0.18s var(--ease);
}
.cat-link:last-child { border-bottom: 1px solid var(--line-soft); }
.cat-link:hover { color: var(--accent); padding-left: 8px; }
.cat-link .go { font-family: var(--font-mono); opacity: 0; transition: opacity 0.18s var(--ease); }
.cat-link:hover .go { opacity: 1; }

/* distributor grid */
.dist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dist-card { padding: 0; }
.dist-card .logo-plate { height: 120px; border-radius: 16px 16px 0 0; }
.dist-card .dist-name { padding: 16px 20px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.dist-card .dist-name small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; color: var(--fg-dim); margin-top: 3px; letter-spacing: 0.04em; }

/* ============================================================
   INTRODUCTION
   ============================================================ */
.intro-lead { font-size: clamp(20px, 2.3vw, 27px); font-family: var(--font-display); font-weight: 400;
  line-height: 1.4; color: var(--fg); max-width: 24ch; }
.intro-body { color: var(--fg-mid); font-size: 16.5px; }
.intro-body p + p { margin-top: 18px; }

.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 14px; }
.tl-item { display: grid; grid-template-columns: 92px 1fr; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line-soft); }
.tl-item:last-child { border-bottom: 1px solid var(--line-soft); }
.tl-year { font-family: var(--font-mono); font-size: 14px; color: var(--accent); font-weight: 500; }
.tl-text h4 { font-size: 18px; margin-bottom: 6px; }
.tl-text p { color: var(--fg-mid); font-size: 15px; }

/* founder */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: stretch; }
.founder-photo {
  border-radius: 16px; border: 1px solid var(--line-soft); min-height: 360px;
  background:
    repeating-linear-gradient(45deg, var(--surface) 0 12px, var(--bg-2) 12px 24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--fg-dim);
}
.founder-photo .ph-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
.founder-quote { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35; letter-spacing: -0.01em; }
.founder-quote .q { color: var(--accent); }
.founder-sign { margin-top: 26px; }
.founder-sign .nm { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.founder-sign .ttl { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-dim); margin-top: 3px; letter-spacing: 0.04em; }
.note-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-2);
  border: 1px dashed oklch(0.74 0.15 178 / 0.5); border-radius: 8px; padding: 7px 12px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-rows { display: flex; flex-direction: column; }
.c-row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.c-row:last-child { border-bottom: 1px solid var(--line-soft); }
.c-ico { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--accent); background: var(--bg-2); }
.c-row .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); }
.c-row .v { font-size: 16px; color: var(--fg); margin-top: 4px; }
.c-row a.v:hover { color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--fg-dim); }
.field input, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; color: var(--fg); font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-ok { font-family: var(--font-mono); font-size: 13px; color: var(--accent-2); display: flex; align-items: center; gap: 8px; }

.map-wrap { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); height: 340px; margin-top: 28px; position: relative; }
.map-fallback { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(circle at 50% 40%, var(--surface), var(--bg-2)),
    repeating-linear-gradient(0deg, transparent 0 38px, var(--line-soft) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, var(--line-soft) 38px 39px);
}
.map-wrap iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; filter: grayscale(0.4) brightness(0.85) contrast(1.05); background: transparent; }

/* ============================================================
   CTA band + FOOTER
   ============================================================ */
.cta-band { border: 1px solid var(--line-soft); border-radius: 22px; padding: 56px;
  background: linear-gradient(120deg, var(--bg-2), var(--surface));
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px;
  background: radial-gradient(circle, var(--glow), transparent 65%); opacity: 0.4; pointer-events: none; }
.cta-band h3 { font-size: clamp(26px, 3vw, 38px); position: relative; }
.cta-band p { color: var(--fg-mid); margin-top: 10px; position: relative; }

.footer { border-top: 1px solid var(--line-soft); padding: 56px 0 36px; margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: var(--fg-mid); font-size: 14.5px; padding: 5px 0; transition: color 0.18s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--fg-dim); font-size: 14px; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid var(--line-soft); padding-top: 26px; flex-wrap: wrap; }
.footer-bottom .cp { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .dist-grid { grid-template-columns: repeat(3, 1fr); }
  .founder { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .intro-split { grid-template-columns: 1fr !important; gap: 28px !important; }
}
@media (max-width: 760px) {
  .shell { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .agent-grid, .dist-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-band { padding: 36px; }
  .mobile-menu { display: flex; }
}

/* mobile slide-down menu */
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 20px 22px;
  border-bottom: 1px solid var(--line-soft); background: var(--bg-2); position: sticky; top: var(--nav-h); z-index: 99; }
.mobile-menu a { padding: 13px 14px; border-radius: 9px; color: var(--fg-mid); font-weight: 500; }
.mobile-menu a.active { color: var(--accent); background: var(--surface); }
