:root {
  --bg: #f3f7fb;
  --bg-elevated: #ffffff;
  --bg-soft: #e8f1f8;
  --bg-hero: linear-gradient(135deg, #e8f4fc 0%, #f7fafc 45%, #eef8f4 100%);
  --ink: #1c2b3a;
  --ink-soft: #4a5d70;
  --muted: #6b7c8d;
  --line: #d5e2ec;
  --primary: #0a8bb8;
  --primary-deep: #076f94;
  --primary-soft: #d8f0f8;
  --accent: #1d9a74;
  --accent-soft: #ddf5eb;
  --warn: #c47b16;
  --danger: #c23b3b;
  --shadow: 0 12px 40px rgba(28, 43, 58, 0.08);
  --shadow-sm: 0 4px 16px rgba(28, 43, 58, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Poppins", "DM Sans", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(10, 139, 184, 0.12), transparent 60%),
    radial-gradient(900px 400px at 90% 0%, rgba(29, 154, 116, 0.10), transparent 55%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-deep); text-decoration: none; }
a:hover { color: var(--primary); }

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 247, 251, 0.88);
  border-bottom: 1px solid rgba(213, 226, 236, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img { width: 40px; height: 40px; object-fit: contain; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0.2rem;
}

.nav-link:hover,
.nav-link.is-active { color: var(--primary-deep); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 139, 184, 0.25);
}
.btn-primary:hover { background: var(--primary-deep); color: #fff; }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}

/* Hero */
.hero {
  padding: 4.75rem 0 3.75rem;
  background:
    radial-gradient(900px 420px at 75% 55%, rgba(64, 196, 230, 0.16), transparent 60%),
    radial-gradient(700px 380px at 20% 30%, rgba(29, 154, 116, 0.10), transparent 55%),
    linear-gradient(160deg, #eef7fc 0%, #f7fbfd 42%, #eef6f2 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 72vh, 680px);
  display: flex;
  align-items: center;
}

.hero-fibre {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0.92) 0%, rgba(247, 251, 253, 0.72) 38%, rgba(247, 251, 253, 0.18) 68%, rgba(247, 251, 253, 0.35) 100%),
    linear-gradient(180deg, rgba(243, 247, 251, 0.2) 0%, transparent 30%, transparent 70%, rgba(243, 247, 251, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: rgba(216, 240, 248, 0.9);
  border: 1px solid rgba(10, 139, 184, 0.18);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  backdrop-filter: blur(6px);
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(29, 154, 116, 0.18);
}

.hero h1,
.page-hero h1,
.section-head h2,
.card h3,
.form-card h2,
.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.55rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  max-width: 18ch;
  color: var(--ink);
}

.hero h1 .hero-accent {
  display: inline;
  background: linear-gradient(105deg, #0a4f7c 0%, #0d5f96 50%, #1270ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead,
.page-hero p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 48ch;
  margin: 0 0 1.75rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  max-width: 560px;
}

.stat {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(213, 226, 236, 0.9);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding: 3.5rem 0 3rem;
  }
  .hero-wash {
    background:
      linear-gradient(180deg, rgba(247, 251, 253, 0.88) 0%, rgba(247, 251, 253, 0.55) 45%, rgba(247, 251, 253, 0.75) 100%);
  }
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--primary-deep);
  font-weight: 700;
}

.stat span { color: var(--muted); font-size: 0.88rem; }

.page-hero {
  padding: 3rem 0 2rem;
  background: var(--bg-hero);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { max-width: none; }

/* Sections */
.section { padding: 4rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 2rem; max-width: 56ch; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--ink-soft); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.card p { margin: 0; color: var(--ink-soft); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.feature-icon img {
  width: 48px;
  height: 48px;
  display: block;
}

.captcha-box {
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

/* Packages */
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
}

.package-card .price {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
}

.package-card .price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.package-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.package-card li {
  padding: 0.35rem 0;
  color: var(--ink-soft);
  border-bottom: 1px solid #eef3f7;
}

.package-card li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-popular {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-soft);
  color: #0f6b4f;
}

.package-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(10, 139, 184, 0.2), var(--shadow);
}

/* Clients */
.client-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.client-cloud a,
.client-cloud span {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.client-cloud a:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
}

/* Forms */
.form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="file"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfdff;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
}

textarea { min-height: 140px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(10, 139, 184, 0.25);
  border-color: var(--primary);
}

.hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.check-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.75rem 0;
}

.check-row input { margin-top: 0.25rem; width: auto; }
.check-row label { font-weight: 500; margin: 0; }

.field-error { color: var(--danger); font-size: 0.82rem; margin-top: 0.3rem; }

/* Signup wizard */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #e7eef5;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.step-pill.is-active {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.step-pill.is-done {
  background: var(--accent-soft);
  color: #0f6b4f;
}

.wizard-panel[hidden] { display: none !important; }

.pkg-option {
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.75rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.pkg-option:hover { border-color: var(--primary); }
.pkg-option.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(10, 139, 184, 0.18);
}

.pkg-option .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.pkg-meta { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

.rica-box {
  background: #fff8eb;
  border: 1px solid #f0d7a4;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

.rica-box h4 { margin: 0 0 0.4rem; color: #8a5a0b; }
.rica-box p, .rica-box ul { margin: 0; color: #6d4a14; font-size: 0.92rem; }
.rica-box ul { padding-left: 1.1rem; margin-top: 0.4rem; }

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.upload-group {
  border: 1px dashed #b9cddc;
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: #f8fbfd;
  margin-top: 0.75rem;
}

/* Contact strip */
.contact-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-tiles .card h3 { font-size: 1rem; color: var(--muted); font-weight: 600; }
.contact-tiles .card p,
.contact-tiles .card a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

/* Flash */
.flash {
  padding: 0.95rem 0;
  font-weight: 600;
  position: sticky;
  top: 72px;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}
.flash:focus { outline: none; }
.flash-success { background: var(--accent-soft); color: #0f6b4f; }
.flash-error { background: #fde8e8; color: #8f1f1f; }

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #173247;
  color: #d7e4ef;
  padding: 3rem 0 1.5rem;
}

.site-footer a { color: #d7e4ef; }
.site-footer a:hover { color: #fff; }
.brand-footer span { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-blurb { color: #a8bdd0; max-width: 28ch; }
.site-footer h4 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 0.95rem;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #8fa7bc;
  font-size: 0.9rem;
}

.prose {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 760px;
}
.prose h2 { margin-top: 1.75rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ol { padding-left: 1.25rem; }
.prose ol ol { margin-top: 0.5rem; margin-bottom: 0.5rem; list-style-type: lower-alpha; }
.prose li + li { margin-top: 0.4rem; }

.timeline {
  display: grid;
  gap: 1rem;
}
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: start;
}
.timeline-year {
  font-weight: 700;
  color: var(--primary-deep);
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .contact-tiles, .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr; max-width: 280px; }
  .hero::after { opacity: 0.08; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.35rem;
  }
  .site-nav.is-open { display: flex; }
  .form-grid, .grid-2, .grid-3, .grid-4, .contact-tiles, .footer-grid, .timeline-item {
    grid-template-columns: 1fr;
  }
  .pkg-option .row { flex-direction: column; }
}
