/* =============================================================
   Quanternity AI — Corporate Homepage Stylesheet
   Based on project.zip design handoff.
   Institutional B2B compliance system. Deep Ink Navy + Signal Blue.
   ============================================================= */

/* -------- Font Faces -------- */
@font-face {
  font-family: "Pretendard";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Pretendard-Light.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Pretendard-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Pretendard-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Pretendard-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Pretendard-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-Medium.woff2") format("woff2");
}

/* =============================================================
   DESIGN TOKENS — LIGHT (DEFAULT) & DARK
   ============================================================= */
:root {
  /* Brand primitives */
  --ink-950: #0B1220;   /* Deep Ink Navy — primary brand */
  --ink-900: #111A2E;
  --ink-800: #1A253E;
  --ink-700: #253352;
  --ink-600: #364566;

  --signal-700: #0B3D91; /* Signal Blue — accent */
  --signal-600: #0E4CB3;
  --signal-500: #1758CC;
  --signal-400: #3A73D9;
  --signal-100: #E4ECF9;
  --signal-50:  #F1F5FC;

  /* Neutrals */
  --gray-000: #FFFFFF;
  --gray-25:  #FBFAF7;   /* Off-white background */
  --gray-50:  #F5F4EF;
  --gray-100: #EEEDE7;
  --gray-150: #E4E2DB;
  --gray-200: #D6D3C9;
  --gray-300: #B9B5A7;
  --gray-400: #8F8B7C;
  --gray-500: #6E6A5C;
  --gray-600: #514E42;
  --gray-700: #3B3830;
  --gray-800: #26241F;
  --gray-900: #171613;

  /* Semantic — Surface */
  --bg-page:      var(--gray-25);
  --bg-surface:   #FFFFFF;
  --bg-subtle:    var(--gray-50);
  --bg-muted:     var(--gray-100);
  --bg-inverse:   var(--ink-950);

  /* Semantic — Foreground */
  --fg-1:         var(--ink-950);
  --fg-2:         var(--gray-700);
  --fg-3:         var(--gray-500);
  --fg-4:         var(--gray-400);
  --fg-on-ink:    #F5F4EF;
  --fg-accent:    var(--signal-700);

  /* Semantic — Border */
  --border-hair:    var(--gray-150);
  --border-line:    var(--gray-200);
  --border-strong:  var(--gray-300);
  --border-focus:   var(--signal-600);
  --border-ink:     var(--ink-950);

  /* Type family */
  --font-sans:  "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Type scale */
  --fs-display: 56px;   --lh-display: 1.15;   --tr-display: -0.02em;
  --fs-h1:      40px;   --lh-h1:      1.25;   --tr-h1:      -0.015em;
  --fs-h2:      28px;   --lh-h2:      1.35;   --tr-h2:      -0.01em;
  --fs-h3:      22px;   --lh-h3:      1.4;    --tr-h3:      -0.005em;
  --fs-h4:      18px;   --lh-h4:      1.45;   --tr-h4:      0;
  --fs-body:    17px;   --lh-body:    1.7;    --tr-body:    0;
  --fs-body-sm: 15px;   --lh-body-sm: 1.65;   --tr-body-sm: 0;
  --fs-caption: 13px;   --lh-caption: 1.5;    --tr-caption: 0.005em;
  --fs-overline:11px;   --lh-overline:1.4;    --tr-overline:0.12em;
  --fs-mono:    14px;   --lh-mono:    1.55;

  /* Weights */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Radius */
  --radius-0: 0;
  --radius-1: 2px;
  --radius-2: 4px;
  --radius-3: 6px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-2: 0 4px 16px rgba(11, 18, 32, 0.08);
  --shadow-focus: 0 0 0 3px rgba(23, 88, 204, 0.28);

  /* Layout */
  --container-max: 1200px;
  --gutter: 24px;

  /* Motion */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

/* =============================================================
   BASE & RESET
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body {
  margin: 0;
  padding: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-2);
  background: var(--bg-page);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--fg-1);
  font-weight: var(--fw-semibold);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 var(--sp-4);
  color: var(--fg-2);
}

a {
  color: var(--fg-accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
button:active {
  transform: translateY(1px);
}

.mono {
  font-family: var(--font-mono);
}

.overline {
  font-family: var(--font-mono);
  font-size: var(--fs-overline);
  line-height: var(--lh-overline);
  letter-spacing: var(--tr-overline);
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: var(--fw-medium);
}

.section-header {
  margin-bottom: 48px;
}
.section-header .overline {
  margin-bottom: 12px;
}
.section-header .section-title {
  font-size: 44px;
  font-weight: 600;
  color: var(--ink-950);
  line-height: 1.2;
}
.section-header .section-subtitle {
  font-size: 18px;
  color: var(--fg-2);
  margin-top: 16px;
  max-width: 720px;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

html {
  scroll-behavior: smooth;
}

/* Section Common */
.section, section[id] {
  padding: 112px 0;
  border-bottom: 1px solid var(--border-hair);
  scroll-margin-top: 80px;
}
.section-subtle {
  background: var(--bg-subtle);
}

/* =============================================================
   HEADER
   ============================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-hair);
}
.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-950);
}
.header-brand:hover {
  text-decoration: none;
}
.brand-logo-icon {
  width: 34px;
  height: 34px;
  color: var(--ink-950);
  flex-shrink: 0;
}
.brand-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}
.brand-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-950);
  letter-spacing: -0.015em;
}
.text-green {
  color: #10B981;
}
.brand-subtitle {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: -0.01em;
  margin-top: 1px;
}
.header-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: 12px;
}
.header-nav a {
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 4px;
  text-decoration: none;
}
.header-nav a:hover {
  color: var(--signal-700);
}
.header-right {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.lang-switch {
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.divider-v {
  width: 1px;
  height: 16px;
  background: var(--border-line);
  margin: 0 6px;
}
.btn-outline {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-1);
  padding: 8px 12px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
}
.btn-outline:hover {
  background: var(--bg-subtle);
  text-decoration: none;
}
.btn-primary-dark {
  background: var(--ink-950);
  color: var(--fg-on-ink);
  border: none;
  border-radius: var(--radius-2);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary-dark:hover {
  background: var(--ink-900);
  text-decoration: none;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

/* =============================================================
   HERO SECTION (DARK SURFACE)
   ============================================================= */
.hero {
  background: var(--ink-950);
  color: var(--fg-on-ink);
  border-bottom: 1px solid var(--ink-800);
  position: relative;
  overflow: hidden;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
}
.hero-top-bar {
  border-bottom: 1px solid rgba(245, 244, 239, 0.1);
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 10;
}
.hero-top-bar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.hero-announcement {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(245, 244, 239, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.announcement-badge {
  background: #10B981;
  color: #0B1220;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.announcement-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.announcement-link {
  color: #10B981;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--dur-fast);
}
.announcement-link:hover {
  text-decoration: underline;
}
.hero-carousel-wrap {
  position: relative;
  width: 100%;
}
.hero-carousel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.hero-slide-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(245, 244, 239, 0.6);
  letter-spacing: 0.08em;
}
.hero-slide-counter #hero-current-index {
  color: #F5F4EF;
  font-weight: 600;
}
.hero-nav-btns {
  display: flex;
  gap: 8px;
}
.hero-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-2);
  border: 1px solid rgba(245, 244, 239, 0.2);
  background: rgba(11, 18, 32, 0.6);
  color: #F5F4EF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.hero-nav-btn:hover {
  background: rgba(245, 244, 239, 0.15);
  border-color: rgba(245, 244, 239, 0.5);
}
.hero-slides-container {
  position: relative;
  min-height: 260px;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 750ms cubic-bezier(0.16, 1, 0.3, 1), transform 750ms cubic-bezier(0.16, 1, 0.3, 1), visibility 750ms;
  pointer-events: none;
}
.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 28px var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 72px;
  align-items: start;
  position: relative;
}
.hero-eyebrow {
  display: none;
}
.hero-h1 {
  font-size: 60px;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: #F5F4EF;
  margin: 0;
  max-width: 780px;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(245,244,239,0.74);
  margin-top: 28px;
  max-width: 620px;
}
.hero-cta-group {
  margin-top: 44px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: #F5F4EF;
  color: var(--ink-950);
  border: none;
  padding: 15px 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-primary:hover {
  background: #FFFFFF;
  text-decoration: none;
}
.btn-hero-ghost {
  background: transparent;
  color: #F5F4EF;
  border: 1px solid rgba(245,244,239,0.28);
  padding: 15px 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-2);
  text-decoration: none;
}
.btn-hero-ghost:hover {
  border-color: rgba(245,244,239,0.6);
  text-decoration: none;
}

.hero-sidebar {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(245, 244, 239, 0.14);
  border-radius: var(--radius-3);
  padding: 24px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-self: start;
}
.hero-sidebar-label {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: rgba(245, 244, 239, 0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-1);
  border: 1px solid rgba(245, 244, 239, 0.22);
  background: rgba(245, 244, 239, 0.06);
  color: rgba(245, 244, 239, 0.92);
  transition: all var(--dur-fast);
}
.hero-tag:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10B981;
}
.hero-stats {
  display: none;
}

/* Sidebar Promo Video Card */
.sidebar-video-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 244, 239, 0.14);
}
.sidebar-video-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245, 244, 239, 0.65);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sidebar-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-2);
  overflow: hidden;
  border: 1px solid rgba(245, 244, 239, 0.18);
  background: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.sidebar-promo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Member Profile Carousel */
.member-carousel-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 244, 239, 0.14);
}
.member-bottom-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.member-nav-btn {
  background: rgba(245, 244, 239, 0.08);
  border: 1px solid rgba(245, 244, 239, 0.2);
  color: #F5F4EF;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--dur-fast);
  line-height: 1;
}
.member-nav-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #10B981;
}

.member-carousel-container {
  position: relative;
}
.member-card {
  display: none;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 244, 239, 0.12);
  border-radius: var(--radius-2);
  padding: 10px 12px;
  transition: opacity 300ms ease;
}
.member-card.active {
  display: grid;
  opacity: 1;
}
.member-card-img-wrap {
  width: 84px;
  height: 98px;
  border-radius: var(--radius-1);
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  border: 1px solid rgba(245, 244, 239, 0.18);
}
.member-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(110%);
}
.member-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.member-role-overline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(245, 244, 239, 0.55);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.member-name {
  font-size: 22px;
  font-weight: 700;
  color: #F5F4EF;
  font-family: var(--font-sans);
  line-height: 1.15;
}
.member-credentials {
  font-size: 12px;
  color: rgba(245, 244, 239, 0.75);
  margin-top: 4px;
  line-height: 1.35;
}

/* 3-way Router */
.hero-router {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
  position: relative;
}
.hero-router-inner {
  border-top: 1px solid rgba(245,244,239,0.15);
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.router-card {
  display: block;
  padding: 20px 24px 20px 0;
  text-decoration: none;
  color: inherit;
}
.router-card:not(:last-child) {
  margin-right: 24px;
  border-right: 1px solid rgba(245,244,239,0.12);
}
.router-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,244,239,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}
.router-dot {
  width: 4px;
  height: 4px;
  background: var(--signal-400);
  border-radius: 50%;
}
.router-title {
  font-size: 17px;
  font-weight: 600;
  color: #F5F4EF;
  margin-top: 10px;
  line-height: 1.4;
}
.router-desc {
  font-size: 13px;
  color: rgba(245,244,239,0.6);
  margin-top: 6px;
  line-height: 1.55;
}
.router-cta {
  font-size: 13px;
  color: #F5F4EF;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =============================================================
   CREDENTIAL BAR
   ============================================================= */
.credential-bar {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-hair);
  padding: 18px var(--gutter);
}
.credential-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  gap: 32px;
  overflow-x: auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}
.credential-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.credential-idx {
  font-size: 10px;
  color: var(--fg-4);
}
.credential-sep {
  color: var(--border-line);
  margin-left: 16px;
}

/* =============================================================
   PUBLIC AI HOOK
   ============================================================= */
.hook-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
.hook-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
  padding: 4px 8px;
  display: inline-block;
  margin-top: 12px;
}
.hook-h2 {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.018em;
  max-width: 780px;
}
.hook-lead {
  font-size: 18px;
  color: var(--fg-2);
  line-height: 1.65;
  margin-top: 24px;
  max-width: 720px;
}
.fact-list {
  margin-top: 48px;
  border-top: 1px solid var(--border-line);
}
.fact-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-hair);
}
.fact-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-3);
}
.fact-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--fg-1);
  margin-bottom: 8px;
}
.fact-desc {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.65;
  margin: 0;
}
.hook-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--signal-700);
  margin-top: 32px;
}

/* =============================================================
   REGULATION MAP (INTERACTIVE TABS)
   ============================================================= */
.reg-map-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-3);
  overflow: hidden;
  margin-top: 48px;
}
.reg-map-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
}
.reg-list {
  border-right: 1px solid var(--border-hair);
  background: var(--bg-surface);
}
.reg-item {
  padding: 20px 24px;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--border-hair);
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.reg-item:hover {
  background: var(--bg-subtle);
}
.reg-item.active {
  background: var(--bg-subtle);
  border-left-color: var(--ink-950);
}
.reg-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-1);
  background: var(--gray-100);
  color: var(--fg-3);
  display: inline-block;
  margin-bottom: 8px;
}
.reg-item.active .reg-badge {
  background: var(--signal-100);
  color: var(--signal-700);
}
.reg-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-1);
}
.reg-item-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 4px;
}

.reg-detail {
  padding: 32px 32px 36px;
}
.reg-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.reg-detail-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--fg-1);
}
.reg-detail-sub {
  font-size: 14px;
  color: var(--fg-3);
  margin-top: 4px;
}
.reg-meta-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-2);
  padding: 16px 20px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 13px;
}
.reg-meta-label {
  color: var(--fg-3);
  margin-bottom: 4px;
}
.reg-meta-val {
  color: var(--fg-1);
  font-weight: 500;
}
.reg-summary {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.65;
  margin-top: 20px;
}
.reg-controls-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  font-size: 13.5px;
}
.reg-controls-table th {
  text-align: left;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--fg-3);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-line);
}
.reg-controls-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-hair);
  vertical-align: top;
}
.reg-guardrail {
  background: var(--gray-50);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-2);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--fg-2);
  margin-top: 28px;
}

/* =============================================================
   SERVICES 2-AXIS
   ============================================================= */
.services-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-line);
  margin-top: 48px;
}
.service-col {
  padding: 40px 40px 44px;
}
.service-col:first-child {
  border-right: 1px solid var(--border-line);
}
.service-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.track-badge {
  background: var(--ink-950);
  color: var(--fg-on-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--radius-1);
}
.track-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
}
.service-h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.service-desc {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 32px;
}
.service-item-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-hair);
  align-items: center;
}
.service-item-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-1);
}
.service-item-spec {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 2px;
}
.service-item-dur {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
}

/* =============================================================
   FIELDPROOF SAAS SHOWCASE (DARK)
   ============================================================= */
.fieldproof-section {
  background: var(--ink-950);
  color: var(--fg-on-ink);
  padding: 112px 0;
  position: relative;
  overflow: hidden;
}
.fp-header-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: end;
}
.fp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--radius-1);
  border: 1px solid rgba(245,244,239,0.2);
  color: #F5F4EF;
  margin-top: 12px;
}
.fp-dot {
  width: 6px;
  height: 6px;
  background: var(--signal-400);
  border-radius: 50%;
}
.fp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.fp-card {
  background: #101828;
  border: 1px solid rgba(245,244,239,0.12);
  border-radius: var(--radius-3);
  overflow: hidden;
}
.fp-mock-frame {
  aspect-ratio: 4 / 3;
  background: #0A0F1C;
  border-bottom: 1px solid rgba(245,244,239,0.12);
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.fp-frame-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.fp-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245,244,239,0.2);
}
.fp-card-info {
  padding: 24px;
}
.fp-step-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal-400);
  margin-bottom: 6px;
}
.fp-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #F5F4EF;
}
.fp-card-desc {
  font-size: 13px;
  color: rgba(245,244,239,0.6);
  margin-top: 6px;
  line-height: 1.5;
}
.fp-firewall-box {
  border: 1px solid rgba(245,244,239,0.15);
  border-left: 2px solid var(--signal-400);
  border-radius: var(--radius-2);
  padding: 18px 22px;
  margin-top: 40px;
}

/* =============================================================
   FIELD NOTES
   ============================================================= */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-line);
  margin-top: 48px;
}
.note-col {
  padding: 32px 32px 36px;
}
.note-col:not(:last-child) {
  border-right: 1px solid var(--border-hair);
}
.note-quote {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--fg-1);
  margin-top: 20px;
}
.note-body {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.7;
  margin-top: 16px;
}

/* =============================================================
   PARTNER INVITE & FIREWALL
   ============================================================= */
.partner-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: center;
}
.firewall-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-3);
  padding: 32px;
}

/* =============================================================
   INSIGHTS LIST
   ============================================================= */
.insights-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.insight-row {
  display: grid;
  grid-template-columns: 180px 1fr 100px;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-hair);
  align-items: center;
}
.insight-row:first-child {
  border-top: 1px solid var(--border-line);
  margin-top: 48px;
}

/* =============================================================
   FINAL CTA & INQUIRY FORM (DARK)
   ============================================================= */
.final-cta {
  background: var(--ink-950);
  color: var(--fg-on-ink);
  padding: 112px 0;
  position: relative;
  overflow: hidden;
}
.final-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.founder-box {
  margin-top: 40px;
  padding: 24px 26px;
  border-left: 2px solid var(--signal-400);
  background: rgba(245,244,239,0.03);
  border-radius: 0 var(--radius-2) var(--radius-2) 0;
}
.final-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(245,244,239,0.15);
  border-radius: var(--radius-3);
  padding: 32px;
}
.form-field {
  margin-top: 16px;
}
.form-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(245,244,239,0.75);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  font-size: 14px;
  padding: 11px 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(245,244,239,0.15);
  border-radius: var(--radius-2);
  color: #F5F4EF;
  font-family: inherit;
}
.form-input:focus {
  outline: none;
  border-color: var(--signal-400);
}
.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.chip {
  font-size: 13px;
  padding: 7px 12px;
  border: 1px solid rgba(245,244,239,0.24);
  color: rgba(245,244,239,0.7);
  background: transparent;
  border-radius: var(--radius-2);
  cursor: pointer;
  user-select: none;
  transition: all var(--dur-fast);
}
.chip.selected {
  border-color: #F5F4EF;
  color: #F5F4EF;
  background: rgba(245,244,239,0.08);
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: var(--bg-page);
  border-top: 1px solid var(--border-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  padding: 56px var(--gutter) 32px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.footer-guardrail {
  border-top: 1px solid var(--border-hair);
  padding: 20px var(--gutter) 16px;
  max-width: var(--container-max);
  margin: 0 auto;
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.65;
}
.footer-copyright {
  border-top: 1px solid var(--border-hair);
  padding: 20px var(--gutter);
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-3);
}

/* =============================================================
   30-SECOND REGULATORY ASSESSMENT MODAL
   ============================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-standard);
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-window {
  background: var(--ink-950);
  color: var(--fg-on-ink);
  border: 1px solid rgba(245,244,239,0.2);
  border-radius: var(--radius-3);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  transform: translateY(12px);
  transition: transform var(--dur-base) var(--ease-standard);
  box-shadow: var(--shadow-2);
}
.modal-backdrop.active .modal-window {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(245,244,239,0.6);
  font-size: 24px;
  cursor: pointer;
}
.modal-close:hover {
  color: #F5F4EF;
}
.assessment-step {
  display: none;
}
.assessment-step.active {
  display: block;
}
.assessment-option {
  padding: 16px 20px;
  border: 1px solid rgba(245,244,239,0.2);
  border-radius: var(--radius-2);
  margin-top: 12px;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.assessment-option:hover {
  border-color: var(--signal-400);
  background: rgba(245,244,239,0.04);
}
.assessment-option.selected {
  border-color: #F5F4EF;
  background: rgba(245,244,239,0.1);
}
.verdict-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--signal-400);
  border-radius: var(--radius-2);
  padding: 24px;
  margin-top: 20px;
}

/* =============================================================
   RESPONSIVE LAYOUT (TABLET & MOBILE OPTIMIZATION)
   ============================================================= */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 24px 20px 40px;
  }
  .hero-slides-container {
    min-height: 340px;
  }
  .hero-sidebar {
    border-left: none;
    border-top: 1px solid rgba(245,244,239,0.15);
    padding-left: 0;
    padding-top: 24px;
  }
  .hook-grid, .fp-header-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .reg-map-grid {
    grid-template-columns: 1fr;
  }
  .reg-list {
    border-right: none;
    border-bottom: 1px solid var(--border-line);
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .reg-item {
    min-width: 180px;
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .reg-item.active {
    border-left: none;
    border-bottom-color: var(--ink-950);
  }
  .services-matrix, .fp-cards-grid, .notes-grid, .final-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .service-col:first-child, .note-col:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border-line);
  }
  .hero-router-inner {
    grid-template-columns: 1fr;
  }
  .router-card:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(245,244,239,0.12);
  }
  .partner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
  }
  .brand-subtitle {
    display: none;
  }
  .header-nav, 
  .header-right .btn-outline, 
  .header-right .divider-v,
  .header-right .lang-switch {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(11, 18, 32, 0.15);
    border-radius: var(--radius-1);
    padding: 6px;
    color: var(--fg-1);
    cursor: pointer;
  }
  .header-right .btn-primary-dark {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Mobile Navigation Menu Dropdown */
  .header-nav.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FBFAF7;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-hair);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    z-index: 99;
    gap: 16px;
  }
  .header-nav.mobile-active a {
    font-size: 15px;
    font-weight: 500;
    color: var(--fg-1);
  }

  /* Hero Top Bar & Announcement */
  .hero-top-bar {
    padding: 12px 16px;
  }
  .hero-top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hero-announcement {
    flex-wrap: wrap;
    font-size: 11.5px;
    line-height: 1.45;
  }
  .hero-carousel-controls {
    width: 100%;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(245, 244, 239, 0.1);
  }

  /* Hero Headline & CTAs */
  .hero-slides-container {
    min-height: 380px;
  }
  .hero-h1 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  .hero-sub {
    font-size: 14.5px;
    line-height: 1.6;
    margin-top: 12px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 20px;
  }
  .btn-hero-primary, .btn-hero-ghost {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    text-align: center;
    box-sizing: border-box;
  }

  /* Typography Scale */
  .hook-h2, .reg-detail-title, .service-h3, .fp-h2, .section-title {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
  .hook-sub, .section-subtitle {
    font-size: 14px !important;
  }
  .insight-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Section Padding */
  .section-lead, .hook, .public-ai, .reg-map, .services, .fieldproof, .independence, .notes, .insights, .contact {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Contact Form Mobile Optimization */
  .final-form {
    padding: 20px 16px !important;
  }
  .chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .chip {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Footer Mobile */
  .footer-grid {
    padding: 36px 16px 24px !important;
    gap: 28px !important;
  }
  .footer-copyright {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
  }

  /* Regulation Table Responsiveness */
  .reg-matrix-wrap, .reg-detail-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .hero-slides-container {
    min-height: 420px;
  }
  .hero-h1 {
    font-size: 26px;
  }
  .hero-sub {
    font-size: 13.5px;
  }
  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .hero-tag {
    font-size: 11px;
    padding: 4px 8px;
  }
}
