@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --navy-950: #020817;
  --navy-900: #061126;
  --navy-800: #0a1d3d;
  --blue: #14B1E7;
  --cyan: #A6BE4B;
  --cyan-soft: #e8f3be;
  --ink: #10213f;
  --muted: #61708b;
  --line: #dce5f1;
  --surface: #f4f8fc;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(6, 23, 52, .12);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0b7fa5;
  font-family: "Manrope", sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--cyan); }
h1, h2, h3 { margin: 0; color: var(--navy-900); font-family: "Manrope", sans-serif; line-height: 1.12; }
h1 { font-size: clamp(2.9rem, 6.6vw, 6.4rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.6rem); letter-spacing: -.045em; }
h3 { font-size: 1.23rem; letter-spacing: -.02em; }
p { margin: 0; }
.lead { max-width: 720px; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.7; }
.section { padding: 112px 0; }
.section-sm { padding: 78px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.section-head > div:first-child { max-width: 760px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { max-width: 520px; color: var(--muted); }

/* Header */
.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background .25s, box-shadow .25s;
}
.site-header.scrolled { background: rgba(2, 8, 23, .94); box-shadow: 0 8px 30px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo-uploaded { display: block; width: 290px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a { position: relative; color: rgba(255,255,255,.76); font-size: .91rem; font-weight: 600; }
.nav-links > a:hover, .nav-links > a.active { color: var(--white); }
.nav-links > a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -29px; height: 2px; background: var(--cyan); }
.nav-cta { padding: 11px 17px; color: var(--navy-950) !important; background: var(--cyan); border-radius: 8px; }
.nav-cta::after { display: none; }
.menu-btn { display: none; width: 42px; height: 42px; place-items: center; color: white; background: transparent; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; content: ""; transition: .2s; }
.menu-btn span::before { transform: translateY(-6px); }
.menu-btn span::after { transform: translateY(4px); }

/* Hero */
.hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; color: white; background: var(--navy-950); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,8,23,.97) 0%, rgba(2,8,23,.83) 34%, rgba(2,8,23,.18) 70%, rgba(2,8,23,.3) 100%), url('assets/mainberg-network.png') center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, rgba(2,8,23,.95)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(260px, .55fr); gap: 80px; align-items: end; padding: 156px 0 92px; }
.hero .eyebrow { color: var(--cyan-soft); }
.hero h1 { max-width: 820px; margin: 20px 0 24px; color: white; }
.hero h1 span { color: var(--cyan); }
.hero-copy { max-width: 690px; color: #becce0; font-size: 1.14rem; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }
.btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 0 21px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--navy-950); background: var(--cyan); box-shadow: 0 12px 30px rgba(166,190,75,.22); }
.btn-secondary { color: white; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }
.arrow { font-size: 1.16em; }
.hero-card { padding: 26px; background: rgba(6,17,38,.72); border: 1px solid rgba(166,190,75,.38); border-radius: var(--radius); backdrop-filter: blur(14px); }
.hero-card .mini-label { color: var(--cyan); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pulse-row { display: flex; align-items: center; gap: 9px; margin: 12px 0 24px; color: #d4e4f5; font-size: .9rem; }
.pulse { width: 8px; height: 8px; background: #57ef9b; border-radius: 50%; box-shadow: 0 0 0 6px rgba(87,239,155,.1); }
.metric { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.11); }
.metric strong { color: white; font-family: "Manrope"; font-size: 1.15rem; }
.metric span { color: #8fa4be; font-size: .85rem; text-align: right; }

/* Cards and grids */
.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 84px; align-items: start; }
.intro-grid .big-copy { color: var(--ink); font-size: clamp(1.4rem, 2.3vw, 2.15rem); line-height: 1.45; letter-spacing: -.025em; }
.stats-line { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; border-top: 1px solid var(--line); }
.stat { padding: 26px 18px 0 0; }
.stat strong { display: block; color: var(--blue); font-family: "Manrope"; font-size: 2.1rem; line-height: 1; }
.stat span { color: var(--muted); font-size: .84rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card { position: relative; min-height: 460px; padding: 38px; overflow: hidden; color: white; background: var(--navy-900); border-radius: var(--radius); }
.service-card::before { content: ""; position: absolute; width: 330px; height: 330px; right: -120px; top: -130px; border: 1px solid rgba(166,190,75,.3); border-radius: 50%; box-shadow: 0 0 0 52px rgba(166,190,75,.045), 0 0 0 104px rgba(166,190,75,.025); }
.service-card:nth-child(2) { background: #0c3974; }
.service-card .number { color: var(--cyan); font-family: "Manrope"; font-weight: 800; }
.service-card h3 { max-width: 390px; margin: 62px 0 16px; color: white; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.service-card p { max-width: 500px; color: #b9c9df; }
.check-list { display: grid; gap: 9px; padding: 0; margin: 25px 0 30px; list-style: none; }
.check-list li { display: flex; gap: 10px; color: #d4dfed; font-size: .92rem; }
.check-list li::before { content: "✓"; color: var(--cyan); font-weight: 800; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--cyan); font-weight: 700; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { min-height: 260px; padding: 31px 27px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.icon-box { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 56px; color: var(--blue); background: #e9f2ff; border-radius: 11px; font-family: "Manrope"; font-weight: 800; }
.feature h3 { margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: .94rem; }
.dark-section { color: white; background: var(--navy-950); }
.dark-section h2, .dark-section h3 { color: white; }
.ops-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.ops-panel { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.ops-item { padding: 28px; background: #08172e; border: 1px solid #142d50; border-radius: 12px; }
.ops-item strong { display: block; color: var(--cyan); font-family: "Manrope"; font-size: 1.55rem; }
.ops-item span { color: #8ea5c1; font-size: .87rem; }
.dark-section .lead { color: #9fb1c8; }
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; top: 18px; left: 5%; right: 5%; height: 1px; background: var(--line); }
.step { position: relative; padding: 54px 22px 0 0; }
.step::before { content: attr(data-step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; display: grid; place-items: center; color: white; background: var(--blue); border: 7px solid white; outline: 1px solid #b8cdf0; border-radius: 50%; font-size: .76rem; font-weight: 800; }
.step h3 { font-size: 1rem; }
.reach { position: relative; overflow: hidden; background: linear-gradient(120deg,#062353,#096ab2); }
.reach::after { content: ""; position: absolute; width: 680px; height: 680px; right: -200px; top: -350px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.03), 0 0 0 140px rgba(255,255,255,.025); }
.reach-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; color: white; }
.reach h2 { color: white; }
.reach p { color: #bfd5ed; }
.reach-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.reach-stat { padding: 28px; background: rgba(2,8,23,.2); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; backdrop-filter: blur(10px); }
.reach-stat strong { display: block; color: white; font-family: "Manrope"; font-size: 2.2rem; }
.reach-stat span { color: #bfddf5; }
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.trust span { padding: 14px 20px; color: #52647f; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; }
.cta-band { padding: 82px 0; color: white; background: var(--navy-900); }
.cta-grid { display: flex; justify-content: space-between; align-items: center; gap: 34px; }
.cta-band h2 { max-width: 710px; color: white; }

/* Inner pages */
.page-hero { padding: 176px 0 90px; color: white; background: linear-gradient(125deg, rgba(2,8,23,.97), rgba(5,36,77,.9)), url('assets/mainberg-network.png') center/cover; }
.page-hero .eyebrow { color: var(--cyan-soft); }
.page-hero h1 { max-width: 900px; margin: 18px 0 20px; color: white; font-size: clamp(2.8rem, 6vw, 5.4rem); }
.page-hero p { max-width: 760px; color: #b8c9dd; font-size: 1.12rem; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.story-grid .prose { display: grid; gap: 22px; color: var(--muted); }
.pop-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.pop-card { padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pop-card .city { margin-bottom: 8px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pop-card strong { font-family: "Manrope"; font-size: 1.6rem; }
.service-nav { position: sticky; z-index: 20; top: 82px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.service-nav .wrap { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; }
.service-nav a { white-space: nowrap; padding: 10px 16px; color: var(--muted); border-radius: 8px; font-weight: 700; }
.service-nav a:hover { color: var(--blue); background: #eaf3ff; }
.service-block { scroll-margin-top: 150px; }
.service-summary { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; margin-bottom: 52px; }
.service-summary p { color: var(--muted); font-size: 1.08rem; }
.details-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.detail-card { padding: 28px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.detail-card h3 { margin-bottom: 16px; }
.detail-card ul { display: grid; gap: 10px; padding: 0; margin: 0; color: var(--muted); list-style: none; }
.detail-card li { position: relative; padding-left: 18px; font-size: .94rem; }
.detail-card li::before { content: ""; position: absolute; width: 6px; height: 6px; left: 0; top: .64em; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 0 3px #dcf8ff; }
.detail-card.wide { grid-column: span 2; }
.service-zone { background: var(--surface); }
.audience { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.audience span { padding: 10px 15px; color: #224366; background: white; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.contact-list { display: grid; gap: 25px; margin-top: 38px; }
.contact-item { padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.contact-item span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-item a:hover { color: var(--blue); }
.form-card { padding: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card h2 { margin-bottom: 27px; font-size: 2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .87rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); background: white; border: 1px solid #cad7e6; border-radius: 8px; outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,177,231,.14); }
.form-note { margin-top: 14px; color: var(--muted); font-size: .82rem; }
.success { display: none; margin-top: 17px; padding: 13px 15px; color: #075c3c; background: #e5f9f0; border: 1px solid #b5ecd5; border-radius: 8px; }
.success.show { display: block; }
.form-error { display: none; margin-top: 17px; padding: 13px 15px; color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; font-size: .9rem; }
.form-error.show { display: block; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; pointer-events: none; }

/* Footer */
.site-footer { color: #9eb0c7; background: #020711; }
.footer-main { display: grid; grid-template-columns: 1.2fr .55fr 1fr; gap: 70px; padding: 68px 0 50px; }
.footer-main .brand { color: white; }
.footer-intro { max-width: 370px; margin-top: 19px; font-size: .91rem; }
.footer-title { margin-bottom: 17px; color: white; font-family: "Manrope"; font-size: .83rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a:hover { color: var(--cyan); }
.footer-address { font-style: normal; }
.footer-address a { display: inline-block; margin-top: 8px; color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding: 20px 0 28px; border-top: 1px solid #172237; font-size: .8rem; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .section { padding: 88px 0; }
  .menu-btn { display: grid; }
  .nav-links { position: fixed; inset: 82px 0 auto; display: grid; gap: 0; padding: 18px 20px 24px; background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.12); transform: translateY(-130%); transition: transform .25s; }
  .menu-open .nav-links { transform: none; }
  .nav-links > a { padding: 14px 0; }
  .nav-links > a.active::after { display: none; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 520px; }
  .intro-grid, .ops-grid, .reach-grid, .story-grid, .service-summary, .contact-layout { grid-template-columns: 1fr; gap: 46px; }
  .features { grid-template-columns: repeat(2,1fr); }
  .timeline { grid-template-columns: repeat(3,1fr); gap: 34px 0; }
  .timeline::before { display: none; }
  .details-grid { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .nav { min-height: 72px; }
  .brand-logo-uploaded { width: 230px; }
  .nav-links { inset-block-start: 72px; }
  .hero { min-height: 720px; }
  .hero-grid { padding: 128px 0 68px; }
  .hero-card { display: none; }
  h1 { font-size: 3rem; }
  .section-head, .cta-grid { display: grid; align-items: start; }
  .service-grid, .features, .ops-panel, .reach-stats, .pop-grid, .details-grid, .form-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding: 28px; }
  .service-card h3 { margin-top: 44px; }
  .feature { min-height: auto; }
  .icon-box { margin-bottom: 32px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .stats-line { grid-template-columns: 1fr; }
  .stat { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .detail-card.wide { grid-column: auto; }
  .form-card { padding: 25px 20px; }
  .field.full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 35px; }
  .footer-main > div:first-child { grid-column: auto; }
  .footer-bottom { display: grid; }
  .page-hero { padding: 145px 0 72px; }
  .service-nav { top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
