/* =============================================================
   HK Lab — Company Homepage
   Based on HK Lab Brand Design System v2 · Corydalis (현호색) blue
   ============================================================= */

/* -------- 1. Design Tokens -------- */
:root {
  /* Hyunho palette */
  --indigo-900: #0A1530;
  --indigo-800: #11225C;
  --indigo-700: #1F3494;
  --indigo-600: #2A3FBF;
  --blue-500:   #3D6BE8;
  --blue-400:   #4F86F0;
  --sky-400:    #6FA9F3;
  --sky-300:    #9EC4F7;
  --mist-200:   #C9DDFB;
  --mist-100:   #EAF2FE;
  --violet-500: #7B5CD6;
  --violet-300: #A693E5;

  /* Cool neutrals */
  --ink-900: #0A1530;
  --ink-800: #15203F;
  --ink-700: #2D375A;
  --ink-600: #5B6580;
  --ink-500: #8C95AB;
  --ink-400: #C2C8D6;
  --ink-300: #E2E5EE;
  --ink-200: #F2F4F9;
  --ink-100: #FFFFFF;

  /* Semantics */
  --success: #2BA66B;
  --warning: #E8A02A;
  --danger:  #E04A5A;

  /* Gradients */
  --grad-hyunho:     linear-gradient(120deg, #2A3FBF 0%, #3D6BE8 50%, #6FA9F3 100%);
  --grad-hyunho-fg:  linear-gradient(100deg, #2A3FBF 0%, #3D6BE8 55%, #6FA9F3 100%);
  --grad-deep:       linear-gradient(120deg, #0A1530 0%, #11225C 45%, #2A3FBF 100%);
  --grad-violet-blue:linear-gradient(120deg, #7B5CD6 0%, #3D6BE8 60%, #6FA9F3 100%);
  --grad-sky:        linear-gradient(120deg, #2A3FBF 0%, #6FA9F3 60%, #C9DDFB 100%);

  /* Surfaces */
  --bg-0: #FFFFFF;
  --bg-1: #F2F4F9;
  --bg-2: #E2E5EE;
  --border: #C2C8D6;
  --fg: #0A1530;
  --fg-mute: #5B6580;

  --d-bg-0: #07102A;
  --d-bg-1: #0E1B40;
  --d-bg-2: #172657;
  --d-border: #243573;
  --d-fg: #FFFFFF;
  --d-fg-mute: #9EB1DC;

  /* Radius */
  --r-sharp: 2px;
  --r-soft: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Elevation */
  --elev-1: 0 1px 2px rgba(10,21,48,.04), 0 1px 3px rgba(10,21,48,.06);
  --elev-2: 0 4px 12px rgba(10,21,48,.06), 0 8px 24px rgba(10,21,48,.08);
  --elev-3: 0 12px 32px rgba(10,21,48,.10), 0 24px 48px rgba(10,21,48,.14);
  --glow-blue:   0 0 0 1px rgba(61,107,232,.30), 0 12px 40px rgba(61,107,232,.40);
  --glow-violet: 0 0 0 1px rgba(123,92,214,.30), 0 12px 40px rgba(123,92,214,.40);

  /* Type */
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1280px;
  --pad-x: 64px;
  --nav-h: 72px;
}

/* -------- 2. Reset & base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* Typography helpers */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 11px;
}
.grad-fg {
  background: var(--grad-hyunho-fg);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* -------- 3. Chevron motif -------- */
.chev {
  display: inline-block; width: 9px; height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  vertical-align: 2px;
  margin-left: 2px;
}
.chev--down { transform: rotate(135deg); }
.chev--lg { width: 22px; height: 22px; border-width: 4px; }
.chev--xl { width: 60px; height: 60px; border-width: 10px; color: var(--blue-500); }

/* -------- 4. Buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 12px 20px; border-radius: var(--r-sharp);
  transition: 200ms cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
}
.btn--primary { background: var(--grad-hyunho); color: #fff; }
.btn--primary:hover { box-shadow: var(--glow-blue); transform: translateY(-1px); }
.btn--secondary { background: #fff; color: var(--ink-900); border: 1px solid var(--border); }
.btn--secondary:hover { border-color: var(--blue-500); color: var(--blue-500); }
.btn--ghost { color: var(--ink-900); padding: 12px 12px; }
.btn--ghost:hover { color: var(--blue-500); }
.btn--ghost-dark { color: #fff; }
.btn--ghost-dark:hover { color: var(--sky-300); }
.btn--sm { font-size: 12px; padding: 8px 12px; }

/* -------- 5. Top Navigation -------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(7, 16, 42, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background 250ms;
}
.site-nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.site-nav__brand img { height: 28px; width: auto; }
.site-nav__drawer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex: 1;
}
.site-nav__menu {
  display: flex; gap: 28px; justify-content: center; flex: 1;
}
.site-nav__menu a {
  font-size: 14px; font-weight: 500;
  color: rgba(255, 255, 255, .82);
  padding: 4px 0; position: relative;
  transition: color 150ms;
}
.site-nav__menu a:hover,
.site-nav__menu a.is-active { color: #fff; }
.site-nav__menu a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--grad-hyunho-fg);
}
.site-nav__cta { display: flex; gap: 8px; align-items: center; }
.site-nav__toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: #fff;
}
.site-nav__toggle span,
.site-nav__toggle span::before,
.site-nav__toggle span::after {
  content: ""; display: block;
  width: 22px; height: 2px; background: currentColor;
  border-radius: 1px;
  transition: transform 200ms, top 200ms, opacity 200ms;
}
.site-nav__toggle span { position: relative; }
.site-nav__toggle span::before { position: absolute; top: -7px; }
.site-nav__toggle span::after  { position: absolute; top:  7px; }
.site-nav.is-open .site-nav__toggle span { background: transparent; }
.site-nav.is-open .site-nav__toggle span::before { top: 0; transform: rotate(45deg); }
.site-nav.is-open .site-nav__toggle span::after  { top: 0; transform: rotate(-45deg); }

/* -------- 6. Hero -------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  padding: calc(var(--nav-h) + 80px) var(--pad-x) 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000, transparent 80%);
}
.hero__glow {
  position: absolute; width: 600px; height: 600px;
  border-radius: 999px;
  filter: blur(80px); pointer-events: none;
  z-index: -1;
}
.hero__glow--a { top: -200px; right: -100px; background: radial-gradient(circle, rgba(61,107,232,.5), transparent 60%); }
.hero__glow--b { bottom: -300px; left: -150px; background: radial-gradient(circle, rgba(111,169,243,.45), transparent 60%); }
.hero__inner { max-width: var(--container); margin: 0 auto; }
.hero__eyebrow { color: var(--sky-300); margin-bottom: 24px; }
.hero__title {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.04; letter-spacing: -0.035em;
  font-weight: 800; margin: 0 0 24px;
  max-width: 880px;
}
.hero__title .grad-fg {
  background: linear-gradient(100deg, #6FA9F3 0%, #C9DDFB 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  font-size: 18px; line-height: 1.6;
  max-width: 720px;
  color: rgba(255,255,255,.78);
  margin: 0 0 36px;
}
.hero__lead em { color: #fff; font-style: normal; font-weight: 600; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 64px; }
.hero__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero__metrics div { display: flex; flex-direction: column; gap: 4px; }
.hero__metrics strong {
  font-size: 44px; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(100deg, #6FA9F3, #C9DDFB);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__metrics strong small { font-size: 18px; font-weight: 600; opacity: .7; }
.hero__metrics span {
  font-size: 12px;
  color: var(--d-fg-mute);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero__animated {
  position: absolute;
  right: var(--pad-x);
  bottom: 24px;
  width: 280px;
  opacity: .55;
  pointer-events: none;
  mix-blend-mode: screen;
  border-radius: var(--r-soft);
  z-index: -1;
}

/* -------- 7. Section common -------- */
.section {
  padding: 120px var(--pad-x);
  scroll-margin-top: var(--nav-h);
}
.section--alt { background: var(--bg-1); }
.section--dark { background: var(--ink-900); color: #fff; }
.section__inner { max-width: var(--container); margin: 0 auto; }
.section__head { display: grid; grid-template-columns: 120px 1fr; gap: 32px; margin-bottom: 64px; align-items: start; }
.section__num {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  padding: 10px 14px; background: var(--ink-900); color: #fff;
  border-radius: var(--r-sharp); justify-self: start;
  letter-spacing: .04em;
}
.section--dark .section__num { background: rgba(255,255,255,.1); }
.section__title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800; letter-spacing: -0.03em;
  margin: 0 0 14px; line-height: 1.05;
}
.section__sub {
  font-size: 18px; line-height: 1.55;
  color: var(--fg-mute);
  max-width: 760px; margin: 0;
}
.section--dark .section__sub { color: rgba(255,255,255,.7); }

/* -------- 8. Cards (products, features, stats) -------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-grid--two { grid-template-columns: repeat(2, 1fr); }
.card-grid--four { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-soft);
  overflow: hidden;
  transition: transform 250ms cubic-bezier(.2,.8,.2,1), box-shadow 250ms;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--elev-2); }
.section--dark .card,
.card--dark {
  background: var(--d-bg-1);
  border-color: var(--d-border);
  color: #fff;
}
.section--dark .card:hover,
.card--dark:hover { box-shadow: 0 12px 40px rgba(61,107,232,.25); border-color: var(--blue-500); }

.card__media {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--bg-1);
}
.section--dark .card__media,
.card--dark .card__media { background: var(--d-bg-2); }
.card__tag {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 10px;
  background: rgba(255,255,255,.1);
  color: var(--sky-300);
  border-radius: var(--r-sharp);
  z-index: 2;
}
.card--light .card__tag {
  background: rgba(10,21,48,.06);
  color: var(--blue-500);
}
.card__media--detector { background: linear-gradient(135deg, #11225C, #2A3FBF); }
.card__media--ruler    { background: linear-gradient(135deg, #2A3FBF, #6FA9F3); }
.card__media--platform { background: linear-gradient(135deg, #4A2F95, #7B5CD6); }
.card__media-hatch {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 1px, transparent 1px 12px);
}
.card__scan {
  position: absolute; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(111,169,243,0), rgba(111,169,243,.5), rgba(111,169,243,0));
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 10%; opacity: 0; }
  10% { opacity: 1; }
  50% { top: 70%; opacity: 1; }
  90% { opacity: 0; }
}
.card__media-icon {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,.85);
}
.card__media-icon svg {
  width: 80px; height: 80px;
  stroke: currentColor; stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

.card__body { padding: 24px; }
.card__body h4 {
  margin: 0 0 8px; font-size: 22px;
  font-weight: 700; letter-spacing: -0.01em;
}
.card__body p {
  margin: 0 0 16px;
  color: var(--fg-mute);
  line-height: 1.55; font-size: 14px;
}
.section--dark .card__body p,
.card--dark .card__body p { color: rgba(255,255,255,.7); }
.card__body p em { color: var(--blue-500); font-style: normal; font-weight: 600; }
.section--dark .card__body p em,
.card--dark .card__body p em { color: var(--sky-300); }
.card__more {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-size: 13px; font-weight: 600;
  color: var(--blue-500);
  font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase;
}
.section--dark .card__more,
.card--dark .card__more { color: var(--sky-300); }

/* Stat card */
.card--stat {
  padding: 28px 24px;
  background: var(--ink-900); color: #fff;
  border: none; text-align: left;
}
.card--stat-blue   { background: var(--grad-hyunho); }
.card--stat-violet { background: var(--grad-violet-blue); }
.card--stat-deep   { background: var(--grad-deep); }
.card--stat:hover { transform: translateY(-4px); }
.card--stat .card__tag { position: static; background: transparent; padding: 0; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.card__stat {
  display: block; font-size: 56px; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
}
.card__stat small { font-size: 18px; font-weight: 600; opacity: .7; margin-left: 4px; }
.card--stat p { margin: 12px 0 0; color: rgba(255,255,255,.75); font-size: 13px; }

/* Feature card */
.card--feature { padding: 28px 24px; }
.card__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-sharp);
  display: grid; place-items: center;
  background: var(--mist-100); color: var(--blue-500);
  margin-bottom: 20px;
}
.section--dark .card__icon,
.card--dark .card__icon { background: rgba(61,107,232,.15); color: var(--sky-300); }
.card__icon svg {
  width: 28px; height: 28px;
  stroke: currentColor; stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

/* -------- 9. Section: Solutions -------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.solution {
  position: relative;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-soft);
  background: #fff;
  transition: 250ms cubic-bezier(.2,.8,.2,1);
}
.solution:hover { border-color: var(--blue-500); box-shadow: var(--elev-2); transform: translateY(-2px); }
.solution__num { color: var(--blue-500); }
.solution h4 { margin: 12px 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.solution p { margin: 0 0 16px; color: var(--fg-mute); font-size: 14px; line-height: 1.55; }
.solution__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center;
  padding: 5px 10px;
  background: var(--mist-100); color: var(--indigo-700);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .03em;
}

/* -------- 10. Section: Technology -------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.tech {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--d-border);
  border-radius: var(--r-soft);
  background: var(--d-bg-1);
}
.tech__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-sharp);
  display: grid; place-items: center;
  background: rgba(61,107,232,.15); color: var(--sky-300);
}
.tech__icon svg {
  width: 28px; height: 28px;
  stroke: currentColor; stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.tech h4 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.tech p { margin: 0 0 12px; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.55; }
.tech ul { display: flex; flex-wrap: wrap; gap: 6px; }
.tech ul li {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--sky-300);
  background: rgba(61,107,232,.18);
  padding: 4px 8px; border-radius: var(--r-pill);
  letter-spacing: .04em;
}

/* -------- 11. Section: Company timeline -------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-info { display: flex; flex-direction: column; gap: 16px; }
.about-info__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.about-info__row:last-child { border-bottom: none; }
.about-info__row dt { font-family: var(--font-mono); font-size: 11px; color: var(--fg-mute); letter-spacing: .04em; text-transform: uppercase; padding-top: 4px; }
.about-info__row dd { margin: 0; font-size: 16px; font-weight: 500; }

.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline__item { position: relative; padding-bottom: 24px; }
.timeline__item::before {
  content: ""; position: absolute;
  left: -32px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--blue-500);
}
.timeline__item--highlight::before { background: var(--grad-hyunho); border-color: transparent; }
.timeline__year {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--blue-500); font-weight: 600;
  letter-spacing: .04em; margin-bottom: 4px;
}
.timeline__text { font-size: 15px; line-height: 1.5; }
.timeline__text strong { font-weight: 700; }

.partners {
  margin-top: 96px;
  padding: 36px 32px;
  border: 1px dashed var(--border);
  border-radius: var(--r-soft);
  text-align: center;
}
.partners__label { color: var(--fg-mute); margin-bottom: 16px; }
.partners__list {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 12px;
}
.partners__list span {
  font-family: var(--font-mono); font-size: 13px;
  padding: 8px 16px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  letter-spacing: .03em;
}

/* -------- 12. Section: Contact -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
}
.contact-info {
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--r-soft);
  padding: 40px;
  position: relative; overflow: hidden;
}
.contact-info::before {
  content: ""; position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(61,107,232,.45), transparent 60%);
  filter: blur(50px);
}
.contact-info > * { position: relative; }
.contact-info h3 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.contact-info p { color: rgba(255,255,255,.75); margin: 0 0 32px; line-height: 1.6; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list__row {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  align-items: baseline;
}
.contact-list__row:last-child { border-bottom: none; }
.contact-list__row dt {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--sky-300); letter-spacing: .04em; text-transform: uppercase;
}
.contact-list__row dd { margin: 0; font-size: 15px; font-weight: 500; }
.contact-list__row dd a { color: #fff; }
.contact-list__row dd a:hover { color: var(--sky-300); }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-soft);
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.contact-form h3 { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form .field__label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-mute); letter-spacing: .04em; text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  font-family: inherit; font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sharp);
  background: var(--bg-1);
  transition: border-color 150ms;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* -------- 13. Footer -------- */
.site-footer {
  background: #050B1F;
  color: rgba(255,255,255,.7);
  padding: 64px var(--pad-x) 32px;
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.site-footer__brand img { height: 32px; margin-bottom: 16px; }
.site-footer__brand p { font-size: 14px; line-height: 1.6; max-width: 320px; }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.site-footer__col span {
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,.5); letter-spacing: .04em;
  text-transform: uppercase; display: block; margin-bottom: 14px;
}
.site-footer__col a {
  display: block;
  font-size: 14px; padding: 4px 0;
  color: rgba(255,255,255,.78);
}
.site-footer__col a:hover { color: var(--sky-300); }
.site-footer__bottom {
  max-width: var(--container);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  flex-wrap: wrap; gap: 8px;
}

/* -------- 14a. Page header (compact hero for non-home pages) -------- */
.page-header {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  padding: calc(var(--nav-h) + 64px) var(--pad-x) 80px;
  overflow: hidden;
  isolation: isolate;
}
.page-header__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000, transparent 80%);
}
.page-header::before {
  content: ""; position: absolute;
  width: 480px; height: 480px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(61,107,232,.45), transparent 60%);
  filter: blur(70px);
  top: -180px; right: -120px;
  z-index: -1;
}
.page-header__inner { max-width: var(--container); margin: 0 auto; }
.page-header__eyebrow { color: var(--sky-300); margin-bottom: 20px; }
.page-header__title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06; letter-spacing: -0.03em;
  font-weight: 800; margin: 0 0 20px;
  max-width: 880px;
}
.page-header__title .grad-fg {
  background: linear-gradient(100deg, #6FA9F3 0%, #C9DDFB 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-header__lead {
  font-size: 17px; line-height: 1.6;
  max-width: 760px;
  color: rgba(255,255,255,.78);
  margin: 0;
}

/* -------- 14b. Home — entry cards (1 per menu) -------- */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.entry-grid > :first-child { grid-column: span 2; }
.entry-card {
  display: block;
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-soft);
  background: #fff;
  color: var(--fg);
  transition: 250ms cubic-bezier(.2,.8,.2,1);
  text-decoration: none;
}
.entry-card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--elev-2);
  transform: translateY(-4px);
}
.entry-card__num { color: var(--blue-500); margin-bottom: 12px; display: block; }
.entry-card h4 { margin: 0 0 8px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.entry-card p { margin: 0 0 18px; color: var(--fg-mute); font-size: 15px; line-height: 1.55; }
.entry-card__more {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue-500);
}
.entry-card--cta {
  background: var(--grad-deep); color: #fff;
  border-color: transparent;
}
.entry-card--cta .entry-card__num,
.entry-card--cta .entry-card__more { color: var(--sky-300); }
.entry-card--cta p { color: rgba(255,255,255,.78); }
.entry-card--cta:hover { box-shadow: var(--glow-blue); }

/* -------- 14c. Product page detail blocks -------- */
.product__head { margin-bottom: 40px; max-width: 880px; }
.product__num { color: var(--blue-500); display: block; margin-bottom: 12px; }
.section--dark .product__num,
.section--alt .product__num { color: var(--blue-500); }
.product__title { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 14px; line-height: 1.05; }
.product__lead { font-size: 17px; line-height: 1.6; color: var(--fg-mute); margin: 0; max-width: 720px; }

.product__figure {
  margin: 0 0 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-soft);
  overflow: hidden;
  background: var(--bg-1);
}
.product__figure img { width: 100%; height: auto; display: block; }
.product__figure figcaption {
  padding: 12px 18px;
  background: var(--bg-1);
  color: var(--fg-mute);
  border-top: 1px solid var(--border);
  font-size: 11px;
}

.product__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.spec {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-soft);
  text-align: left;
}
.section--alt .spec { background: #fff; }
.section--dark .spec { background: var(--d-bg-1); border-color: var(--d-border); color: #fff; }
.spec span { display: block; color: var(--fg-mute); margin-bottom: 8px; }
.section--dark .spec span { color: var(--sky-300); }
.spec strong {
  display: block; font-size: 32px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1;
}
.spec strong small { font-size: 14px; font-weight: 600; opacity: .7; margin-left: 2px; }

.product__variants {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.variant {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-soft);
}
.section--alt .variant { background: #fff; }
.variant__tag { color: var(--blue-500); display: block; margin-bottom: 12px; }
.variant h4 { margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.variant p { margin: 0 0 16px; color: var(--fg-mute); font-size: 14px; line-height: 1.55; }
.variant__list { display: flex; flex-direction: column; gap: 6px; }
.variant__list li {
  position: relative; padding-left: 18px;
  font-size: 14px; color: var(--fg);
}
.variant__list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--blue-500);
  border-radius: 1px;
}

.product__flow { margin-top: 32px; }
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.flow__step {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-soft);
  background: #fff;
}
.flow__step span { display: block; margin-bottom: 8px; }
.flow__step strong { display: block; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.flow__step small { color: var(--fg-mute); font-size: 13px; }
.flow__step--ok    { border-left: 4px solid var(--success); }
.flow__step--ok span    { color: var(--success); }
.flow__step--bad   { border-left: 4px solid var(--danger); }
.flow__step--bad span   { color: var(--danger); }
.flow__step--alert { border-left: 4px solid var(--warning); }
.flow__step--alert span { color: var(--warning); }

.sub-h {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-mute); margin: 0 0 16px;
}

/* -------- 14d. Feature grid for AI Platform features -------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-soft);
}
.feature__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sharp);
  display: grid; place-items: center;
  background: var(--mist-100);
  color: var(--blue-500);
  margin-bottom: 16px;
}
.feature__icon svg {
  width: 24px; height: 24px;
  stroke: currentColor; stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.feature h4 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.feature p { margin: 0; color: var(--fg-mute); font-size: 14px; line-height: 1.55; }

/* -------- 14e. Solution detail (alternating image/copy) -------- */
.solution-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.solution-detail__grid--reverse { direction: rtl; }
.solution-detail__grid--reverse > * { direction: ltr; }
.solution-detail__num { color: var(--blue-500); display: block; margin-bottom: 12px; }
.solution-detail__copy h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 16px; line-height: 1.1; }
.solution-detail__lead { font-size: 17px; line-height: 1.6; color: var(--fg-mute); margin: 0 0 24px; }
.solution-detail__list { display: flex; flex-direction: column; gap: 12px; margin: 0 0 24px; }
.solution-detail__list li {
  position: relative; padding-left: 24px;
  font-size: 15px; line-height: 1.6;
}
.solution-detail__list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--blue-500);
  border-right: 2px solid var(--blue-500);
  transform: rotate(45deg);
}
.solution-detail__list strong { font-weight: 700; }
.solution-detail__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.solution-detail__figure {
  border: 1px solid var(--border);
  border-radius: var(--r-soft);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: var(--elev-1);
  margin: 0;
}
.solution-detail__figure img { width: 100%; height: auto; display: block; }
.solution-detail__figure figcaption {
  padding: 12px 18px;
  background: var(--bg-1);
  color: var(--fg-mute);
  border-top: 1px solid var(--border);
  font-size: 11px;
}
.placeholder-card {
  padding: 56px 32px;
  background: var(--grad-deep);
  color: #fff;
  border-radius: var(--r-soft);
  text-align: center;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.placeholder-card .mono { color: var(--sky-300); }
.placeholder-card__icons { display: flex; justify-content: center; gap: 24px; color: var(--sky-300); }
.placeholder-card__icons svg {
  width: 48px; height: 48px;
  stroke: currentColor; stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.placeholder-card p { margin: 0; line-height: 1.6; }

/* -------- 14f. Step flow (technology page) -------- */
.step-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 32px;
  background: var(--bg-1);
  border-radius: var(--r-soft);
  list-style: none;
  margin: 0;
}
.step {
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-soft);
  text-align: center;
}
.step__num {
  font-family: var(--font-mono); font-size: 14px;
  color: var(--blue-500); font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.step strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.step small { color: var(--fg-mute); font-size: 13px; }
.step__sep {
  display: grid; place-items: center;
  color: var(--blue-500);
  list-style: none;
}
.step__sep .chev { width: 14px; height: 14px; border-width: 3px; margin: 0; }

/* -------- 14g. CTA band -------- */
.cta-band {
  position: relative; overflow: hidden;
  padding: 80px var(--pad-x);
}
.cta-band::before {
  content: ""; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(61,107,232,.4), transparent 60%);
  filter: blur(80px);
}
.cta-band__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.cta-band__inner h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800; letter-spacing: -0.02em;
  margin: 0; line-height: 1.2;
}

/* -------- 14h. Partners — actual logos -------- */
.partners-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
}
.partner-logo {
  display: grid; place-items: center;
  padding: 32px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-soft);
  transition: 200ms;
  min-height: 120px;
}
.partner-logo:hover {
  border-color: var(--blue-500);
  box-shadow: var(--elev-1);
  transform: translateY(-2px);
}
.partner-logo img {
  max-width: 100%;
  max-height: 56px;
  width: auto; height: auto;
  filter: grayscale(.2);
  opacity: .85;
  transition: 200ms;
}
.partner-logo:hover img { filter: none; opacity: 1; }
.partner-logo--text { text-align: center; }
.partner-logo__text strong { display: block; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.partner-logo__text small {
  display: block; margin-top: 6px;
  color: var(--fg-mute);
  font-size: 10px; letter-spacing: .08em;
}

/* -------- 14i. Auth pages (Login / Register / Password / Confirm) -------- */
.page-header--compact {
  padding: calc(var(--nav-h) + 48px) var(--pad-x) 56px;
}
.auth-section {
  padding: 64px var(--pad-x) 96px;
  display: flex;
  justify-content: center;
  background: var(--bg-1);
  min-height: 50vh;
}
.auth-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-soft);
  padding: 40px;
  box-shadow: var(--elev-1);
}
.auth-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.auth-card__sub {
  margin: 0 0 28px;
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1.55;
}
.auth-card .form-group { margin-bottom: 18px; }
.auth-card .field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.auth-card .form-control {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sharp);
  background: var(--bg-1);
  transition: border-color 150ms, background 150ms;
}
.auth-card .form-control:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(61,107,232,.12);
}
.auth-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  cursor: pointer;
}
.auth-check input { width: 16px; height: 16px; cursor: pointer; }
.auth-submit {
  display: inline-flex; width: 100%; justify-content: center;
  margin-bottom: 8px;
}
.auth-links {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-links a {
  color: var(--blue-500);
  font-size: 13px;
}
.auth-links a:hover { text-decoration: underline; }

/* Validation + status messages */
.text-danger {
  display: block;
  color: var(--danger);
  font-size: 12px;
  margin-top: 6px;
  font-family: var(--font-mono);
  letter-spacing: .02em;
}
.alert {
  padding: 14px 16px;
  border-radius: var(--r-sharp);
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.55;
}
.alert-danger {
  background: rgba(224,74,90,.08);
  border-left: 3px solid var(--danger);
  color: var(--danger);
}
.alert-success {
  background: rgba(43,166,107,.08);
  border-left: 3px solid var(--success);
  color: var(--success);
}

/* Site nav user (logged in state) */
.site-nav__user {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: var(--r-sharp);
  background: rgba(255,255,255,.06);
  text-decoration: none;
}
.site-nav__user:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav__logout {
  display: inline; margin: 0; padding: 0;
}

/* -------- 15. Scroll-reveal animations -------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }
.reveal--delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card__scan { animation: none; }
  html { scroll-behavior: auto; }
}

/* -------- 15. Responsive -------- */
@media (max-width: 1024px) {
  :root { --pad-x: 32px; }
  .section { padding: 96px var(--pad-x); }
  .hero { padding: calc(var(--nav-h) + 56px) var(--pad-x) 80px; }
  .page-header { padding: calc(var(--nav-h) + 48px) var(--pad-x) 64px; }
  .hero__metrics { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .card-grid, .card-grid--four { grid-template-columns: repeat(2, 1fr); }
  .solution-grid, .tech-grid { grid-template-columns: 1fr; }
  .solution-detail__grid { grid-template-columns: 1fr; gap: 32px; }
  .solution-detail__grid--reverse { direction: ltr; }
  .product__variants { grid-template-columns: 1fr; }
  .product__specs { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .step-flow { grid-template-columns: 1fr; }
  .step-flow .step__sep { transform: rotate(90deg); justify-self: center; }
  .partners-logos { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .section__head { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 720px) {
  :root { --pad-x: 20px; --nav-h: 64px; }
  .section { padding: 72px var(--pad-x); }
  .site-nav__toggle { display: inline-flex; }
  .site-nav__inner { grid-template-columns: auto 1fr auto; }
  .site-nav__drawer {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--ink-900);
    border-bottom: 1px solid var(--d-border);
    padding: 24px var(--pad-x) 32px;
    display: flex; flex-direction: column; gap: 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: 200ms;
  }
  .site-nav.is-open .site-nav__drawer { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav__menu { flex-direction: column; gap: 16px; align-items: flex-start; }
  .site-nav__menu a.is-active::after { display: none; }
  .site-nav__cta { flex-wrap: wrap; }
  .site-nav__cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero__title { font-size: 36px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .card-grid, .card-grid--two, .card-grid--four { grid-template-columns: 1fr; }
  .product__specs { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .partners-logos { grid-template-columns: repeat(2, 1fr); }
  .entry-grid { grid-template-columns: 1fr; }
  .entry-grid > :first-child { grid-column: span 1; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__bottom { flex-direction: column; gap: 4px; }
  .section__title { font-size: 28px; }
  .page-header__title { font-size: 32px; }
}
