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

:root {
  --white: #ffffff;
  --black: #000000;
  --bg-dark: #000000;
  --bg-mid: #161617;
  --bg-light: #f5f5f7;
  --bg-card-dark: #1d1d1f;
  --text: #f5f5f7;
  --text-dark: #1d1d1f;
  --text-secondary: #a1a1a6;
  --text-secondary-dark: #6e6e73;
  --accent: #2997ff;
  --accent-hover: #0077ed;
  --border-dark: #424245;
  --border-light: #d2d2d7;
  --radius: 18px;
  --radius-lg: 28px;
  --nav-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Global Nav ── */
nav, .global-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(0,0,0,0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
}
nav::after, .global-nav::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(41,151,255,0.6) 30%, rgba(191,90,242,0.6) 70%, transparent 100%);
  filter: blur(1px);
}
nav::before, .global-nav::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(41,151,255,0.08) 0%, rgba(191,90,242,0.05) 50%, transparent 100%);
  pointer-events: none;
}
.nav-logo { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { font-size: 0.8rem; color: rgba(255,255,255,0.8); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); border-radius: 2px; transition: 0.3s var(--ease); }

/* ── Page offset ── */
main { padding-top: var(--nav-h); }

/* ── HERO — full-bleed dark, centered large type ── */
.hero {
  background: var(--bg-dark);
  padding: 120px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(41,151,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-photo-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 44px;
  cursor: pointer;
}
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 36px;
  background: radial-gradient(ellipse at 50% 60%, rgba(41,151,255,0.45) 0%, rgba(191,90,242,0.25) 50%, transparent 75%);
  filter: blur(24px);
  opacity: 0.7;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: 0;
}
.hero-photo-wrap:hover::before {
  opacity: 1;
  transform: scale(1.12);
}
.hero-photo {
  position: relative; z-index: 1;
  width: 225px; height: 275px;
  border-radius: 24px;
  object-fit: cover; object-position: top;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 24px 64px rgba(0,0,0,0.6);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: block;
}
.hero-photo-wrap:hover .hero-photo {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(41,151,255,0.3), 0 32px 80px rgba(0,0,0,0.7), 0 0 40px rgba(41,151,255,0.2);
}
.hero-eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.05; margin-bottom: 20px;
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #2997ff 0%, #bf5af2 50%, #ff375f 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary); max-width: 560px;
  margin: 0 auto 48px; line-height: 1.5;
}
.hero-stats {
  display: flex; justify-content: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 52px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-stats span {
  position: relative;
  flex: 1; min-width: 140px;
  padding: 20px 16px; text-align: center;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: 0.8rem; color: var(--text-secondary);
  cursor: default;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero-stats span::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 60%, rgba(41,151,255,0.45) 0%, rgba(191,90,242,0.25) 50%, transparent 75%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: 0;
  pointer-events: none;
}
.hero-stats span:hover::before {
  opacity: 1;
  transform: scale(1.12);
}
.hero-stats span:hover {
  border-color: rgba(41,151,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 24px rgba(41,151,255,0.15);
}
.hero-stats span strong {
  display: block; font-size: 1.8rem; font-weight: 700;
  color: var(--white); letter-spacing: -0.03em; margin-bottom: 2px;
  position: relative; z-index: 1;
}
.hero-stats span > :not(strong) { position: relative; z-index: 1; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: var(--white);
  padding: 13px 24px; border-radius: 980px;
  font-size: 0.9rem; font-weight: 500;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  border: none; cursor: pointer; font-family: var(--font);
}
.btn:hover { background: var(--accent-hover); transform: scale(1.02); }
.btn-ghost {
  background: transparent; color: var(--accent);
  border: 1.5px solid rgba(41,151,255,0.5);
}
.btn-ghost:hover { background: rgba(41,151,255,0.1); transform: scale(1.02); }
.btn-dark {
  background: var(--white); color: var(--black);
}
.btn-dark:hover { background: #e8e8ed; }

/* ── Subnav (sticky, appears on scroll) ── */
.subnav {
  position: sticky; top: var(--nav-h); z-index: 100;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
  display: flex; justify-content: center; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  font-size: 0.8rem; color: var(--text-secondary);
  padding: 14px 20px; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.subnav a:hover { color: var(--white); }
.subnav a.active { color: var(--white); border-bottom-color: var(--white); }

/* ── Band sections ── */
.band { padding: 100px 24px; }
.band-dark { background: var(--bg-dark); }
.band-mid { background: var(--bg-mid); }
.band-light { background: var(--bg-light); }
.band-white { background: var(--white); }

.band-inner { max-width: 980px; margin: 0 auto; }
.band-inner-wide { max-width: 1200px; margin: 0 auto; }

/* ── Section typography ── */
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.eyebrow-light { color: var(--text-secondary-dark); }

.headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.08; margin-bottom: 18px;
}
.headline-light { color: var(--text-dark); }
.headline-gradient {
  background: linear-gradient(135deg, #2997ff 0%, #bf5af2 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subhead {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary); max-width: 580px; line-height: 1.6;
  margin-bottom: 52px;
}
.subhead-light { color: var(--text-secondary-dark); }

/* ── Feature grid — apple/services style large cards ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.feature-grid-3 { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex; flex-direction: column;
  min-height: 320px; position: relative; overflow: visible;
  cursor: default;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 44px;
  background: radial-gradient(ellipse at 50% 60%, rgba(41,151,255,0.45) 0%, rgba(191,90,242,0.25) 50%, transparent 75%);
  filter: blur(24px);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: 0;
  pointer-events: none;
}
.feature-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  z-index: 1;
  pointer-events: none;
}
.feature-card > * { position: relative; z-index: 2; }
.feature-card:hover::before {
  opacity: 1;
  transform: scale(1.08);
}
.feature-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 40px rgba(41,151,255,0.15);
}
.feature-card-dark { background: var(--bg-card-dark); }
.feature-card-blue { background: linear-gradient(145deg, #0a2540 0%, #0d3b6e 100%); }
.feature-card-purple { background: linear-gradient(145deg, #1a0533 0%, #3d0f6e 100%); }
.feature-card-green { background: linear-gradient(145deg, #001a0d 0%, #003d1a 100%); }
.feature-card-orange { background: linear-gradient(145deg, #2a1200 0%, #5c2800 100%); }
.feature-card-yellow { background: linear-gradient(145deg, #2a2900 0%, #5c5700 100%); }
.feature-card-light { background: var(--bg-light); }
.feature-card-white { background: var(--white); }

.feature-card .card-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.feature-card .card-eyebrow-amber { color: #ff9f0a; }
.feature-card .card-eyebrow-green { color: #30d158; }
.feature-card .card-eyebrow-purple { color: #bf5af2; }
.feature-card .card-eyebrow-yellow { color: #eff25a; }

.feature-card h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 12px; color: var(--white);
}
.feature-card h3.dark { color: var(--text-dark); }

.feature-card p {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.6; flex: 1;
}
.feature-card p.dark { color: var(--text-secondary-dark); }

.feature-card .card-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.85rem; color: var(--accent); margin-top: 24px;
  font-weight: 500; transition: gap 0.2s;
}
.feature-card .card-link:hover { gap: 8px; }
.feature-card .card-link.dark { color: var(--accent); }

.feature-card .card-metric {
  font-size: clamp(1.875rem, 3.75vw, 3rem);
  font-weight: 700; letter-spacing: -0.04em;
  line-height: 1; margin-bottom: 8px;
}
.feature-card .card-metric-blue { color: #2997ff; }
.feature-card .card-metric-green { color: #30d158; }
.feature-card .card-metric-amber { color: #ff9f0a; }
.feature-card .card-metric-purple { color: #bf5af2; }
.feature-card .card-metric-yellow { color: #eff25a; }

/* Full-width card */
.feature-card-full {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; gap: 48px;
  min-height: 240px;
}
.feature-card-full .card-text { flex: 1; }
.feature-card-full .card-visual {
  flex: 0 0 200px; text-align: center;
  font-size: 5rem; line-height: 1;
}

/* ── Split layout ── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split-photo {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.split-photo-light { box-shadow: 0 24px 64px rgba(0,0,0,0.12); }

/* ── Skills ── */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.skill-group-title {
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.06em;
}
.skill-item { margin-bottom: 22px; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.skill-header span { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.skill-header .pct { color: var(--text-secondary); font-size: 0.85rem; }
.skill-track { height: 3px; background: var(--border-dark); border-radius: 2px; overflow: hidden; }
.skill-bar-fill {
  height: 100%; background: var(--accent); border-radius: 2px;
  width: 0; transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Timeline ── */
.timeline { margin-top: 56px; }
.tl-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 24px; padding-bottom: 36px;
  position: relative;
}
.tl-item::before {
  content: ''; position: absolute;
  left: 36px; top: 24px; bottom: 0;
  width: 1px; background: var(--border-dark);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); margin-top: 5px;
  justify-self: end; position: relative; z-index: 1;
  box-shadow: 0 0 0 3px rgba(41,151,255,0.2);
}
.tl-year { font-size: 0.75rem; font-weight: 700; color: var(--accent); padding-top: 2px; }
.tl-body h4 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.tl-body p { font-size: 0.85rem; color: var(--text-secondary); }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.testimonial-card {
  background: var(--bg-card-dark); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--border-dark);
}
.stars { color: #ff9f0a; font-size: 0.8rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card blockquote {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 24px;
}
.testimonial-card cite { font-size: 0.85rem; font-weight: 600; color: var(--white); font-style: normal; }
.testimonial-card cite span { display: block; font-weight: 400; color: var(--text-secondary); margin-top: 2px; }

/* ── Fun facts ── */
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.fact-card {
  background: var(--bg-card-dark);
  border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--border-dark); text-align: center;
  position: relative; overflow: visible;
  cursor: default;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.fact-card::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 36px;
  background: radial-gradient(ellipse at 50% 60%, rgba(41,151,255,0.45) 0%, rgba(191,90,242,0.25) 50%, transparent 75%);
  filter: blur(24px);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: 0;
  pointer-events: none;
}
.fact-card > * { position: relative; z-index: 1; }
.fact-card:hover::before {
  opacity: 1;
  transform: scale(1.08);
}
.fact-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(41,151,255,0.3);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 40px rgba(41,151,255,0.15);
}
.fact-icon { font-size: 2.5rem; margin-bottom: 16px; }
.fact-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.fact-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.contact-info > p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 32px; }
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.9rem; color: var(--text-secondary);
  padding: 14px 18px; border-radius: 12px;
  border: 1px solid var(--border-dark);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.contact-link:hover { border-color: var(--accent); color: var(--white); background: rgba(41,151,255,0.05); }
.contact-link .icon { font-size: 1.1rem; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }
.form-group input, .form-group textarea {
  padding: 13px 16px; border: 1px solid var(--border-dark);
  border-radius: 12px; font-family: var(--font); font-size: 0.9rem;
  background: var(--bg-card-dark); color: var(--white);
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── IaC callout bar ── */
.iac-bar {
  background: var(--bg-mid); border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 20px 24px; text-align: center;
}
.iac-bar p { font-size: 0.8rem; color: var(--text-secondary); }
.iac-bar strong { color: var(--text); }

/* ── Footer ── */
footer {
  background: var(--bg-mid); border-top: 1px solid var(--border-dark);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 980px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
footer p { font-size: 0.78rem; color: var(--text-secondary); }
footer a { color: var(--accent); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.78rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ── 404 ── */
.error-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 24px;
  background: var(--bg-dark);
}
.error-page h1 { font-size: 8rem; font-weight: 700; letter-spacing: -0.05em; color: var(--border-dark); }
.error-page h2 { font-size: 1.8rem; font-weight: 600; margin-bottom: 12px; }
.error-page p { color: var(--text-secondary); margin-bottom: 36px; }

/* ── Animations ── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Mobile ── */
@media (max-width: 900px) {
  .feature-grid, .feature-grid-3 { grid-template-columns: 1fr; }
  .feature-card-full { flex-direction: column; }
  .feature-card-full .card-visual { font-size: 3.5rem; }
  .split, .skills-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse { direction: ltr; }
  .testimonials-grid, .facts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(0,0,0,0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dark); padding: 16px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 13px 24px; font-size: 1rem; }
  .hamburger { display: flex; }
  .band { padding: 72px 20px; }
  .feature-card { padding: 32px 28px; min-height: auto; }
  .hero { padding: 80px 20px 72px; }
  .hero-stats { flex-direction: column; border: none; gap: 0; }
  .hero-stats span { border-right: none; border-bottom: 1px solid var(--border-dark); }
  .hero-stats span:last-child { border-bottom: none; }
  .subnav { justify-content: flex-start; }
}
