:root {
  --primary-dark: #0b2545;
  --primary: #1565c0;
  --primary-light: #4dabf7;
  --accent: #00bcd4;
  --bg: #f4f9ff;
  --card-bg: #ffffff;
  --border: #d7e6fb;
  --text: #1a2433;
  --text-light: #5b6b7c;
  --radius: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Header */
.site-header {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

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

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  display: inline-block;
  padding: 10px 0;
  color: #dce8ff;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  text-align: center;
  padding: 90px 20px;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.15rem;
  color: #dce8ff;
  max-width: 600px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-primary {
  background: #ffffff;
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  margin-top: 28px;
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Sections */
section {
  padding: 70px 0;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-lead {
  text-align: center;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 40px;
}

/* Features grid */
.features {
  background: #ffffff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(21, 101, 192, 0.15);
}

.card .icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.card h3 {
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Detection grid */
.detection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.det-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.det-item.full-width {
  grid-column: 1 / -1;
}

.det-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  font-weight: 600;
}

.det-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.det-value.mono {
  font-family: "Consolas", "Courier New", monospace;
  font-weight: 400;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #dce8ff;
  text-align: center;
  padding: 24px 0;
  font-size: 0.9rem;
}

/* Noscript fallback */
.noscript-msg {
  background: #fff3cd;
  border: 1px solid #ffe69c;
  color: #664d03;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--primary-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .nav.open {
    max-height: 240px;
  }

  .nav a {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .hero {
    padding: 60px 16px;
  }

  section {
    padding: 50px 0;
  }
}
