/* ============================================
   Bugs n Code — Brand Theme
   Colors from logo: green → cyan → blue → purple
   ============================================ */

:root {
  --bg-deep: #030306;
  --bg-card: #0a0a0f;
  --bg-elevated: #111118;
  --bg-hover: #18181f;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --text: #f4f6fb;
  --text-muted: #a0a5b5;
  --text-dim: #6b7080;
  --green: #84cc16;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --purple: #a78bfa;
  --brand-blue: #2563eb;
  --accent: var(--cyan);
  --accent-secondary: var(--green);
  --gradient-brand: linear-gradient(135deg, #84cc16 0%, #22d3ee 35%, #3b82f6 70%, #a78bfa 100%);
  --gradient-brand-h: linear-gradient(90deg, #84cc16, #22d3ee, #3b82f6, #a78bfa);
  --accent-glow: rgba(34, 211, 238, 0.15);
  --green-glow: rgba(132, 204, 22, 0.12);
  --blue-glow: rgba(59, 130, 246, 0.12);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 60px rgba(34, 211, 238, 0.12);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-text {
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% -20%, rgba(34, 211, 238, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(34, 211, 238, 0.25);
  color: #fff;
}

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

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.2);
}

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

.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(3, 3, 6, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
}

.logo-wordmark {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}

.logo-code {
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-footer .logo-icon {
  height: 42px;
}

.logo-footer .logo-wordmark {
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

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

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--green);
  top: -180px;
  right: 5%;
  opacity: 0.14;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: var(--cyan);
  bottom: 5%;
  left: -100px;
  opacity: 0.12;
}

.hero-glow-3 {
  width: 450px;
  height: 450px;
  background: var(--purple);
  top: 35%;
  right: -80px;
  opacity: 0.1;
}

.hero-bracket {
  position: absolute;
  font-family: var(--display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.1;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  filter: blur(0.5px);
}

.hero-bracket-left {
  left: 4%;
  top: 22%;
}

.hero-bracket-right {
  right: 4%;
  bottom: 18%;
}

.hero-grid {
  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 70% 60% at 50% 40%, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 640px;
  color: #ffffff;
}

.hero-title .gradient-text {
  display: inline;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

.hero-sub {
  font-size: 1.15rem;
  color: #b8bcc8;
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.hero-stat {
  padding: 0;
  background: none;
  border: none;
  backdrop-filter: none;
}

.hero-stat:hover {
  border: none;
  background: none;
  transform: none;
}

.hero-stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 2px;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  display: block;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1024 / 682;
}

.hero-logo-glow {
  display: none;
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.hero-brand .code-window {
  width: 100%;
  max-width: 380px;
}

.code-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

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

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.code-window-title {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.code-window-body {
  padding: 24px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
}

.c-keyword { color: var(--purple); }
.c-string { color: var(--green); }
.c-cursor {
  animation: blink 1s step-end infinite;
  color: var(--cyan);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---- Marquee ---- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  background: var(--bg-card);
}

.marquee-track span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.marquee-track span:not(.marquee-dot):hover {
  color: var(--cyan);
}

.marquee-dot { color: var(--cyan) !important; opacity: 0.6; }

.marquee-track {
  display: flex;
  gap: 32px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 56px;
  max-width: 640px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

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

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.service-card-featured {
  border-color: rgba(34, 211, 238, 0.2);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  color: var(--cyan);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h2,
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.work-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 100px;
}

/* ---- Compare ---- */
.compare {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.compare-old {
  background: var(--bg-deep);
}

.compare-new {
  background: linear-gradient(135deg, rgba(34,211,238,0.1) 0%, rgba(59,130,246,0.06) 50%, rgba(255,255,255,0.03) 100%);
  border-color: rgba(34, 211, 238, 0.3);
  position: relative;
  box-shadow: 0 0 48px rgba(34, 211, 238, 0.08);
}

.compare-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
}

.compare-card h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  font-weight: 600;
}

.compare-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.compare-card .x {
  color: #ff6b6b;
  font-weight: 700;
  flex-shrink: 0;
}

.compare-card .check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.compare-new li { color: var(--text); }

/* ---- Process ---- */
.process-timeline {
  display: grid;
  gap: 0;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.process-step {
  display: flex;
  gap: 32px;
  padding: 32px 0;
}

.process-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  color: var(--green);
  box-shadow: 0 0 24px rgba(132, 204, 22, 0.15);
}

.process-check {
  width: 22px;
  height: 22px;
}

.process-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 560px;
}

/* ---- Work ---- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 240px;
  transition: var(--transition);
  background: var(--bg-card);
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35), 0 0 32px rgba(34, 211, 238, 0.06);
}

.work-card-large {
  grid-column: span 2;
  min-height: 280px;
}

.work-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent, #e8a87c) 0%, var(--bg-card) 80%);
  opacity: 0.22;
}

.work-card-content {
  position: relative;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, var(--bg-card) 30%, transparent);
}

.work-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.work-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.work-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.work-metrics {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.work-metrics strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
}

.work-metrics div {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---- Speed ---- */
.speed {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.speed-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.speed-bars {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.speed-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.speed-bar-time {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.speed-bar-track {
  height: 8px;
  background: var(--bg-deep);
  border-radius: 100px;
  overflow: hidden;
}

.speed-bar-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-brand-h);
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.speed-bar-muted {
  background: var(--bg-hover);
}

.speed-highlight {
  grid-column: 2;
  text-align: center;
  padding: 32px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.speed-highlight-num {
  display: block;
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.speed-highlight-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.about-value strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.about-value span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.about-logo-card {
  position: relative;
  padding: 40px 32px 32px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(34, 211, 238, 0.15);
  overflow: hidden;
  box-shadow: 0 0 48px rgba(34, 211, 238, 0.06);
}

.about-logo-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(132, 204, 22, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.about-logo-full {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 8px 32px rgba(34, 211, 238, 0.2));
}

.about-logo-tagline {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-card-stat {
  background: var(--bg-card);
  padding: 32px;
  text-align: center;
}

.about-stat-num {
  display: block;
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---- Testimonial ---- */
.testimonial {
  padding: 80px 0;
}

.testimonial-quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote p {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 32px;
  color: var(--text);
}

.testimonial-quote footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-glow), var(--accent-glow));
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.testimonial-quote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-quote footer span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---- Offices ---- */
.offices {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.office-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.office-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3), 0 0 32px rgba(34, 211, 238, 0.06);
}

.office-flag {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.office-card h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.office-label {
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.office-card address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.office-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}

.office-phone:hover {
  color: var(--cyan);
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
}

.contact-phone:hover {
  color: var(--cyan);
}

.contact-direct a:not(.contact-phone) {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.contact-direct a:not(.contact-phone):hover {
  color: var(--cyan);
}

.footer-addresses {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-addresses p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-addresses strong {
  color: var(--text-muted);
  font-weight: 600;
}

/* ---- Contact ---- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.contact-text h2 {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-text p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-perks li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
}

.contact-perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239b9590' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

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

.form-group-custom {
  animation: fadeIn 0.25s ease;
}

.form-group-custom[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---- Footer ---- */

/* ---- Subpages ---- */
.page-hero {
  padding: 140px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(34,211,238,0.12), transparent),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(132,204,22,0.06), transparent);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb span {
  color: var(--text-dim);
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-content {
  padding: 0 0 100px;
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 16px;
}

.content-block p,
.content-block li {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.content-block ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.nav-links a.active {
  color: var(--text);
}

.footer {
  padding: 64px 0 28px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 20px 0 20px;
  max-width: 260px;
  line-height: 1.65;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}

.footer-phone-prominent a {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.footer-phone-prominent a:hover {
  color: var(--cyan);
}

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

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: 10px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent-glow);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

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

.footer-links h4,
.footer-contact h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text); }

.footer-contact p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.footer-contact a:hover { color: var(--cyan); }

.footer-bottom a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--cyan);
}

.content-block a {
  color: var(--cyan);
}

.content-block a:hover {
  text-decoration: underline;
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero .reveal,
.page-hero .reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-brand {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-logo-wrap {
    max-width: 340px;
    margin: 0 auto;
  }

  .logo-wordmark {
    font-size: 0.95rem;
  }

  .hero-bracket {
    display: none;
  }

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

  .work-card-large {
    grid-column: span 2;
  }

  .speed-inner,
  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .speed-highlight {
    grid-column: 1;
  }

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

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

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat-divider {
    display: none;
  }

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

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

  .work-card-large {
    grid-column: span 1;
  }

  .contact-inner {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand {
    padding-bottom: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

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