/* ====================================================
   ISD Dynamics — Main Stylesheet
   IntelliSmart Digital Agency
   ==================================================== */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  /* Palette */
  --color-bg:           #03050a;
  --color-bg-2:         #070c14;
  --color-bg-card:      #0b1220;
  --color-bg-card-2:    #0f1828;
  --color-blue:         #0ea5e9;
  --color-blue-light:   #38bdf8;
  --color-cyan:         #06b6d4;
  --color-purple:       #7c3aed;
  --color-purple-light: #a78bfa;
  --color-green:        #10b981;
  --color-amber:        #f59e0b;
  --color-red:          #ef4444;

  /* Text */
  --text-1: #f8fafc;
  --text-2: #94a3b8;
  --text-3: #475569;
  --text-4: #334155;

  /* Borders */
  --border-subtle:  rgba(14, 165, 233, 0.09);
  --border-medium:  rgba(14, 165, 233, 0.20);
  --border-strong:  rgba(14, 165, 233, 0.38);

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #0ea5e9 0%, #7c3aed 100%);
  --grad-secondary:linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
  --grad-warm:     linear-gradient(135deg, #7c3aed 0%, #0ea5e9 60%, #06b6d4 100%);

  /* Glows */
  --glow-blue:   0 0 60px rgba(14, 165, 233, 0.18);
  --glow-purple: 0 0 60px rgba(124, 58, 237, 0.14);

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Typography — Apple SF Pro system stack */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "SF Pro Text",    "Helvetica Neue", Arial, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ─── RESET ─── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--text-1);
  line-height: 1.47059;           /* Apple's base line-height ratio */
  font-weight: 400;
  letter-spacing: -0.022em;       /* Apple's global letter-spacing */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-blue); border-radius: 4px; }

/* ─── ATMOSPHERIC ORBS ─── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: orb-drift 16s ease-in-out infinite;
}
.orb-1 { width: 700px; height: 700px; background: rgba(14,165,233,0.07); top: -250px; right: -150px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: rgba(124,58,237,0.07); bottom: 10%; left: -120px; animation-delay: 5s; }
.orb-3 { width: 400px; height: 400px; background: rgba(6,182,212,0.05); top: 45%; right: 5%; animation-delay: 10s; }

@keyframes orb-drift {
  0%,100% { transform: translateY(0)   scale(1); }
  50%      { transform: translateY(-40px) scale(1.06); }
}

/* ─── LAYOUT UTILITIES ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5%, 80px);
}
.section-pad { padding: clamp(80px, 10vw, 130px) 0; }

/* ─── TYPOGRAPHY SCALE — Apple SF Pro conventions ─── */
/*
 * Apple uses:
 *  - Display / Hero:  700–800 wt, -0.022em tracking, 1.05 lh
 *  - Headline:        600–700 wt, -0.018em tracking, 1.1  lh
 *  - Body:            400     wt, -0.022em tracking, 1.47 lh
 *  - Caption / Label: 500–600 wt,  0.006em tracking, 1.33 lh
 */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 1.5px;
  background: var(--color-blue);
  border-radius: 2px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-1);
  font-weight: 700;
}

/* Apple Display-scale heading */
.section-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.07143;
}
/* Apple body copy */
.section-desc {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-2);
  line-height: 1.52941;
  letter-spacing: -0.022em;
  font-weight: 400;
  max-width: 560px;
}
.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-header .section-desc { margin: 18px auto 0; }

/* ─── GRADIENT TEXT ─── */
.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS — Apple-style ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;            /* Apple uses 500 not 600 on buttons */
  letter-spacing: -0.022em;
  border-radius: 980px;        /* Apple's pill radius on CTAs */
  padding: 12px 26px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s;
  border: none;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 40px rgba(14,165,233,0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(14,165,233,0.38);
}
.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-medium);
}
.btn-ghost:hover {
  background: rgba(14,165,233,0.07);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.btn-lg { padding: 15px 30px; font-size: 17px; font-weight: 400; }

/* ─── TAGS / PILLS ─── */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 50px;
  border: 1px solid;
}
.tag--blue   { background: rgba(14,165,233,0.08);  border-color: rgba(14,165,233,0.2);  color: var(--color-blue); }
.tag--purple { background: rgba(124,58,237,0.08);  border-color: rgba(124,58,237,0.2);  color: var(--color-purple-light); }
.tag--green  { background: rgba(16,185,129,0.08);  border-color: rgba(16,185,129,0.2);  color: var(--color-green); }
.tag--amber  { background: rgba(245,158,11,0.08);  border-color: rgba(245,158,11,0.2);  color: var(--color-amber); }
.tag--red    { background: rgba(239,68,68,0.08);   border-color: rgba(239,68,68,0.2);   color: var(--color-red); }

/* ─── CARDS ─── */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  border-color: var(--border-medium);
  background: var(--color-bg-card-2);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ─── HEADER / NAV ─── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
}
#site-header.scrolled {
  background: rgba(3, 5, 10, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5%, 80px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 0; flex-shrink: 0; text-decoration: none; }

/* ─── CSS TEXT LOGO ─── */
.logo-text-fallback {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
/* "iSDdynamics" row */
.logo-main {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
}
.logo-main .logo-i   { font-weight: 400; }          /* lowercase i — lighter */
.logo-main .logo-isd { font-weight: 800; }           /* ISD — heavy */
.logo-main .logo-dyn { font-weight: 700; }           /* dynamics */
/* "intellismartdigital™" row */
.logo-sub {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #4ade80;                  /* green matching the actual logo */
  text-transform: lowercase;
}
/* Smaller version in footer */
.footer-logo .logo-main { font-size: 19px; }
.footer-logo .logo-sub  { font-size: 9px; }

/* Nav Links — Apple nav style (compact, 400–500 weight) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-2);
  position: relative;
  transition: color 0.2s;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text-1); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--grad-primary);
  padding: 8px 20px;
  border-radius: 980px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(14,165,233,0.2);
}
.nav-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(14,165,233,0.35); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(3,5,10,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px clamp(20px,5%,80px) 24px;
}
.mobile-menu.is-open { display: flex; }
.mobile-link {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--text-2);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s;
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--text-1); }
.mobile-link--cta {
  color: var(--color-blue);
  font-weight: 500;
  margin-top: 8px;
}

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px clamp(20px,5%,80px) 90px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 30%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(14,165,233,0.22);
  background: rgba(14,165,233,0.07);
  border-radius: 50px;
  padding: 6px 18px 6px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-blue);
  margin-bottom: 36px;
  animation: fade-up 0.7s var(--ease-out) both;
}
.badge-pulse {
  width: 8px; height: 8px;
  background: var(--color-blue);
  border-radius: 50%;
  animation: pulse 2.2s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(14,165,233,0.5); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 6px rgba(14,165,233,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 700;              /* Apple uses 700 not 800 for hero */
  letter-spacing: -0.022em;     /* Apple's display letter-spacing */
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fade-up 0.75s var(--ease-out) 0.08s both;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-2);
  line-height: 1.52941;          /* Apple body line-height */
  letter-spacing: -0.022em;
  max-width: 560px;
  margin-bottom: 44px;
  font-weight: 400;
  animation: fade-up 0.75s var(--ease-out) 0.16s both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fade-up 0.75s var(--ease-out) 0.24s both;
}
.hero-divider {
  width: 40px; height: 1px;
  background: var(--border-medium);
  margin: 56px 0;
  animation: fade-up 0.75s var(--ease-out) 0.32s both;
}
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  animation: fade-up 0.75s var(--ease-out) 0.32s both;
}
.stat-item { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  letter-spacing: -0.022em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 7px;
}

/* Hero Float Cards */
.hero-visual {
  position: absolute;
  right: clamp(20px, 5%, 80px);
  top: 50%;
  transform: translateY(-50%);
  width: min(460px, 38vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  animation: fade-left 0.9s var(--ease-out) 0.2s both;
}
.hero-float-card {
  background: var(--color-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s;
}
.hero-float-card:hover { border-color: var(--border-medium); }
.hero-float-card.span-2 { grid-row: span 2; }
.float-card-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.float-card-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--text-1); }
.float-card-desc { font-size: 11.5px; color: var(--text-3); line-height: 1.55; }

/* ─── KEYFRAMES ─── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-left {
  from { opacity: 0; transform: translate(28px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}

/* ─── SERVICES ─── */
#services { background: var(--color-bg-2); position: relative; z-index: 1; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}
.service-card {
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover::before { opacity: 1; }

.service-icon-wrap {
  width: 54px; height: 54px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
}
.service-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text-1);
  margin-bottom: 11px;
}
.service-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.57143;
  letter-spacing: -0.016em;
  margin-bottom: 22px;
}
.service-tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* ─── TECH MARQUEE ─── */
#stack { position: relative; z-index: 1; }
.marquee-section { padding: clamp(60px,8vw,100px) 0; }
.marquee-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 8px 0;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-track--reverse { animation-direction: reverse; animation-duration: 26s; }
.marquee-track + .marquee-track { margin-top: 0; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--color-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-2);
  white-space: nowrap;
  transition: border-color 0.3s, color 0.3s;
}
.tech-chip:hover { border-color: var(--border-medium); color: var(--text-1); }
.tech-chip-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ─── PROCESS ─── */
#process { background: var(--color-bg-2); position: relative; z-index: 1; }
.process-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  position: relative;
}
.process-connector {
  position: absolute;
  top: 44px; left: calc(10% + 40px); right: calc(10% + 40px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium) 20%, var(--border-medium) 80%, transparent);
  pointer-events: none;
}
.process-step {
  text-align: center;
  padding: 0 clamp(16px, 2vw, 32px);
  position: relative;
  z-index: 1;
}
.step-num-wrap {
  width: 88px; height: 88px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 40px rgba(14,165,233,0.28);
}
.step-num-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(14,165,233,0.2);
}
.step-number {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.022em;
}
.step-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text-1);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.52941;
  letter-spacing: -0.016em;
}

/* ─── WHY US / ABOUT ─── */
#about { position: relative; z-index: 1; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-content { display: flex; flex-direction: column; gap: 30px; }
.about-headline { margin-top: 14px; }
.about-headline br { display: block; }

.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.why-item:hover {
  border-color: var(--border-subtle);
  background: rgba(14,165,233,0.03);
}
.why-icon-wrap {
  width: 46px; height: 46px;
  min-width: 46px;
  border-radius: 11px;
  background: var(--color-bg-card);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: border-color 0.3s;
}
.why-item:hover .why-icon-wrap { border-color: var(--border-medium); }
.why-text h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: 5px;
}
.why-text p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.52941;
  letter-spacing: -0.016em;
}

/* Metrics Panel */
.metrics-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  overflow: hidden;
}
.metrics-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: var(--grad-primary);
  opacity: 0.6;
}
.metrics-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(14,165,233,0.06), transparent);
  pointer-events: none;
}
.metrics-label {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.metrics-list { display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.metric-row { display: flex; align-items: center; gap: 14px; }
.metric-name { font-size: 12px; color: var(--text-2); width: 118px; flex-shrink: 0; font-weight: 400; letter-spacing: -0.01em; }
.metric-bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.metric-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--grad-primary);
  animation: bar-in 1.4s var(--ease-out) both;
}
@keyframes bar-in { from { width: 0 !important; } }
.metric-val { font-size: 12px; font-weight: 600; color: var(--text-1); width: 36px; text-align: right; letter-spacing: -0.01em; }

.metrics-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}
.m-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.022em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.m-label { font-size: 11px; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 5px; }

/* ─── TESTIMONIALS ─── */
#testimonials { background: var(--color-bg-2); position: relative; z-index: 1; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.testimonial-card { padding: 36px 32px; }
.stars { color: #f59e0b; font-size: 13px; letter-spacing: 2px; margin-bottom: 20px; }
.testimonial-quote {
  font-size: 15px;
  line-height: 1.52941;
  letter-spacing: -0.016em;
  color: var(--text-2);
  margin-bottom: 28px;
  font-style: normal;
  font-weight: 400;
  quotes: "\201C""\201D";
}
.testimonial-quote::before { content: open-quote; color: var(--color-blue); font-size: 20px; line-height: 0; vertical-align: -5px; margin-right: 3px; }
.testimonial-author { display: flex; align-items: center; gap: 13px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600; font-size: 13px; color: #fff;
  flex-shrink: 0;
}
.author-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.author-role { font-size: 12px; color: var(--text-3); margin-top: 2px; letter-spacing: -0.01em; }

/* ─── CTA SECTION ─── */
#cta { position: relative; z-index: 1; }
.cta-wrap {
  background: var(--color-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: clamp(56px,8vw,96px) clamp(32px,6vw,80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: var(--grad-primary);
}
.cta-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% -5%, rgba(14,165,233,0.09), transparent 60%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.07143;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.cta-desc {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.52941;
  letter-spacing: -0.022em;
  position: relative; z-index: 1;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* ─── CONTACT ─── */
#contact { background: var(--color-bg-2); position: relative; z-index: 1; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: -0.022em;
  margin-top: 14px;
}
.contact-info-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.52941;
  letter-spacing: -0.016em;
}
.contact-links-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.contact-link-item {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.25s;
}
.contact-link-item:hover { color: var(--text-1); }
.contact-link-icon {
  width: 38px; height: 38px;
  background: var(--color-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}
.contact-link-item:hover .contact-link-icon { border-color: var(--border-medium); background: rgba(14,165,233,0.07); }

/* Contact Form */
.contact-form-wrap {
  background: var(--color-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 44px);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-group:last-of-type { margin-bottom: 24px; }
.form-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.form-input,
.form-select,
.form-textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.016em;
  color: var(--text-1);
  outline: none;
  width: 100%;
  transition: border-color 0.25s, background 0.25s;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-4); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-blue);
  background: rgba(14,165,233,0.04);
}
.form-select option { background: #0b1220; color: var(--text-1); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: 980px;          /* pill — Apple CTA style */
  padding: 15px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.022em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(14,165,233,0.2);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 35px rgba(14,165,233,0.38); }
.form-submit:disabled { opacity: 0.7; transform: none !important; cursor: not-allowed; }

/* ─── FOOTER ─── */
#site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--border-subtle);
  padding: clamp(60px,8vw,90px) 0 0;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 60px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--border-subtle);
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-tagline { font-size: 13px; color: var(--text-3); line-height: 1.52941; letter-spacing: -0.016em; max-width: 280px; }
.footer-socials { display: flex; gap: 9px; }
.social-btn {
  width: 36px; height: 36px;
  background: var(--color-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: all 0.25s;
}
.social-btn:hover { border-color: var(--border-medium); color: var(--color-blue); background: rgba(14,165,233,0.07); }
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a { font-size: 13px; color: var(--text-3); letter-spacing: -0.01em; transition: color 0.25s; }
.footer-col ul a:hover { color: var(--text-1); }
.footer-contact-list li a {
  display: flex; align-items: center; gap: 9px;
}
.footer-contact-list li a svg { color: var(--color-blue); flex-shrink: 0; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0 32px;
}
.footer-copy { font-size: 12px; color: var(--text-4); letter-spacing: -0.01em; }
.footer-legal { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-4); letter-spacing: -0.01em; }
.footer-legal a { transition: color 0.25s; }
.footer-legal a:hover { color: var(--color-blue); }

/* ─── SECTION SEPARATORS ─── */
.sep {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle) 40%, var(--border-subtle) 60%, transparent);
}

/* ─── PAGE LOAD ANIMATION ─── */
body {
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
body.loaded {
  opacity: 1;
}

/* ─── FOCUS VISIBLE — Accessibility ─── */
:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

/* ─── ENHANCED CARD HOVER ─── */
.card:hover {
  border-color: var(--border-medium);
  background: var(--color-bg-card-2);
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(14,165,233,0.06);
}

/* ─── SERVICE CARD HOVER GLOW ─── */
.service-card:hover {
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 40px rgba(14,165,233,0.06);
}

/* ─── BACK TO TOP BUTTON ─── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 800;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: 1px solid rgba(14,165,233,0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, box-shadow 0.25s;
  box-shadow: 0 4px 24px rgba(14,165,233,0.25);
  -webkit-tap-highlight-color: transparent;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(14,165,233,0.4);
}
.back-to-top:active {
  transform: translateY(0) scale(0.95);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
}

/* ─── SMOOTH SCROLL INDICATOR ─── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: fade-up 0.75s var(--ease-out) 0.5s both, bounce-down 2s ease-in-out 1.5s infinite;
  z-index: 2;
}
.scroll-indicator span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── RESPONSIVE ─── */

/* ── Tablet / Small Laptop ── */
@media (max-width: 1100px) {
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .metrics-panel { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Tablet Portrait ── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Mobile menu touch targets */
  .mobile-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 18px;
    padding: 16px 0;
  }

  /* Hero */
  #hero {
    min-height: auto;
    padding: 110px clamp(20px,5%,80px) 60px;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
    width: 100%;
  }
  .hero-divider {
    margin: 40px auto;
  }
  .hero-stats {
    justify-content: center;
    gap: 32px;
  }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 32px 28px; }

  /* Process */
  .process-row { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-connector { display: none; }
  .step-num-wrap { width: 72px; height: 72px; margin-bottom: 22px; }
  .step-number { font-size: 20px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-info { text-align: center; align-items: center; }
  .contact-links-list { align-items: center; }

  /* CTA */
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 340px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; text-align: center; align-items: center; }
  .footer-tagline { max-width: 100%; }
  .footer-socials { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }

  /* Touch targets — social buttons */
  .social-btn { width: 44px; height: 44px; }

  /* Contact link touch targets */
  .contact-link-item { min-height: 48px; }

  /* Form improvements */
  .form-input, .form-select, .form-textarea {
    min-height: 48px;
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 14px 16px;
  }

  /* Back to top */
  .back-to-top { bottom: 24px; right: 20px; }

  /* Section padding reduction */
  .section-pad { padding: clamp(60px, 8vw, 100px) 0; }

  /* Scroll indicator hidden on mobile */
  .scroll-indicator { display: none; }
}

/* ── Small Phones ── */
@media (max-width: 520px) {
  /* Hero stats as 2x2 grid */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    width: 100%;
    max-width: 320px;
  }
  .stat-item { align-items: center; }

  /* Hero */
  .hero-title {
    font-size: clamp(32px, 8vw, 42px);
  }
  .hero-sub {
    font-size: 15px;
    margin-bottom: 32px;
  }
  .hero-badge {
    font-size: 11px;
    padding: 5px 14px 5px 8px;
    margin-bottom: 28px;
  }

  /* Buttons full width */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  /* Process single column */
  .process-row { grid-template-columns: 1fr; gap: 40px; }

  /* Form grid */
  .form-grid-2 { grid-template-columns: 1fr; }

  /* Section titles */
  .section-title { font-size: clamp(24px, 6vw, 36px); }

  /* CTA */
  .cta-wrap { padding: clamp(40px, 8vw, 64px) clamp(24px, 5vw, 40px); }
  .cta-title { font-size: clamp(24px, 6vw, 40px); }
  .cta-actions .btn { max-width: 100%; }

  /* Email link overflow */
  .cta-actions .btn-ghost,
  .contact-link-item {
    word-break: break-all;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col { text-align: center; }
  .footer-col ul { align-items: center; }
  .footer-contact-list li a { justify-content: center; }
}

/* ── Very Small Phones (iPhone SE, etc.) ── */
@media (max-width: 380px) {
  .hero-title { font-size: 28px; }
  .hero-badge { font-size: 10px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 10px; }
  .section-title { font-size: 22px; }
  .service-card { padding: 26px 22px; }
  .testimonial-card { padding: 28px 24px; }
  .nav-inner { height: 64px; }
  #hero { padding-top: 96px; }
  .container { padding: 0 16px; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .orb { animation: none; }
  .marquee-track { animation: none; }
}