/* =========================================================
   蜀益行 · 车辆智慧管理系统官网 — style.css
   Pure static site, no external dependencies.
   ========================================================= */

:root {
  --ink-900: #0d1f3c;      /* headings on light bg / dark section base tint */
  --text:    #24354f;      /* body text */
  --muted:   #5e7089;      /* secondary text */
  --line:    rgba(19, 46, 89, .1);

  --blue-700:#1d5bd8;
  --blue-600:#2f6ee8;
  --teal-600:#0fa3a0;
  --amber:   #ef9f2e;
  --green:   #1f9d61;

  --grad-brand: linear-gradient(120deg, var(--blue-700), var(--teal-600));

  --bg-page:  #ffffff;
  --bg-alt:   #f3f6fc;
  --card:     #ffffff;

  --dark-bg:      #0b1c38;
  --dark-bg-deep: #071224;
  --dark-text:    #eaf1ff;
  --dark-muted:   #a9bad9;
  --dark-line:    rgba(255, 255, 255, .1);

  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-sm: 0 1px 2px rgba(13, 31, 60, .05), 0 4px 14px rgba(13, 31, 60, .07);
  --shadow-md: 0 6px 28px rgba(13, 31, 60, .12);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

/* ---------------- reset / base ---------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.75;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

section[id], footer.site-footer { scroll-margin-top: 76px; }

/* icon svgs (line art) — paint only; explicit pixel sizes are set per context below */
.f-ico svg, .s-ico svg, .c-ico svg, .step-ico svg,
.trust-strip li > svg, .p-grid button svg, .p-tabbar span svg,
.contact-card ul li svg {
  fill: none; stroke: currentColor; flex: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.6rem; border-radius: 999px; font-size: .98rem; font-weight: 600;
  letter-spacing: .02em; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 8px 22px rgba(31, 91, 216, .35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(31, 91, 216, .45); }

.btn-ghost { border-color: var(--line); color: var(--ink-900); background: #fff; }
.btn-ghost:hover { border-color: var(--blue-700); color: var(--blue-700); }

.btn-light { background: #fff; color: var(--ink-900); box-shadow: 0 8px 24px rgba(3, 16, 40, .35); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------------- header / nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(13, 31, 60, .08); }

.nav-wrap { display: flex; align-items: center; gap: 2rem; height: 72px; }

.brand img { height: 40px; width: auto; object-fit: contain; }

.main-nav ul { display: flex; gap: clamp(1.1rem, 2vw, 2.1rem); margin-left: auto; }
.main-nav a {
  position: relative; font-size: .98rem; color: var(--text); padding: .35rem 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2.5px;
  border-radius: 2px; background: var(--grad-brand); transition: right .3s ease;
}
.main-nav a:hover { color: var(--blue-700); }
.main-nav a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.main-nav + .nav-actions, body.has-nav-open .main-nav ~ .nav-actions { /* noop guard */ }
.nav-cta { padding: .58rem 1.3rem; font-size: .92rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before {
  content: ""; display: block; width: 20px; height: 2px; margin: auto; border-radius: 2px;
  background: var(--ink-900); transition: transform .3s ease, opacity .3s ease;
}

/* ---------------- hero ---------------- */
.hero {
  position: relative; overflow: hidden; padding-top: clamp(4rem, 8vw, 6.5rem);
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(37, 99, 235, .1), transparent 65%),
    radial-gradient(700px 380px at 8% 8%, rgba(15, 163, 160, .08), transparent 60%),
    linear-gradient(#ffffff, #f4f7fd);
}
.hero::before { /* faint grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(29, 91, 216, .04) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(29, 91, 216, .04) 0 1px, transparent 1px 48px);
}

.hero-grid {
  position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: 1.04fr .96fr; padding-bottom: clamp(3rem, 6vw, 5rem);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.2rem;
  font-size: .85rem; letter-spacing: .14em; color: var(--blue-700); font-weight: 600;
}
.eyebrow.light { color: #9fd3ff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); position: relative; flex: none; }
.dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid rgba(29, 91, 216, .35); animation: pulse-ring 2.2s ease-out infinite;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.5rem); line-height: 1.22; letter-spacing: .01em;
  color: var(--ink-900); font-weight: 800; margin-bottom: 1.3rem;
}
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero .lead, .sec-head .lead-center {
  color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 34em;
}
.sec-head .lead-center { margin-inline: auto; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }

.stat-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem;
  margin-top: 2.8rem; padding-top: 2rem; border-top: 1px solid var(--line); max-width: 560px;
}
.stat-item dt { font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 800; color: var(--ink-900); line-height: 1.1; }
.stat-item .num { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-item dd { margin-top: .35rem; font-size: .86rem; color: var(--muted); line-height: 1.45; }

/* hero visual — dashboard mock */
.hero-visual { position: relative; max-width: 590px; width: 100%; justify-self: end; margin-inline: auto; }

.dash-card {
  background: linear-gradient(160deg, #10234a 0%, #0b1c38 70%);
  border: 1px solid rgba(125, 170, 255, .18);
  border-radius: var(--radius-lg); box-shadow: 0 30px 60px rgba(9, 24, 56, .35);
  padding: 1.1rem; color: #dfeaff; overflow: hidden; position: relative;
}

.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.live { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; letter-spacing: .06em; color: #bcd4ff; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #37e0a1; box-shadow: 0 0 0 0 rgba(55, 224, 161, .5); animation: live-ping 1.8s ease-out infinite; }
.dash-time { font-size: .78rem; color: #7f97c9; }

.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-bottom: .9rem; }
.kpi { background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-md); padding: .7rem .8rem; }
.kpi b { display: block; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; color: #fff; font-weight: 800; }
.kpi small { display: flex; justify-content: space-between; gap: .4rem; font-size: .72rem; color: #93a9d6; margin-top: .2rem; white-space: nowrap; }
.kpi.warn b { color: #ffd08a; }

.map-panel { position: relative; border-radius: var(--radius-md); overflow: hidden; background: rgba(4, 12, 30, .55); border: 1px solid rgba(255,255,255,.06); }
.map-panel > svg { display: block; width: 100%; height: clamp(200px, 24vw, 280px); }

.route-a { stroke: url(#routeA); stroke-width: 3.5; filter: drop-shadow(0 0 6px rgba(79, 140, 255, .8)); }
.route-b { stroke: #3fbfae; stroke-width: 2.5; opacity: .75; stroke-dasharray: 7 7; animation: dash-move 26s linear infinite; }

.map-dot .core { fill: #9fd0ff; }
.map-dot.alt .core { fill: #4fe3cf; }
.map-dot.warn .core { fill: #ffc16b; }
.map-dot .ring { fill: none; stroke: #9fd0ff; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: dot-ring 2.4s ease-out infinite; }
g.map-dot.alt .ring { stroke: #4fe3cf; animation-delay: .8s; }
g.map-dot.warn .ring { stroke: #ffc16b; animation-delay: 1.5s; }

.map-panel text { font-size: 11px; fill: rgba(207, 226, 255, .9); letter-spacing: .04em; paint-order: stroke; stroke: rgba(7, 18, 42, .85); stroke-width: 3px; }

.map-legend {
  position: absolute; top: .7rem; right: .7rem; display: flex; gap: .9rem; padding: .35rem .65rem;
  background: rgba(8, 18, 40, .72); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; font-size: .72rem; color: #b9cbee;
}
.map-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.lg-a { width: 14px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #3E7BFA, #59C8F2); display: inline-block; }
.lg-b { width: 14px; height: 0; border-top: 2.5px dashed #3fbfae; display: inline-block; }
.lg-w { width: 8px; height: 8px; border-radius: 50%; background: #ffc16b; display: inline-block; }

.map-chip {
  position: absolute; left: .7rem; bottom: .7rem; display: flex; align-items: center; gap: .6rem;
  padding: .45rem .8rem; border-radius: var(--radius-md); background: rgba(10, 22, 48, .8);
  border: 1px solid rgba(125, 170, 255, .22); font-size: .74rem; color: #c6d8ff; line-height: 1.35;
}
.map-chip b { font-size: 1.05rem; color: #fff; }

.bar-row { display: flex; align-items: flex-end; gap: .55rem; height: 44px; margin-top: .9rem; padding-inline: .2rem; }
.bar-row span { flex: 1; display: block; position: relative; }
.bar-row i {
  position: absolute; bottom: 0; left: 8%; right: 8%; height: 6%; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(93, 150, 255, .75), rgba(93, 150, 255, .2));
}
.bar-row i.hi { background: var(--grad-brand); }

.float-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .6rem; max-width: 230px;
  padding: .7rem .95rem; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-md);
  font-size: .8rem; color: var(--muted); line-height: 1.4; animation: float-y 6s ease-in-out infinite;
}
.float-chip b { display: block; font-size: .92rem; color: var(--ink-900); }
.chip-a { top: -18px; left: -26px; }
.chip-b { bottom: 34px; right: -20px; animation-delay: 1.6s; }

/* trust strip */
.trust-strip {
  position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2.6rem;
  padding: 1.05rem 1.4rem; margin-bottom: clamp(3rem, 6vw, 5rem);
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.trust-strip li { display: inline-flex; align-items: center; gap: .5rem; font-size: .86rem; color: #475a78; }
.trust-strip svg { width: 17px; height: 17px; flex: none; color: var(--teal-600); }

/* ---------------- generic section ---------------- */
.section { padding-block: clamp(4.2rem, 9vw, 6.8rem); position: relative; }
.section-alt { background: linear-gradient(#f3f6fc, #eef3fb); border-block: 1px solid rgba(19, 46, 89, .05); }

.sec-head { max-width: 720px; margin: 0 auto clamp(2.6rem, 5vw, 3.8rem); text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.sec-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); color: var(--ink-900); letter-spacing: .01em; line-height: 1.3; margin-bottom: 1rem; }

/* ---------------- overview flow ---------------- */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; position: relative; counter-reset: step; }
.flow::before {
  content: ""; position: absolute; top: 34px; left: 9%; right: 9%; height: 2px; z-index: 0;
  background-image: linear-gradient(90deg, rgba(29,91,216,.35) 55%, transparent 0); background-size: 14px 2px; opacity:.8;
}

.step { position: relative; z-index: 1; text-align: center; padding-inline: .4rem; }
.step-ico {
  width: 68px; height: 68px; margin: 0 auto 1.1rem; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid transparent; color: var(--blue-700); box-shadow: var(--shadow-sm);
  background-image: linear-gradient(#fff, #fff), var(--grad-brand);
  background-origin: border-box; background-clip: padding-box, border-box;
}
.step-ico svg { width: 30px; height: 30px; }
.step b { display: block; font-size: 1.05rem; color: var(--ink-900); margin-bottom: .45rem; letter-spacing: .02em; }
.step p { font-size: .87rem; color: var(--muted); line-height: 1.65; max-width: 15em; margin-inline: auto; }

.overview-note {
  margin-top: clamp(2.4rem, 5vw, 3.4rem); padding: 1.4rem 1.8rem; border-radius: var(--radius-md);
  background: #fff; border: 1px solid var(--line); border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--blue-700), var(--teal-600)) 1; box-shadow: var(--shadow-sm);
}
.overview-note p { font-size: .95rem; color: #43536e; }

/* ---------------- feature cards ---------------- */
.feature-grid, .scenario-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.feature:hover, .scenario:hover, .cert:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.feature, .scenario { padding: 1.7rem 1.6rem; border: 1px solid rgba(19,46,89,.05); position: relative; overflow:hidden;}
.feature::after, .scenario::after {
  content:""; position:absolute; inset:auto -30% -55% auto; width:70%; height:120%; border-radius:50%; opacity:.06; background:var(--grad-brand); pointer-events:none; transition:opacity .4s ease, transform .5s ease;
}
.feature:hover::after, .scenario:hover::after { opacity:.13; }

.f-ico, .s-ico {
  width: 52px; height: 52px; border-radius: var(--radius-md); display: grid; place-items: center; margin-bottom: 1.1rem; color:#fff; background:var(--grad-brand); box-shadow:0 8px 18px rgba(31,91,216,.25);
}
.f-ico svg, .s-ico svg { width: 27px; height: 27px; }

.feature h3, .scenario h3 { font-size: 1.08rem; color: var(--ink-900); margin-bottom: .55rem; letter-spacing:.02em;}
.feature p, .scenario p { font-size: .9rem; color: var(--muted); line-height: 1.72; }

/* ---------------- dark sections / app ---------------- */
.section-dark {
  background:
    radial-gradient(820px 460px at 12% -5%, rgba(37, 99, 235, .3), transparent 62%),
    radial-gradient(760px 420px at 95% 108%, rgba(15, 163, 160, .22), transparent 60%),
    var(--dark-bg);
  color: var(--dark-text); overflow:hidden; position:relative;
}
.section-dark::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.5; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 56px); }
.section-dark .container { position:relative; z-index:1; }

.app-grid { display: grid; gap: clamp(2.8rem, 6vw, 4.5rem); align-items:center; grid-template-columns: minmax(300px, 420px) 1fr; }
.phone-wrap { justify-self:center; width:min(340px, 92%); position:relative;}

.phone { border-radius: 46px; padding: 12px; background:#0a1730; box-shadow: 0 40px 80px rgba(2,10,28,.55), inset 0 0 0 2px rgba(125,170,255,.16); }
.screen { border-radius: 34px; overflow:hidden; background:#f4f7fd; display:flex; flex-direction:column; gap:.8rem; padding:.9rem .9rem 0.9rem;}

.p-status { display:flex; justify-content:space-between; align-items:center; font-size:.68rem; color:#5e7089; }
.p-status i { width:42px; height:10px; border-radius:3px; background:rgba(19,46,89,.12); position:relative;}

.p-head { border-radius: var(--radius-md); padding:.95rem 1.05rem; color:#fff; background:var(--grad-brand); box-shadow:0 10px 22px rgba(31,91,216,.3);}
.p-head b { display:block; font-size:.98rem; letter-spacing:.04em;}
.p-head small { opacity:.85; font-size:.72rem; }

.p-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
.p-grid button { appearance:none; border:1px solid rgba(19,46,89,.08); background:#fff; border-radius:var(--radius-md); padding:.75rem .3rem .6rem; display:flex; flex-direction:column; align-items:center; gap:.42rem; cursor:pointer;}
.p-grid button svg { width:21px;height:21px;color:var(--blue-700);}
.p-grid span { font-size:.78rem; color:#3c4d6b; }

.p-card { background:#fff; border-radius:var(--radius-md); padding:.75rem .9rem; box-shadow:0 2px 10px rgba(13,31,60,.06);}
.p-row { display:flex; justify-content:space-between; align-items:center; gap:.8rem;}
.p-row b { font-size:.84rem; color:#1c2b45; }
.tag { flex:none; font-style:normal; font-size:.7rem; padding:.16rem .55rem; border-radius:999px; }
.tag.warn { background:#fff3df; color:#a86a0f;}
.tag.ok { background:#e2f6ec; color:#146c43;}
.p-sub.small-line, .p-card small.line { font-size:.7rem; color:#8593ab; margin-top:.3rem; }

.p-tabbar { display:flex; justify-content:space-around; align-items:center; padding:.65rem 0.4rem calc(.65rem + env(safe-area-inset-bottom, 0px)); border-top:1px solid rgba(19,46,89,.07); margin-top:auto;}
.p-tabbar span { display:flex; flex-direction:column; align-items:center; gap:.2rem; font-size:.66rem; color:#8593ab; }
.p-tabbar svg { width:19px;height:19px;color:#a4b0c7;}
.p-tabbar .on, .p-tabbar .on svg { color:var(--blue-700); font-weight:600; }

.app-copy h2 { color:#fff !important; margin-bottom:.8rem; }
.app-grid .sec-head.left p.lead-center { color: var(--dark-muted) !important; max-width:none; }

.app-list li { display:flex; flex-direction:column; gap:.15rem; padding-block:1rem; border-bottom:1px solid rgba(255,255,255,.09); transition:transform .3s ease;}
.app-list li:hover { transform:translateX(6px);}
.app-list b { font-size:1.02rem; color:#fff; letter-spacing:.02em; }
.app-list span { font-size:.87rem; color:var(--dark-muted); line-height:1.65;}

/* ---------------- screenshots ---------------- */
.shot-grid { display:grid; gap:1.3rem; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); }
.shot { margin:0; border-radius:var(--radius-lg); overflow:hidden; background:#fff; box-shadow:var(--shadow-sm); cursor:zoom-in; transition:transform .3s ease, box-shadow .3s ease;}
.shot:hover { transform:translateY(-5px) scale(1.012); box-shadow:var(--shadow-md);}
.shot img { width:100%; aspect-ratio:1/1; object-fit:contain; background:linear-gradient(#ffffff,#eef3fb); padding:.9rem;}
.shot figcaption { border-top:1px solid rgba(19,46,89,.07); background:#fff; }
.shot figcaption span { display:block; text-align:center; font-size:.82rem; color:#5e7089; padding:.55rem 0 .7rem; letter-spacing:.08em;}

/* lightbox */
.lightbox { position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; background:rgba(6,14,32,.88); backdrop-filter:blur(6px);}
.lightbox[hidden] { display:none; }
.lightbox img { max-width:min(92vw, 1500px); max-height:88vh; border-radius:var(--radius-md); box-shadow:0 40px 90px rgba(0,0,0,.6);}
.lb-close { position:absolute; top:1.2rem; right:1.6rem; width:52px;height:52px;border:none;background:rgba(255,255,255,.1); color:#fff;font-size:2rem;line-height:1;border-radius:50%;cursor:pointer;transition:background .25s ease;}
.lb-close:hover { background:rgba(255,255,255,.24);}

/* ---------------- scenarios / certs ---------------- */
.scenario-grid { grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }

.cert-grid { display:grid; gap:1.3rem; grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr)); max-width:980px;margin-inline:auto;}
.cert { display:flex; align-items:center; gap:1.2rem; padding:1.5rem 1.6rem; }
.c-ico { width:58px;height:58px;border-radius:50%;flex:none;display:grid;place-items:center;color:#b98a34;background:#faf3e3;border:1.5px dashed rgba(185,138,52,.5);}
.c-ico svg { width:27px;height:27px;}
.cert b { display:block;font-size:1.06rem;color:var(--ink-900);margin-bottom:.4rem;letter-spacing:.02em;}
.cert p { font-size:.87rem;color:var(--muted);line-height:1.65;}

.cert-foot { margin-top:2.6rem;text-align:center;font-size:.85rem;color:#7d8ca3;display:flex;align-items:center;justify-content:center;gap:.6rem;}
.cert-foot i { width:40px;height:2px;border-radius:2px;background:var(--grad-brand);display:inline-block;}

/* ---------------- contact ---------------- */
.contact-grid { display:grid; gap:clamp(2.8rem,5vw,4rem); grid-template-columns:1fr minmax(300px, 400px); align-items:start;}
.section-dark .sec-head h2 { color:#fff; }

.contact-list li { display:flex; gap:1.6rem; padding-block:.95rem; border-bottom:1px solid rgba(255,255,255,.1);}
.contact-list b { flex:none; width:84px; font-size:.85rem; color:#8fa3c8;font-weight:500;}
.contact-list span { font-size:1.02rem;color:#eaf1ff;line-height:1.7;}
.tel-row a { color:#9fd3ff; }
.tel-row a:hover { text-decoration:underline; }

.hero-cta .btn-primary { box-shadow:0 8px 24px rgba(6,20,50,.5); }

.contact-card { border-radius:var(--radius-lg); padding:1.9rem 1.7rem; position:relative; overflow:hidden;
  background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.1);}
.contact-card .big-mark { position:absolute; top:-38px; right:-6px; font-size:9.5rem; line-height:1; color:#fff; opacity:.07; font-weight:800; user-select:none;}
.contact-card h3 { font-size:1.28rem;line-height:1.7;color:#fff;margin-bottom:1.4rem;font-weight:600;letter-spacing:.03em;}
.contact-card ul li { display:flex; align-items:center; gap:.7rem; padding-block:.55rem; color:#c9d6f2;font-size:.92rem;border-top:1px solid rgba(255,255,255,.08);}
.contact-card ul svg { width:18px;height:18px;color:#4fe3cf;flex:none;}

/* ---------------- footer ---------------- */
.site-footer { background:var(--dark-bg-deep); color:#9fb0d4; padding-top:clamp(3rem,6vw,4.2rem);}
.footer-grid { display:grid; gap:2.4rem; grid-template-columns:minmax(240px,1.7fr) 1fr 1fr minmax(220px,1.3fr); padding-bottom:2.8rem;}

.f-brand .f-logo-chip { display:inline-block;background:#fff;border-radius:var(--radius-md);padding:.55rem .9rem;margin-bottom:1.1rem;box-shadow:0 6px 18px rgba(0,0,0,.3);}
.f-brand img { height:32px;width:auto;object-fit:contain;}
.f-brand p { font-size:.87rem;line-height:1.8;color:#8fa3c8;max-width:24em;}

.f-col b { display:block;font-size:.85rem;letter-spacing:.16em;color:#dce7fb;margin-bottom:.9rem;font-weight:600;}
.f-col a, .f-contact span { display:block;padding-block:.3rem;font-size:.92rem;color:#9fb0d4;transition:color .25s ease;width:fit-content;}
.f-col a:hover { color:#fff;}

.f-bottom { border-top:1px solid rgba(255,255,255,.08); padding-block:1.3rem 1.6rem; display:flex; flex-wrap:wrap; gap:.4rem 2rem; justify-content:space-between; font-size:.82rem;color:#7e90b6;}
.f-note { opacity:.8;}

/* ---------------- reveal animations ---------------- */
html.js .reveal { opacity:0; transform:translateY(26px); transition:opacity .7s ease, transform .75s cubic-bezier(.16,1,.3,1);}
html.js .reveal.is-in { opacity:1; transform:none;}
.d1{transition-delay:.08s}.d2{transition-delay:.16s}.d3{transition-delay:.24s}.d4{transition-delay:.32s}
.d5 { transition-delay: .4s; }

/* cert card text column */
.c-body { min-width: 0; flex: 1; }

/* bars grow when hero visible */
.hero-visual .bar-row i { height:5%; transition:height 1.1s cubic-bezier(.16,1,.3,1) .35s; }
html.js .hero-visual.is-in .bar-row i, html:not(.js) .bar-row i { height:var(--h); }

/* ---------------- keyframes ---------------- */
@keyframes pulse-ring { 0%{transform:scale(.6);opacity:.9} 100%{transform:scale(2.1);opacity:0} }
@keyframes live-ping { 0%{box-shadow:0 0 0 0 rgba(55,224,161,.5)} 100%{box-shadow:0 0 0 9px rgba(55,224,161,0)} }
@keyframes dot-ring { 0%{transform:scale(.5);opacity:.8} 70%,100%{transform:scale(2.6);opacity:0} }
@keyframes dash-move { to { stroke-dashoffset:-420; } }
@keyframes float-y { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; padding-top:.4rem;}
  .hero-copy { text-align:center; display:flex; flex-direction:column; align-items:center;}
  .stat-row { margin-inline:auto;}
  .hero-visual { justify-self:center; max-width:560px;}
  .chip-a{left:-8px} .chip-b{right:-4px}

  .app-grid { grid-template-columns:1fr; }
  .phone-wrap { order:2; margin-top:.6rem;}
  .contact-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav ul { gap:1.25rem; }
  .nav-toggle{ display:block;}
  body:not(.has-nav-open) .main-nav { display:none; }

  /* dropdown panel anchored under the sticky header */
  body.has-nav-open .main-nav { display:block; position:absolute; top:72px; left:4vw; right:4vw; background:#fff;border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:var(--shadow-md);}
  body.has-nav-open .main-nav ul{flex-direction:column;padding:.8rem;}

  .flow { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.8rem 1.2rem;}
  .flow::before{display:none;}
}

@media (max-width: 760px) {
  .nav-cta { display:none; } /* keep header compact on small phones */
  .stat-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem;margin-top:2.2rem;width:100%;}
  .flow { grid-template-columns:1fr; max-width:420px;margin-inline:auto;}
  .contact-list li{flex-direction:column;gap:.25rem;}
  .footer-grid{grid-template-columns:1fr;text-align:left;}
  .f-bottom{justify-content:center;text-align:center;}
}

@media (max-width: 480px) {
  .float-chip{display:none;}
  .map-legend{font-size:.62rem;gap:.55rem;padding:.3rem .5rem;}
  .kpi small i{display:none;}
  .cert-grid{grid-template-columns:1fr;}
}

/* ---------------- reduced motion / no-js safety ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important;}
}
