/* Design tokens & core styles */

:root {
  --bg-primary: #07080e;
  --bg-surface: #0c0e17;
  --bg-surface-elevated: #121522;
  --brand-cyan: #06b6d4;
  --brand-cyan-light: #22d3ee;
  --brand-sky: #0ea5e9;
  --brand-emerald: #10b981;
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(6, 182, 212, 0.35);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Base & reset */
html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: calc(max(0.75rem, env(safe-area-inset-top, 0.75rem)) + 4rem);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  width: 100%;
}
@media (min-width: 640px) {
  html {
    scroll-padding-top: 5.5rem;
  }
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

::selection {
  background-color: #0284c7;
  color: #ffffff;
}

/* Focus rings */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--brand-cyan) !important;
  outline-offset: 3px !important;
}

/* Min touch target */
button, 
a.btn-primary, 
a.btn-ghost, 
.filter-tab {
  min-height: 44px;
}

/* Gradient text */
.gradient-cyan {
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 50%, #f8fafc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Background grid */
.grid-mesh {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 20%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 20%, black 25%, transparent 80%);
  pointer-events: none;
}

/* Section headings */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-cyan-light);
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  height: 1px;
  width: 1.75rem;
  background: linear-gradient(90deg, #22d3ee, #0ea5e9);
}

.section-title {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
  font-size: clamp(1.85rem, 3.8vw, 2.9rem);
  line-height: 1.12;
  text-wrap: balance;
}

/* Header */
.site-header {
  top: max(0.75rem, env(safe-area-inset-top, 0.75rem));
  transition: top 0.2s ease;
}
@media (min-width: 640px) {
  .site-header {
    top: 1.25rem;
  }
}

/* Hero */
#hero {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-top: calc(max(0.75rem, env(safe-area-inset-top, 0.75rem)) + 4.25rem);
  padding-bottom: 2.5rem;
}

#hero > .hero-container {
  width: 100%;
}

@media (min-width: 768px) {
  #hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: clamp(6.5rem, 11vw, 9rem);
    padding-bottom: clamp(4rem, 6vw, 6rem);
  }

  #hero > .hero-container {
    margin-top: auto;
    margin-bottom: auto;
  }
}

/* Hero typography */
.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.038em;
  font-size: clamp(1.625rem, 5vw, 4.85rem);
  line-height: 1.08;
  color: #ffffff;
  overflow-wrap: break-word;
}

/* Stats bar */
.command-telemetry-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  backdrop-filter: blur(16px);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .command-telemetry-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.telemetry-cell {
  background: #090b14;
  padding: 1.35rem 1.25rem;
  transition: background 0.2s ease;
}
@media (min-width: 640px) {
  .telemetry-cell {
    padding: 1.75rem 2rem;
  }
}
@media (min-width: 1024px) {
  .telemetry-cell {
    padding: 2rem 2.25rem;
  }
}
.telemetry-cell:hover {
  background: #0f1322;
}
.telemetry-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.telemetry-lbl {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Systems grid */
.grid-cols-systems {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .grid-cols-systems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-cols-systems { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
}

.system-card {
  position: relative;
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 640px) {
  .system-card { padding: 1.35rem; }
}
.system-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 16px 36px -12px rgba(6, 182, 212, 0.12);
  background: linear-gradient(165deg, rgba(6, 182, 212, 0.03), rgba(255, 255, 255, 0.012));
}

.system-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.8rem;
  object-fit: cover;
  background: #11131c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px -3px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
@media (min-width: 640px) {
  .system-icon { width: 48px; height: 48px; }
}

/* Card footer */
.system-card-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.system-card-footer .btn-specs {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 0.6rem;
  padding: 0.5rem 0.85rem;
  min-height: 38px;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.system-card-footer .btn-specs:hover {
  background: rgba(6, 182, 212, 0.2);
  color: #67e8f9;
  border-color: rgba(6, 182, 212, 0.4);
}

.system-card-footer .btn-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  padding: 0.5rem 0.75rem;
  min-height: 38px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.system-card-footer .btn-ext-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.system-card-footer .btn-ext-live {
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.2);
}

.system-card-footer .btn-ext-live:hover {
  background: rgba(6, 182, 212, 0.16);
  color: #67e8f9;
  border-color: rgba(6, 182, 212, 0.35);
}

.system-card-footer .badge-nda {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: rgba(103, 232, 249, 0.85);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
  min-height: 38px;
  white-space: nowrap;
}

.system-card-footer svg {
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  flex-shrink: 0;
}

.system-card-footer .badge-nda svg {
  width: 13px !important;
  height: 13px !important;
  max-width: 13px !important;
  max-height: 13px !important;
  min-width: 13px !important;
  min-height: 13px !important;
}

/* Filter toolbar */
.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 500;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .filter-tab {
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    min-height: 40px;
  }
}
.filter-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.filter-tab:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}
.filter-tab.is-active {
  color: #fff;
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 16px -4px rgba(6, 182, 212, 0.35);
}
.filter-tab.is-active .count-badge {
  background: rgba(6, 182, 212, 0.25);
  color: #22d3ee;
}

.count-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.2;
  transition: all 0.2s ease;
}

/* Origin badges */
.origin-tag-client {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #22d3ee;
}

.origin-tag-personal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

/* Architecture */
.pillar-schematic {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pillar-schematic:hover {
  border-top-color: var(--brand-cyan);
  box-shadow: inset 0 1px 0 0 var(--brand-cyan);
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-cyan-light);
  letter-spacing: 0.15em;
}

/* Timeline */
.timeline-track {
  position: relative;
  border-left: 2px solid rgba(6, 182, 212, 0.25);
  margin-left: 1rem;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.timeline-item {
  position: relative;
}
.timeline-node {
  position: absolute;
  left: calc(-2rem - 9px);
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background-color: var(--bg-primary);
  border: 2px solid var(--brand-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.timeline-item:hover .timeline-node {
  transform: scale(1.2);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.85);
}

/* Tech stack */
.stack-domain {
  padding-top: 1.15rem;
  padding-bottom: 0.25rem;
  border-top: 1px solid var(--border-subtle);
}
.stack-domain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.stack-domain-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #22d3ee;
}
.stack-domain-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(34, 211, 238, 0.8);
}
.stack-subgroup {
  margin-bottom: 0.85rem;
}
.stack-subgroup:last-child {
  margin-bottom: 0;
}
.stack-subgroup-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.4rem;
}
.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem !important;
  align-items: center;
}
.stack-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.52rem;
  border-radius: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.055) !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.stack-badge.text-white {
  color: #ffffff !important;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.09) !important;
}
.stack-badge:hover {
  color: #22d3ee !important;
  background: rgba(6, 182, 212, 0.14) !important;
  transform: translateY(-1px);
}

/* Core Competencies Strip */
.competencies-divider {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.competencies-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #22d3ee;
  margin-bottom: 1.25rem;
}
.competencies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .competencies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}
@media (min-width: 1024px) {
  .competencies-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 1.75rem;
  }
}
.competency-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.competency-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #22d3ee;
  line-height: 1.35;
  flex-shrink: 0;
}
.competency-title {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}
.competency-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.25rem;
  line-height: 1.5;
}

/* Fallback utilities for missing tailwind classes */
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-8 { padding-top: 2rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2\.5 { gap: 0.625rem; }
@media (min-width: 640px) {
  .sm\:gap-8 { gap: 2rem; }
  .sm\:mt-12 { margin-top: 3rem; }
  .sm\:mt-14 { margin-top: 3.5rem; }
}
.text-cyan-400\/80 { color: rgba(34, 211, 238, 0.8); }
.text-emerald-400\/80 { color: rgba(52, 211, 153, 0.8); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/75 { color: rgba(255, 255, 255, 0.75); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-emerald-300 { color: #6ee7b7 !important; }
.text-emerald-400 { color: #34d399 !important; }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1) !important; }
.border-emerald-500\/20 { border-color: rgba(16, 185, 129, 0.2) !important; }
.bg-\[\#0c0c12\] { background-color: #0c0c12 !important; }
.w-16 { width: 4rem !important; }
.h-16 { height: 4rem !important; }
.w-20 { width: 5rem !important; }
.h-20 { height: 5rem !important; }
.w-36 { width: 9rem !important; }
.h-36 { height: 9rem !important; }
.hover\:border-cyan-500\/30:hover { border-color: rgba(6, 182, 212, 0.3) !important; }
.hover\:border-emerald-500\/30:hover { border-color: rgba(16, 185, 129, 0.3) !important; }
.hover\:bg-white\/\[0\.08\]:hover { background-color: rgba(255, 255, 255, 0.08) !important; }

/* About section stat cards */
.about-stat-card {
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-stat-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}
.stat-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) {
  .stat-val {
    font-size: 1.65rem;
  }
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.35rem;
  line-height: 1.25;
}
.stat-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.2rem;
  line-height: 1.2;
  white-space: nowrap;
}

@keyframes pulseSlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}
.animate-pulse {
  animation: pulseSlow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Layout helpers */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.gap-3\.5 { gap: 0.875rem !important; }
.gap-16 { gap: 4rem !important; }
@media (min-width: 1024px) {
  .lg\:gap-16 { gap: 4rem !important; }
}

.hero-cta-group {
  gap: 0.875rem !important;
}
@media (min-width: 640px) {
  .hero-cta-group {
    gap: 1rem !important;
  }
}

/* Executive Profile Card */
.executive-profile-card {
  box-sizing: border-box !important;
  padding: 1.25rem !important;
  border-radius: 1.5rem !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  width: 100% !important;
  max-width: 27rem !important;
}
@media (min-width: 640px) {
  .executive-profile-card {
    padding: 1.65rem !important;
  }
}

.profile-card-header {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
}

.profile-avatar-wrapper {
  position: relative !important;
  width: 3.5rem !important;
  height: 3.5rem !important;
  flex-shrink: 0 !important;
  border-radius: 9999px !important;
  padding: 2px !important;
  background: linear-gradient(to top right, #22d3ee, #0284c7) !important;
  box-shadow: 0 0 25px -4px rgba(6, 182, 212, 0.45) !important;
}
.profile-avatar-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 9999px !important;
  object-fit: cover !important;
  background: #0c0c12 !important;
  display: block !important;
}

.profile-status-badge {
  margin-top: 0.95rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.38rem 0.85rem !important;
  border-radius: 9999px !important;
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.72rem !important;
  color: #34d399 !important;
  line-height: 1.3 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.profile-card-divider {
  margin-top: 1rem !important;
  padding-top: 0.95rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.profile-bio-text {
  font-size: 0.82rem !important;
  line-height: 1.6 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  margin: 0 !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}
@media (min-width: 640px) {
  .sm\:col-span-2 {
    grid-column: span 2 / span 2 !important;
  }
}
@media (min-width: 1024px) {
  .lg\:col-span-2 {
    grid-column: span 2 / span 2 !important;
  }
  .lg\:col-span-3 {
    grid-column: span 3 / span 3 !important;
  }
}

/* Specs modal */
#specs-modal {
  margin: auto;
  border: none;
  padding: 0;
  border-radius: 1.75rem;
  background: #0c0e18;
  color: #ffffff;
  max-width: 44rem;
  width: calc(100% - 2rem);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12);
  outline: none;
}
#specs-modal::backdrop {
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#specs-modal[open] {
  opacity: 1;
  animation: modalEnter 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  #specs-modal[open] {
    animation: none;
  }
}
@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
#specs-modal-content {
  padding: 1.5rem 1.15rem;
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (min-width: 640px) {
  #specs-modal-content { padding: 2.5rem; }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: #ffffff;
  color: #07080e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px -6px rgba(255, 255, 255, 0.22);
  transition: all 0.18s ease;
  cursor: pointer;
}
.btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(6, 182, 212, 0.4);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: all 0.18s ease;
  cursor: pointer;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(6, 182, 212, 0.4);
  color: #ffffff;
}
.btn-ghost:active {
  transform: scale(0.98);
}

/* Mobile nav */
#mobile-menu:not(.hidden) {
  display: block;
  animation: mobileMenuEnter 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes mobileMenuEnter {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Utilities */

.font-display { font-family: var(--font-display) !important; }
.font-sans { font-family: var(--font-sans) !important; }
.font-mono { font-family: var(--font-mono) !important; }
.italic { font-style: italic; }
.shrink-0 { flex-shrink: 0; }
.whitespace-nowrap { white-space: nowrap; }
.z-10 { z-index: 10; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-top-48 { top: -12rem; }
.top-2\/3 { top: 66.666667%; }
.-left-40 { left: -10rem; }

.h-1\.5 { height: 0.375rem; }
.w-1\.5 { width: 0.375rem; }
.h-2 { height: 0.5rem; }
.w-2 { width: 0.5rem; }
.h-11 { height: 2.75rem; }
.w-11 { width: 2.75rem; }
.h-36 { height: 9rem; }
.w-36 { width: 9rem; }
.h-\[32rem\] { height: 32rem; }
.w-\[54rem\] { width: 54rem; }
.max-w-xl { max-width: 36rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-\[100vw\] { max-width: 100vw; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pt-4 { padding-top: 1rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-0\.5 { margin-left: 0.125rem; }
.mt-2\.5 { margin-top: 0.625rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-14 { margin-top: 3.5rem; }

.h-px { height: 1px; }
.gap-8 { gap: 2rem; }
.gap-x-12 { column-gap: 3rem; }
.gap-x-5 { column-gap: 1.25rem; }
.gap-y-10 { row-gap: 2.5rem; }
.gap-y-2\.5 { row-gap: 0.625rem; }

.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

.rounded-md { border-radius: 0.375rem; }
.border-b { border-bottom-width: 1px; }

.bg-cyan-400\/70 { background-color: rgba(34, 211, 238, 0.7); }
.bg-\[\#07080e\] { background-color: #07080e; }
.bg-\[\#05060a\] { background-color: #05060a; }
.bg-\[\#0c0c12\] { background-color: #0c0c12; }
.bg-\[\#0c0e18\] { background-color: #0c0e18; }
.bg-\[\#0c0e18\]\/85 { background-color: rgba(12, 14, 24, 0.85); }
.bg-\[\#0c0e18\]\/95 { background-color: rgba(12, 14, 24, 0.95); }
.bg-\[\#12141f\] { background-color: #12141f; }
.bg-cyan-500\/10, .bg-cyan-500\/\[0\.10\] { background-color: rgba(6, 182, 212, 0.1); }
.bg-cyan-500\/15 { background-color: rgba(6, 182, 212, 0.15); }
.bg-cyan-500\/20 { background-color: rgba(6, 182, 212, 0.2); }
.bg-cyan-600 { background-color: #0891b2; }
.bg-emerald-400 { background-color: #34d399; }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.bg-emerald-500\/\[0\.05\] { background-color: rgba(16, 185, 129, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/\[0\.02\] { background-color: rgba(255, 255, 255, 0.02); }
.bg-white\/\[0\.03\] { background-color: rgba(255, 255, 255, 0.03); }

.border-cyan-500\/20 { border-color: rgba(6, 182, 212, 0.2); }
.border-cyan-500\/25 { border-color: rgba(6, 182, 212, 0.25); }
.border-cyan-500\/30 { border-color: rgba(6, 182, 212, 0.3); }
.border-emerald-500\/20 { border-color: rgba(16, 185, 129, 0.2); }
.border-emerald-500\/25 { border-color: rgba(16, 185, 129, 0.25); }

.text-cyan-300 { color: #67e8f9; }
.text-cyan-300\/80 { color: rgba(103, 232, 249, 0.8); }
.text-cyan-400 { color: #22d3ee; }
.text-cyan-700 { color: #0e7490; }
.text-emerald-400 { color: #34d399; }
.text-\[\#07080e\] { color: #07080e; }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/75 { color: rgba(255, 255, 255, 0.75); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-\[10\.5px\] { font-size: 10.5px; }
.text-\[0\.65em\] { font-size: 0.65em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.leading-\[1\.05\] { line-height: 1.05; }

.hover\:bg-cyan-500:hover { background-color: #06b6d4; }
.hover\:bg-cyan-500\/20:hover { background-color: rgba(6, 182, 212, 0.2); }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:text-cyan-300:hover { color: #67e8f9; }
.hover\:text-cyan-400:hover { color: #22d3ee; }
.group:hover .group-hover\:text-cyan-400 { color: #22d3ee; }

.bg-gradient-to-tr { background-image: linear-gradient(to top right, #22d3ee, #0284c7); }
.from-cyan-400 { --tw-gradient-from: #22d3ee; }
.to-sky-600 { --tw-gradient-to: #0284c7; }

.blur-\[120px\] { filter: blur(120px); -webkit-filter: blur(120px); }
.blur-\[130px\] { filter: blur(130px); -webkit-filter: blur(130px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }

.ring-white\/15 { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.shadow-\[0_8px_32px_rgba\(0\,0\,0\,0\.6\)\],
.nav-glass-pill { 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6); 
}
#desktop-nav a {
  white-space: nowrap;
  flex-shrink: 0;
}
#desktop-nav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand-cyan);
}
.shadow-\[0_0_35px_-8px_rgba\(6\,182\,212\,0\.4\)\],
.portrait-glow-ring { 
  background: linear-gradient(to top right, #22d3ee, #0284c7);
  box-shadow: 0 0 35px -8px rgba(6, 182, 212, 0.4); 
}

.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.card-body { min-width: 0; }
.btn-open-specs {
  cursor: pointer;
}

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}
.animate-ping {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hidden { display: none !important; }

@media (min-width: 640px) {
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-14 { padding: 3.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:text-\[13px\] { font-size: 13px; }
  .sm\:inline { display: inline !important; }
  .sm\:inline-flex { display: inline-flex !important; }
  .sm\:flex { display: flex !important; }
  .sm\:hidden { display: none !important; }
  .sm\:block { display: block !important; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:justify-between { justify-content: space-between; }
  .md\:hidden { display: none !important; }
  .md\:block { display: block !important; }
}

@media (min-width: 1024px) {
  .lg\:inline { display: inline !important; }
  .lg\:inline-flex { display: inline-flex !important; }
  .lg\:flex { display: flex !important; }
  .lg\:hidden { display: none !important; }
  .lg\:block { display: block !important; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:text-\[6rem\] { font-size: 6rem; }
  .lg\:leading-\[0\.98\] { line-height: 0.98; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
