:root {
  --bg: #0b0d10;
  --panel: #12161b;
  --text: #e8eef5;
  --muted: #b7c2cf;
  --accent: #4fb3ff;
  --accent-2: #7affc6;
  --border: #232933;
  --shadow: 0 2px 8px rgba(0,0,0,0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-2); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; overflow-wrap: break-word; }
.narrow { width: min(840px, 92vw); }
.row { display: flex; gap: 16px; }
.row.center { align-items: center; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --- Header & Nav --- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,13,16,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { position: relative; }
.brand { padding: 14px 0; display: inline-block; }
.brand-logo { height: 28px; width: auto; display: block; }
.nav { display: flex; gap: 16px; }
.nav-link {
  color: var(--muted);
  padding: 14px 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-link:hover { color: var(--text); text-decoration: none; border-bottom-color: var(--muted); }
.nav-link.active { color: var(--text); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Sections --- */

section {
  padding: 72px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
section:last-of-type { min-height: auto; padding-bottom: 96px; }

.hero {
  padding-top: 48px;
  background: var(--bg);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-content { animation: fadeInUp 0.6s ease-out; }
.hero-visual {
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
}
.hero-visual img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin-left: auto;
}
.hero h1 {
  font-size: clamp(28px, 6vw, 64px);
  line-height: 1.1;
  margin: 0 0 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--muted);
  font-size: clamp(16px, 3vw, 20px);
  max-width: 600px;
  animation: fadeInUp 0.6s ease-out;
}
.lead { color: var(--muted); font-size: clamp(16px, 3vw, 20px); max-width: 600px; }
.lead-alt { color: var(--muted); font-size: clamp(16px, 2.5vw, 18px); }
.cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; animation: fadeInUp 0.6s ease-out 0.2s backwards; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  background: #141922;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  font-size: 16px;
  font-weight: 500;
  min-height: 44px;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: #3b4556; text-decoration: none; transform: translateY(-2px); background: #1a202c; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #3a9be0);
  color: #081018;
  border-color: transparent;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.btn.primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.btn.primary:hover {
  box-shadow: 0 8px 24px rgba(79,179,255,0.4);
  transform: translateY(-2px);
}
.btn.primary:hover::before { opacity: 1; }

/* --- Section titles --- */

.section-title {
  font-size: clamp(24px, 5vw, 42px);
  margin: 0 0 32px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

/* --- Services --- */

.services { background: var(--bg); }
.services .grid { margin-top: 16px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--text);
}
.card-icon img {
  width: 100%;
  height: 100%;
  filter: invert(1) brightness(1.4);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.card:hover .card-icon img {
  filter: invert(1) brightness(1.4) hue-rotate(160deg) saturate(3);
  opacity: 1;
}
.card h3 { margin: 0 0 12px; color: var(--text); font-size: clamp(17px, 2.5vw, 20px); }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* --- About --- */

.about { background: var(--bg); }
.about-stats { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; }
.stat {
  text-align: center;
  padding: 24px 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  flex: 1 1 auto;
}
.stat::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
}
.stat-number {
  display: block;
  font-size: clamp(40px, 8vw, 56px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { color: var(--muted); font-size: 15px; margin-top: 8px; display: block; }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { padding-left: 32px; position: relative; margin: 14px 0; color: var(--muted); font-size: clamp(15px, 2.5vw, 17px); }
.checklist li::before {
  content: '\2713'; position: absolute; left: 0; top: 0; color: var(--accent-2); font-weight: bold;
}

/* --- Products --- */

.products {
  background: var(--bg);
  position: relative;
}
.products::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(79,179,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 36px 40px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-top: 16px;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(79,179,255,0.04), rgba(122,255,198,0.02));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(79,179,255,0.12), 0 4px 16px rgba(0,0,0,0.3);
  color: var(--text);
  text-decoration: none;
}
.product-card:hover::before { opacity: 0.7; }
.product-card:hover::after { opacity: 1; }

.product-info {
  flex: 1;
  position: relative;
  z-index: 1;
}
.product-name {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--text) 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.product-tld {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.product-desc {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 580px;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-tags span {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}
.product-card:hover .product-tags span {
  border-color: rgba(79,179,255,0.3);
  color: var(--text);
}

.product-arrow {
  font-size: 32px;
  color: var(--accent);
  opacity: 0.4;
  transition: all 0.4s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.product-card:hover .product-arrow {
  opacity: 1;
  transform: translateX(6px);
}

/* --- Contact --- */

.contact { background: var(--bg); }
.contact .section-title { display: block; text-align: center; }
.contact .section-title::after { left: 50%; transform: translateX(-50%); }
.contact .center { text-align: center; max-width: 500px; margin: 0 auto 40px; }
.contact-wrapper { max-width: 500px; margin: 0 auto; }

.contact-form { display: grid; gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-weight: 600; color: var(--text); font-size: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #11161e;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,179,255,0.15); }
.contact-form textarea { resize: vertical; min-height: 140px; }

/* --- Footer --- */

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; margin-top: 48px; background: rgba(8,10,13,0.8); }
.footer-note { margin-top: 12px; }

/* --- 404 --- */

.error-page {
  text-align: center;
  min-height: 60vh;
}
.error-page h1 {
  font-size: clamp(72px, 15vw, 160px);
  line-height: 1;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.error-page .lead { max-width: none; margin: 0 0 32px; }

/* --- Legal pages (privacy, terms) --- */

.legal { padding: 48px 0 64px; }
.legal .container { max-width: 820px; }
.legal .section-title { margin-bottom: 16px; }
.legal-meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.legal h2 {
  font-size: clamp(18px, 2.6vw, 22px);
  margin: 32px 0 8px;
  color: var(--text);
}
.legal p { color: var(--muted); }
.legal strong { color: var(--text); }
.legal-list { color: var(--muted); padding-left: 20px; margin: 8px 0 16px; }
.legal-list li { margin: 6px 0; }
.legal-list li strong { color: var(--text); }
/* Sub-headings, for legal pages that ask questions (a support FAQ) rather than
   numbering clauses. One step below h2, on the same rhythm. */
.legal h3 {
  font-size: clamp(15px, 2.1vw, 17px);
  margin: 22px 0 6px;
  color: var(--text);
}
.legal hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0 8px;
}

/* --- Product landing pages (/reporter/) --- */
/* Short sections: the home page's full-screen sections would leave most of each screen empty. */
.landing section { min-height: auto; padding: 56px 0; }
.landing .hero { padding-top: 72px; }
.landing section:last-of-type { padding-bottom: 96px; }
.landing .hero h1 { max-width: 900px; }
.landing .lead-alt { max-width: 720px; }
.landing code { font-size: 0.92em; color: var(--text); }
/* A link inside running text needs more than colour to stand out from it. */
.landing p a { text-decoration: underline; text-underline-offset: 3px; }
.steps { counter-reset: step; }
.steps h3::before { counter-increment: step; content: counter(step) ". "; color: var(--accent); }
@media (max-width: 768px) {
  .landing section { padding: 40px 0; }
  .landing .hero { padding-top: 32px; }
  .landing section:last-of-type { padding-bottom: 64px; }
}

.footer-link { color: var(--muted); }
.footer-link:hover { color: var(--accent-2); }

small { color: var(--muted); }

/* --- Tablet (<=860px) --- */

@media (max-width: 860px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .hero-layout { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
}

/* --- Mobile (<=768px) --- */

@media (max-width: 768px) {
  .container { padding: 0 16px; }

  /* Hamburger nav */
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(11,13,16,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    z-index: 20;
  }
  .nav.open { display: flex; }
  .nav-link {
    padding: 16px 24px;
    border-bottom: none;
    min-height: 48px;
    font-size: 17px;
  }
  .nav-link:hover,
  .nav-link:active { background: rgba(79,179,255,0.08); }

  /* Sections */
  section { padding: 48px 0; min-height: auto; }
  .hero { padding-top: 24px; }
  .hero-layout { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { display: none; }
  .hero h1 br { display: none; }

  /* About stats */
  .about-stats { gap: 12px; }
  .stat { padding: 16px 20px; }
  .stat-number { font-size: 40px; }

  /* CTA buttons full width */
  .cta { flex-direction: column; gap: 12px; }
  .cta .btn { width: 100%; text-align: center; padding: 16px 20px; }

  /* Section titles */
  .section-title { margin-bottom: 24px; }

  /* Cards */
  .card { padding: 20px; }
  .card h3 { font-size: 18px; }

  /* Products */
  .product-card { flex-direction: column; gap: 20px; padding: 24px; }
  .product-arrow { align-self: flex-start; font-size: 28px; }

  /* Footer */
  .site-footer { padding: 20px 0; }
}

/* --- Small phones (<=375px) --- */

@media (max-width: 375px) {
  .hero h1 { font-size: 24px; }
  .stat { padding: 12px 16px; }
  .stat-number { font-size: 36px; }
}
