/* ════════════════════════════════════
   ChipXcel — Original Dark Theme
   bg #0d0d0d · accent #00baff
════════════════════════════════════ */
:root {
  --nav-h:  64px;
  --accent: #00baff;
  --bg:     #0d0d0d;
  --bg-alt: #111111;
  --card:   rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.07);
  --text:   #ffffff;
  --muted:  #9aa5b8;
  --safe-t: env(safe-area-inset-top,    0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left,   0px);
  --safe-r: env(safe-area-inset-right,  0px);
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
}
img { max-width:100%; display:block; }
a   { text-decoration:none; color:inherit; }
ul  { list-style:none; padding:0; margin:0; }
*   { -webkit-tap-highlight-color:rgba(0,186,255,0.15); }
a,button { touch-action:manipulation; }
.container { width:90%; max-width:1160px; margin:0 auto; }

/* ════════════════════════════════════
   NAVBAR
   Layout: [logo] [Home|About|...|CTA] [hamburger-hidden-desktop]
   Logo sits flush left of Home link,
   the whole row is centred in the bar.
════════════════════════════════════ */
nav {
  position: fixed;
  top:0; left:0; right:0;
  z-index: 1000;
  background: rgba(0,0,0,0.84);
  border-bottom: 1px solid var(--border);
  padding-top: var(--safe-t);
  /* NO backdrop-filter — Firefox Android compat */
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;   /* centre the whole logo+links row */
  height: var(--nav-h);
  width: 92%;
  max-width: 1160px;
  margin: 0 auto;
  gap: 0;
  position: relative;        /* for hamburger absolute positioning */
}

/* Logo — inline, no separate column */
.nav-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 4px;         /* tiny gap between logo and Home */
}
.nav-logo-img { height:38px; width:auto; }

/* Links — flex, inline with logo */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.8rem;
  padding: 6px 8px;
  border-radius: 5px;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color:#fff; background:rgba(255,255,255,0.07); }
/* Active section highlight on desktop */
.nav-links a.nav-active {
  color: var(--accent);
  background: rgba(0,186,255,0.08);
  border-radius: 5px;
}
.nav-contact-btn {
  background: var(--accent) !important;
  color: #000 !important;
  font-weight: 700 !important;
  margin-left: 8px;
  padding: 6px 13px !important;
  border-radius: 5px;
}
.nav-contact-btn:hover { opacity:0.88; }

/* Hamburger — absolute right, hidden on desktop */
.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px; min-height: 44px;
  -webkit-appearance: none;
}
.hamburger-bar {
  display: block;
  width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open .hamburger-bar:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-toggle.open .hamburger-bar:nth-child(2) { opacity:0; }
.nav-toggle.open .hamburger-bar:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
header {
  position: relative;
  height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Chip photo bg — same Unsplash as original */
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1564767609342-620cb19b2357?auto=format&fit=crop&w=1950&q=80')
              no-repeat center center / cover;
  opacity: 0.3;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 50%,
    rgba(0,0,0,0.45) 0%, rgba(13,13,13,0.88) 100%);
  z-index: 1;
}

/* ── HERO WATERMARK — animated logo in top space ── */
.hero-watermark {
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  height: 34%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  /* contain all children */
  overflow: hidden;
}

/* Pulsing cyan radial glow behind logo */
.hw-glow {
  position: absolute;
  width: 360px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(0,186,255,0.18) 0%,
    rgba(0,186,255,0.06) 45%,
    transparent 70%);
  animation: hwGlowPulse 3.5s ease-in-out infinite;
  z-index: 0;
}
@keyframes hwGlowPulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.12); }
}

/* Logo — original colours preserved, just brightened */
.hw-logo {
  position: relative;
  z-index: 1;
  width: 52%;
  max-width: 360px;
  display: block;
  opacity: 0.22;
  filter: brightness(1.8) saturate(1.5);
  -webkit-user-select: none;
  user-select: none;
  animation: hwLogoBreathe 3.5s ease-in-out infinite;
}
@keyframes hwLogoBreathe {
  0%,100% { opacity: 0.18; filter: brightness(1.6) saturate(1.3); }
  50%      { opacity: 0.28; filter: brightness(2.2) saturate(2); }
}

/* Clip container — hard boundary for the streak, sized to logo */
.hw-streak-clip {
  position: absolute;
  z-index: 2;
  /* Same size/position as the logo so streak only crosses it */
  width: 52%;
  max-width: 360px;
  height: 100%;
  overflow: hidden;    /* hard clip — streak cannot escape this box */
  pointer-events: none;
}

/* Single light streak — slow diagonal scan every 5s */
.hw-streak {
  position: absolute;
  z-index: 2;
  top: -20%;
  left: -30%;
  width: 18%;
  height: 160%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(0,186,255,0.0) 35%,
    rgba(0,186,255,0.22) 50%,
    rgba(255,255,255,0.08) 52%,
    rgba(0,186,255,0.0) 65%,
    transparent 100%
  );
  transform: skewX(-15deg);
  animation: hwStreak 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hwStreak {
  0%   { left: -30%; opacity: 0; }
  8%   { opacity: 1; }
  55%  { left: 115%; opacity: 1; }
  60%  { left: 115%; opacity: 0; }
  100% { left: 115%; opacity: 0; }
}

/* Mobile — scale down slightly */
@media (max-width: 768px) {
  .hero-watermark { height: 28%; }
  .hw-logo        { width: 65%; max-width: 220px; }
  .hw-glow        { width: 240px; height: 110px; }
  .hw-streak-clip { width: 65%; max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .hw-glow, .hw-logo, .hw-streak { animation: none !important; }
  .hw-logo { opacity: 0.2; }
}

.hero-content-wrap {
  position: relative;
  z-index: 3;
  width: 90%;
  max-width: 640px;
}

/* Hero box — same as original .hero-content */
.hero-box {
  position: relative;
  padding: 44px 40px 36px;
  border-radius: 10px;
  background: rgba(0,0,0,0.62);
  border: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  overflow: hidden; /* clips ::before watermark */
}

/* ── WATERMARK: actual logo image, same as original ── */
.hero-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/chipxcel_logo.png') no-repeat center center;
  background-size: 55% auto;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  border-radius: 10px;
}

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

.hero-label {
  font-size: 0.67rem; font-weight:700;
  letter-spacing: 0.2em; text-transform:uppercase;
  color: var(--accent); margin-bottom:14px; display:block;
}

.hero-box h1 {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700; line-height:1.2; margin-bottom:10px;
  display: flex; align-items:baseline;
  justify-content:center; gap:8px; white-space:nowrap;
}
.hero-static { color:#fff; }
.hero-typed-wrap {
  color: var(--accent);
  display: inline-block;
  min-width: 150px; text-align:left;
}
.hero-typed-wrap::after {
  content:'|'; color:var(--accent);
  animation: blink 0.75s step-end infinite; margin-left:1px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-sub {
  font-size:0.95rem; color:var(--muted);
  font-weight:300; margin-bottom:24px;
}
.hero-btns {
  display:flex; gap:10px;
  justify-content:center; flex-wrap:wrap; margin-bottom:26px;
}
.hero-stats {
  display:flex; align-items:center; justify-content:center;
  gap:18px; flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,0.09); padding-top:20px;
}
.stat { text-align:center; }
.stat-num   { display:block; font-size:1.35rem; font-weight:700; color:var(--accent); line-height:1; }
.stat-label { font-size:0.65rem; color:var(--muted); text-transform:uppercase; letter-spacing:0.08em; margin-top:4px; display:block; }
.stat-div   { width:1px; height:26px; background:rgba(255,255,255,0.1); }

/* ── BUTTONS ── */
.btn {
  display:inline-block; padding:11px 26px; margin:5px;
  font-size:0.91rem; font-weight:700;
  border-radius:6px; border:none; cursor:pointer;
  transition:background 0.22s, box-shadow 0.22s;
  -webkit-appearance:none;
}
.primary   { background:var(--accent); color:#000; }
.primary:hover { background:#00a8d4; box-shadow:0 0 20px rgba(0,186,255,0.38); }
.secondary { background:rgba(255,255,255,0.09); color:#fff; border:1px solid rgba(255,255,255,0.14); }
.secondary:hover { background:rgba(255,255,255,0.15); }
.btn-full  { width:100%; margin:0; display:block; text-align:center; }

/* ════════════════════════════════════
   SECTIONS — vertically centred
   Shifted up: less top padding than
   bottom so content sits in upper-mid,
   which is the optical sweet spot.
════════════════════════════════════ */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.section > .container {
  width: 90%;
  padding-top:    8px;    /* minimal top — pushes content up ~4cm */
  padding-bottom: 60px;   /* breathing room at bottom */
}
.section-alt { background:var(--bg-alt); }

.section-head { max-width:620px; margin:0 auto 44px; text-align:center; }
.section-head h2 { font-size:clamp(1.45rem,2.5vw,1.95rem); font-weight:700; margin-bottom:11px; }
.section-intro { font-size:0.95rem; color:var(--muted); line-height:1.85; }

/* ════════════════════════════════════
   GRIDS
════════════════════════════════════ */
.grid       { display:grid; gap:18px; }
.three-grid { grid-template-columns:repeat(3,1fr); }
.four-grid  { grid-template-columns:repeat(4,1fr); }
.six-grid   { grid-template-columns:repeat(6,1fr); }

/* ── CARDS — dim border ── */
.card {
  background:var(--card); border:1px solid rgba(255,255,255,0.09);
  border-radius:10px; padding:24px 16px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  transition:border-color 0.22s, transform 0.22s;
}
.card:hover { border-color:rgba(0,186,255,0.32); transform:translateY(-3px); }
.card i  { color:var(--accent); margin-bottom:13px; }
.card h3 { font-size:0.95rem; font-weight:700; margin-bottom:8px; }
.card p  { font-size:0.85rem; color:var(--muted); line-height:1.75; flex:1; }
.card-tag {
  margin-top:13px; font-size:0.65rem; font-weight:700;
  letter-spacing:0.08em; text-transform:uppercase;
  color:var(--accent); background:rgba(0,186,255,0.09);
  border:1px solid rgba(0,186,255,0.18); padding:3px 9px; border-radius:50px;
}
.industry-item {
  background:var(--card); border:1px solid rgba(255,255,255,0.09);
  border-radius:10px; padding:18px 10px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  transition:border-color 0.22s, background 0.22s, transform 0.22s;
}
.industry-item:hover { border-color:rgba(0,186,255,0.28); background:rgba(0,186,255,0.06); transform:translateY(-3px); }
.industry-item i  { color:var(--accent); margin-bottom:9px; }
.industry-item h4 { font-size:0.8rem; font-weight:700; margin-bottom:6px; }
.industry-item p  { font-size:0.74rem; color:var(--muted); line-height:1.6; }

.milestone {
  background:var(--card); border:1px solid rgba(255,255,255,0.09);
  border-radius:10px; padding:24px 16px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
.milestone span { font-size:0.66rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--accent); margin-bottom:8px; display:block; }
.milestone h4   { font-size:0.95rem; font-weight:700; margin-bottom:8px; }
.milestone p    { font-size:0.85rem; color:var(--muted); line-height:1.75; }
.milestone-special { border-color:rgba(0,186,255,0.28); background:rgba(0,186,255,0.05); }

.testimonial {
  background:var(--card); border:1px solid rgba(255,255,255,0.09);
  border-radius:10px; padding:26px 20px;
  display:flex; flex-direction:column; text-align:left;
  transition:border-color 0.22s;
}
.testimonial:hover { border-color:rgba(0,186,255,0.22); }
.quote-icon { font-size:1rem; color:var(--accent); opacity:0.45; margin-bottom:12px; }
.testimonial > p    { font-style:italic; font-size:0.86rem; color:var(--muted); line-height:1.85; flex:1; margin-bottom:14px; }
.testimonial > span { font-size:0.7rem; font-weight:700; color:var(--accent); letter-spacing:0.06em; text-transform:uppercase; }
.testimonial-featured { background:rgba(0,186,255,0.05); border-color:rgba(0,186,255,0.22); }

/* ════════════════════════════════════
   SECTION NAVIGATOR
   Fixed position, NO backdrop-filter
   (Firefox Android compat).
   Works on iOS, Android Chrome & Firefox.
════════════════════════════════════ */
.sec-nav {
  position: fixed;
  right: 14px;
  bottom: 22px;
  bottom: calc(22px + var(--safe-b));
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;     /* centres label horizontally with buttons */
  gap: 7px;
  opacity: 1;
  transition: opacity 0.3s;
  will-change: opacity;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.sec-nav.hidden { opacity:0; pointer-events:none; }

.sec-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  /* Solid background — no backdrop-filter for Firefox compat */
  background: rgba(30,30,30,0.96);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex; align-items:center; justify-content:center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  /* Bigger tap area without bigger visual */
  padding: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.sec-btn:hover,
.sec-btn:active { background:var(--accent); color:#000; border-color:var(--accent); }
.sec-btn.dim    { opacity:0.25; pointer-events:none; }

#secHome { background:rgba(0,186,255,0.2); border-color:rgba(0,186,255,0.4); color:var(--accent); }
#secHome:hover, #secHome:active { background:var(--accent); color:#000; }

/* Section label — between up/down buttons on mobile */
.sec-label {
  display: none;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  align-self: center;
  white-space: nowrap;     /* never wraps — ever */
  line-height: 1;
  padding: 2px 0;
}

/* ════════════════════════════════════
   MODAL
════════════════════════════════════ */
.modal {
  display:none; position:fixed; inset:0; z-index:2000;
  background:rgba(0,0,0,0.78);
  align-items:center; justify-content:center; padding:20px;
}
.modal.open { display:flex; }
.modal-content {
  background:#181818; border:1px solid rgba(255,255,255,0.1);
  border-radius:12px; padding:32px 28px;
  width:100%; max-width:500px; position:relative;
  animation:modalIn 0.24s ease;
  max-height:92vh; overflow-y:auto; -webkit-overflow-scrolling:touch;
}
@keyframes modalIn { from{opacity:0;transform:scale(0.96) translateY(8px)} to{opacity:1;transform:none} }
.modal-content h3 { font-size:1.28rem; margin-bottom:4px; }
.modal-sub        { font-size:0.82rem; color:var(--muted); margin-bottom:20px; }
.modal-close {
  position:absolute; top:12px; right:14px;
  font-size:1.3rem; color:var(--muted); cursor:pointer;
  min-width:44px; min-height:44px;
  display:flex; align-items:center; justify-content:center;
  transition:color 0.2s;
}
.modal-close:hover { color:#fff; }
.hp-field { position:absolute; left:-9999px; top:-9999px; opacity:0; pointer-events:none; height:0; overflow:hidden; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:11px; }
.form-group { margin-bottom:11px; }
.form-group label { display:block; font-size:0.75rem; color:var(--muted); margin-bottom:5px; }
.form-group input,
.form-group textarea {
  width:100%; padding:10px 12px;
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.11);
  border-radius:6px; color:#fff;
  font-family:'Roboto',sans-serif; font-size:16px;
  outline:none; resize:vertical; -webkit-appearance:none; appearance:none;
  transition:border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(0,186,255,0.14); }
.form-group input::placeholder,
.form-group textarea::placeholder { color:rgba(255,255,255,0.22); }
.captcha-group label { font-size:0.82rem; }
#captcha-q  { color:var(--accent); font-weight:700; }
.form-error   { color:#ff6b6b; font-size:0.81rem; margin-bottom:8px; min-height:16px; }
.form-success { color:#51cf66; font-size:0.81rem; margin-bottom:8px; min-height:16px; }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
footer {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.07);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 calc(60px + var(--safe-b));
}

/* All footer content stacked, centred */
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 90%;
  max-width: 600px;   /* constrain width so nothing drifts right */
  text-align: center;
}

/* Logo + tagline */
.footer-brand { display:flex; flex-direction:column; align-items:center; gap:12px; }
.footer-logo  { height:40px; }
.footer-brand p { font-size:0.83rem; color:var(--muted); line-height:1.75; max-width:300px; }

/* Two nav columns side by side, centred as a unit */
.footer-nav {
  display: flex;
  gap: 60px;
  justify-content: center;
  align-items: flex-start;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-nav-col h5 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}
.footer-nav-col a {
  font-size: 0.83rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav-col a:hover { color: var(--accent); }

/* Contact — one centred horizontal line */
.footer-contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 16px 24px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  width: 100%;
}
.footer-contact-row a {
  font-size: 0.83rem;
  color: var(--muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-contact-row a:hover { color: var(--accent); }
.footer-dot { color: rgba(255,255,255,0.2); font-size:0.8rem; }

/* Social + copyright */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px;
  width: 100%;
}
.social a { margin:0 8px; color:var(--muted); font-size:1.05rem; transition:color 0.2s; }
.social a:hover { color:var(--accent); }
.copyright { font-size:0.79rem; color:var(--muted); }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width:1024px) {
  .four-grid { grid-template-columns:repeat(2,1fr); }
  .six-grid  { grid-template-columns:repeat(3,1fr); }
}

@media (max-width:768px) {
  :root { --nav-h:56px; }

  /* Mobile nav: logo + hamburger, links dropdown */
  .nav-container { justify-content:space-between; }
  .nav-logo-img  { height:32px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: calc(var(--nav-h) + var(--safe-t));
    left: 0; right: 0;
    background: rgba(5,5,5,0.99);   /* solid — no backdrop-filter */
    border-bottom: 1px solid var(--border);
    padding: 12px calc(16px + var(--safe-l)) calc(16px + var(--safe-b));
    gap: 2px;
    z-index: 999;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open  { display:flex; }
  .nav-links a     { padding:13px 14px; font-size:0.95rem; min-height:48px; }
  .nav-contact-btn { margin-left:0 !important; margin-top:6px; }
  .nav-toggle      { display:flex; }

  /* Sections — no forced viewport height on mobile */
  .section { min-height:auto; }
  .section > .container { padding-top:24px; padding-bottom:48px; }

  /* Grids stack */
  .three-grid { grid-template-columns:1fr; }
  .four-grid  { grid-template-columns:1fr; }
  .six-grid   { grid-template-columns:repeat(2,1fr); }

  /* Hero */
  .hero-box { padding:30px 18px 26px; }
  .hero-box h1 { font-size:1.2rem; white-space:normal; flex-wrap:wrap; justify-content:center; gap:4px; }
  .hero-typed-wrap { min-width:auto; }
  .stat-div { display:none; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
    padding-top: 18px;
  }
  .stat { text-align:center; }

  /* Nav buttons — bigger tap targets on mobile */
  .sec-nav { right:10px; bottom:calc(18px + var(--safe-b)); }
  .sec-btn  { width:46px; height:46px; font-size:0.95rem; }
  /* Show section label on mobile */
  .sec-label { display:block; }

  /* Modal slides up */
  .modal { align-items:flex-end; padding:0; }
  .modal-content {
    border-bottom-left-radius:0; border-bottom-right-radius:0;
    padding-bottom:calc(22px + var(--safe-b)); max-height:88vh;
  }
  .form-row { grid-template-columns:1fr; }
}

@media (max-width:420px) {
  .hero-box h1 { font-size:1.05rem; }
  .hero-btns   { flex-direction:column; align-items:center; }
  .btn         { width:100%; max-width:240px; }
  .six-grid    { grid-template-columns:repeat(2,1fr); }
}
@media (max-height:500px) and (orientation:landscape) {
  header { height:auto; padding:calc(var(--nav-h)+12px) 0 30px; }
  .hero-stats { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  [data-aos] { opacity:1 !important; transform:none !important; transition:none !important; }
  .hero-typed-wrap::after { animation:none; }
}
.touch-device .card:hover,
.touch-device .industry-item:hover,
.touch-device .milestone:hover,
.touch-device .testimonial:hover { transform:none; }
