
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f3f4f6;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --card-alt: #f9fafb;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-strong: #1d4ed8;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.06);
  --header-h: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e5e7eb 0, #f9fafb 40%, #ffffff 100%);
  color: var(--text);
  min-height: 100vh;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: linear-gradient(to bottom, #f9fafb, #ffffff);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.85)
  );
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  background: radial-gradient(circle at top, #60a5fa, #2563eb);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3),
    0 10px 25px rgba(37, 99, 235, 0.35);
  color: #eff6ff;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(229, 231, 235, 0.8);
}

.nav-link.active {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  padding: 80px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 3vw, 3rem);
  margin-bottom: 12px;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta a {
  color: var(--accent-strong);
  text-decoration: none;
}

/* Device card */
.hero-device {
  display: flex;
  justify-content: flex-end;
}

.device-card {
  background: radial-gradient(circle at top, #eff6ff, #ffffff);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #dbeafe;
  padding: 22px 20px 20px;
  max-width: 320px;
}

/* Product image placeholder */
.product-image-wrapper {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.product-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.device-pill {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.35);
  margin-bottom: 10px;
}

.device-card h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text);
}

.device-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.device-list li {
  margin-bottom: 4px;
}

.device-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.price-old {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: line-through;
}

.price-new {
  font-size: 1.3rem;
  font-weight: 700;
  color: #15803d;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  color: #eff6ff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.5);
}

.btn-ghost {
  background: #ffffff;
  border-color: #e5e7eb;
  color: var(--text);
}

.btn-ghost:hover {
  background: #f3f4f6;
}

.btn-outline {
  background: transparent;
  border-color: #d1d5db;
  color: var(--muted);
}

.btn-outline:hover {
  background: #e5e7eb;
  color: var(--text);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.84rem;
}

.btn-block {
  width: 100%;
}

/* Cards & grid */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-subtle);
}

.card h3,
.card h2 {
  margin-bottom: 8px;
  color: var(--text);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

/* Feature & spec styling */
.feature-card p {
  font-size: 0.94rem;
  color: var(--muted);
}

.spec-card h3 {
  margin-bottom: 10px;
}

.spec-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.spec-list li {
  margin-bottom: 4px;
}

/* Firmware cards */
.firmware-grid .firmware-card {
  position: relative;
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.subheading {
  font-size: 1.1rem;
  margin: 24px 0 12px;
  color: var(--text);
}

.docs-cta {
  margin-top: 28px;
  text-align: center;
}

/* Buy section */
.price-line {
  margin-bottom: 8px;
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-strong);
}

/* Manual layout */
.manual-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 24px;
}

.manual-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: flex-start;
  background: #f9fafb;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  border: 1px solid var(--border);
}

.manual-sidebar h2 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text);
}

.manual-sidebar ul {
  list-style: none;
  font-size: 0.84rem;
}

.manual-sidebar li {
  margin-bottom: 4px;
}

.manual-sidebar a {
  color: var(--muted);
  text-decoration: none;
}

.manual-sidebar a:hover {
  color: var(--accent-strong);
}

.manual-content h1 {
  margin-bottom: 12px;
}

.manual-content h2 {
  margin: 22px 0 8px;
}

.manual-content h3 {
  margin: 16px 0 6px;
  font-size: 1rem;
}

.manual-content p {
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.manual-content ul,
.manual-content ol {
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.manual-content li {
  margin-bottom: 4px;
}

/* Code & steps */
.code-block {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.8rem;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.steps-list {
  padding-left: 18px;
  font-size: 0.94rem;
  color: var(--muted);
}

/* Notes */
.note {
  font-size: 0.86rem;
  color: #b45309;
  margin-top: 6px;
}

/* Tables */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
}

.spec-table th {
  background: #f3f4f6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 26px;
  margin-top: 20px;
  background: #f9fafb;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

/* Misc */
.section-backlink {
  margin-top: 18px;
}

/* WhatsApp Floating Button */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  text-decoration: none;
  z-index: 80;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.wa-float:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.3);
  background: #22c55e;
}

.wa-icon {
  font-size: 1.3rem;
  line-height: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-device {
    justify-content: center;
  }

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

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

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

  .manual-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .nav {
    position: fixed;
    inset: calc(var(--header-h) + 4px) 12px auto 12px;
    background: #ffffff;
    flex-direction: column;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 64px;
  }

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

  .device-card {
    max-width: 100%;
  }

  .wa-float {
    right: 14px;
    bottom: 14px;
  }
}
