/* ============================================================
   VIA Telecom Limited — site styles
   Palette: Future Indigo + ink neutrals, HK enterprise B2B
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("fonts/sora-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #12152e;
  --ink-soft: #3c4157;
  --ink-mute: #6b7085;
  --indigo: #3730a3;
  --indigo-deep: #232063;
  --indigo-bright: #4f46e5;
  --indigo-tint: #eef0fb;
  --paper: #ffffff;
  --paper-alt: #f6f7fb;
  --line: #e3e5ef;
  --badge-amber-bg: #fdf3d8;
  --badge-amber-fg: #8a5a06;
  --badge-indigo-bg: #e7e8f9;
  --badge-indigo-fg: #34309b;
  --radius: 12px;
  --maxw: 1120px;
  --font-head: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  font-family: var(--font-head); font-weight: 800; font-size: 26px;
  color: var(--indigo-deep); letter-spacing: 0.01em;
}
.brand-mark .dot { color: var(--indigo-bright); }
.brand-sub {
  font-size: 12.5px; font-weight: 600; color: var(--ink-mute);
  letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  color: var(--ink-soft); font-size: 15px; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.main-nav a:hover { color: var(--indigo); text-decoration: none; }
.main-nav a[aria-current="page"] {
  color: var(--indigo-deep); border-bottom-color: var(--indigo-bright);
}
.nav-cta {
  background: var(--indigo); color: #fff !important; font-weight: 600;
  padding: 10px 20px !important; border-radius: 999px; border-bottom: none !important;
}
.nav-cta:hover { background: var(--indigo-bright); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(79, 70, 229, 0.16), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(35, 32, 99, 0.10), transparent 55%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 88px 0 64px; max-width: 780px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--indigo);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--indigo-bright);
  display: inline-block;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 22px; }
.hero .lede { font-size: 19px; color: var(--ink-soft); margin-bottom: 34px; max-width: 640px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-weight: 600; font-size: 16px;
  padding: 13px 28px; border-radius: 999px; border: 1.5px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-bright); }
.btn-ghost { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn-ghost:hover { background: var(--indigo-tint); }

/* skyline divider */
.skyline { color: var(--indigo-deep); opacity: 0.16; margin-top: 48px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

.grid { display: grid; gap: 22px; }
.grid > * { min-width: 0; } /* 允许列收缩到 min-content 以下，否则 .table-scroll 永远不触发 */
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { font-size: 18.5px; margin: 14px 0 10px; }
.card p { font-size: 15.5px; color: var(--ink-soft); }
.card .icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--indigo-tint); color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
}
.section.alt .card { background: var(--paper); }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.badge-planned { background: var(--badge-amber-bg); color: var(--badge-amber-fg); }
.badge-current { background: var(--badge-indigo-bg); color: var(--badge-indigo-fg); }

/* ---------- Fact strip ---------- */
.fact-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  padding: 34px 0;
}
.fact { border-left: 3px solid var(--indigo-bright); padding-left: 18px; }
.fact .k { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); }
.fact .v { font-size: 14.5px; color: var(--ink-mute); margin-top: 4px; }

/* ---------- Notice / disclaimer blocks ---------- */
.notice {
  background: var(--indigo-tint); border: 1px solid #d8daf3;
  border-radius: var(--radius); padding: 20px 24px;
  font-size: 15px; color: var(--ink-soft);
}
.notice strong { color: var(--indigo-deep); }

/* ---------- Prose pages (legal etc.) ---------- */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper-alt), var(--paper)); }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.page-head p { color: var(--ink-soft); font-size: 17.5px; max-width: 700px; }
.prose { max-width: 808px; padding-block: 56px 80px; } /* 808 = 760 内容宽 + 左右各 24 */
.prose h2 { font-size: 24px; margin: 40px 0 14px; }
.prose h3 { font-size: 18.5px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 16px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 8px; }
.prose .meta { font-size: 14px; color: var(--ink-mute); margin-bottom: 28px; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 15.5px;
  border: 1px solid var(--line); border-radius: var(--radius);
}
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data td { overflow-wrap: anywhere; } /* 邮箱等长不可断字符串可折行 */
table.data th { background: var(--paper-alt); font-family: var(--font-head); font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
table.data tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 720px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--indigo-bright);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13.5px; color: var(--ink-mute); }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.checkbox-row input { width: auto; margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--indigo-deep); color: #fff; }
.cta-band .inner { padding-block: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.cta-band p { color: #c9cbe8; max-width: 560px; font-size: 16px; }
.cta-band .btn-primary { background: #fff; color: var(--indigo-deep); }
.cta-band .btn-primary:hover { background: var(--indigo-tint); }

/* ---------- Footer ---------- */
.site-footer { background: #0e1126; color: #b9bcd4; font-size: 14.5px; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding: 56px 0 40px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b9bcd4; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-mark { color: #fff; font-size: 22px; }
.footer-brand p { margin-top: 14px; max-width: 320px; color: #8f93b0; font-size: 13.5px; line-height: 1.6; }
.footer-legal {
  border-top: 1px solid #262a48; padding: 26px 0 34px;
  font-size: 13px; color: #8f93b0; line-height: 1.7;
}
.footer-legal p { margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav-cta { margin-top: 14px; text-align: center; border-radius: 12px; }
}
@media (max-width: 720px) {
  .hero-inner { padding: 56px 0 44px; }
  .hero h1 { font-size: clamp(29px, 8.4vw, 38px); overflow-wrap: break-word; }
  .fact-strip { grid-template-columns: 1fr; gap: 18px; padding: 26px 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .brand-sub { display: none; }
}
