:root {
  --navy: #081c4a;
  --blue: #0f4cff;
  --blue-soft: #2e8bff;
  --blue-pale: #eef5ff;
  --gray: #f7f9fc;
  --line: #d9e2ec;
  --text: #10223d;
  --muted: #5c6b82;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --border: 1px solid rgba(8, 28, 74, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: var(--border);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.brand img {
  width: auto;
  max-width: 154px;
  max-height: 58px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

nav a:hover {
  color: var(--blue);
}

.header-action,
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.header-action {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(15, 76, 255, 0.18);
  background: var(--white);
  color: var(--blue);
}

.button {
  padding: 0 24px;
  border: 0;
  cursor: pointer;
}

.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-soft));
  color: var(--white);
  box-shadow: 0 18px 36px rgba(15, 76, 255, 0.18);
}

.secondary {
  border: 1px solid rgba(15, 76, 255, 0.28);
  background: var(--white);
  color: var(--blue);
}

.button:hover,
.header-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(8, 28, 74, 0.1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
  min-height: min(760px, calc(100vh - 78px));
  padding: clamp(50px, 6vw, 86px) clamp(18px, 5vw, 72px) clamp(44px, 5vw, 64px);
  background:
    radial-gradient(circle at 78% 20%, rgba(46, 139, 255, 0.16), transparent 30%),
    radial-gradient(circle at 10% 85%, rgba(15, 76, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(8, 28, 74, 0.13) 1px, transparent 1px);
  background-position: 24px 24px;
  background-size: 24px 24px;
  content: "";
  opacity: 0.24;
  mask-image: linear-gradient(90deg, transparent 0%, #000 58%, transparent 100%);
}

.watermark {
  position: absolute;
  right: clamp(-30px, 2vw, 40px);
  top: 68px;
  color: var(--navy);
  font-size: clamp(18rem, 38vw, 36rem);
  font-weight: 700;
  line-height: 1;
  opacity: 0.045;
  pointer-events: none;
}

.hero-copy,
.hero-visual,
.section-heading,
.router-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--navy);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.65rem, 6vw, 5.3rem);
  line-height: 1.02;
  font-weight: 700;
}

h1 span,
h2 span {
  color: var(--blue);
}

h2 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
}

h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
}

.lead {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.device-shell {
  width: min(100%, 680px);
  padding: 14px;
  border: var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 90px rgba(8, 28, 74, 0.12);
  backdrop-filter: blur(18px);
}

.device-top {
  display: flex;
  gap: 7px;
  padding: 8px 8px 14px;
}

.device-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9d6e8;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric,
.chart,
.orders {
  border: var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.metric {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.metric.large {
  grid-column: span 2;
}

.metric small,
.phone-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.metric strong {
  color: var(--navy);
  font-size: 1.75rem;
}

.metric em {
  color: #079455;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 700;
}

.chart {
  grid-column: span 2;
  display: flex;
  height: 150px;
  align-items: end;
  gap: 10px;
  padding: 18px;
}

.chart span {
  flex: 1;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--blue-soft), var(--blue));
}

.orders {
  grid-column: span 4;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.orders div {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
}

.orders span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.orders p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.orders strong {
  color: var(--navy);
}

.phone-card {
  position: absolute;
  right: 0;
  bottom: 12%;
  display: grid;
  gap: 3px;
  max-width: 230px;
  padding: 18px;
  border: var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 70px rgba(8, 28, 74, 0.14);
}

.phone-card strong {
  color: var(--navy);
}

.benefits,
.segments,
.features,
.apps,
.router-section,
.cta {
  padding: clamp(60px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.section-heading {
  margin-bottom: 30px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.benefit-grid article,
.router-card,
.feature-list article {
  border: var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.benefit-grid article {
  padding: clamp(24px, 3vw, 34px);
}

.icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.benefit-grid p,
.router-copy p,
.feature-list p,
footer p {
  color: var(--muted);
}

.segments {
  background: var(--gray);
}

.segment-grid,
.app-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.segment-grid span,
.app-grid span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}

.segment-grid span {
  padding: 0 18px;
}

.features {
  background: var(--white);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-list article {
  overflow: hidden;
}

.product-card {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(15, 76, 255, 0.22);
  box-shadow: 0 20px 46px rgba(8, 28, 74, 0.1);
  transform: translateY(-2px);
  outline: none;
}

.feature-list img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--blue-pale);
}

.feature-list div {
  padding: 26px;
}

.product-link,
.text-link {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  padding: 0;
  text-align: left;
}

.product-link {
  color: var(--navy);
}

.product-link:hover,
.text-link:hover {
  color: var(--blue);
}

.apps {
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at 20% 20%, rgba(15, 76, 255, 0.18), transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(46, 139, 255, 0.16), transparent 28%);
}

.app-grid span {
  padding: 0 18px;
  box-shadow: var(--shadow);
}

.router-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 84px);
  background: linear-gradient(180deg, var(--gray), var(--white));
}

.router-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

input,
select {
  min-height: 54px;
  width: 100%;
  border: 1px solid rgba(8, 28, 74, 0.14);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 0 14px;
}

input:focus,
select:focus {
  border-color: rgba(15, 76, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 76, 255, 0.08);
  outline: none;
}

.result-box,
.router-card button,
.quick-links {
  grid-column: 1 / -1;
}

.result-box {
  min-height: 106px;
  padding: 18px;
  border: 1px solid rgba(15, 76, 255, 0.14);
  border-radius: 18px;
  background: var(--blue-pale);
}

.result-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 1.04rem;
}

.result-box p {
  margin-bottom: 0;
  color: var(--muted);
}

.router-card button {
  width: 100%;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  color: var(--blue);
  font-weight: 700;
}

.quick-links .text-link {
  min-height: auto;
  color: var(--blue);
}

.cta {
  text-align: center;
}

.cta div {
  max-width: 760px;
  margin: 0 auto;
}

.cta .button {
  margin-top: 10px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 5vw, 72px);
  border-top: var(--border);
  background: var(--white);
}

footer img {
  width: auto;
  max-width: 150px;
  max-height: 58px;
}

footer p {
  max-width: 650px;
  margin-bottom: 0;
  text-align: right;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 18px;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 74, 0.3);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 520px);
  max-height: min(92vh, 720px);
  gap: 16px;
  overflow: auto;
  padding: clamp(24px, 5vw, 36px);
  border: var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 28px 90px rgba(8, 28, 74, 0.18);
}

.modal-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 5vw, 2.45rem);
}

.modal-copy {
  margin-bottom: 4px;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(8, 28, 74, 0.1);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-close:hover {
  background: var(--blue-pale);
  color: var(--blue);
}

body.modal-open {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero,
  .router-section {
    grid-template-columns: 1fr;
  }

  .benefit-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .phone-card {
    position: static;
    justify-self: end;
    margin-top: -30px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 70px;
  }

  .brand img {
    max-width: 112px;
    max-height: 48px;
  }

  .header-action {
    display: none;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    max-width: 340px;
    font-size: 2.3rem;
  }

  .hero-copy,
  .hero-visual,
  .device-shell,
  .lead {
    max-width: 340px;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .dashboard-grid,
  .router-card {
    grid-template-columns: 1fr;
  }

  .metric.large,
  .chart,
  .orders {
    grid-column: auto;
  }

  .chart {
    height: 118px;
  }

  .feature-list img {
    height: 210px;
  }

  footer {
    display: grid;
  }

  footer p {
    text-align: left;
  }
}
