/* ============================================================================
   OpenCoreLabsX — Professional Semiconductor IP Design Company Website
   Design language: Corporate semiconductor vendor (Synopsys / ARM inspired)
   Color system: Deep Navy primary, Cyan accent, clean whites
   Typography: Inter (body) + Space Grotesk (headings) — professional and readable
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- 1. Design Tokens ------------------------------------------------ */
:root {
  /* === Color Palette === */
  /* Navy — primary surfaces */
  --navy-950:  #020B18;
  --navy-900:  #061120;
  --navy-800:  #0C1D35;
  --navy-700:  #112744;
  --navy-600:  #1A3A5C;
  --navy-500:  #234E7A;
  --navy-400:  #2E6498;

  /* Cyan — signature accent (matches logo) */
  --cyan-500:  #00B4D8;
  --cyan-400:  #0AC8EE;
  --cyan-300:  #5ED8F0;
  --cyan-100:  rgba(0, 180, 216, 0.12);
  --cyan-glow: rgba(0, 180, 216, 0.25);

  /* Blue — secondary accent */
  --blue-500:  #2563EB;
  --blue-400:  #3B82F6;

  /* Neutral */
  --white:     #FFFFFF;
  --grey-100:  #F1F5F9;
  --grey-200:  #E2E8F0;
  --grey-300:  #CBD5E1;
  --grey-500:  #64748B;
  --grey-700:  #334155;
  --grey-900:  #0F172A;

  /* Semantic */
  --bg:         var(--navy-950);
  --bg-card:    var(--navy-900);
  --bg-card-2:  var(--navy-800);
  --bg-light:   var(--grey-100);
  --fg:         var(--white);
  --fg-soft:    rgba(255,255,255,0.75);
  --fg-mute:    rgba(255,255,255,0.45);
  --accent:     var(--cyan-500);
  --accent-light: var(--cyan-300);
  --border:     rgba(255,255,255,0.08);
  --border-accent: rgba(0,180,216,0.3);

  /* === Typography === */
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --text-4xl:  clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  --text-5xl:  clamp(2.75rem, 2rem + 3vw, 5rem);

  /* === Spacing === */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4.5rem;
  --space-9:  6rem;
  --space-10: 9rem;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 999px;

  --container:        1200px;
  --container-wide:   1400px;
  --container-narrow: 900px;
  --gutter:   clamp(1.25rem, 4vw, 2.5rem);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow:     0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.45);
  --shadow-cyan: 0 0 40px rgba(0,180,216,0.2);

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 260ms;
  --dur-slow: 480ms;
}

/* ---------- 2. Reset & Base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--fg-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--cyan-500);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--cyan-500); color: var(--navy-950); }

/* ---------- 3. Layout ------------------------------------------------------- */
.container        { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide  { max-width: var(--container-wide); }
.container--narrow{ max-width: var(--container-narrow); }

section { padding-block: var(--space-10); }
section.compact  { padding-block: var(--space-7); }
section.snug     { padding-block: var(--space-8); }

/* ---------- 4. Typography --------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { color: var(--fg-soft); line-height: 1.7; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-500);
  font-weight: 500;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--cyan-500);
  border-radius: 2px;
}

.label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.accent { color: var(--cyan-500); }

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

/* ---------- 5. Skip link ---------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: var(--space-4);
  background: var(--cyan-500); color: var(--navy-950);
  padding: var(--space-3) var(--space-5);
  font-weight: 600; font-size: var(--text-sm);
  z-index: 9999; border-radius: var(--radius);
}
.skip-link:focus { left: var(--space-4); }

/* ---------- 6. Navigation --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(2, 11, 24, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--white);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.brand img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}

.nav-links a {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-soft);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-4);
}

/* Mobile drawer */
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: absolute;
  height: 1.5px;
  background: var(--white);
  width: 18px;
  left: 9px;
  transition: all var(--dur-fast) var(--ease);
}
.nav-toggle span { top: 17px; }
.nav-toggle span::before { content: ''; top: -5px; }
.nav-toggle span::after  { content: ''; top: 5px; }

.mobile-drawer {
  display: none;
  position: fixed; inset: 64px 0 0;
  background: var(--navy-900);
  z-index: 99;
  flex-direction: column;
  padding: var(--space-5);
  gap: var(--space-2);
  border-top: 1px solid var(--border);
}
.mobile-drawer a {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--fg-soft);
  border-radius: var(--radius);
  transition: background var(--dur-fast);
}
.mobile-drawer a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.mobile-drawer[aria-hidden="false"] { display: flex; }
.drawer-close {
  align-self: flex-end;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--fg-mute);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ---------- 7. Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--cyan-500);
  color: var(--navy-950);
  border-color: var(--cyan-500);
}
.btn--primary:hover {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,180,216,0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--fg-soft);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}

.btn--outline-cyan {
  background: transparent;
  color: var(--cyan-500);
  border-color: var(--border-accent);
}
.btn--outline-cyan:hover {
  background: var(--cyan-100);
  border-color: var(--cyan-500);
}

.btn--dark {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
}
.btn--dark:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.25);
}

.btn--lg { padding: 13px 28px; font-size: var(--text-base); }
.btn--sm { padding: 7px 16px; font-size: var(--text-xs); }

.arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 8. Hero Section ------------------------------------------------- */
.hero {
  position: relative;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--navy-950) 35%,
    rgba(2,11,24,0.7) 65%,
    rgba(2,11,24,0.3) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-text { max-width: 600px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: var(--cyan-100);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--cyan-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan-500);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-headline {
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--space-5);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--fg-soft);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--space-7);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.hero-stat-item { text-align: left; }
.hero-stat-num {
  font-family: var(--font-head);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--fg-mute);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-visual {
  position: relative;
}
.hero-visual img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
  border: 1px solid var(--border);
}

/* ---------- 9. Section Header ----------------------------------------------- */
.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: end;
  margin-bottom: var(--space-8);
}

.section-header--center {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.section-header--center p { margin-inline: auto; }

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-top: var(--space-3);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--fg-soft);
  line-height: 1.7;
  max-width: 480px;
}

/* ---------- 10. IP Core Cards ----------------------------------------------- */
.ip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.ip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
  display: flex;
  flex-direction: column;
}

.ip-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0,180,216,0.1);
}

.ip-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ip-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy-800);
}

.ip-card--featured .ip-card-img {
  aspect-ratio: auto;
  min-height: 260px;
}

.ip-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
  opacity: 0.85;
}

.ip-card:hover .ip-card-img img { transform: scale(1.04); }

.ip-chip {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2,11,24,0.85);
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan-500);
  font-weight: 500;
}

.ip-card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ip-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ip-card-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ip-card-title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.ip-card-desc {
  font-size: var(--text-sm);
  color: var(--fg-mute);
  line-height: 1.65;
  flex: 1;
}

.ip-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.ip-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: #22c55e;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ip-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
}

.ip-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-mute);
  transition: all var(--dur-fast) var(--ease);
}
.ip-card:hover .ip-arrow {
  background: var(--cyan-500);
  border-color: var(--cyan-500);
  color: var(--navy-950);
}

/* ---------- 10b. Visual Library -------------------------------------------- */
.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.visual-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.visual-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 28px rgba(0,180,216,0.1);
}

.visual-card--wide { grid-column: span 2; }

.visual-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 230px;
  overflow: hidden;
  background: var(--navy-800);
}

.visual-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 58%, rgba(2,11,24,0.35));
  pointer-events: none;
}

.visual-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform var(--dur-slow) var(--ease);
}

.visual-card:hover .visual-card-img img { transform: scale(1.035); }

.visual-card .ip-chip {
  z-index: 1;
  color: transparent;
  font-size: 0;
}

.visual-card .ip-chip::after {
  color: var(--cyan-500);
  font-size: 11px;
}

.visual-grid .visual-card:nth-child(1) .ip-chip::after { content: 'Brand · IC Lab'; }
.visual-grid .visual-card:nth-child(2) .ip-chip::after { content: 'SoC · Peripherals'; }
.visual-grid .visual-card:nth-child(3) .ip-chip::after { content: 'Logic · Gates'; }
.visual-grid .visual-card:nth-child(4) .ip-chip::after { content: 'Silicon · Stack'; }
.visual-grid .visual-card:nth-child(5) .ip-chip::after { content: 'Lab · Verification'; }
.visual-grid .visual-card:nth-child(6) .ip-chip::after { content: 'Team · Design'; }
.visual-grid .visual-card:nth-child(7) .ip-chip::after { content: 'Team · Architecture'; }
.visual-grid .visual-card:nth-child(8) .ip-chip::after { content: 'Layout · ASIC'; }
.visual-grid .visual-card:nth-child(9) .ip-chip::after { content: 'Wafer · Silicon'; }

/* ---------- 11. Stat Strip -------------------------------------------------- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-9);
}

.stat-bar-cell {
  background: var(--bg-card);
  padding: var(--space-5) var(--space-6);
}

.stat-bar-num {
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-bar-num .u { color: var(--cyan-500); }
.stat-bar-label {
  font-size: var(--text-xs);
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-2);
}

/* ---------- 12. Feature / Split Row ----------------------------------------- */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: center;
}
.split-row--reverse { direction: rtl; }
.split-row--reverse > * { direction: ltr; }

.split-text { display: flex; flex-direction: column; gap: var(--space-5); }
.split-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.split-desc {
  font-size: var(--text-base);
  color: var(--fg-soft);
  line-height: 1.7;
}

.split-img {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.split-img img { width: 100%; display: block; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: var(--fg-soft);
  transition: border-color var(--dur-fast);
}
.feature-item:hover { border-color: var(--border-accent); }
.feature-icon {
  width: 20px; height: 20px;
  color: var(--cyan-500);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- 13. Capability Cards -------------------------------------------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--dur-base), transform var(--dur-base);
}
.cap-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.cap-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--cyan-100);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan-500);
}

.cap-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cap-title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.cap-desc {
  font-size: var(--text-sm);
  color: var(--fg-mute);
  line-height: 1.65;
  flex: 1;
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan-500);
  background: var(--cyan-100);
  border: 1px solid var(--border-accent);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ---------- 14. Tech Stack Bar ---------------------------------------------- */
.tech-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-7);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.tech-item {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--fg-soft);
  font-weight: 500;
  padding: 6px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--dur-fast);
}
.tech-item:hover { border-color: var(--border-accent); color: var(--cyan-500); background: var(--cyan-100); }

/* ---------- 15. Team Cards -------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur-base), transform var(--dur-base);
}
.team-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.team-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy-800);
}
.team-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform var(--dur-slow) var(--ease);
}
.team-card:hover .team-card-img img { transform: scale(1.04); }

.team-card-avatar {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
}
.avatar-initials {
  font-family: var(--font-head);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--cyan-500);
  opacity: 0.8;
}

.team-card-body { padding: var(--space-5); }
.team-card-name {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.team-card-role {
  font-size: var(--text-sm);
  color: var(--cyan-500);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.team-card-bio {
  font-size: var(--text-sm);
  color: var(--fg-mute);
  line-height: 1.6;
}

/* ---------- 16. Closing CTA ------------------------------------------------- */
.closing-cta {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 50%, var(--navy-800) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,180,216,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.closing-cta h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-5);
}
.closing-cta p {
  font-size: var(--text-lg);
  max-width: 560px;
  margin: 0 auto var(--space-7);
}
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---------- 17. Footer ------------------------------------------------------ */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--border);
  padding-block: var(--space-9) var(--space-6);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.footer-brand .brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--white);
  margin-bottom: var(--space-4);
}
.footer-brand .brand img { height: 24px; width: auto; }
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--fg-mute);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: var(--space-4);
}
.footer-email {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--cyan-500);
  border-bottom: 1px solid var(--border-accent);
  padding-bottom: 2px;
  display: inline-block;
  transition: color var(--dur-fast);
}
.footer-email:hover { color: var(--cyan-400); }

.footer-nav h4 {
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-nav ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-nav li a {
  font-size: var(--text-sm);
  color: var(--fg-mute);
  transition: color var(--dur-fast);
}
.footer-nav li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom span {
  font-size: var(--text-sm);
  color: var(--fg-mute);
}
.footer-bottom a { color: var(--cyan-500); }
.footer-meta-links { display: flex; gap: var(--space-4); }
.footer-meta-links a {
  font-size: var(--text-sm);
  color: var(--fg-mute);
  transition: color var(--dur-fast);
}
.footer-meta-links a:hover { color: var(--white); }

/* ---------- 18. Contact page ------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-9);
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  transition: border-color var(--dur-base), transform var(--dur-base);
}
.contact-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}
.contact-card h3 { font-size: var(--text-xl); }
.contact-card p { font-size: var(--text-sm); color: var(--fg-mute); }

.info-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-9);
}
.info-cell {
  background: var(--bg-card);
  padding: var(--space-5);
  text-align: center;
}
.info-val {
  font-family: var(--font-head);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.info-key {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
}

/* ---------- 19. Collab list ------------------------------------------------- */
.collab-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.collab-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--dur-fast);
}
.collab-item:hover { border-color: var(--border-accent); }
.collab-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--cyan-500);
  font-weight: 600;
  padding-top: 2px;
}
.collab-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.collab-desc {
  font-size: var(--text-sm);
  color: var(--fg-mute);
}

/* ---------- 20. Reveal animation -------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 21. Responsive -------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-bg::after {
    background: linear-gradient(to bottom, rgba(2,11,24,0.5), var(--navy-950) 90%);
  }
  .ip-grid { grid-template-columns: 1fr; }
  .ip-card--featured { grid-column: span 1; grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .section-header { grid-template-columns: 1fr; }
  .stat-bar { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .cap-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .split-row { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: var(--space-4); }
  .stat-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stat-bar { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
}
