/* ==========================================================================
   JLMG Solutions — Corporate Portfolio
   Design system: dark navy + electric teal, inspired by Linear/Vercel
   ========================================================================== */

:root {
  /* Color palette */
  --navy-deep: #0A1228;
  --navy: #0F1729;
  --navy-surface: #141E3C;
  --navy-light: #1E2A4D;
  --teal: #00C9A7;
  --teal-bright: #1EDBBD;
  --teal-hover: #00A88B;
  --teal-glow: rgba(0, 201, 167, 0.35);
  --white: #FFFFFF;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-dim: rgba(255, 255, 255, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 201, 167, 0.4);
  --border-strong: rgba(255, 255, 255, 0.15);

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

  /* Layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-glow: 0 0 60px rgba(0, 201, 167, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 201, 167, 0.1);

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s var(--ease);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

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

::selection { background: var(--teal); color: var(--navy); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(15, 23, 41, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 23, 41, 0.85);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  color: var(--teal);
  font-weight: 800;
}

.logo-text {
  color: var(--text-primary);
  font-weight: 500;
}

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

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

.nav-link:hover { color: var(--text-primary); }

.nav-cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--transition);
}

.nav-cta:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(0, 201, 167, 0.08);
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 28px;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  transition: transform var(--transition);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.glow-1 {
  top: -10%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
}

.glow-2 {
  bottom: -10%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #4A6CFF 0%, transparent 70%);
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(0, 201, 167, 0.08);
  border: 1px solid rgba(0, 201, 167, 0.2);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 2rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--teal-bright) 0%, var(--teal) 50%, #4A9EFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 201, 167, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--teal);
  color: var(--teal);
}

.btn-full {
  width: 100%;
}

.arrow {
  display: inline-block;
  transition: transform var(--transition);
}

.btn:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   Hero Stats
   ========================================================================== */

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  max-width: 600px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--teal);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ==========================================================================
   Section headers
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--navy-surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.about-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.about-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 201, 167, 0.1);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.about-icon svg { width: 24px; height: 24px; }

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   Engines
   ========================================================================== */

.engines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.engine-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--navy-surface);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.engine-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 201, 167, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.engine-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

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

.engine-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--navy-surface) 0%, var(--navy-light) 100%);
}

.engine-card.new-engine {
  border-color: rgba(0, 201, 167, 0.3);
}

.new-ribbon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  background: var(--teal);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 999px;
  box-shadow: 0 0 24px var(--teal-glow);
}

.card-visual {
  height: 140px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.08) 0%, rgba(74, 108, 255, 0.05) 100%);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-live {
  background: rgba(0, 201, 167, 0.12);
  color: var(--teal);
  border: 1px solid rgba(0, 201, 167, 0.3);
}

.status-live::before {
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.status-dev {
  background: rgba(255, 186, 0, 0.12);
  color: #FFBA00;
  border: 1px solid rgba(255, 186, 0, 0.3);
}

.status-dev::before { background: #FFBA00; }

.engine-subtitle {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.engine-name {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.engine-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.engine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ----- Card visuals: CSS-only illustrations ----- */

.book-stack { display: flex; gap: 6px; transform: rotate(-4deg); }
.book {
  width: 34px; height: 80px; border-radius: 3px;
  background: linear-gradient(180deg, var(--teal) 0%, rgba(0, 201, 167, 0.4) 100%);
  box-shadow: 0 4px 20px rgba(0, 201, 167, 0.3);
}
.book-1 { height: 88px; }
.book-2 { height: 76px; background: linear-gradient(180deg, #4A9EFF 0%, rgba(74, 158, 255, 0.4) 100%); box-shadow: 0 4px 20px rgba(74, 158, 255, 0.3); }
.book-3 { height: 84px; }

.slide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 90px;
}
.slide {
  aspect-ratio: 4/3;
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.4), rgba(0, 201, 167, 0.1));
  border: 1px solid rgba(0, 201, 167, 0.3);
}
.slide:nth-child(2) { background: linear-gradient(135deg, rgba(74, 158, 255, 0.4), rgba(74, 158, 255, 0.1)); }

.design-mesh { position: relative; width: 140px; height: 100px; }
.mesh-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  height: 1px;
  width: 100%;
  opacity: 0.6;
}
.mesh-line:nth-child(1) { top: 20%; transform: rotate(15deg); }
.mesh-line:nth-child(2) { top: 50%; transform: rotate(-10deg); }
.mesh-line:nth-child(3) { top: 80%; transform: rotate(20deg); }
.mesh-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 20px var(--teal);
}
.dot-1 { top: 15%; left: 20%; }
.dot-2 { top: 45%; left: 65%; }
.dot-3 { top: 75%; left: 35%; }

.nft-hex { position: relative; width: 140px; height: 110px; }
.hex {
  position: absolute;
  width: 42px; height: 48px;
  background: linear-gradient(135deg, var(--teal) 0%, rgba(0, 201, 167, 0.2) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hex-1 { top: 5px; left: 50px; }
.hex-2 { top: 40px; left: 10px; background: linear-gradient(135deg, #4A9EFF 0%, rgba(74, 158, 255, 0.2) 100%); }
.hex-3 { top: 40px; left: 90px; background: linear-gradient(135deg, #9B4AFF 0%, rgba(155, 74, 255, 0.2) 100%); }
.hex-4 { top: 55px; left: 50px; opacity: 0.6; }

.bolt-wrap { color: var(--teal); filter: drop-shadow(0 0 20px var(--teal-glow)); }
.bolt { width: 70px; height: 70px; }

.cart-glow { color: var(--teal); filter: drop-shadow(0 0 24px var(--teal-glow)); }
.cart-glow svg { width: 70px; height: 70px; }

/* ==========================================================================
   Technology
   ========================================================================== */

.technology { background: var(--navy-deep); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 5rem;
}

.tech-item {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--navy-surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.tech-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.tech-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.tech-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.tech-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tech-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.flow-step {
  padding: 2rem;
  border-radius: var(--radius-md);
  background: var(--navy-surface);
  border: 1px solid var(--border);
  position: relative;
}

.flow-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.flow-step h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.flow-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.flow-arrow {
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 300;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-content .section-title {
  margin-bottom: 1.5rem;
}

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

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--navy-surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

a.contact-method:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.method-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.method-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-form {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--navy-surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--navy-deep);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition);
  font-family: inherit;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(0, 201, 167, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.1);
}

.form-field select option {
  background: var(--navy-deep);
  color: var(--text-primary);
}

.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2300C9A7' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--navy-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-link svg { width: 18px; height: 18px; }

.social-link:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-col a,
.footer-text {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-meta { font-family: var(--font-mono); font-size: 0.8rem; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1024px) {
  .engines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .engine-card.featured { grid-column: span 2; }

  .tech-grid { grid-template-columns: repeat(2, 1fr); }

  .tech-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }

  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    background: rgba(15, 23, 41, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-cta { border: 1px solid var(--teal); margin-top: 1rem; }

  .nav-toggle { display: flex; }

  .hero { padding: 7rem 0 3rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .stat-divider { display: none; }

  .about-grid { grid-template-columns: 1fr; }

  .engines-grid { grid-template-columns: 1fr; }
  .engine-card.featured { grid-column: span 1; }

  .tech-grid { grid-template-columns: 1fr; }

  .footer-links { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .contact-form { padding: 1.75rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}
