:root {
  --bg: #020617;
  --bg-soft: #02091b;
  --card: #020c22;
  --border: #1f2937;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.14);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --danger: #f97373;
  --radius: 1rem;
  --radius-pill: 62.4375rem;
  --maxw: 75rem;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3.75rem;
}

/* Header - Mobile First */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  position: sticky;
  top: 1rem;
  z-index: 20;
  backdrop-filter: blur(14px);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.logo-wrap img {
  height: 60px;
}

.logo-icon {
  display: none;
}

.logo-text-main {
  display: none;
}

.logo-text-sub {
  display: none;
}

.menu-wrap {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Hamburger Menu - Visible on Mobile */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 30;
  transition: transform 0.3s ease;
}

.hamburger-line {
  width: 1.75rem;
  height: 0.1875rem;
  background: var(--text-main);
  border-radius: 0.125rem;
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Nav - Mobile First (Hidden by default, shown when hamburger is active) */
.nav {
  display: none;
  order: 4;
  width: 100%;
  flex-direction: column;
  gap: 0;
  padding: 1rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  margin-top: 0.5rem;
}

.nav.active {
  display: flex;
}

.nav a {
  position: relative;
  padding: 0.875rem 1rem;
  text-decoration: none;
  text-align: left;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.nav a:hover {
  background-color: rgba(34, 211, 238, 0.1);
}

.nav a::after {
  display: none;
}

/* Language switcher - Mobile First */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.lang-select {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-main);
  padding: 0.375rem 1.75rem 0.375rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2322d3ee' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  min-width: 60px;
}

.lang-select:hover {
  border-color: var(--accent);
  background-color: rgba(15, 23, 42, 1);
}

.lang-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
}

.lang-select option {
  background: var(--bg-soft);
  color: var(--text-main);
  padding: 0.5rem;
}

/* Hero - Mobile First */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  margin-top: 2rem;
  margin-bottom: 6.25rem;
  align-items: center;
}

.hero-right {
  position: relative;
  order: -1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.badge .badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 62.4375rem;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.25);
  flex-shrink: 0;
}

.hero h1 {
  margin: 1.75rem 0 1.25rem;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 40rem;
  line-height: 1.8;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
}

.hero-list li::before {
  content: "✓";
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.125rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 62.4375rem;
  border: none;
  background: linear-gradient(90deg, #22d3ee, #38bdf8);
  color: #020617;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(8, 47, 73, 0.8);
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.hero-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-note strong {
  color: #e5e7eb;
  font-size: 1rem;
}

.hero-card {
  background: radial-gradient(
      circle at 0 0,
      rgba(34, 211, 238, 0.24),
      transparent 60%
    ),
    var(--bg-soft);
  border-radius: 1.5rem;
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 1.625rem 3.75rem rgba(15, 23, 42, 0.95);
}

.hero-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hero-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-price-sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero-device {
  border-radius: 1.125rem;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.1);
  min-height: 15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-device img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.875rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-direction: column;
}

.hero-meta span {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
}

.hero-meta span::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 62.4375rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}

/* Sections - Mobile First */
.section {
  margin-top: 3.75rem;
  margin-bottom: 3.75rem;
  padding: 2.5rem 1.5rem;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Alternating section backgrounds */
.section:nth-of-type(odd) {
  background: radial-gradient(
      circle at 15% 20%,
      rgba(56, 189, 248, 0.15),
      transparent 50%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(59, 130, 246, 0.12),
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(34, 211, 238, 0.05),
      transparent 70%
    ),
    rgba(2, 9, 27, 0.6);
  border: 1px solid rgba(31, 41, 55, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.section:nth-of-type(even) {
  background: radial-gradient(
      circle at 80% 15%,
      rgba(139, 92, 246, 0.12),
      transparent 55%
    ),
    radial-gradient(circle at 20% 85%, rgba(34, 211, 238, 0.1), transparent 55%),
    radial-gradient(
      circle at 50% 50%,
      rgba(59, 130, 246, 0.06),
      transparent 65%
    ),
    rgba(2, 12, 34, 0.6);
  border: 1px solid rgba(31, 41, 55, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-kicker::before {
  content: "▸";
  font-size: 1rem;
}

.section-title {
  font-size: 1.75rem;
  margin: 0;
  font-weight: 700;
}

.section-sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 100%;
  line-height: 1.7;
}

.card-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(0, 1fr);
}

.card {
  background: radial-gradient(
      circle at 0 0,
      rgba(15, 23, 42, 0.55),
      transparent 55%
    ),
    var(--card);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.625rem;
  border: 1px solid rgba(15, 23, 42, 0.9);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
}

.card h3,
.card h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
}

h2 {
  word-break: break-word;
}

.card p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.card li {
  font-size: 0.875rem;
}

.card-step {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.step-num {
  display: none;
}

/* Icon decorations for cards */
.card h4::before {
  content: "⚡";
  margin-right: 0.625rem;
  opacity: 0.7;
}

/* Pricing - Mobile First */
.pricing-wrap {
  display: grid;
  gap: 1.75rem;
}

.pricing-card {
  background: radial-gradient(
      circle at 0 0,
      rgba(34, 211, 238, 0.18),
      transparent 60%
    ),
    var(--bg-soft);
  border-radius: 1.5rem;
  padding: 2rem 2rem 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.95);
  max-width: 100%;
}

.pricing-main {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin: 1rem 0 0;
}

.pricing-main span {
  font-size: 1.25rem;
  color: #e5e7eb;
  font-weight: 500;
}

.pricing-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.7;
}

.pricing-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.25rem;
  padding: 0.625rem 1.125rem;
  font-size: 0.7rem;
  border-radius: 1em;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--accent);
}

.pill-dot {
  display: none;
}

/* Contact section - Mobile First */
.contact-wrap {
  display: grid;
  gap: 2rem;
}

form label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.85);
  background: #020617;
  color: var(--text-main);
  font-size: 0.9375rem;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.4);
}

textarea {
  min-height: 8.75rem;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.checkbox-line input {
  margin-top: 0.25rem;
  width: 1.125rem;
  height: 1.125rem;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.price-inline {
  font-size: 1rem;
  color: var(--text-muted);
}

.price-inline strong {
  color: var(--accent);
  font-size: 1.125rem;
}

#formMessage {
  margin-top: 1rem;
  font-size: 1rem;
  display: none;
}

/* Footer - Mobile First */
footer {
  margin-top: 6.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 0.9375rem;
  color: var(--text-muted);
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
}

/* Icon placeholders */
.icon-wifi::before {
  content: "📶 ";
}

.icon-security::before {
  content: "🔒 ";
}

.icon-report::before {
  content: "📊 ";
}

.icon-box::before {
  content: "📦 ";
}

.icon-test::before {
  content: "🔍 ";
}

.icon-time::before {
  content: "⏱️ ";
}

/* ========================================
   MEDIA QUERIES - Progressive Enhancement
   ======================================== */

/* Small screens and up (480px+) */
@media (min-width: 481px) {
  .header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Medium screens and up (640px+) */
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet screens and up (721px+) */
@media (min-width: 721px) {
  body {
    font-size: 1.125rem;
  }

  .lang-select {
    padding: 0.5rem 2rem 0.5rem 0.875rem;
    font-size: 0.875rem;
    min-width: 70px;
  }

  .hero h1 {
    font-size: 2.625rem;
  }

  .hero-lead {
    font-size: 1.25rem;
  }

  .hero-list {
    font-size: 1.125rem;
  }

  .btn-primary {
    font-size: 1.125rem;
    padding: 1.125rem 2rem;
  }

  .hero-note {
    font-size: 1rem;
  }

  .hero-note strong {
    font-size: 1.125rem;
  }

  .hero-meta {
    flex-direction: row;
  }

  .section-title {
    font-size: 2.375rem;
  }

  .section-sub {
    font-size: 1.0625rem;
  }

  .section-kicker {
    font-size: 0.875rem;
  }

  .card h3,
  .card h4 {
    font-size: 1.375rem;
  }

  .card p {
    font-size: 1rem;
  }

  .card-step {
    gap: 1.25rem;
  }

  .step-num {
    display: flex;
    width: 3rem;
    height: 3rem;
    border-radius: 62.4375rem;
    border: 2px solid rgba(148, 163, 184, 0.6);
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.9);
  }

  .pricing-main {
    font-size: 3rem;
  }

  .pricing-note {
    font-size: 1rem;
  }

  .pricing-pill {
    font-size: 0.875rem;
    border-radius: var(--radius-pill);
  }

  .pricing-pill .pill-dot {
    display: block;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 62.4375rem;
    background: var(--accent);
  }

  form label {
    font-size: 1rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 1rem;
  }

  .checkbox-line {
    font-size: 0.9375rem;
  }

  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 3rem;
  }

  .section-sub {
    max-width: 30rem;
  }
}

/* Large tablet screens and up (768px+) */
@media (min-width: 768px) {
  .section {
    padding: 3.75rem 2.5rem;
  }
}

/* Grid layout for cards (780px+) */
@media (min-width: 780px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Pricing grid (820px+) */
@media (min-width: 820px) {
  .pricing-wrap {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 2fr);
    align-items: start;
  }
}

/* Logo adjustments (831px+) */
@media (min-width: 831px) {
  .logo-wrap {
    flex-direction: row;
    align-items: center;
    gap: 0.875rem;
  }

  .logo-wrap img {
    height: 80px;
  }

  .logo-icon {
    display: flex;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 62.4375rem;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0%, #f9fafb, #0ea5e9);
    color: #020617;
    font-weight: 800;
    font-size: 1.625rem;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.9);
    overflow: hidden;
  }

  .logo-text-main {
    display: block;
    font-size: 1.375rem;
    text-align: left;
  }

  .logo-text-sub {
    display: block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.12em;
  }
}

/* Contact grid (880px+) */
@media (min-width: 880px) {
  .contact-wrap {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1.6fr);
    align-items: start;
  }
}

/* Hero grid (881px+) */
@media (min-width: 881px) {
  .hero {
    grid-template-columns: minmax(0, 3fr) minmax(280px, 2.3fr);
    gap: 3rem;
    margin-top: 3.75rem;
  }

  .hero-right {
    order: 0;
  }
}

/* Desktop navigation (1101px+) */
@media (min-width: 1101px) {
  .hamburger {
    display: none;
  }

  .header {
    gap: 1.5rem;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-pill);
  }

  .nav {
    display: flex;
    flex-direction: row;
    gap: 1.75rem;
    order: 0;
    width: auto;
    padding: 0;
    border-top: none;
    margin-top: 0;
  }

  .nav a {
    padding-bottom: 2px;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
    border-radius: 0;
  }

  .nav a::after {
    display: block;
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.18s ease-out;
  }

  .nav a:hover {
    background-color: transparent;
  }

  .nav a:hover::after {
    width: 100%;
  }
}
