/* ==========================================================================
   OXFORTECH — REFINED DESIGN SYSTEM (Linear, Vercel & Stripe Inspired)
   Palette:
   - Deep Slate/Graphite: #07080B
   - Surface Layer 1: #0D0F14
   - Surface Layer 2: #12151D
   - Elevated Surface: #161A24
   - Subtle Border: rgba(255, 255, 255, 0.08)
   - Border Hover: rgba(255, 255, 255, 0.16)
   - Accent Aurora Glows: Indigo (#6366F1), Cyan (#06B6D4), Emerald (#10B981)
   ========================================================================== */

:root {
  --bg-base: #111318;
  --bg-surface: #171A24;
  --bg-surface-elevated: #1F2330;
  --bg-surface-glass: rgba(23, 26, 36, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.22);
  --border-focus: #6366F1;
  
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-dim: #475569;
  
  --accent-emerald: #10B981;
  --accent-blue: #38BDF8;
  --accent-purple: #A78BFA;
  --accent-cyan: #22D3EE;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --container-max: 1200px;
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-base);
  color: var(--text-primary);
}

/* ==========================================================================
   Ambient Lighting & Background Depth (Linear & Vercel Aesthetic)
   ========================================================================== */
.ambient-glow-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 520px;
  background: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    rgba(99, 102, 241, 0.16) 0%,
    rgba(56, 189, 248, 0.08) 45%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.ambient-mesh {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, black 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, black 35%, transparent 100%);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(17, 19, 24, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-link:hover .brand-logo-frame {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.22);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.hero-emblem-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  overflow: visible;
  backdrop-filter: blur(14px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-emblem-wrap:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 24px 60px rgba(99, 102, 241, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-emblem-halo {
  position: absolute;
  inset: -22px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.32) 0%, rgba(59, 130, 246, 0.15) 45%, transparent 70%);
  pointer-events: none;
  filter: blur(14px);
}

.hero-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.12));
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #FFFFFF;
}

.studio-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 2px 7px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 5px;
  color: #C7D2FE;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2px 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: #FFFFFF;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-weight: 600;
}

.lang-divider {
  color: var(--border-subtle);
  font-size: 0.68rem;
}

.nav-btn {
  padding: 8px 16px;
  font-size: 0.84rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
}

/* ==========================================================================
   Buttons with Shimmer & Glass (Stripe/Linear Polish)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.btn-primary {
  background: #FFFFFF;
  color: #111318;
  border: 1px solid #FFFFFF;
  padding: 11px 22px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.btn-primary:hover {
  background: #F1F5F9;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #F8FAFC;
  border: 1px solid var(--border-glass);
  padding: 11px 22px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.labs-dot-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 6px;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #C4B5FD;
  border-radius: 4px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 7rem 0 4.5rem 0;
  text-align: center;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 940px;
}

.status-pill-wrapper {
  margin-bottom: 2.2rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 22, 32, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  padding: 7px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transition: all var(--transition-fast);
}

.status-pill:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.pill-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform var(--transition-fast);
}

.status-pill:hover .pill-arrow {
  transform: translateX(2px);
  color: #FFFFFF;
}

.status-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
}

.pulse-ring {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  opacity: 0.4;
  animation: pulse-animation 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.6); opacity: 0.8; }
  60% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: #E2E8F0;
  letter-spacing: 0.06em;
}

.hero-headline {
  font-size: clamp(2.45rem, 5.5vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 1.6rem;
  background: linear-gradient(180deg, #FFFFFF 30%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subhead {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  color: var(--text-secondary);
  line-height: 1.68;
  max-width: 760px;
  margin-bottom: 2.75rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 3.5rem;
}

/* Glass Readout Strip */
.hero-readout {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  padding: 12px 24px;
  background: rgba(14, 17, 24, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.readout-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.readout-label { color: var(--text-dim); }
.val-emerald { color: #34D399; font-weight: 600; }
.val-blue { color: #60A5FA; font-weight: 600; }
.val-purple { color: #C084FC; font-weight: 600; }
.val-white { color: #F8FAFC; font-weight: 600; }
.readout-divider { color: rgba(255, 255, 255, 0.1); }

/* ==========================================================================
   Tech Stack Marquee / Trust Strip
   ========================================================================== */
.tech-marquee-section {
  padding: 2.5rem 0 3.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.marquee-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.marquee-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.tech-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tech-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.tech-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
  max-width: 720px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #818CF8;
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.06rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Hybrid Bento Grid with Depth & Accents
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
}

.bento-card {
  position: relative;
  background: linear-gradient(180deg, #181C26 0%, #12151E 100%);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2.25rem;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

/* Glowing accent corner */
.card-glow-accent {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
  opacity: 0.35;
}

.blue-glow { background: #38BDF8; }
.cyan-glow { background: #22D3EE; }
.purple-glow { background: #A78BFA; }
.form-glow { background: #6366F1; opacity: 0.2; }

/* Interactive Spotlight dynamic border */
.bento-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: radial-gradient(
    420px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(255, 255, 255, 0.25),
    transparent 60%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.bento-card-wide { grid-column: span 12; }
.bento-card:not(.bento-card-wide) { grid-column: span 6; }

.card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 2;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.meta-accent-blue { color: #60A5FA; letter-spacing: 0.08em; }
.meta-accent-cyan { color: #22D3EE; letter-spacing: 0.08em; }
.meta-accent-purple { color: #C084FC; letter-spacing: 0.08em; }
.card-id { color: var(--text-dim); }

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 820px;
}

/* Tabbed Code Spec Component */
.tech-spec-box {
  background: #0B0D13;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  font-family: var(--font-mono);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.code-tabs {
  display: flex;
  gap: 0.4rem;
}

.code-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 4px 10px;
  font-family: inherit;
  font-size: 0.72rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.code-tab:hover {
  color: #E2E8F0;
}

.code-tab.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass);
  color: #FFFFFF;
}

.code-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: #34D399;
}

.code-snippet {
  padding: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #E2E8F0;
  overflow-x: auto;
}

.c-dim { color: #64748B; }
.c-kw  { color: #F43F5E; }
.c-fn  { color: #60A5FA; }
.c-type{ color: #34D399; }
.c-str { color: #FBBF24; }
.c-num { color: #A78BFA; }

/* Interactive Workflow Visual (Card 2) */
.workflow-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0E1017;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 1.4rem;
  margin-bottom: 1.75rem;
  gap: 0.6rem;
}

.wf-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  flex: 1;
  text-align: center;
  transition: border-color var(--transition-fast);
}

.wf-node.active-node {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.05);
}

.wf-label {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: #F8FAFC;
  font-weight: 500;
}

.wf-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.wf-connector {
  position: relative;
  width: 28px;
  height: 2px;
  background: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wf-signal {
  position: absolute;
  width: 8px;
  height: 2px;
  background: #22D3EE;
  box-shadow: 0 0 6px #22D3EE;
  animation: signal-travel 1.8s ease-in-out infinite;
}

@keyframes signal-travel {
  0% { transform: translateX(-14px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(14px); opacity: 0; }
}

/* Feature Card (Oxfortech Labs) */
.feature-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
}

.status-tag.active {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
}

.labs-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.lab-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 1.2rem;
  transition: all var(--transition-fast);
}

.lab-item:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.2);
}

.lab-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.lab-item-title-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lab-name {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: #FFFFFF;
}

.lab-type {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.lab-stage-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lab-stage {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #C4B5FD;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
  padding: 2px 7px;
  border-radius: 4px;
}

.lab-waitlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.26);
  padding: 2px 8px;
  border-radius: 5px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.lab-waitlist-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #FFFFFF;
  transform: translateX(2px);
}

.tag-action-link {
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.tag-action-link:hover {
  background: rgba(167, 139, 250, 0.22);
  border-color: rgba(167, 139, 250, 0.5);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.lab-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.lab-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.progress-pct {
  color: #E2E8F0;
  font-weight: 500;
}

.lab-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 9999px;
}

.bar-emerald {
  background: linear-gradient(90deg, #059669, #34D399);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.bar-purple {
  background: linear-gradient(90deg, #7C3AED, #A78BFA);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
}

/* Card footer tags */
.card-footer-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: 5px;
}

.tag-accent {
  color: #E2E8F0;
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.25);
}

/* ==========================================================================
   Engineering Principles (Elevated Glass Columns)
   ========================================================================== */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.principle-col {
  background: linear-gradient(180deg, #181C26 0%, #12151E 100%);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.principle-col:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.principle-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.principle-number {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 600;
}

.principle-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
}

.principle-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
}

.principle-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.principle-list {
  list-style: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.35rem;
}

.principle-list li {
  font-size: 0.84rem;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.principle-list li::before {
  content: "—";
  color: #6366F1;
  font-weight: bold;
}

/* ==========================================================================
   Direct Contact Section (Premium Glass Card)
   ========================================================================== */
.contact-section { padding-bottom: 7rem; }

.contact-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info { display: flex; flex-direction: column; }

.contact-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.18;
  margin-bottom: 1rem;
}

.contact-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 2.5rem;
}

.contact-meta-items {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
}

.meta-item { display: flex; flex-direction: column; gap: 0.3rem; }
.meta-label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.08em; }
.meta-value { font-size: 0.96rem; color: var(--text-primary); font-weight: 500; }
.meta-value:hover { color: #818CF8; }

.contact-card {
  position: relative;
  background: linear-gradient(180deg, #181C26 0%, #12151E 100%);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2.75rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.contact-form {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-label .req { color: #F43F5E; }

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(12, 14, 20, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 12px 16px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder { color: #475569; }

.form-input:focus,
.form-textarea:focus {
  border-color: #818CF8;
  box-shadow: 0 0 0 1px #818CF8, 0 0 16px rgba(129, 140, 248, 0.2);
}

.form-textarea { resize: vertical; min-height: 110px; }

.chips-selector { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.chip:hover { border-color: rgba(255, 255, 255, 0.3); color: #FFFFFF; }
.chip.active { background: rgba(99, 102, 241, 0.15); border-color: #818CF8; color: #FFFFFF; }

.form-error {
  display: none;
  font-size: 0.75rem;
  color: #F43F5E;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
}

.has-error .form-input,
.has-error .form-textarea { border-color: #F43F5E; }
.has-error .form-error { display: block; }

.form-footnote {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
}

.alert-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-emerald);
  color: #111318;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.alert-content { display: flex; flex-direction: column; gap: 0.2rem; }
.alert-title { font-size: 0.9rem; color: #FFFFFF; font-weight: 600; }
.alert-msg { font-size: 0.84rem; color: #CBD5E1; line-height: 1.45; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0;
  background: #0D0E14;
  font-size: 0.84rem;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-tagline { color: var(--text-dim); font-size: 0.82rem; }

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #34D399;
}

.footer-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); }

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.copyright { color: var(--text-dim); }
.footer-links { display: flex; gap: 1.35rem; }
.footer-links a { color: var(--text-secondary); transition: color var(--transition-fast); }
.footer-links a:hover { color: #FFFFFF; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .principles-grid { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .bento-card:not(.bento-card-wide) { grid-column: span 12; }
  .footer-container { flex-direction: column; align-items: flex-start; }
  .footer-center, .footer-right { align-items: flex-start; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #0E1017;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .nav-links.active { display: flex; }
  .mobile-toggle { display: flex; }
  .hero-section { padding: 5rem 0 3rem 0; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .workflow-visual { flex-direction: column; gap: 0.85rem; }
  .wf-connector { width: 2px; height: 18px; }
  .wf-signal { width: 2px; height: 8px; }
  .contact-card { padding: 1.75rem; }
  .lang-switch { margin-right: 0.25rem; }
}
