/* =====================================================================
   DoubleSquare Networks Limited — stylesheet
   ---------------------------------------------------------------------
   1. Design tokens      (colours, type scale, spacing, radius, shadow)
   2. Base / reset
   3. Layout             (container, section, section head)
   4. Components         (eyebrow, titles, buttons, cards, tags, icons)
   5. Sections           (top bar → footer, in page order)
   6. Utilities
   7. Responsive         (≤1200 · ≤1024 · ≤860 · ≤560)
   8. Motion preferences
   Change the look site-wide by editing the tokens in :root.
   ===================================================================== */

/* 1. DESIGN TOKENS ---------------------------------------------------- */
:root {
  /* Colour */
  --green-950: #04190f;
  --green-900: #06261b;
  --green-800: #075238;
  --green-700: #0c6a49;
  --green-500: #4c8253;
  --green-400: #7fbf4d;
  --lime: #c7e795;
  --lime-soft: #e8f4d6;
  --ink: #10261d;
  --body: #4d5e55;
  --muted: #6b7a72;
  --on-dark: #b9cdc1;
  --line: #e1e8e2;
  --line-dark: rgba(255, 255, 255, .12);
  --bg-soft: #f4f7f2;
  --white: #ffffff;

  /* Typography */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-2xs: 12px;
  --fs-xs: 13px;
  --fs-sm: 14.5px;
  --fs-base: 16px;
  --fs-md: 17px;
  --fs-lg: 18px;
  --fs-h4: 15px;
  --fs-h3: 18.5px;
  --fs-h2: clamp(26px, 2.7vw, 38px);
  --fs-h1: clamp(34px, 4.4vw, 58px);
  --lh-tight: 1.15;
  --lh-body: 1.65;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --section-y: clamp(52px, 6vw, 84px);
  --gutter: clamp(20px, 4vw, 64px);
  --container: 1480px;
  --grid-gap: 18px;
  --header-h: 68px;

  /* Shape & depth */
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(6, 38, 27, .05), 0 8px 24px -14px rgba(6, 38, 27, .16);
  --shadow-lg: 0 1px 2px rgba(6, 38, 27, .05), 0 22px 44px -22px rgba(6, 38, 27, .3);
  --ease: .22s ease;
}

/* 2. BASE / RESET ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: var(--fs-base); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: var(--lh-tight); letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--white); color: var(--green-800); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* 3. LAYOUT ----------------------------------------------------------- */
.wrap { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-10); margin-bottom: var(--space-10); }
.section-intro { max-width: 360px; color: var(--body); font-size: var(--fs-base); line-height: 1.7; }
.section-intro-light { color: var(--on-dark); }

/* 4. COMPONENTS ------------------------------------------------------- */
/* Eyebrow label */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--space-3); font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-800); }
.eyebrow .line { width: 22px; height: 2px; background: currentColor; opacity: .7; }
.eyebrow-light { color: var(--lime); }

/* Titles */
.title { font-size: var(--fs-h2); max-width: 20ch; color: var(--ink); letter-spacing: -.025em; }
.title em, h1 em, .partners-title em { font-style: italic; font-weight: 600; color: var(--green-500); }
.title-light { color: var(--white); }
.title-light em { color: var(--lime); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 20px; border: 1.5px solid transparent; border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease); }
.btn svg { width: 16px; height: 16px; stroke-width: 2; transition: transform var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--green-800); color: var(--white); }
.btn-primary:hover { background: var(--green-700); }
.btn-lime { background: var(--lime); color: var(--green-900); }
.btn-lime:hover { background: #d6efae; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(199, 231, 149, .6); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .3); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-outline { background: var(--white); color: var(--green-800); border-color: #b9cfbf; }
.btn-outline:hover { border-color: var(--green-800); }

/* Card */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.card:hover { transform: translateY(-3px); border-color: #c9dcc6; box-shadow: var(--shadow-lg); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-5); }
.tags li { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--lime-soft); color: var(--green-800); font-size: var(--fs-2xs); font-weight: 600; }

/* Icon tiles */
.icon, .plan-ic, .why-ic, .ff-ic, .contact-ic, .fiber-badge-ic { display: grid; place-items: center; flex: none; border-radius: 10px; }
.icon { width: 46px; height: 46px; background: var(--green-800); color: var(--lime); border: 3px solid var(--white); box-sizing: content-box; box-shadow: 0 8px 18px -10px rgba(6, 38, 27, .5); }
.icon svg { width: 24px; height: 24px; stroke-width: 1.8; }

/* Link with arrow */
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; color: var(--green-800); }
.card-link svg { width: 15px; height: 15px; stroke-width: 2; transition: transform var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

.num { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .08em; color: #9aaba1; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(199, 231, 149, .18); }

/* 5. SECTIONS --------------------------------------------------------- */
/* Top bar */
.topbar { background: var(--green-950); color: var(--on-dark); font-size: var(--fs-xs); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 36px; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.topbar-contact a, .topbar-loc, .topbar-note { display: inline-flex; align-items: center; gap: 7px; }
.topbar-contact a:hover { color: var(--lime); }
.topbar svg { width: 13px; height: 13px; color: var(--lime); }
.topbar-note { color: #dbe8df; }

/* Header & navigation */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--ease), box-shadow var(--ease); }
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 22px -18px rgba(6, 38, 27, .4); }
.header-inner { display: flex; align-items: center; gap: var(--space-6); height: var(--header-h); }
.brand img { width: 200px; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: var(--fs-sm); font-weight: 500; color: var(--body); }
.nav a { position: relative; padding: 6px 0; transition: color var(--ease); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green-800); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:not(.btn):hover { color: var(--green-800); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-fiber { display: inline-flex; align-items: center; gap: 6px; color: var(--green-800); font-weight: 600; }
.nav-fiber::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 3px rgba(127, 191, 77, .22); }
.nav-mobile-cta { display: none; }
.header-cta { min-height: 40px; padding: 0 16px; font-size: var(--fs-xs); }
.menu-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
.menu-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(48px, 6vw, 76px); background: var(--green-900); color: var(--white); }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 35%, rgba(76, 130, 83, .45), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(12, 106, 73, .5), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--green-900);
  -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-12); align-items: center; }
.hero h1 { margin-bottom: var(--space-5); font-size: var(--fs-h1); font-weight: 750; line-height: 1.06; letter-spacing: -.035em; }
.hero h1 em { color: var(--lime); }
.lead { max-width: 500px; margin-bottom: var(--space-8); font-size: var(--fs-md); line-height: 1.7; color: #c6d8cd; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: var(--space-6); font-size: var(--fs-xs); color: var(--on-dark); }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points svg { width: 15px; height: 15px; color: var(--lime); stroke-width: 2.2; }

.hero-visual { position: relative; justify-self: end; width: 100%; max-width: clamp(400px, 36vw, 540px); aspect-ratio: 480 / 440; }
.net { width: 100%; height: 100%; }
.net .ring { stroke: rgba(199, 231, 149, .18); stroke-width: 1; }
.net .ring-dash { stroke-dasharray: 3 7; }
.net .link { stroke: rgba(199, 231, 149, .32); stroke-width: 1.2; stroke-dasharray: 2 6; animation: flow 6s linear infinite; }
.net .node circle { fill: var(--lime); stroke: rgba(199, 231, 149, .25); stroke-width: 10; }
.net .sq { stroke-width: 15; stroke-linejoin: miter; }
.net .sq-a { stroke: #e3f2c9; }
.net .sq-b { stroke: #91bd67; fill: rgba(6, 38, 27, .55); }
@keyframes flow { to { stroke-dashoffset: -200; } }
/* Hero "live network" animation */
.net .photo { transform-box: view-box; transform-origin: 240px 220px; animation: photo-zoom 18s ease-in-out infinite alternate; }
@keyframes photo-zoom { from { transform: scale(1); } to { transform: scale(1.1); } }
.net .scan { fill: rgba(199, 231, 149, .12); animation: scan 5s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateY(-40px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(300px); opacity: 0; } }
.net .photo-ring { fill: none; stroke: var(--lime); stroke-width: 3; opacity: .9; }
.net .badge { animation: badge-pop 4s ease-in-out infinite; }
.net .badge-bg { fill: #fff; stroke: rgba(199, 231, 149, .55); stroke-width: 6; }
.net .badge .sq { stroke-width: 15; }
.net .badge .sq-a { stroke: var(--green-800); }
.net .badge .sq-b { stroke: #4c8253; fill: rgba(255, 255, 255, .7); }
@keyframes badge-pop { 0%, 100% { filter: drop-shadow(0 0 0 rgba(199, 231, 149, 0)); } 50% { filter: drop-shadow(0 0 10px rgba(199, 231, 149, .8)); } }
.net .pk { fill: #e8ffc4; opacity: 0; }
.net .pk-in { fill: var(--lime); }
.net .ripple { fill: none; stroke: var(--lime); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ripple 2.8s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(4); opacity: 0; } }
.net .ring-dash { transform-box: view-box; transform-origin: 240px 220px; animation: spin 60s linear infinite; }
.net .orbit { transform-box: view-box; transform-origin: 240px 220px; animation: spin 14s linear infinite; }
.net .orbit circle { fill: var(--lime); filter: drop-shadow(0 0 6px rgba(199, 231, 149, .9)); }
.net .orbit-2 { animation-duration: 26s; animation-direction: reverse; }
.net .orbit-2 circle { fill: #e3f2c9; opacity: .7; }
.net .halo { transform-box: view-box; transform-origin: 240px 220px; animation: breathe 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes core-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes sq-tilt { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(6deg); } }
.chip { animation: chip-bob 6s ease-in-out infinite; }
.chip-2 { animation-delay: -1.5s; }
.chip-3 { animation-delay: -3s; }
.chip-4 { animation-delay: -4.5s; }
@keyframes chip-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pk-out-1 { 0% { transform: translate(0, 0); opacity: 0; } 12%, 85% { opacity: 1; } 100% { transform: translate(-30.0px, -26.0px); opacity: 0; } }
@keyframes pk-in-1 { 0% { transform: translate(-30.0px, -26.0px); opacity: 0; } 12%, 85% { opacity: .85; } 100% { transform: translate(0, 0); opacity: 0; } }
.net .pk-out.pk-1 { animation: pk-out-1 1.8s cubic-bezier(.45, 0, .55, 1) 0.0s infinite; }
.net .pk-in.pk-1 { animation: pk-in-1 2.2s cubic-bezier(.45, 0, .55, 1) 1.40s infinite; }
.net .rp-1 { animation-delay: 2.4s; }
@keyframes pk-out-2 { 0% { transform: translate(0, 0); opacity: 0; } 12%, 85% { opacity: 1; } 100% { transform: translate(30.3px, -24.4px); opacity: 0; } }
@keyframes pk-in-2 { 0% { transform: translate(30.3px, -24.4px); opacity: 0; } 12%, 85% { opacity: .85; } 100% { transform: translate(0, 0); opacity: 0; } }
.net .pk-out.pk-2 { animation: pk-out-2 1.8s cubic-bezier(.45, 0, .55, 1) 0.7s infinite; }
.net .pk-in.pk-2 { animation: pk-in-2 2.2s cubic-bezier(.45, 0, .55, 1) 2.25s infinite; }
.net .rp-2 { animation-delay: 3.1s; }
@keyframes pk-out-3 { 0% { transform: translate(0, 0); opacity: 0; } 12%, 85% { opacity: 1; } 100% { transform: translate(-34.8px, 29.4px); opacity: 0; } }
@keyframes pk-in-3 { 0% { transform: translate(-34.8px, 29.4px); opacity: 0; } 12%, 85% { opacity: .85; } 100% { transform: translate(0, 0); opacity: 0; } }
.net .pk-out.pk-3 { animation: pk-out-3 1.8s cubic-bezier(.45, 0, .55, 1) 1.4s infinite; }
.net .pk-in.pk-3 { animation: pk-in-3 2.2s cubic-bezier(.45, 0, .55, 1) 3.10s infinite; }
.net .rp-3 { animation-delay: 3.8s; }
@keyframes pk-out-4 { 0% { transform: translate(0, 0); opacity: 0; } 12%, 85% { opacity: 1; } 100% { transform: translate(36.0px, 28.7px); opacity: 0; } }
@keyframes pk-in-4 { 0% { transform: translate(36.0px, 28.7px); opacity: 0; } 12%, 85% { opacity: .85; } 100% { transform: translate(0, 0); opacity: 0; } }
.net .pk-out.pk-4 { animation: pk-out-4 1.8s cubic-bezier(.45, 0, .55, 1) 2.1s infinite; }
.net .pk-in.pk-4 { animation: pk-in-4 2.2s cubic-bezier(.45, 0, .55, 1) 3.95s infinite; }
.net .rp-4 { animation-delay: 4.5s; }


.chip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 7px 13px 7px 7px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .96); color: var(--green-900); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .45); }
.chip-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lime-soft); color: var(--green-800); }
.chip-ic svg { width: 14px; height: 14px; }
.chip-1 { left: 0; top: 10%; }
.chip-2 { right: 0; top: 14%; }
.chip-3 { left: 2%; bottom: 13%; }
.chip-4 { right: 0; bottom: 14%; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-dark); }
.pillar { padding: 18px 20px 22px; border-left: 1px solid var(--line-dark); font-size: var(--fs-base); line-height: 1.4; }
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar strong { display: block; color: var(--white); }
.pillar span { font-size: var(--fs-xs); font-weight: 500; color: var(--lime); }

/* Partners */
.partners { padding-block: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.partners-head { margin-bottom: var(--space-8); text-align: center; }
.partners-head .eyebrow { justify-content: center; }
.partners-title { max-width: 30ch; margin-inline: auto; font-size: clamp(19px, 1.9vw, 24px); }
.partners-title em { font-weight: 600; }
.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--radius); }
.partner { display: grid; place-items: center; height: 92px; padding: 18px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); transition: background-color var(--ease); }
.partner img { width: auto; height: auto; max-width: 100%; max-height: 36px; filter: grayscale(1); opacity: .62; transition: filter .3s, opacity .3s, transform .3s; }
.partner:hover { background: var(--bg-soft); }
.partner:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.partner img.logo-hytera { max-height: 50px; opacity: .78; }
@media (hover: none) { .partner img { filter: none; opacity: .9; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; }
.about-copy p { color: var(--body); font-size: var(--fs-base); line-height: 1.75; }
.about-copy p + p { margin-top: var(--space-3); }
.text-link { color: var(--green-800); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(7, 82, 56, .35); text-underline-offset: 3px; transition: text-decoration-color var(--ease); }
.text-link:hover { text-decoration-color: var(--green-800); }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-6); }
.about-values div { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); font-size: var(--fs-base); font-weight: 700; }
.about-values span { display: block; margin-bottom: var(--space-2); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .08em; color: var(--green-500); }

/* Leadership team */
.team { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.team-head { margin-bottom: var(--space-6); }
.team-head .eyebrow { margin-bottom: var(--space-2); }
.team-title { font-size: var(--fs-h3); font-weight: 700; color: var(--ink); }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--grid-gap); }
.member { flex: 0 1 calc((100% - 4 * var(--grid-gap)) / 5); min-width: 0; max-width: 200px; text-align: center; }
.member-photo { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 4 / 5; margin-bottom: var(--space-3); border-radius: var(--radius); background: radial-gradient(120% 90% at 30% 10%, var(--green-500), var(--green-900)); box-shadow: var(--shadow-sm); }
.member-photo span { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: .04em; color: var(--lime); opacity: .9; }
.member-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member h3 { margin-bottom: 3px; font-size: var(--fs-md); font-weight: 700; }
.member p { color: var(--body); font-size: var(--fs-xs); line-height: 1.5; }

/* Services & Products */
.services { background: var(--bg-soft); border-block: 1px solid var(--line); }
.products { background: var(--bg-soft); border-top: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.service-grid-3 { grid-template-columns: repeat(3, 1fr); }
.service { display: flex; flex-direction: column; overflow: hidden; padding: 0 20px 20px; }
.service-media { position: relative; overflow: hidden; margin: 0 -20px; aspect-ratio: 16 / 10; background: var(--green-900); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 38, 27, 0) 45%, rgba(6, 38, 27, .55)); }
.service:hover .service-media img { transform: scale(1.05); }
/* Animated IT & Digital picture */
.media-live img { animation: kenburns 16s ease-in-out infinite alternate; }
.service:hover .media-live img { transform: none; }
@keyframes kenburns { 0% { transform: scale(1.02) translate(0, 0); } 100% { transform: scale(1.14) translate(-3%, -2%); } }
.live-shine { position: absolute; inset: 0; z-index: 1; background: linear-gradient(105deg, transparent 35%, rgba(199, 231, 149, .28) 50%, transparent 65%); transform: translateX(-120%); animation: shine 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 35% { transform: translateX(-120%); } 75%, 100% { transform: translateX(120%); } }
.live-tag { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 6px; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius-pill); background: rgba(6, 38, 27, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .01em; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); animation: tag-float 4.5s ease-in-out infinite; }
.live-tag svg { width: 13px; height: 13px; stroke-width: 2; color: var(--lime); }
.lt-1 { top: 12%; right: 8%; }
.lt-2 { top: 50%; left: 6%; animation-delay: -1.5s; }
.lt-3 { top: 58%; right: 9%; animation-delay: -3s; }
@keyframes tag-float { 0%, 100% { transform: translateY(0); opacity: .92; } 50% { transform: translateY(-7px); opacity: 1; } }
/* Per-card tag positions and varied motion */
.lt-a { top: 12%; right: 8%; }
.lt-b { top: 62%; right: 8%; animation-delay: -1.5s; }
.lt-c { top: 66%; left: 7%; animation-delay: -3s; }
.lt-live { top: 11%; left: 7%; }
.media-net img { animation-delay: -4s; animation-direction: alternate-reverse; }
.media-sec img { animation-delay: -8s; }
.media-biz img { animation-delay: -12s; animation-direction: alternate-reverse; }
.media-net .live-shine { animation-delay: -1.4s; }
.media-sec .live-shine { animation-delay: -2.8s; }
.media-biz .live-shine { animation-delay: -4.2s; }
.media-net .live-tag { animation-delay: -.8s; }
.media-net .lt-b { animation-delay: -2.3s; }
.media-net .lt-c { animation-delay: -3.8s; }
.media-sec .lt-b { top: 38%; }
.media-biz .lt-a { top: 10%; left: 7%; right: auto; }
.media-biz .lt-b { top: 12%; right: 8%; }
.media-biz .lt-c { top: 64%; left: auto; right: 8%; }
.media-bill img { animation-delay: -5s; }
.media-pos img { animation-delay: -10s; animation-direction: alternate-reverse; }
.media-q img { animation-delay: -2s; }
.media-bill .live-shine { animation-delay: -.7s; }
.media-pos .live-shine { animation-delay: -2.1s; }
.media-q .live-shine { animation-delay: -3.5s; }
.media-bill .lt-a { top: 10%; left: 6%; right: auto; }
.media-bill .lt-b { top: 64%; right: 6%; animation-delay: -2s; }
.media-bill .lt-c { top: 64%; left: 6%; right: auto; }
.media-pos .lt-a { top: 10%; left: 6%; right: auto; }
.media-pos .lt-b { top: 62%; right: 6%; }
.media-pos .lt-c { top: 64%; left: 6%; }
.media-q .lt-a { top: 10%; left: 6%; right: auto; }
.media-q .lt-b { top: 12%; right: 6%; }
.media-q .lt-c { top: 64%; left: 6%; }
.lt-serve b { display: inline-block; min-width: 3.4ch; font-weight: 800; color: var(--lime); transition: opacity .25s, transform .25s; }
.lt-serve b.tick { opacity: 0; transform: translateY(-4px); }
.rec.rec-green { background: #8ee06a; animation-name: rec-green; }
@keyframes rec-green { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(142, 224, 106, .6); } 50% { opacity: .5; box-shadow: 0 0 0 5px rgba(142, 224, 106, 0); } }
.rec { display: inline-block; width: 8px; height: 8px; margin: 0 2px 0 3px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255, 77, 77, .7); animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 77, 77, .6); } 50% { opacity: .45; box-shadow: 0 0 0 5px rgba(255, 77, 77, 0); } }
.service-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; margin: -24px 0 var(--space-4); }
.service-top .num { padding-bottom: 3px; }
.service h3 { margin-bottom: var(--space-2); font-size: var(--fs-h3); }
.service p { margin-bottom: var(--space-4); color: var(--body); font-size: var(--fs-sm); line-height: 1.7; }

/* Network solutions */
.solutions { background: var(--white); }
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.sol { display: flex; flex-direction: column; padding: 22px 22px 20px; }
.sol-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-4); }
.sol .icon { border: 0; }
.sol h3 { margin-bottom: var(--space-2); font-size: var(--fs-h3); }
.sol > p { margin-bottom: var(--space-4); color: var(--body); font-size: var(--fs-sm); line-height: 1.7; }
.sol-list { display: grid; gap: 7px; margin-bottom: var(--space-5); font-size: var(--fs-sm); color: var(--ink); }
.sol-list li { position: relative; padding-left: 22px; line-height: 1.5; }
.sol-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 15px; height: 15px; border-radius: 50%; background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='%23075238' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.sol-brands { display: flex; flex-wrap: wrap; gap: 6px; }
.sol-brands li { padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--bg-soft); font-size: var(--fs-xs); font-weight: 600; }
.sol-brands li::before { display: none; }

/* DSN Fiber */
.fiber { border-top: 1px solid var(--line); background: var(--white); }
.fiber-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-12); align-items: center; }
.fiber-media { position: relative; overflow: hidden; justify-self: center; width: 100%; max-width: 420px; aspect-ratio: 681 / 886; border-radius: var(--radius-lg); background: var(--green-900); box-shadow: 0 26px 52px -28px rgba(6, 38, 27, .45); }
.fiber-media img { width: 100%; height: 100%; object-fit: cover; }
.fiber-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(6, 38, 27, 0) 45%, rgba(6, 38, 27, .6)); }
.fiber-badge { position: absolute; z-index: 1; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: var(--radius); background: rgba(255, 255, 255, .96); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .45); }
.fiber-badge-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--green-800); color: var(--lime); }
.fiber-badge-ic svg { width: 17px; height: 17px; }
.fiber-badge small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fiber-badge strong { display: block; font-size: var(--fs-sm); color: var(--ink); }

.fiber-brand { display: flex; align-items: center; gap: 8px; width: fit-content; margin-bottom: var(--space-5); font-size: 21px; font-weight: 800; letter-spacing: -.03em; color: var(--green-900); }
.fiber-brand b { font-weight: 800; color: #5b9551; }
.fiber-icon { flex: none; width: 36px; height: 36px; overflow: visible; }
.fiber-icon .fo-glow circle { animation: fo-pulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.fiber-icon .fo-glow circle:nth-child(2) { animation-delay: .5s; }
.fiber-icon .fo-glow circle:nth-child(3) { animation-delay: 1s; }
.fiber-icon .fo-glow circle:nth-child(4) { animation-delay: 1.5s; }
.fiber-icon .fo-glow circle:nth-child(5) { animation-delay: 2s; }
@keyframes fo-pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.fiber-pill { margin-left: 4px; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--lime-soft); color: var(--green-800); font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .02em; }
.fiber-copy .title { margin-bottom: var(--space-4); }
.fiber-lead { max-width: 520px; margin-bottom: var(--space-6); color: var(--body); font-size: var(--fs-base); line-height: 1.75; }
.fiber-features { display: grid; gap: var(--space-4); }
.fiber-features li { display: flex; align-items: flex-start; gap: var(--space-3); }
.ff-ic { width: 36px; height: 36px; background: var(--lime-soft); color: var(--green-800); }
.ff-ic svg { width: 18px; height: 18px; stroke-width: 1.9; }
.fiber-features strong { display: block; margin-bottom: 1px; font-size: var(--fs-base); }
.fiber-features p { color: var(--body); font-size: var(--fs-sm); line-height: 1.6; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); margin-top: var(--space-12); }
.plan { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); transition: border-color var(--ease), background-color var(--ease), transform var(--ease); }
.plan:hover { transform: translateY(-3px); border-color: #c9dcc6; background: var(--white); }
.plan-ic { width: 40px; height: 40px; margin-bottom: var(--space-4); background: var(--green-800); color: var(--lime); }
.plan-ic svg { width: 20px; height: 20px; }
.plan h3 { margin-bottom: 6px; font-size: var(--fs-h3); }
.plan p { color: var(--body); font-size: var(--fs-sm); line-height: 1.7; }

.fiber-cta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); margin-top: var(--space-4); padding: 20px 24px; border: 1px solid #d6e9bd; border-radius: var(--radius); background: var(--lime-soft); }
.fiber-cta h3 { margin-bottom: 4px; font-size: var(--fs-lg); }
.fiber-cta p { max-width: 540px; color: var(--body); font-size: var(--fs-sm); line-height: 1.6; }
.fiber-cta-actions { display: flex; flex-wrap: wrap; flex: none; gap: 10px; }

/* Why us */
.why { position: relative; overflow: hidden; background: var(--green-900); color: var(--white); }
.why::before { content: ""; position: absolute; right: -160px; top: -200px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(76, 130, 83, .45), transparent 70%); pointer-events: none; }
.why .wrap { position: relative; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.why-card { padding: 22px 20px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); background: rgba(255, 255, 255, .04); transition: background-color var(--ease), border-color var(--ease); }
.why-card:hover { border-color: rgba(199, 231, 149, .35); background: rgba(255, 255, 255, .07); }
.why-ic { width: 40px; height: 40px; margin-bottom: var(--space-4); background: var(--lime); color: var(--green-900); }
.why-ic svg { width: 20px; height: 20px; stroke-width: 1.9; }
.why-card h3 { margin-bottom: 6px; font-size: var(--fs-h3); }
.why-card p { color: var(--on-dark); font-size: var(--fs-sm); line-height: 1.7; }

/* Approach */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.steps li { position: relative; padding-top: var(--space-5); border-top: 2px solid var(--line); }
.steps li::before { content: ""; position: absolute; left: 0; top: -2px; width: 44px; height: 2px; background: var(--green-800); }
.step-num { display: block; margin-bottom: var(--space-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; line-height: 1; color: var(--green-500); }
.steps h3 { margin-bottom: 6px; font-size: var(--fs-h3); }
.steps p { max-width: 30ch; color: var(--body); font-size: var(--fs-sm); line-height: 1.7; }

/* Contact */
.contact { padding-top: 0; }
.contact-panel { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-12); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); color: var(--white);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(76, 130, 83, .55), transparent 65%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--green-800); }
.contact-intro .title { margin-bottom: var(--space-3); }
.contact-intro > p:not(.eyebrow) { max-width: 460px; margin-bottom: var(--space-6); color: #c6d8cd; font-size: var(--fs-base); line-height: 1.7; }
.contact-list { display: grid; gap: 10px; }
.contact-item { display: flex; align-items: flex-start; gap: var(--space-3); padding: 14px 16px; border-radius: var(--radius); background: var(--white); color: var(--ink); transition: transform var(--ease), box-shadow var(--ease); }
.contact-item:hover { transform: translateX(3px); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .45); }
div.contact-item:hover { transform: none; box-shadow: none; }
.contact-item strong a:hover { color: var(--green-800); text-decoration: underline; text-underline-offset: 3px; }
.contact-sep { margin: 0 4px; color: var(--muted); font-weight: 400; }
.contact-ic { width: 36px; height: 36px; background: var(--lime-soft); color: var(--green-800); }
.contact-ic svg { width: 18px; height: 18px; }
.contact-item small { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-item strong { display: block; font-size: var(--fs-base); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.contact-item em { display: block; margin-top: 4px; font-style: normal; font-size: var(--fs-xs); font-weight: 600; color: var(--green-800); }

/* Footer */
.footer { padding-top: var(--space-12); background: var(--green-950); color: #a9bfb2; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1.5fr; gap: var(--space-8); padding-bottom: var(--space-10); }
.footer-brand img { width: 180px; margin-bottom: var(--space-4); }
.footer-brand p { max-width: 280px; line-height: 1.7; }
.footer-brand .ndpc-badge { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: var(--space-5); padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .04); transition: border-color var(--ease), background var(--ease); }
.footer-brand .ndpc-badge:hover { border-color: rgba(200, 230, 150, .5); background: rgba(255, 255, 255, .07); }
.footer-brand .ndpc-badge img { width: 84px; flex: none; height: auto; margin: 0; }
.footer-brand .ndpc-badge span { display: block; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .16); font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; color: var(--white); }
.footer-brand .ndpc-badge small { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.footer h4 { margin-bottom: var(--space-3); font-size: var(--fs-h4); letter-spacing: 0; color: var(--white); }
.footer ul { display: grid; gap: var(--space-2); }
.footer a { transition: color var(--ease); }
.footer a:hover { color: var(--lime); }
.footer-contact li { line-height: 1.55; }
.footer-contact a[href^="tel:"] { white-space: nowrap; }
.footer-office { display: block; margin-top: 4px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); padding: 18px 0 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-xs); color: #8aa597; }

/* 6. UTILITIES -------------------------------------------------------- */
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 7. RESPONSIVE ------------------------------------------------------- */
/* Small laptops */
@media (max-width: 1200px) {
  .nav { gap: 20px; }
}
@media (max-width: 1120px) {
  .header-cta { display: none; }
}

/* Tablets (landscape) */
@media (max-width: 1024px) {
  :root { --grid-gap: 16px; }
  .service-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-8); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .fiber-grid { gap: var(--space-8); }
  .partner-grid { grid-template-columns: repeat(5, 1fr); }
  .partner { height: 84px; padding: 16px; }
}

/* Tablets (portrait) & large phones — mobile navigation */
@media (max-width: 860px) {
  .member { flex-basis: calc((100% - 2 * var(--grid-gap)) / 3); }
  :root { --header-h: 62px; --gutter: 20px; }
  .topbar-loc, .topbar-note { display: none; }
  .brand img { width: 172px; }
  .menu-toggle { display: flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 4px var(--gutter) 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(6, 38, 27, .35); font-size: var(--fs-md);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .menu-open .nav { visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav-mobile-cta { display: inline-flex; margin-top: var(--space-4); }

  .hero-inner, .about-grid, .contact-panel, .fiber-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: var(--space-8); }
  .hero-visual { justify-self: center; max-width: 400px; }
  .about-grid { gap: var(--space-5); }
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-8); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .contact-panel { gap: var(--space-8); }
  .fiber-media { max-width: 380px; }
  .plans { grid-template-columns: 1fr; margin-top: var(--space-8); }
  .fiber-cta { flex-direction: column; align-items: flex-start; }
  .partner { height: 76px; padding: 14px; }
  .partner img { max-height: 30px; }
  .partner img.logo-hytera { max-height: 42px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Small tablets / large phones */
@media (max-width: 680px) {
  .service-grid-3 { grid-template-columns: 1fr; }
  .sol-grid { grid-template-columns: 1fr; }
    }

/* Phones */
@media (max-width: 560px) {
  .member { flex-basis: calc((100% - var(--grid-gap)) / 2); max-width: 155px; }
  :root { --gutter: 16px; --fs-h1: clamp(32px, 9.4vw, 40px); --fs-h2: clamp(24px, 6.8vw, 29px); }
  .topbar-contact { gap: 2px 16px; padding: 6px 0; font-size: 11.5px; }
  .brand img { width: 150px; }
  .lead { font-size: var(--fs-base); }
  .hero-actions .btn { flex: 1 1 100%; }
  .chip { gap: 6px; padding: 5px 10px 5px 5px; font-size: var(--fs-2xs); }
  .chip-ic { width: 22px; height: 22px; }
  .chip-ic svg { width: 12px; height: 12px; }
  .pillar { padding: 14px 12px 16px; font-size: var(--fs-sm); }
  .service-grid, .service-grid-3, .why-grid, .steps { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; gap: var(--space-2); }
  .about-values div { display: flex; align-items: center; gap: var(--space-3); padding: 12px 14px; }
  .about-values span { margin: 0; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .partner { height: 76px; padding: 14px; }
  .partner img { max-height: 30px; }
  .partner img.logo-hytera { max-height: 42px; }
  .fiber-brand { flex-wrap: wrap; font-size: 19px; }
  .fiber-media { max-width: none; }
  .fiber-badge { left: 12px; bottom: 12px; }
  .fiber-cta { padding: 18px; }
  .fiber-cta-actions, .fiber-cta-actions .btn { width: 100%; }
  .contact-panel { padding: 26px 18px; border-radius: var(--radius); }
  .contact-item { padding: 12px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; }
}

/* 8. MOTION PREFERENCES ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
