/* ============================================
   Kimisoft — AIoT Commercial Mobility Intelligence
   ============================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Base */
  --white: #ffffff;
  --off-white: #fafafa;
  --gray-50: #f5f5f7;
  --gray-100: #eeeef2;
  --gray-200: #d9d9df;
  --gray-400: #8a8a94;
  --gray-500: #6a6a72;
  --gray-700: #3a3a42;
  --gray-900: #0a0a0d;
  --black: #000000;

  /* Accents */
  --cyan: #00d4ff;
  --cyan-dim: #0099cc;
  --cyan-glow: rgba(0, 212, 255, 0.35);
  --magenta: #ff2e93;
  --magenta-dim: #d81f78;
  --magenta-glow: rgba(255, 46, 147, 0.3);

  /* Semantic */
  --bg: var(--white);
  --bg-dark: #06070a;
  --bg-dark-2: #0e1015;
  --text: #0a0a0d;
  --text-dim: #6a6a72;
  --border: rgba(10, 10, 13, 0.08);
  --border-dark: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-sans: 'Pretendard', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Montserrat', 'Pretendard', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1280px;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ============ Typography ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}
.dark .eyebrow { color: var(--cyan); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 600;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.h-display {
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.h-section {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.h-card {
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 600;
}
.lead {
  font-size: 20px;
  color: var(--text-dim);
  line-height: 1.65;
}
.dark .lead { color: rgba(255,255,255,0.7); }

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

/* ============ Layout ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 120px 0;
  position: relative;
}
section.compact { padding: 80px 0; }

.dark {
  background: var(--bg-dark);
  color: white;
}
.dark h1, .dark h2, .dark h3 { color: white; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: white;
}
.btn-primary:hover {
  background: var(--cyan);
  color: var(--black);
  transform: translateY(-1px);
}
.btn-cyan {
  background: var(--cyan);
  color: var(--black);
}
.btn-cyan:hover {
  background: white;
  color: var(--black);
  box-shadow: 0 8px 32px var(--cyan-glow);
}
.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.dark .btn-outline {
  border-color: rgba(255,255,255,0.2);
  color: white;
}
.btn-outline:hover {
  border-color: var(--text);
}
.dark .btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.05);
}
.btn-arrow::after {
  content: '→';
  transition: transform 0.25s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ============ Navigation ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: white;
  transition: color 0.3s ease;
}
.nav.scrolled .logo { color: var(--text); }
.logo-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.logo-mark img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  overflow: visible;
  transition: filter 0.3s ease;
  filter: invert(1); /* white on dark hero */
}
.nav.scrolled .logo-mark img { filter: invert(0); }
.footer .logo-mark img,
.mobile-menu .logo-mark img { filter: invert(1); }

.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-menu a {
  padding: 10px 16px;
  font-size: 20px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: 999px;
  transition: all 0.2s ease;
  font-family: var(--font-display);
  letter-spacing: -0.005em;
}
.nav.scrolled .nav-menu a { color: var(--text-dim); }
.nav-menu a:hover { color: white; }
.nav.scrolled .nav-menu a:hover { color: var(--text); background: var(--gray-50); }

.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: white;
}
.nav.scrolled .hamburger { color: var(--text); }
.hamburger svg { width: 22px; height: 22px; }

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  position: relative;
  color: white;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-truck.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,7,10,0.92) 0%, rgba(6,7,10,0.6) 55%, rgba(6,7,10,0.4) 100%),
    linear-gradient(180deg, rgba(6,7,10,0.6) 0%, rgba(6,7,10,0) 30%, rgba(6,7,10,0.85) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 60% 60% at 30% 60%, black 20%, transparent 80%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero-content {
  max-width: 900px;
}
.hero-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: nowrap;
}
.hero-badge {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.08);
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: 0.05em;
  color: var(--cyan);
  text-transform: uppercase;
  white-space: nowrap;
}
.hero h1 {
  margin-bottom: 24px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 720px;
  margin-bottom: 20px;
}
.hero-en {
  font-family: var(--font-display);
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  max-width: 720px;
  margin-bottom: 40px;
  letter-spacing: -0.005em;
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 2;
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  white-space: nowrap;
}
.stat-num .unit {
  font-size: 0.5em;
  color: var(--cyan);
  margin-left: 6px;
  font-weight: 400;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* Hero corner HUD */
.hero-hud {
  position: absolute;
  top: 100px;
  right: 32px;
  z-index: 2;
  padding: 16px;
  border: 1px solid rgba(0,212,255,0.3);
  background: rgba(6,7,10,0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  min-width: 240px;
}
.hud-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 0;
  color: rgba(255,255,255,0.7);
}
.hud-row .val { color: var(--cyan); }
.hud-row.alert .val { color: var(--magenta); }
.hud-title {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}
.hud-title .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--cyan-glow); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px transparent; }
}

/* ============ Section headers ============ */
.section-head {
  max-width: 900px;
  margin-bottom: 64px;
}
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 20px; }

/* ============ Company / keyword cards ============ */
.keyword-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 80px;
}
.keyword-card {
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.keyword-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.keyword-card:hover::before { transform: scaleX(1); }
.keyword-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.06);
}
.keyword-num {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--gray-400);
  margin-bottom: 48px;
  font-weight: 500;
}
.keyword-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.keyword-title-ko {
  font-size: 20px;
  color: var(--text-dim);
  line-height: 1.5;
  font-weight: 500;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
}
.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 32px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--cyan);
}
.timeline-item.magenta::before { border-color: var(--magenta); }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan-dim);
  font-weight: 500;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* ============ Core Solution — Layered Architecture ============ */
.arch {
  position: relative;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0e1015 0%, #06070a 100%);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.arch::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.arch-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.arch-layer {
  position: relative;
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  display: grid;
  grid-template-columns: 80px 240px 1fr auto;
  gap: 24px;
  align-items: center;
  transition: all 0.3s ease;
}
.arch-layer:hover {
  border-color: rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.03);
}
.arch-layer-tag {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  font-weight: 500;
}
.arch-layer-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.arch-layer-title small {
  display: block;
  font-family: var(--font-sans);
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  margin-top: 8px;
  letter-spacing: 0;
  line-height: 1.4;
}
.arch-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-mono);
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.chip.cyan {
  border-color: rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.08);
  color: var(--cyan);
}
.chip.magenta {
  border-color: rgba(255,46,147,0.4);
  background: rgba(255,46,147,0.08);
  color: var(--magenta);
}
.arch-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  display: grid;
  place-items: center;
  color: var(--cyan);
}
.arch-icon svg { width: 22px; height: 22px; }
.arch-connector {
  height: 20px;
  position: relative;
}
.arch-connector::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), transparent);
}
.arch-connector::after {
  content: '';
  position: absolute;
  left: calc(50% - 3px);
  bottom: 0;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
  transform: rotate(45deg);
}

/* Function card grid below arch */
.function-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.function-card {
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s ease;
}
.function-card:hover {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.04);
}
.function-card .code {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  font-weight: 500;
}
.function-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.function-card p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* ============ Products ============ */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.product-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  align-items: center;
  transition: all 0.3s ease;
}
.product-card:hover {
  border-color: transparent;
  box-shadow: 0 32px 80px rgba(0,0,0,0.08);
}
.product-card.reverse {
  grid-template-columns: 1.1fr 1fr;
}
.product-card.reverse .product-image { order: 2; }
.product-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
  z-index: 1;
  pointer-events: none;
}
.product-num {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan-dim);
  letter-spacing: 0.12em;
  margin-bottom: 22px;
  font-weight: 500;
}
.product-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.15;
}
.product-title-en {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 26px;
  letter-spacing: 0.01em;
}
.product-desc {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 30px;
}
.product-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.product-features li {
  padding-left: 24px;
  position: relative;
  font-size: 16px;
  color: var(--text);
  line-height: 1.45;
}
.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
}

/* ============ Technology ============ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tech-card {
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tech-card:hover {
  border-color: rgba(0,212,255,0.4);
  transform: translateY(-4px);
}
.tech-card .code {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  font-weight: 500;
}
.tech-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  color: var(--cyan);
}
.tech-icon svg { width: 100%; height: 100%; }
.tech-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.tech-list {
  list-style: none;
}
.tech-list li {
  padding: 12px 0;
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.tech-list li:last-child { border-bottom: none; }
.tech-list li .tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

/* Tech stack ticker */
.tech-stack {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}
.tech-stack::before, .tech-stack::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.tech-stack::before { left: 0; background: linear-gradient(90deg, var(--bg-dark), transparent); }
.tech-stack::after { right: 0; background: linear-gradient(-90deg, var(--bg-dark), transparent); }
.tech-stack-track {
  display: flex;
  gap: 48px;
  animation: scroll 30s linear infinite;
  width: max-content;
}
.tech-stack-item {
  font-family: var(--font-display);
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.tech-stack-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ R&D ============ */
.rnd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.rnd-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.rnd-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rnd-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(0,212,255,0.15) 100%);
}
.rnd-list {
  list-style: none;
  margin-top: 32px;
}
.rnd-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 16px;
  align-items: center;
}
.rnd-list li:last-child { border-bottom: none; }
.rnd-num {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan-dim);
  font-weight: 500;
}
.rnd-item-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.rnd-status {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  letter-spacing: 0.05em;
  white-space: nowrap;
  font-weight: 500;
}
.rnd-status.active {
  border-color: var(--cyan);
  color: var(--cyan-dim);
  background: rgba(0,212,255,0.05);
}

/* ============ Team ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.team-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: all 0.3s ease;
}
.team-card:hover {
  border-color: var(--text);
}
.team-num {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--gray-400);
  margin-bottom: 32px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.team-card h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.exp-list {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--gray-50);
}
.exp-list-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 28px;
}
.exp-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.exp-list li {
  padding: 6px 0;
  padding-left: 26px;
  position: relative;
  font-size: 20px;
  color: var(--text);
  line-height: 1.5;
  font-weight: 500;
}
.exp-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan-dim);
  font-family: var(--font-mono);
}

/* ============ Business Value ============ */
.value-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.value-block h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin-bottom: 28px;
  font-weight: 500;
}
.value-block h3::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 12px;
}
.value-list {
  list-style: none;
}
.value-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.value-list li:hover { color: var(--cyan-dim); }
.value-list li::after {
  content: '';
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.4;
}

/* ============ Contact ============ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-form {
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  font-weight: 500;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: white;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: all 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0,212,255,0.04);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: white;
}
.contact-info .lead { margin-bottom: 40px; }
.contact-details {
  display: grid;
  gap: 20px;
}
.contact-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
}
.contact-item .k {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  font-weight: 500;
}
.contact-item .v {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: white;
  letter-spacing: -0.005em;
}

/* ============ Footer ============ */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer ul { list-style: none; }
.footer ul li {
  padding: 4px 0;
  font-size: 14px;
}
.footer ul li a { color: rgba(255,255,255,0.7); transition: color 0.2s ease; }
.footer ul li a:hover { color: var(--cyan); }
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}
.footer-bottom .brand-mark {
  font-family: var(--font-display);
  font-size: 14px;
  color: white;
  letter-spacing: -0.01em;
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Mobile CTA (fixed bottom) ============ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  gap: 8px;
}
.mobile-cta .btn {
  flex: 1;
  justify-content: center;
  padding: 14px;
  font-size: 14px;
}

/* Mobile menu overlay */
body.no-scroll {
  overflow: hidden;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-dark);
  padding: 24px;
  padding-top: 80px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.4s;
  color: white;
  visibility: hidden;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  color: white;
  display: grid;
  place-items: center;
}
.mobile-menu ul {
  list-style: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu ul li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: white;
}
.mobile-menu ul li a::after {
  content: '→';
  color: var(--cyan);
  opacity: 0.5;
}
.mobile-menu .cta-row {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============ Responsive ============ */

/* --- Narrow-viewport nav collapse ---
   Below 1100px (mobile landscape, small tablets), the desktop nav gets
   crowded with the 20px menu links + logo + 2 CTAs. Collapse to hamburger. */
@media (max-width: 1100px) {
  .nav-menu { display: none; }
  .nav-cta .btn:not(.hamburger) { display: none; }
  .hamburger { display: flex; }
  .nav-inner { gap: 16px; padding: 0 24px; }
  .logo { font-size: 20px; gap: 12px; }
  .logo-mark, .logo-mark img { width: 38px; height: 38px; }
}

@media (max-width: 1024px) {
  .keyword-grid, .tech-grid, .team-grid, .function-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rnd-layout, .contact-wrap, .value-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .arch-layer {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
  }
  .arch-layer .arch-chips {
    grid-column: 1 / -1;
  }
}

/* --- Mobile landscape (short viewport) ---
   iPhones/Androids in landscape are ~800–930px wide but only ~380–430px tall.
   Hero HUD collides with the nav; hero stats bar overlaps the CTA. */
@media (max-height: 500px) and (orientation: landscape) {
  .nav { padding: 12px 0; }
  .nav.scrolled { padding: 10px 0; }
  .hero { min-height: auto; padding: 80px 0 40px; flex-direction: column; align-items: stretch; }
  .hero-inner { padding-top: 40px; padding-bottom: 0; }
  .hero-hud {
    top: 72px;
    right: 20px;
    padding: 12px;
    min-width: 200px;
    transform: scale(0.85);
    transform-origin: top right;
  }
  .hero-stats { position: static; margin-top: 40px; }
  .hero-stats-grid { padding-top: 24px; gap: 20px; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 12px; }
  .mobile-menu { padding-top: 60px; overflow-y: auto; }
  .mobile-menu ul li a { padding: 16px 4px; font-size: 20px; }
}

@media (max-width: 768px) {
  .h-display {
    font-size: clamp(30px, 8vw, 42px);
  }
  .h-section {
    font-size: clamp(24px, 6vw, 32px);
  }
  .hide-mobile {
    display: none;
  }

  section { padding: 80px 0; }
  .container, .nav-inner { padding: 0 20px; }

  .hero { min-height: auto; padding: 100px 0 40px; flex-direction: column; align-items: stretch; }
  .hero-inner { padding-top: 40px; padding-bottom: 0; }
  .hero-badges { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-badge { font-size: 14px; padding: 6px 12px; }
  .hero-hud { display: none; }
  .hero-stats { position: static; margin-top: 48px; }
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }

  .keyword-grid, .tech-grid, .team-grid, .function-grid {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .product-card, .product-card.reverse {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  .product-card.reverse .product-image { order: 0; }
  .product-features { grid-template-columns: 1fr; }
  .arch { padding: 24px; }
  .exp-list ul { grid-template-columns: 1fr; }
  .contact-item { grid-template-columns: 1fr; gap: 4px; }
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }

  /* .mobile-cta { display: flex; } */
  /* body { padding-bottom: 72px; } */

  .section-head { margin-bottom: 40px; }
}

@media (max-width: 576px) {
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
