:root {
  --ink: #0b1220;
  --navy: #121a2e;
  --panel: #18233c;
  --line: rgba(240, 178, 122, 0.28);
  --copper: #e08a4a;
  --copper-2: #c96a2c;
  --aqua: #5eead4;
  --text: #f4efe6;
  --muted: #b7c0d4;
  --danger: #f2a8a0;
  --radius: 16px;
  --shadow: 0 22px 50px rgba(4, 8, 18, 0.45);
  --dock: calc(72px + env(safe-area-inset-bottom, 0px));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-padding-top: 88px;
  scroll-padding-bottom: var(--dock);
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  font-family: "Tajawal", system-ui, sans-serif;
  background:
    radial-gradient(720px 380px at 90% -8%, rgba(224, 138, 74, 0.18), transparent 55%),
    radial-gradient(640px 420px at 0% 20%, rgba(94, 234, 212, 0.08), transparent 50%),
    var(--ink);
  color: var(--text);
  line-height: 1.75;
  padding-bottom: calc(var(--dock) + 24px);
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--aqua); }

.notice {
  margin: 0;
  text-align: center;
  font-size: 0.84rem;
  background: #1c2744;
  color: var(--muted);
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
  border-bottom: 1px solid var(--line);
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 12px 5vw;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #10182b;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  min-width: 0;
}
.brand span { min-width: 0; }
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}
.brand-mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 46%, var(--aqua) 46% 54%, transparent 54%),
    linear-gradient(180deg, var(--copper), #7a3a18);
}

.nav {
  display: none;
  gap: 18px;
  flex-wrap: wrap;
}
.nav a { color: var(--muted); font-weight: 700; }
.nav a:hover { color: var(--copper); }

.top-call {
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--copper);
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px 5vw 16px;
  min-width: 0;
}

.kicker {
  color: var(--aqua);
  letter-spacing: 0.06em;
  font-weight: 800;
  margin: 0 0 8px;
}

h1 {
  font-size: clamp(1.55rem, 6.4vw, 2.8rem);
  line-height: 1.35;
  margin: 0 0 12px;
  font-weight: 800;
}

.lead {
  color: var(--muted);
  max-width: 38rem;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0;
}
.hero-actions .btn { width: 100%; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  touch-action: manipulation;
}
.hero-actions .btn { flex: 1 1 150px; }
.btn-copper {
  background: linear-gradient(180deg, var(--copper), var(--copper-2));
  color: #1a1008;
}
.btn-copper:hover { color: #1a1008; filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}
.stats b { display: block; font-size: 1.35rem; color: var(--copper); }
.stats span { color: var(--muted); font-size: 0.82rem; }

.fiber-board {
  background: linear-gradient(165deg, #1c2a48, #121a2e);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 0;
}
.fiber-board p { margin: 8px 0 0; color: var(--muted); }
.cables { width: 100%; height: auto; }
.cable {
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 12 10;
  animation: flow 2.4s linear infinite;
}
.c1 { stroke: #e08a4a; }
.c2 { stroke: #5eead4; }
.c3 { stroke: #7ea2ff; }
@keyframes flow {
  to { stroke-dashoffset: -88; }
}

.sec-head { padding: 8px 5vw 0; min-width: 0; }
.sec-head h2 { margin: 0 0 6px; font-size: 1.45rem; }
.sec-head p { margin: 0; color: var(--muted); }

.lab {
  margin: 18px 5vw 28px;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 20px 16px 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.lab .sec-head { padding: 0 4px 12px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.steps li {
  text-align: center;
  padding: 10px 4px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
}
.steps li.is-active {
  background: var(--copper);
  color: #1a1008;
}

.wizard { max-width: 720px; margin: 0 auto; min-width: 0; width: 100%; }

fieldset {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.panel {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  min-inline-size: 0;
  max-width: 100%;
}
.panel[hidden] { display: none !important; }
.panel legend {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 12px;
  padding: 0;
  float: none;
  width: 100%;
}
.panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  margin-bottom: 12px;
  min-width: 0;
}
.panel input, .panel select {
  width: 100%;
  max-width: 100%;
  background: #0e1628;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 16px;
}
.hint, .summary { color: var(--muted); font-size: 0.92rem; }
.form-msg { color: var(--danger); font-weight: 700; }
.row-btns {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin-top: 8px;
}
.row-btns .btn { width: 100%; }

.providers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.prov {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  min-width: 0;
}
.prov input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.prov span { display: block; font-weight: 800; }
.prov small { color: var(--muted); }
.prov:has(input:checked),
.prov.is-checked {
  border-color: var(--aqua);
  box-shadow: 0 0 0 1px var(--aqua);
}

.plans { padding-bottom: 10px; min-width: 0; }
.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 20px 5vw 28px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}
.card h3 { margin: 0 0 8px; color: var(--aqua); }
.card p { margin: 0; color: var(--muted); }
.featured {
  background: linear-gradient(165deg, #243456, #18233c);
  border-color: var(--copper);
}

.timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 20px 5vw 40px;
}
.timeline li {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 16px;
  border-inline-start: 3px solid var(--aqua);
  min-width: 0;
}
.timeline span {
  color: var(--copper);
  font-weight: 800;
}
.timeline h3 { margin: 6px 0; font-size: 1.05rem; }
.timeline p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.foot {
  padding: 18px 5vw 24px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.foot details { margin-bottom: 10px; }
.foot summary { cursor: pointer; color: var(--copper); font-weight: 800; }

.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: auto;
  max-width: calc(100% - 24px);
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  background: #1c2744;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  z-index: 40;
  box-shadow: var(--shadow);
}
.dock a {
  text-align: center;
  padding: 12px 8px;
  color: var(--text);
  font-weight: 800;
  border-inline-end: 1px solid var(--line);
}
.dock a:last-child {
  border: 0;
  background: var(--copper);
  color: #1a1008;
}

@media (min-width: 480px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; flex: 1 1 150px; }
  .row-btns { flex-direction: row; flex-wrap: wrap; }
  .row-btns .btn { width: auto; flex: 1 1 140px; }
}

@media (min-width: 640px) {
  .providers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { font-size: 0.92rem; padding: 10px 8px; }
}

@media (min-width: 901px) {
  .nav { display: flex; margin-inline-start: auto; }
  .top { flex-wrap: nowrap; padding: 12px 6vw; }
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 36px;
    padding: 48px 6vw 20px;
  }
  .hero-actions .btn { flex: 0 1 auto; }
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px 6vw 28px; }
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 20px 6vw 40px; }
  .sec-head { padding: 8px 6vw 0; }
  .lab { margin: 18px 6vw 36px; }
}
