/* ==========================================================================
   MD LOGISTICS — Design System
   Premium dark, technology-first logistics brand.
   ========================================================================== */

:root {
  --bg:            #0F1115;
  --bg-2:          #171B21;
  --surface:       #1E242D;
  --accent:        #0066FF;
  --accent-light:  #4D94FF;
  --text:          #FFFFFF;
  --text-2:        #B8C2CC;
  --border:        #2A313C;
  --success:       #00D084;

  --font: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --section-pad: 160px;
  --container: 1200px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quick: cubic-bezier(0.4, 0, 0.2, 1);

  --radius: 16px;
  --radius-lg: 24px;
}

@media (max-width: 1024px) { :root { --section-pad: 100px; } }
@media (max-width: 640px)  { :root { --section-pad: 80px;  } }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
::selection { background: rgba(0, 102, 255, 0.35); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .container { padding: 0 20px; } }

section { position: relative; }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }

.hero-title {
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 750;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.section-title {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
}
.section-eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
}

.section-sub {
  font-size: 20px;
  color: var(--text-2);
  max-width: 640px;
  margin-top: 20px;
}

.text-2 { color: var(--text-2); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 12px;
  transition: transform 150ms var(--ease-quick), box-shadow 150ms var(--ease-quick),
              background 150ms var(--ease-quick), border-color 150ms var(--ease-quick);
  will-change: transform;
  white-space: nowrap;
}
.btn svg { transition: transform 150ms var(--ease-quick); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 rgba(0, 102, 255, 0);
}
.btn-primary:hover {
  background: #1a75ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 102, 255, 0.35);
}
.btn-primary:active { transform: translateY(-2px) scale(0.97); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 148, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.btn-sm { padding: 10px 20px; font-size: 15px; border-radius: 10px; }
.btn-lg { padding: 17px 34px; font-size: 17px; border-radius: 14px; }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 400ms var(--ease), border-color 400ms var(--ease),
              backdrop-filter 400ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 400ms var(--ease);
}
.nav.scrolled {
  background: rgba(15, 17, 21, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}
.nav.scrolled .nav-inner { height: 64px; }

.nav-logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.nav-logo-mark { display: inline-flex; border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3); }

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  transition: color 200ms var(--ease-quick);
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: right 250ms var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- Services dropdown ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-item > a svg { transition: transform 250ms var(--ease); opacity: 0.6; }
.nav-item:hover > a svg, .nav-item:focus-within > a svg { transform: rotate(180deg); opacity: 1; }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 560px;
  background: rgba(23, 27, 33, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 32px 80px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms var(--ease), transform 250ms var(--ease), visibility 250ms;
  pointer-events: none;
}
.dropdown::before {
  /* hover bridge so the menu doesn't close crossing the gap */
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dropdown-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: background 150ms var(--ease-quick), color 150ms var(--ease-quick);
}
.dropdown-grid a:hover { background: rgba(0, 102, 255, 0.12); color: var(--text); }
.dropdown-grid a::after { display: none; }
.dd-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.22);
  color: var(--accent-light);
  flex-shrink: 0;
}
.dropdown-all {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 12px !important;
  border-top: 1px solid var(--border);
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--accent-light) !important;
  border-radius: 0 0 10px 10px;
}
.dropdown-all:hover { color: #fff !important; }
.dropdown-all::after { display: none; }
.dropdown-all svg { transition: transform 200ms var(--ease-quick); }
.dropdown-all:hover svg { transform: translateX(3px); }

.nav-toggle { display: none; padding: 8px; color: var(--text); }
.nav-toggle .nav-toggle-close { display: none; }
.nav.menu-open .nav-toggle-open { display: none; }
.nav.menu-open .nav-toggle-close { display: block; }

/* ---------- Mobile / tablet menu — full-screen slide-down panel ---------- */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0; right: 0; bottom: 0;
  z-index: 99; /* below the 100 nav bar, above everything else */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
  background: rgba(15, 17, 21, 0.97);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease), visibility 320ms;
}
.nav.menu-open + .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mm-links { display: flex; flex-direction: column; }
.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  border-bottom: 1px solid rgba(42, 49, 60, 0.55);
  text-align: left;
  transition: color 200ms var(--ease-quick);
}
.mm-link:active, .mm-link.active { color: var(--accent-light); }
.mm-acc svg { transition: transform 300ms var(--ease); color: var(--text-2); }
.mm-acc[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--accent-light); }
.mm-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms var(--ease);
}
.mm-sub.open { grid-template-rows: 1fr; }
.mm-sub-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.mm-sub-inner a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid rgba(42, 49, 60, 0.35);
}
.mm-sub-inner a:active { color: var(--text); }
.mm-sub-inner a:first-child { margin-top: 8px; }
.mm-sub-inner .mm-all {
  justify-content: center;
  gap: 8px;
  color: var(--accent-light);
  font-weight: 600;
  border-bottom: none;
  padding: 16px 8px 20px;
}
.mm-footer { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.mm-note { text-align: center; font-size: 13.5px; color: var(--text-2); letter-spacing: 0.02em; }

.nav.menu-open {
  background: rgba(15, 17, 21, 0.97);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  border-bottom-color: var(--border);
}
.nav.menu-open .nav-inner { height: 64px; }
body.menu-locked { overflow: hidden; }

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .nav-cta .btn { display: none; } /* Request Quote lives inside the menu on phones */
}

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

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 70% -10%, rgba(0, 102, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 45% at 15% 110%, rgba(0, 102, 255, 0.08), transparent 60%),
    var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.45) brightness(0.62) contrast(1.05);
  opacity: 0.38;
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 40%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 90% at 50% 40%, #000 40%, transparent 100%);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}
.hero::after {
  /* soft vignette so text always sits on calm ground */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, transparent 25%),
    radial-gradient(ellipse 90% 70% at 50% 55%, transparent 30%, rgba(15, 17, 21, 0.55) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 64px;
  padding-top: 120px;
  padding-bottom: 100px;
  width: 100%;
}
.hero-content { max-width: 720px; }
.hero-proof {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  font-size: 14.5px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.hero-proof strong { color: var(--text); font-weight: 650; }
.hero-proof .sep { width: 1px; height: 16px; background: var(--border); }

/* --- Hero: tablet & mobile --- */
@media (max-width: 1020px) {
  .hero { min-height: 0; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 140px;
    padding-bottom: 72px;
  }
  .hero-visual {
    max-width: 480px;
    animation: none;
  }
  .ship-card.mini { display: none; } /* one clean card on small screens */
  .hero-bg { opacity: 0.28; }
  .hero .hero-scroll-hint { display: none; }
}
@media (max-width: 640px) {
  .hero-grid { padding-top: 116px; gap: 44px; }
  .hero-title { font-size: clamp(46px, 14.5vw, 60px); }
  .hero-badge { font-size: 13px; padding: 7px 14px; margin-bottom: 26px; }
  .hero-badge-loc { display: none; }
  .hero-sub { font-size: 17.5px; margin: 22px 0 32px; }
  .hero-bg {
    opacity: 0.2;
    filter: saturate(0.4) brightness(0.5) contrast(1.05);
  }
  /* full-width, equal CTAs */
  .hero .cta-row { flex-direction: column; gap: 12px; }
  .hero .cta-row .btn { width: 100%; justify-content: center; }
  /* proof strip becomes a mini stat row */
  .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(42, 49, 60, 0.6);
    font-size: 12.5px;
  }
  .hero-proof .sep { display: none; }
  .hero-proof > span { display: flex; flex-direction: column; gap: 3px; }
  .hero-proof strong { font-size: 19px; letter-spacing: -0.02em; }
  .hero-visual { max-width: 100%; }
  .ship-card { padding: 20px; }
  .ship-city .c { font-size: 19px; }
}

/* ---------- Hero visual — glass shipment dashboard ---------- */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  animation: hero-float 7s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.ship-card {
  background: rgba(23, 27, 33, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border: 1px solid rgba(77, 148, 255, 0.22);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.6), 0 0 48px -20px rgba(0, 102, 255, 0.35);
}
.ship-card.mini { width: 78%; align-self: flex-end; padding: 20px 24px; }
.ship-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ship-id { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-2); text-transform: uppercase; }
.ship-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  background: rgba(0, 208, 132, 0.1);
  border: 1px solid rgba(0, 208, 132, 0.3);
  padding: 4px 11px;
  border-radius: 100px;
  white-space: nowrap;
}
.ship-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2.4s ease-in-out infinite;
}
.ship-route {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 22px;
}
.ship-city { display: flex; flex-direction: column; gap: 2px; }
.ship-city.end { text-align: right; }
.ship-city .c { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.ship-city .n { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.ship-track {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: var(--border);
  overflow: visible;
}
.ship-track::before {
  content: "";
  position: absolute;
  inset: 0 32% 0 0;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.6);
}
.ship-truck {
  position: absolute;
  left: 68%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px rgba(0, 102, 255, 0.25), 0 4px 16px rgba(0, 102, 255, 0.5);
}
.ship-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.ship-meta .k { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); margin-bottom: 3px; }
.ship-meta .v { font-size: 14.5px; font-weight: 600; }
.ship-meta .v.ok { color: var(--success); }
.spark {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 52px;
  margin-top: 18px;
}
.spark span {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(to top, rgba(0, 102, 255, 0.25), rgba(77, 148, 255, 0.85));
  animation: spark-in 900ms var(--ease) backwards;
}
.spark span:nth-child(2) { animation-delay: 80ms; }
.spark span:nth-child(3) { animation-delay: 160ms; }
.spark span:nth-child(4) { animation-delay: 240ms; }
.spark span:nth-child(5) { animation-delay: 320ms; }
.spark span:nth-child(6) { animation-delay: 400ms; }
.spark span:nth-child(7) { animation-delay: 480ms; }
.spark span:nth-child(8) { animation-delay: 560ms; }
@keyframes spark-in { from { height: 0; opacity: 0; } }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: rgba(30, 36, 45, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
.hero-title .accent-line { display: block; color: transparent;
  background: linear-gradient(100deg, #fff 20%, var(--accent-light) 60%, var(--accent) 90%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-sub {
  font-size: 20px;
  color: var(--text-2);
  max-width: 600px;
  margin: 28px 0 40px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-scroll-hint .line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--accent-light), transparent);
  animation: scrollhint 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollhint {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

/* ==========================================================================
   Sections / shared blocks
   ========================================================================== */

.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 72px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }
.section-head.center .section-eyebrow { justify-content: center; }
.section-head.center .section-eyebrow::before { display: none; }

/* ---------- Metrics ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 32px;
}
.metric { text-align: left; }
.metric-value {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 40%, rgba(184, 194, 204, 0.75));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.metric-label {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.metric::before {
  content: "";
  display: block;
  width: 32px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 22px;
}
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  overflow: hidden;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease),
              border-color 300ms var(--ease);
}
.card::before {
  /* border illumination on hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(0, 102, 255, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 300ms var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 148, 255, 0.45);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55), 0 0 40px -12px rgba(0, 102, 255, 0.25);
}
.card:hover::before { opacity: 1; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(0, 102, 255, 0.18), rgba(0, 102, 255, 0.05));
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: var(--accent-light);
  margin-bottom: 26px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.card:hover .card-icon {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}
.card h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 12px; }
.card p { font-size: 16px; color: var(--text-2); }

.card-link { display: block; }
.card-arrow {
  position: absolute;
  top: 30px; right: 28px;
  color: var(--text-2);
  opacity: 0.4;
  transition: transform 250ms var(--ease), color 250ms var(--ease), opacity 250ms var(--ease);
}
.card:hover .card-arrow {
  transform: translate(4px, -4px);
  color: var(--accent-light);
  opacity: 1;
}

/* ---------- Editorial split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.split .section-title { position: sticky; top: 120px; }
.split-body p { color: var(--text-2); font-size: 19px; margin-bottom: 24px; }
.split-body p strong { color: var(--text); font-weight: 600; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split .section-title { position: static; }
}

.check-list { list-style: none; margin-top: 32px; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); font-size: 17px; }
.check-list li svg { flex-shrink: 0; margin-top: 4px; color: var(--success); }
.check-list li strong { color: var(--text); }

/* ---------- Testimonials rail ---------- */
.rail-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.rail {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: rail-scroll 55s linear infinite;
  padding: 8px 0 16px;
}
.rail-wrap:hover .rail { animation-play-state: paused; }
@keyframes rail-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.t-card {
  width: 420px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 300ms var(--ease), transform 300ms var(--ease);
}
.t-card:hover { border-color: rgba(77, 148, 255, 0.4); transform: translateY(-4px); }
.t-card blockquote { font-size: 17px; line-height: 1.65; color: var(--text); }
.t-card blockquote::before { content: "“"; color: var(--accent-light); font-size: 28px; line-height: 0; margin-right: 2px; }
.t-card footer { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 650;
  background: linear-gradient(145deg, var(--accent), #003d99);
  color: #fff;
  flex-shrink: 0;
}
.t-name { font-size: 15px; font-weight: 600; }
.t-role { font-size: 13.5px; color: var(--text-2); }
@media (max-width: 640px) { .t-card { width: 320px; padding: 26px; } }

/* ---------- CTA band ---------- */
.cta-band {
  padding: var(--section-pad) 0;
  text-align: center;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.cta-band-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 50% 115%, rgba(0, 102, 255, 0.22), transparent 65%),
    radial-gradient(ellipse 35% 40% at 50% 120%, rgba(77, 148, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-band-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-band-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.cta-band-sub { color: var(--text-2); font-size: 19px; max-width: 520px; margin: 24px 0 40px; }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */

.page-hero {
  padding: 200px 0 96px;
  background:
    radial-gradient(ellipse 70% 60% at 80% -20%, rgba(0, 102, 255, 0.14), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(42, 49, 60, 0.35) 1px, transparent 1px);
  background-size: 120px 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 900px;
}
.page-hero .lede {
  font-size: 21px;
  color: var(--text-2);
  max-width: 640px;
  margin-top: 26px;
}
.breadcrumb {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 14px; color: var(--text-2);
  margin-bottom: 28px;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: 0.4; }

/* ==========================================================================
   Services page — alternating showcase
   ========================================================================== */

.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.svc-row:last-child { border-bottom: none; }
.svc-row.flip .svc-visual { order: 2; }
@media (max-width: 900px) {
  .svc-row { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .svc-row.flip .svc-visual { order: 0; }
}
.svc-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  transition: border-color 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.svc-visual:hover {
  border-color: rgba(77, 148, 255, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 32px 64px -20px rgba(0, 0, 0, 0.6);
}
.svc-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.82);
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}
.svc-visual:hover img { transform: scale(1.04); filter: saturate(0.9) brightness(0.9); }
.svc-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 21, 0.75), rgba(15, 17, 21, 0.08) 55%);
  pointer-events: none;
}
.svc-visual .badge {
  position: absolute;
  z-index: 1;
  left: 20px; bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(23, 27, 33, 0.75);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(77, 148, 255, 0.35);
  color: var(--accent-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ---------- Photo banners (service detail & about) ---------- */
.photo-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 21 / 9;
}
@media (max-width: 700px) { .photo-band { aspect-ratio: 16 / 10; } }
.photo-band img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.75);
}
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 17, 21, 0.85), transparent 55%),
    linear-gradient(120deg, rgba(0, 102, 255, 0.12), transparent 50%);
  pointer-events: none;
}
.photo-band .caption {
  position: absolute;
  z-index: 1;
  left: 32px; bottom: 26px; right: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.photo-band .caption::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.svc-copy h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 650; letter-spacing: -0.025em; margin-bottom: 16px; }
.svc-copy p { color: var(--text-2); font-size: 18px; margin-bottom: 24px; }
.svc-benefits { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.svc-benefits li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 16px; }
.svc-benefits li svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--accent-light);
}
.link-arrow svg { transition: transform 200ms var(--ease-quick); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Individual service page
   ========================================================================== */

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
@media (max-width: 900px) { .overview-grid { grid-template-columns: 1fr; gap: 24px; } }
.overview-grid p { color: var(--text-2); font-size: 19px; line-height: 1.7; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 72px;
}
.stat-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 300ms var(--ease), transform 300ms var(--ease);
}
.stat-chip:hover { border-color: rgba(77, 148, 255, 0.4); transform: translateY(-4px); }
.stat-chip .v { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent-light); line-height: 1; }
.stat-chip .l { margin-top: 10px; font-size: 15px; color: var(--text-2); font-weight: 500; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: 1fr; } }

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; max-width: 760px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 23px; top: 28px; bottom: 28px;
  width: 2px;
  background: var(--border);
}
.timeline .progress {
  content: "";
  position: absolute;
  left: 23px; top: 28px;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, var(--accent-light), var(--accent));
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.5);
  transition: height 200ms linear;
}
.t-step { position: relative; display: flex; gap: 32px; padding: 28px 0; }
.t-step .num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 650; font-size: 16px;
  color: var(--text-2);
  transition: all 400ms var(--ease);
}
.t-step.lit .num {
  border-color: var(--accent);
  color: #fff;
  background: linear-gradient(145deg, rgba(0, 102, 255, 0.35), rgba(0, 102, 255, 0.1));
  box-shadow: 0 0 24px rgba(0, 102, 255, 0.35);
}
.t-step h3 { font-size: 20px; font-weight: 650; margin-bottom: 8px; letter-spacing: -0.015em; }
.t-step p { color: var(--text-2); font-size: 16.5px; max-width: 520px; }

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

.story-quote {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
  max-width: 880px;
}
.story-quote em { font-style: normal; color: var(--accent-light); }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease);
}
.mv-card:hover { transform: translateY(-4px); border-color: rgba(77, 148, 255, 0.4); }
.mv-card::after {
  content: "";
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(77, 148, 255, 0.6), transparent);
}
.mv-card .kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 18px; }
.mv-card h3 { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 14px; }
.mv-card p { color: var(--text-2); font-size: 17px; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
@media (max-width: 640px) { .form-card { padding: 28px 22px; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  transition: border-color 200ms var(--ease-quick), box-shadow 200ms var(--ease-quick);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B8C2CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.18);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(184, 194, 204, 0.45); }

.form-status {
  display: none;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
}
.form-status.ok { display: block; background: rgba(0, 208, 132, 0.12); border: 1px solid rgba(0, 208, 132, 0.4); color: var(--success); }
.form-status.err { display: block; background: rgba(255, 80, 80, 0.1); border: 1px solid rgba(255, 80, 80, 0.4); color: #ff8080; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  gap: 28px;
}
.info-row { display: flex; gap: 18px; align-items: flex-start; }
.info-row .ic {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
}
.info-row h3 { font-size: 16px; font-weight: 650; margin-bottom: 4px; }
.info-row p, .info-row a { font-size: 15.5px; color: var(--text-2); }
.info-row a:hover { color: var(--accent-light); }

.contact-photo {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  position: relative;
}
.contact-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.78);
}
.contact-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 21, 0.7), transparent 60%);
}

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

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 96px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 0.8fr;
  gap: 48px;
  padding-bottom: 64px;
}
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer { padding: 64px 0 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-bottom: 44px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { margin-top: 16px; }
  .footer-col { gap: 10px; }
  .footer-col h3 { margin-bottom: 4px; }
  .footer-col a, .footer-col span { font-size: 15px; padding: 2px 0; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 24px;
    font-size: 13.5px;
  }
}
.footer-brand p { color: var(--text-2); font-size: 15.5px; margin-top: 20px; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 8px;
}
.footer-col a, .footer-col span { font-size: 15.5px; color: var(--text-2); }
.footer-col a { transition: color 200ms var(--ease-quick); }
.footer-col a:hover { color: var(--text); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: all 200ms var(--ease-quick);
}
.footer-social a:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(0, 102, 255, 0.15);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-2);
}

/* ==========================================================================
   Reveal animation system
   ========================================================================== */

.reveal, .reveal-child > * {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}
.reveal.in, .reveal-child.in > * {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.reveal-child.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-child.in > *:nth-child(2) { transition-delay: 90ms; }
.reveal-child.in > *:nth-child(3) { transition-delay: 180ms; }
.reveal-child.in > *:nth-child(4) { transition-delay: 270ms; }
.reveal-child.in > *:nth-child(5) { transition-delay: 360ms; }
.reveal-child.in > *:nth-child(6) { transition-delay: 450ms; }
.reveal-child.in > *:nth-child(7) { transition-delay: 540ms; }
.reveal-child.in > *:nth-child(8) { transition-delay: 630ms; }
.reveal-child.in > *:nth-child(9) { transition-delay: 720ms; }
.reveal-child.in > *:nth-child(10) { transition-delay: 810ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-child > * { opacity: 1; transform: none; filter: none; }
}
