/* ============================================================
   DISTRICT ROBOTICS — GLOBAL STYLES v2 — MOBILE-FIRST
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@200;300;400;600;700&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --black:   #f0f2f5;
  --dark:    #e4e7eb;
  --card:    #ffffff;
  --border:  #d0d5dd;
  --cyan:    #0099bb;
  --gold:    #c88a00;
  --green:   #059669;
  --muted:   #5a6577;
  --white:   #1a1a2e;
  --accent-text: #0a0a14;
  --font-display: 'Orbitron', monospace;
  --font-body:    'Exo 2', sans-serif;
  --font-ui:      'Rajdhani', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black); color: var(--white);
  font-family: var(--font-body); font-weight: 300;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.2rem;
  background: rgba(245,247,250,.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
  min-height: 56px;
}
.nav.scrolled { background: rgba(245,247,250,.99); }
.nav-logo {
  font-family: var(--font-display); font-size: .85rem; font-weight: 900;
  letter-spacing: .08em; color: var(--white); text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
}
.nav-logo span { color: var(--cyan); }
.nav-links { display: none; gap: 1.4rem; list-style: none; }
.nav-links a {
  font-family: var(--font-ui); font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.nav-hamburger {
  display: flex; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 6px; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); transition: all .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
  background: rgba(245,247,250,.98); z-index: 999; flex-direction: column;
  padding: 2rem 1.5rem; gap: .4rem; overflow-y: auto;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-ui); font-size: 1.1rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: .9rem 0; border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--cyan); }
.mobile-menu .btn-primary { text-align: center; margin-top: 1rem; }

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--font-ui); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .65rem 1.6rem; background: var(--cyan); color: #ffffff;
  border: none; cursor: pointer; text-decoration: none; display: inline-block;
  -webkit-clip-path: polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,8px 100%,0 calc(100% - 8px));
  clip-path: polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,8px 100%,0 calc(100% - 8px));
  transition: all .22s; white-space: nowrap;
}
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); }
.btn-secondary {
  font-family: var(--font-ui); font-weight: 600; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .65rem 1.6rem; background: transparent;
  color: var(--white); border: 1px solid var(--border);
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: all .22s; white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.nav-cta { padding: .4rem 1.1rem !important; font-size: .7rem !important; display: none; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 5.5rem 1.2rem 3.5rem; position: relative; overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0,153,187,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,153,187,.06) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-glow {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 90vw; height: 300px;
  background: radial-gradient(ellipse, rgba(0,153,187,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; gap: 2.5rem;
  position: relative; z-index: 2;
}
.eyebrow {
  font-family: var(--font-ui); font-size: .68rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .9rem;
  display: flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content: ''; display: block; width: 18px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 3.2rem);
  font-weight: 900; line-height: 1.15; letter-spacing: .02em;
}
.c-cyan { color: var(--cyan); }
.c-gold { color: var(--gold); }
.hero-sub {
  font-size: .95rem; color: var(--muted); line-height: 1.85;
  margin-top: 1rem; max-width: 100%;
}

/* Glass demo */
.glass-demo { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.glass-window { width: 100%; max-width: 420px; aspect-ratio: 4/3; border: 1px solid var(--border); overflow: hidden; cursor: pointer; transition: border-color .3s; }
.glass-window:hover { border-color: var(--cyan); }
.glass-scene { width: 100%; height: 100%; background: linear-gradient(180deg,#0a1628,#061020); position: relative; overflow: hidden; }
.glass-stars { position: absolute; inset: 0; }
.glass-city { position: absolute; bottom: 0; left: 0; right: 0; height: 60%; display: flex; align-items: flex-end; gap: 3px; padding: 0 6px; }
.bld { flex: 1; background: linear-gradient(180deg,#1a3a6e,#0d2040); position: relative; min-width: 10px; }
.bld::after { content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: .8; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:.8}50%{opacity:.15} }
.glass-overlay { position: absolute; inset: 0; background: rgba(220,225,235,.93); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .8s; display: flex; align-items: center; justify-content: center; }
.glass-overlay.transparent { opacity: 0; }
.frosted-txt { font-family: var(--font-display); font-size: .6rem; letter-spacing: .22em; color: rgba(0,212,255,.55); text-transform: uppercase; }
.glass-badge { position: absolute; top: 8px; left: 8px; font-family: var(--font-ui); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(240,242,245,.85); padding: 2px 6px; border: 1px solid var(--border); }
.glass-status { position: absolute; bottom: 8px; right: 8px; font-family: var(--font-ui); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border: 1px solid; transition: all .5s; }
.glass-status.opaque { border-color: var(--muted); color: var(--muted); }
.glass-status.clear  { border-color: var(--green); color: var(--green); }
.toggle-row { display: flex; align-items: center; gap: 1rem; }
.tog-lbl { font-family: var(--font-ui); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .3s; min-width: 28px; }
.tog-lbl.active { color: var(--cyan); }
.tog-sw { width: 60px; height: 28px; background: var(--border); border: 1px solid var(--border); position: relative; cursor: pointer; transition: all .35s; -webkit-clip-path: polygon(0 0,calc(100% - 5px) 0,100% 5px,100% 100%,5px 100%,0 calc(100% - 5px)); clip-path: polygon(0 0,calc(100% - 5px) 0,100% 5px,100% 100%,5px 100%,0 calc(100% - 5px)); }
.tog-sw.on { background: rgba(0,212,255,.12); border-color: var(--cyan); }
.tog-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--muted); transition: all .35s cubic-bezier(.4,0,.2,1); }
.tog-sw.on .tog-knob { transform: translateX(32px); background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.tog-hint { font-family: var(--font-ui); font-size: .62rem; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; animation: breathe 2.5s ease-in-out infinite; opacity: .5; }
@keyframes breathe { 0%,100%{opacity:.35}50%{opacity:.9} }

/* ── TICKER ── */
.ticker-wrap { overflow: hidden; background: rgba(0,153,187,.04); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: .5rem 0; }
.ticker { display: flex; gap: 2.5rem; animation: tickScroll 35s linear infinite; width: max-content; }
.tick-item { font-family: var(--font-ui); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); white-space: nowrap; opacity: .65; }
.tick-item::before { content: ''; display: inline-block; width: 12px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 8px; }
@keyframes tickScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── SECTION BASE ── */
.section { padding: 4rem 1.2rem; }
.section-alt { background: var(--dark); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 700; letter-spacing: .03em; margin-bottom: .9rem;
}
.section-sub { font-size: .92rem; color: var(--muted); line-height: 1.8; max-width: 100%; margin-bottom: 2.5rem; }
.body-text { font-size: .92rem; color: var(--muted); line-height: 1.9; margin-bottom: 1.1rem; }
.two-col { display: flex; flex-direction: column; gap: 2.5rem; }

/* ── VIS BOX ── */
.vis-box { background: var(--card); border: 1px solid var(--border); min-height: 200px; display: flex; align-items: center; justify-content: center; }
.crystal-wrap { position: relative; width: 130px; height: 130px; }
.cr { position: absolute; border-radius: 50%; border: 1px solid; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: spin 8s linear infinite; }
.cr1 { width: 120px; height: 120px; border-color: rgba(0,212,255,.3); }
.cr2 { width: 88px; height: 88px; border-color: rgba(0,212,255,.5); animation-direction: reverse; animation-duration: 5s; }
.cr3 { width: 56px; height: 56px; border-color: rgba(240,165,0,.4); animation-duration: 3s; }
.cr-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 22px; height: 22px; background: radial-gradient(circle,var(--cyan),transparent); border-radius: 50%; box-shadow: 0 0 24px var(--cyan); animation: corePulse 2s ease-in-out infinite; }
@keyframes spin { to{transform:translate(-50%,-50%) rotate(360deg)} }
@keyframes corePulse { 0%,100%{box-shadow:0 0 16px var(--cyan)}50%{box-shadow:0 0 40px var(--cyan),0 0 70px rgba(0,212,255,.3)} }

/* ── SERVICES GRID ── */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: 2.5rem; }
.svc-card { background: var(--card); border: 1px solid var(--border); padding: 1.5rem 1.2rem; position: relative; overflow: hidden; transition: border-color .3s; text-decoration: none; display: block; cursor: pointer; }
.svc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,transparent,var(--accent,var(--cyan)),transparent); opacity: 0; transition: opacity .3s; }
.svc-card:hover { border-color: var(--accent,var(--cyan)); }
.svc-card:hover::before { opacity: 1; }
.svc-icon { font-size: 0; width: 28px; height: 28px; margin-bottom: .7rem; display: block; }
.svc-name { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .05em; color: var(--white); margin-bottom: .35rem; }
.svc-sub  { font-size: .75rem; color: var(--muted); line-height: 1.6; margin-bottom: .7rem; }
.svc-stat { font-family: var(--font-ui); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent,var(--cyan)); border: 1px solid; border-color: var(--accent,var(--cyan)); padding: 2px 7px; opacity: .7; display: inline-block; }
.svc-arrow { position: absolute; bottom: 1rem; right: 1.1rem; font-size: .65rem; color: var(--muted); transition: color .2s; }
.svc-card:hover .svc-arrow { color: var(--accent,var(--cyan)); }

/* ── STATS BAND ── */
.stats-band { background: var(--dark); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.5rem 1.2rem; }
.stats-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.stat-item { text-align: center; }
.stat-val { font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; color: var(--cyan); display: block; }
.stat-lbl { font-family: var(--font-ui); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; display: block; }

/* ── FEATURE CARDS ── */
.feat-grid { display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: 2rem; }
.feat-card { background: var(--card); border: 1px solid var(--border); padding: 1.6rem 1.4rem; position: relative; overflow: hidden; transition: border-color .3s; }
.feat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,transparent,var(--cyan),transparent); opacity: 0; transition: opacity .3s; }
.feat-card:hover { border-color: var(--cyan); }
.feat-card:hover::before { opacity: 1; }
.feat-icon { font-size: 0; width: 24px; height: 24px; margin-bottom: .7rem; display: block; }
.feat-title { font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .03em; margin-bottom: .5rem; }
.feat-desc { font-size: .82rem; color: var(--muted); line-height: 1.78; }
.feat-tag { display: inline-block; margin-top: .8rem; font-family: var(--font-ui); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--gold); color: var(--gold); }

/* ── PARTNER TIERS ── */
.partner-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 2.5rem; }
.partner-card { background: var(--card); border: 1px solid var(--border); padding: 1.8rem 1.4rem; transition: all .3s; }
.partner-card:hover { border-color: var(--gold); }
.partner-card.featured { border-color: var(--cyan); }
.partner-icon { font-size: 0; width: 28px; height: 28px; margin-bottom: .8rem; }
.partner-title { font-family: var(--font-display); font-size: .82rem; font-weight: 700; color: var(--gold); margin-bottom: .4rem; }
.partner-price { font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; color: var(--white); margin-bottom: .7rem; }
.partner-desc { font-size: .8rem; color: var(--muted); line-height: 1.75; margin-bottom: 1rem; }
.partner-list { list-style: none; text-align: left; margin-bottom: 1.3rem; }
.partner-list li { font-size: .78rem; color: var(--muted); padding: .28rem 0; border-bottom: 1px solid var(--border); padding-left: .75rem; position: relative; }
.partner-list li::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); position: absolute; left: 0; top: 11px; }

/* ── PROCESS STEPS ── */
.process-steps { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 2.5rem; }
.step-card { background: var(--card); border: 1px solid var(--border); padding: 1.6rem 1.3rem; position: relative; }
.step-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: rgba(0,212,255,.08); position: absolute; top: .8rem; right: 1rem; line-height: 1; }
.step-title { font-family: var(--font-ui); font-size: .92rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--white); margin-bottom: .5rem; }
.step-desc { font-size: .82rem; color: var(--muted); line-height: 1.78; }

/* ── CALCULATOR ── */
.calc-wrap { background: var(--card); border: 1px solid var(--border); padding: 1.8rem 1.2rem; margin-top: 2rem; display: flex; flex-direction: column; gap: 2rem; }
.calc-label { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .45rem; }
.calc-group { margin-bottom: 1.2rem; }
.calc-input, .calc-select { width: 100%; background: var(--dark); border: 1px solid var(--border); color: var(--white); padding: .7rem .9rem; font-family: var(--font-body); font-size: .9rem; outline: none; transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.calc-input:focus, .calc-select:focus { border-color: var(--cyan); }
.calc-slider { width: 100%; accent-color: var(--cyan); cursor: pointer; margin-top: .4rem; }
.result-label { font-family: var(--font-ui); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.result-price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 900; color: var(--cyan); line-height: 1; margin-bottom: 1.3rem; }
.result-price span { font-size: 1.2rem; color: var(--muted); }
.breakdown-row { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: .82rem; color: var(--muted); padding: .35rem 0; border-bottom: 1px solid var(--border); }
.breakdown-row .bval { color: var(--white); }

/* ── FORMS ── */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.8rem; }
.form-group { display: flex; flex-direction: column; gap: .38rem; }
.form-group.full { grid-column: 1/-1; }
.form-label { font-family: var(--font-ui); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.form-input, .form-select, .form-textarea {
  background: var(--card); border: 1px solid var(--border); color: var(--white);
  padding: .7rem .9rem; font-family: var(--font-body); font-size: .9rem;
  outline: none; transition: border-color .2s; width: 100%;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--cyan); }
.form-textarea { resize: vertical; min-height: 110px; }

/* ── TESTIMONIALS ── */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 2.5rem; }
.testi-card { background: var(--card); border: 1px solid var(--border); padding: 1.6rem 1.3rem; position: relative; transition: border-color .3s; }
.testi-card:hover { border-color: var(--cyan); }
.testi-stars { color: var(--gold); font-size: .75rem; letter-spacing: 3px; margin-bottom: .8rem; }
.testi-text { font-size: .85rem; color: var(--muted); line-height: 1.85; margin-bottom: 1rem; }
.testi-name { font-family: var(--font-ui); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.testi-role { font-size: .7rem; color: var(--muted); margin-top: .16rem; }
.testi-quote { position: absolute; top: .8rem; right: 1rem; font-size: 3rem; color: rgba(0,212,255,.05); font-family: Georgia,serif; line-height: 1; pointer-events: none; }

/* ── FAQ ── */
.faq-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1px; }
.faq-item { background: var(--card); border: 1px solid var(--border); overflow: hidden; transition: border-color .3s; }
.faq-item.open { border-color: var(--cyan); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.4rem; cursor: pointer; font-family: var(--font-ui); font-size: .9rem; font-weight: 600; letter-spacing: .03em; color: var(--white); transition: color .2s; }
.faq-q:hover { color: var(--cyan); }
.faq-tog { font-size: 1.3rem; color: var(--cyan); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-tog { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s; padding: 0 1.4rem; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 1.4rem 1.3rem; }
.faq-a p { font-size: .88rem; color: var(--muted); line-height: 1.88; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg,var(--dark) 0%,#d8dce5 50%,var(--dark) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 4rem 1.2rem; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 90vw; height: 280px; background: radial-gradient(ellipse,rgba(0,153,187,.06) 0%,transparent 70%); pointer-events: none; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 5vw, 3rem); font-weight: 900; letter-spacing: .04em; margin-bottom: .7rem; position: relative; }
.cta-band p { font-size: .92rem; color: var(--muted); margin-bottom: 2rem; max-width: 90%; margin-left: auto; margin-right: auto; position: relative; }
.cta-btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── FOOTER ── */
footer { background: var(--dark); border-top: 1px solid var(--border); padding: 3rem 1.2rem 2rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .footer-logo { font-family: var(--font-display); font-size: .9rem; font-weight: 900; color: var(--cyan); margin-bottom: .7rem; display: block; }
.footer-brand .footer-logo span { color: var(--gold); }
.footer-desc { font-size: .8rem; color: var(--muted); line-height: 1.78; margin-bottom: .9rem; }
.footer-badge { font-family: var(--font-ui); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; padding: 3px 10px; border: 1px solid var(--gold); color: var(--gold); display: inline-block; }
.footer-col h4 { font-family: var(--font-ui); font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { font-size: .82rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; border-top: 1px solid var(--border); padding-top: 1.5rem; font-family: var(--font-ui); font-size: .68rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom-links { display: flex; gap: 1.2rem; }

/* ── PAGE HERO ── */
.page-hero { padding: 6rem 1.2rem 2.5rem; background: var(--dark); border-bottom: 1px solid var(--border); text-align: center; }
.page-hero .section-title { margin-bottom: .5rem; }
.page-hero .section-sub { margin: 0 auto; }

/* ── ABOUT METRICS ── */
.metrics-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2.5rem 0; }
.metric-box { background: var(--card); border: 1px solid var(--border); padding: 1.3rem; text-align: center; }
.metric-big { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--cyan); display: block; }
.metric-sm  { font-family: var(--font-ui); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: block; margin-top: .25rem; }

/* Utility */
.mt2 { margin-top: 2rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-800 { max-width: 800px; }

/* ── SAMPLE PAGE ── */
.sample-form { max-width: 100%; margin: 1.5rem auto 0; }

/* ====================================================
   TABLET — 600px+
   ==================================================== */
@media (min-width: 600px) {
  .section { padding: 5rem 1.8rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
  .metrics-row { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-group.full { grid-column: 1 / -1; }
  .calc-wrap { flex-direction: row; padding: 2.5rem; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .hero-sub { max-width: 520px; }
}

/* ====================================================
   DESKTOP — 900px+
   ==================================================== */
@media (min-width: 900px) {
  .nav { padding: .9rem 2.5rem; }
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
  .nav-cta { display: inline-block !important; }
  .section { padding: 6rem 2.5rem; }
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .stats-inner { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .metrics-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; flex-direction: unset; }
  .hero { padding: 8rem 2.5rem 5rem; }
  .hero-title { font-size: clamp(2rem, 4vw, 3.2rem); }
}

/* ====================================================
   LARGE DESKTOP — 1200px+
   ==================================================== */
@media (min-width: 1200px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ====================================================
   MOBILE EXCELLENCE — iPhone 16 Pro Max + all phones
   ==================================================== */

/* Safe area insets for notch / Dynamic Island / home bar */
:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Nav safe-area on notched devices */
.nav {
  padding-top: max(.75rem, calc(.75rem + var(--sat)));
  padding-left: max(1.2rem, calc(1.2rem + var(--sal)));
  padding-right: max(1.2rem, calc(1.2rem + var(--sar)));
}

/* Mobile menu — full bleed with safe-area bottom padding */
.mobile-menu {
  padding-bottom: calc(1.5rem + var(--sab));
  padding-left: max(1.5rem, calc(1.5rem + var(--sal)));
  padding-right: max(1.5rem, calc(1.5rem + var(--sar)));
}

/* Minimum 44px touch targets on all interactive elements */
.nav-hamburger,
.mobile-menu a,
.btn-primary,
.btn-secondary,
button,
input[type="submit"],
select {
  min-height: 44px;
}

/* Form inputs better on mobile */
input, textarea, select {
  font-size: 16px !important; /* prevent iOS zoom on focus */
  -webkit-appearance: none;
  border-radius: 0;
}

/* Section padding on small screens */
@media (max-width: 599px) {
  .section { padding: 3rem 1.1rem; }
  .section-title { font-size: clamp(1.4rem, 7vw, 2.2rem); }
  .section-sub { font-size: .88rem; }
  .two-col { display: block !important; }
  .two-col > * + * { margin-top: 2rem; }
  .vis-box { min-height: 200px; }
  .feat-grid { grid-template-columns: 1fr !important; }
  .services-grid { grid-template-columns: 1fr !important; }
  .stats-inner { grid-template-columns: repeat(2, 1fr) !important; }
  .form-grid { grid-template-columns: 1fr !important; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { text-align: center; width: 100%; justify-content: center; }
  .nav-logo span { font-size: .75rem; }
  /* Prevent canvas overflow */
  canvas { max-width: 100vw !important; }
  /* EV map */
  #map, .map-container { height: 280px !important; }
  /* Leaflet controls */
  .leaflet-control-zoom { margin-top: 60px !important; }
  /* 3D scene containers */
  .vis-canvas-wrap { height: 260px !important; }
  /* Footer stacked */
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; }
  /* Page hero */
  .page-hero { padding: 5rem 1.1rem 2rem; }
  /* Process steps */
  .process-steps { grid-template-columns: 1fr !important; }
  /* Partner grid */
  .partner-grid { grid-template-columns: 1fr !important; }
  /* Calc wrap */
  .calc-wrap { flex-direction: column !important; padding: 1.5rem 1.1rem !important; }
  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr !important; }
  /* Calculator result big */
  .result-big { font-size: 2.5rem !important; }
}

/* Tablet landscape tweaks */
@media (max-width: 768px) {
  .section { padding: 3.5rem 1.2rem; }
  .hero { padding: 5rem 1.2rem 3rem; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 3rem); }
  .hero-sub { font-size: .9rem; }
  .two-col { display: block; }
  .two-col > * + * { margin-top: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Scrollable horizontal tables on mobile */
@media (max-width: 900px) {
  .svc-table { width: 100%; overflow-x: auto; display: block; }
  .vis-box { min-height: 220px; }
}

/* Blockchain section — prevent canvas overflow on all screen sizes */
#bc-wrap { overflow-x: hidden; max-width: 100%; }
#bc-apps { overflow: hidden; }
.bc-app-box { overflow: hidden; min-width: 0; max-width: 100%; }
.bc-app-box canvas { display: block; max-width: 100%; }

/* Force images and media to never overflow */
img, video, iframe, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* Improve tap highlight */
* {
  -webkit-tap-highlight-color: rgba(0, 212, 255, 0.15);
}

/* Smooth scrolling on iOS */
.mobile-menu, .section, main {
  -webkit-overflow-scrolling: touch;
}

/* Better table responsiveness */
@media (max-width: 599px) {
  table { display: block; overflow-x: auto; white-space: nowrap; }
}

