@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ------------------------------------------------------------------ */
/*  Tokens                                                            */
/* ------------------------------------------------------------------ */
:root {
  --teal:    #0D7377;
  --navy:    #1B2A4A;
  --amber:   #F5A623;
  --bg:      #FAFAF8;
  --bg-card: #FFFFFF;
  --green:   #2ECC71;
  --yellow:  #F1C40F;
  --red:     #E74C3C;
  --gray:    #95A5A6;
  --text:    #1B2A4A;
  --text-secondary: #5A6A7A;
  --border:  #E8EAE6;
  --radius:  12px;
  --mono:    'JetBrains Mono', monospace;
  --sans:    'DM Sans', system-ui, sans-serif;
}

/* ------------------------------------------------------------------ */
/*  Reset                                                             */
/* ------------------------------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ------------------------------------------------------------------ */
/*  Layout                                                            */
/* ------------------------------------------------------------------ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------------ */
/*  Nav                                                               */
/* ------------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--teal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo svg { flex-shrink: 0; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-select {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.lang-select:hover { border-color: var(--teal); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: #0A5F62; transform: translateY(-1px); }

/* ------------------------------------------------------------------ */
/*  Hero                                                              */
/* ------------------------------------------------------------------ */
.hero {
  padding: 140px 0 80px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 600px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(13,115,119,0.06) 0%, transparent 100%),
    radial-gradient(ellipse 40% 40% at 80% 10%, rgba(245,166,35,0.04) 0%, transparent 100%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero-content { max-width: 520px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(13,115,119,0.08);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--teal);
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(13,115,119,0.18);
}
.btn-primary:hover {
  background: #0A5F62;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13,115,119,0.25);
}
.btn-primary svg { flex-shrink: 0; }
.hero-note {
  font-size: 13px;
  color: var(--gray);
}

/* ------------------------------------------------------------------ */
/*  Score Card (hero right side)                                      */
/* ------------------------------------------------------------------ */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  width: 340px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 8px 32px rgba(0,0,0,0.06);
  position: relative;
  animation: card-in 0.8s ease-out both;
  animation-delay: 0.3s;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-domain {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.card-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.card-tag.risk { background: rgba(231,76,60,0.1); color: var(--red); }
.card-tag.clear { background: rgba(46,204,113,0.1); color: #1B9E4B; }

.card-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.card-score {
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.card-score.risk { color: var(--red); }
.card-score.clear { color: #1B9E4B; }
.card-score-meta {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.card-score-label {
  font-weight: 600;
  color: var(--text);
}

.card-dims { display: flex; flex-direction: column; gap: 10px; }
.dim {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dim-name {
  font-size: 12px;
  color: var(--text-secondary);
  width: 88px;
  flex-shrink: 0;
}
.dim-track {
  flex: 1;
  height: 5px;
  background: #EEF0EC;
  border-radius: 3px;
  overflow: hidden;
}
.dim-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease-out;
}
.dim-fill.green { background: var(--green); }
.dim-fill.yellow { background: var(--yellow); }
.dim-fill.red { background: var(--red); }
.dim-fill.gray {
  background: repeating-linear-gradient(
    -45deg, #ddd, #ddd 3px, #eee 3px, #eee 6px
  );
}
.dim-val {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  width: 24px;
  text-align: right;
  color: var(--text-secondary);
}

.card-flags {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.flag {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(231,76,60,0.06);
  color: #B03A2E;
  border-left: 3px solid var(--red);
  line-height: 1.4;
}

/* Second floating card */
.score-card-mini {
  position: absolute;
  bottom: -30px;
  left: -40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: card-in 0.8s ease-out both;
  animation-delay: 0.7s;
}
.mini-score {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  color: #1B9E4B;
  line-height: 1;
}
.mini-meta {
  font-size: 13px;
  line-height: 1.4;
}
.mini-domain { font-weight: 600; color: var(--text); }
.mini-label { color: var(--text-secondary); }

/* ------------------------------------------------------------------ */
/*  How It Works                                                      */
/* ------------------------------------------------------------------ */
.how {
  padding: 100px 0;
  position: relative;
}
.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 56px;
  max-width: 500px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.step-number {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-number::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step-icon.teal { background: rgba(13,115,119,0.08); color: var(--teal); }
.step-icon.amber { background: rgba(245,166,35,0.08); color: var(--amber); }
.step-icon.navy { background: rgba(27,42,74,0.08); color: var(--navy); }
.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Connector lines between steps */
.steps-connector {
  display: none; /* shown on desktop via media query below */
}

/* ------------------------------------------------------------------ */
/*  Screenshots                                                       */
/* ------------------------------------------------------------------ */
.screenshots {
  padding: 80px 0 100px;
}
.screenshots .section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.screenshots .section-label {
  text-align: center;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.screenshot-img {
  width: 100%;
  height: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.screenshot-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.screenshot-caption {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------------ */
/*  CTA Band                                                          */
/* ------------------------------------------------------------------ */
.cta-band {
  padding: 80px 0;
  background: var(--navy);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 100%, rgba(13,115,119,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(245,166,35,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-band p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #fff;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ------------------------------------------------------------------ */
/*  Footer                                                            */
/* ------------------------------------------------------------------ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left {
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--teal); }

/* ------------------------------------------------------------------ */
/*  Responsive                                                        */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-content { max-width: 100%; }
  .hero-visual { justify-content: flex-start; }
  .score-card-mini { left: auto; right: -20px; bottom: -20px; }
  .steps { grid-template-columns: 1fr; max-width: 480px; }
  .screenshot-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 520px) {
  .hero { padding: 120px 0 60px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .score-card { width: 100%; }
  .score-card-mini { display: none; }
  .nav-cta span { display: none; }
  .footer .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ------------------------------------------------------------------ */
/*  Privacy page                                                      */
/* ------------------------------------------------------------------ */
.privacy-page {
  padding: 120px 0 80px;
}
.privacy-page .container {
  max-width: 720px;
}
.privacy-page h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.privacy-page .last-updated {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.privacy-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.privacy-page p,
.privacy-page li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.privacy-page ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.privacy-page li { margin-bottom: 6px; }
.privacy-page code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(13,115,119,0.06);
  padding: 2px 6px;
  border-radius: 4px;
}
.privacy-page a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-page a:hover { text-decoration-color: transparent; }
