:root {
  --ink: #0f172a;
  --muted: #475569;
  --paper: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-soft: #eff6ff;
  --brand-emerald: #059669;
  --brand-emerald-soft: #ecfdf5;
  --char: #0f172a;
  --char-2: #1e293b;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 16px 36px -4px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --font-d: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-b: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1140px;
}

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

body {
  margin: 0;
  font-family: var(--font-b);
  color: var(--ink);
  background: radial-gradient(1200px 600px at 50% -100px, #eff6ff, var(--paper) 70%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-primary-hover);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Top Risk Banner */
.top-risk-banner {
  background: #0f172a;
  color: #94a3b8;
  border-bottom: 1px solid #1e293b;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.top-risk-banner strong {
  color: #f8fafc;
  font-weight: 600;
}

.top-risk-banner a {
  color: #60a5fa;
  text-decoration: underline;
  margin-left: 0.35rem;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
}

.brand i {
  font-style: normal;
  background: var(--brand-primary);
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  margin-left: 0.3rem;
  font-size: 0.9em;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav a.is-active, .nav a:hover {
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  padding: 2px;
}

.lang-switch a {
  padding: 0.25rem 0.65rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
}

.lang-switch a.is-active {
  background: var(--char);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 64px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow-hover);
  }
  .menu-toggle {
    display: inline-flex !important;
  }
  .grid-3, .grid-2, .brands-grid {
    grid-template-columns: 1fr !important;
  }
  .hero {
    min-height: auto !important;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: center;
  color: var(--ink);
  overflow: hidden;
  margin-bottom: 2.5rem;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  filter: grayscale(100%) contrast(120%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.hero-brand {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-primary);
  border: 1px solid #bfdbfe;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.hero h1 {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  color: var(--ink);
  max-width: 26ch;
  margin: 0 0 1rem;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  font-size: 0.92rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--char);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.btn-primary:hover {
  background: #1e293b;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: #ffffff;
}

.btn-ghost:hover {
  background: var(--surface-alt);
  border-color: #94a3b8;
  color: var(--ink);
}

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

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

/* Sections & Grids */
.section {
  padding: 2.5rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.02rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.tile:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.tile h3 {
  font-family: var(--font-d);
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.tile a {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.media-frame {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  background: #e2e8f0;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.disclaimer {
  background: var(--brand-emerald-soft);
  border: 1px solid #a7f3d0;
  border-left: 4px solid var(--brand-emerald);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  color: #065f46;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.disclaimer strong {
  color: #047857;
}

.page-hero {
  padding: 2.2rem 0 1.2rem;
}

.page-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ink);
}

.page-hero p {
  color: var(--muted);
  max-width: 65ch;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
}

.content-block {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.content-block h2 {
  font-family: var(--font-d);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.content-block h3 {
  font-family: var(--font-d);
  margin-top: 1.1rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.content-block p {
  margin-top: 0.4rem;
  margin-bottom: 0.85rem;
  line-height: 1.65;
  color: var(--muted);
}

.badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-primary);
  border: 1px solid #bfdbfe;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.brand-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.18s ease;
  box-shadow: var(--shadow);
}

.brand-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--brand-primary);
}

.site-footer {
  margin-top: 3.5rem;
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.8rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer h4 {
  font-family: var(--font-d);
  color: #ffffff;
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.footer-note {
  font-size: 0.84rem;
  color: #64748b;
  border-top: 1px solid #1e293b;
  padding-top: 1.1rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 680px;
  margin-inline: auto;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 18px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
  display: none;
  border: 1px solid #334155;
}

.cookie-banner.is-visible {
  display: block;
  animation: up 0.3s ease both;
}

.cookie-banner p {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-actions button {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.cookie-accept {
  background: var(--brand-primary);
  color: #ffffff;
}

.cookie-reject {
  background: transparent;
  color: #ffffff;
  border: 1px solid #475569 !important;
}

.form {
  display: grid;
  gap: 0.85rem;
}

.form label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}

.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form textarea {
  min-height: 130px;
}

.table-like {
  width: 100%;
  border-collapse: collapse;
}

.table-like th, .table-like td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
}

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

.steps {
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
  padding: 0;
}

.steps li {
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 0.95rem 0.95rem 3.2rem;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 0.95rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
}

@keyframes up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.section-alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
  margin-inline: calc(50% - 50vw);
  padding-inline: max(1rem, calc(50vw - 570px));
  width: 100vw;
  box-sizing: border-box;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.section-dark {
  background: #0f172a;
  color: #f8fafc;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(1rem, calc(50vw - 570px));
  width: 100vw;
  box-sizing: border-box;
  padding-top: 2.8rem;
  padding-bottom: 2.8rem;
}

.section-dark .section-head p, .section-dark .muted, .section-dark .tile p {
  color: #94a3b8;
}

.section-dark .section-head h2, .section-dark .tile h3 {
  color: #ffffff;
}

.section-dark .tile {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.section-dark a {
  color: #60a5fa;
}

.cta-band {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 2.5rem 1.8rem;
  text-align: center;
  border: 1px solid #334155;
  box-shadow: var(--shadow-hover);
}

.cta-band h2 {
  font-family: var(--font-d);
  margin: 0 0 0.6rem;
  color: #ffffff;
  font-size: 1.8rem;
}

.cta-band p {
  color: #cbd5e1;
  max-width: 52ch;
  margin: 0 auto 1.3rem;
  font-size: 1.05rem;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
  padding: 0;
}

@media (max-width: 700px) {
  .check-grid {
    grid-template-columns: 1fr;
  }
}

.check-grid li {
  list-style: none;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.94rem;
}

.check-grid li::before {
  content: "✓ ";
  color: var(--brand-emerald);
  font-weight: 800;
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #334155;
  border-left: 4px solid var(--brand-primary);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  margin: 1.8rem 0 1.2rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.footer-disclaimer-box strong {
  color: #ffffff;
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

body.modal-open {
  overflow: hidden !important;
}

.modal-card {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  max-width: 620px;
  width: 100%;
  padding: 2.2rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  animation: up 0.3s ease both;
}

.modal-card h2 {
  font-family: var(--font-d);
  color: var(--ink);
  margin-top: 0;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.modal-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.modal-badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-primary);
  border: 1px solid #bfdbfe;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.modal-btn-accept {
  background: var(--char);
  color: #ffffff;
  border: 0;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.modal-btn-accept:hover {
  background: #1e293b;
}

.observatory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.observatory-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.observatory-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.observatory-card h3 {
  font-family: var(--font-d);
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-weight: 700;
}

.calculator-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .calc-grid { grid-template-columns: 1fr; }
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.calc-field label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}

.calc-field input, .calc-field select {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.calc-field input:focus, .calc-field select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.calc-result-box {
  background: #0f172a;
  color: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid var(--brand-primary);
}

.calc-result-box h4 {
  margin: 0 0 0.6rem;
  color: #60a5fa;
  font-family: var(--font-d);
  font-size: 1.1rem;
}
