:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f0f4fb;
  --text: #0f172a;
  --muted: #4b5563;
  --accent: #0fa3b1;
  --accent-strong: #0b6b8c;
  --line: #e5e7eb;
  --shadow: 0 16px 50px rgba(15, 163, 177, 0.08), 0 10px 30px rgba(31, 41, 55, 0.06);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #f9fbff 0%, #eef3fa 100%);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #edf1f5;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand svg { width: 28px; height: 28px; fill: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 600;
}
.nav-links a { color: var(--muted); padding: 8px 0; }
.nav-links a:hover { color: var(--accent-strong); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #dbe3ed;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); border-color: var(--accent); }
.btn-primary {
  background: linear-gradient(135deg, #12b3c2, #0fa3b1);
  color: #ffffff;
  border: none;
  box-shadow: 0 14px 34px rgba(15, 163, 177, 0.28);
}
.btn-primary:hover { box-shadow: 0 16px 38px rgba(15, 163, 177, 0.32); }
.btn-ghost {
  background: #f3f7fb;
  border-color: #e2e8f0;
  color: var(--text);
}

.hero {
  padding: 72px 20px 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: center;
}
.pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 163, 177, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
}
.lede { margin: 0 0 18px; color: var(--muted); max-width: 640px; line-height: 1.6; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.highlight-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.highlight {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e8edf3;
  color: var(--muted);
}
.highlight svg { width: 18px; height: 18px; fill: var(--accent-strong); }

.hero-card {
  background: #ffffff;
  border: 1px solid #e5e9f0;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card-title { font-weight: 700; margin-bottom: 10px; }
.hero-list { margin: 0 0 16px 0; padding-left: 18px; color: var(--muted); line-height: 1.5; }
.mini-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid #e1e8f1;
  border-radius: 12px;
}
.label { font-size: 13px; color: var(--muted); }
.strong { font-weight: 700; }
.muted { color: var(--muted); }

.section { padding: 68px 20px 60px; }
.soft { background: #f4f7fb; border-top: 1px solid #e5eaf1; border-bottom: 1px solid #e5eaf1; }
.section-head h2 { margin: 0 0 6px; font-size: 28px; }
.section-head p { margin: 0 0 22px; color: var(--muted); max-width: 760px; line-height: 1.6; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  background: #ffffff;
  border: 1px solid #e5e9f0;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08); border-color: #d4dde8; }
.card h3 { margin: 6px 0; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }
.chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 163, 177, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.step {
  background: #ffffff;
  border: 1px solid #e1e8f1;
  border-radius: 12px;
  padding: 12px;
}
.step p { margin: 6px 0 0; color: var(--muted); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.info-card {
  background: #ffffff;
  border: 1px solid #e1e8f1;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border 0.2s ease;
}
.info-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08); border-color: #d4dde8; }
.info-card h4 { margin: 0 0 6px; }
.info-card p { margin: 0 0 10px; color: var(--muted); }
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.info-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}
.info-list li::before {
  content: \"•\";
  color: var(--accent);
  position: absolute;
  left: 0;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.fact-card {
  background: #ffffff;
  border: 1px dashed #d8e1ec;
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.test-card {
  background: #ffffff;
  border: 1px solid #e4e9f1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.test-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 10px;
  background: #eef7fb;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 13px;
}
.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
  margin: 12px 0;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0fa3b1, #0f8fb1);
  transition: width 0.25s ease;
}
.question-block {
  border: 1px solid #e6ecf2;
  border-radius: 12px;
  padding: 14px;
  background: #f9fbfe;
}
.question-block h3 { margin: 0 0 10px; }
.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.option {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #dfe7f0;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border 0.15s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.option:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 163, 177, 0.08); }
.option.selected {
  border-color: var(--accent);
  background: #e7f7fa;
  box-shadow: 0 12px 26px rgba(15, 163, 177, 0.14);
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.control-left, .control-right { display: flex; gap: 10px; flex-wrap: wrap; }

.tips {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.tip {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #f3f7fb;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  color: var(--muted);
}
.tip svg { width: 18px; height: 18px; fill: var(--accent-strong); }

.results-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.results-grid.visible { display: grid; }
.result-card {
  background: #ffffff;
  border: 1px solid #e4eaf2;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}
.ring-card { text-align: center; }
.score-ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(#0fa3b1 calc(var(--score, 0) * 1%), #e9edf3 0);
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  position: relative;
}
.score-ring::after {
  content: "";
  position: absolute;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #ffffff;
}
.score-ring strong { position: relative; font-size: 28px; z-index: 1; color: var(--text); }

.cert-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
input {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #dbe3ed;
  background: #ffffff;
  font-family: 'Inter', sans-serif;
  color: var(--text);
}
input:focus { outline: 1px solid var(--accent); }

.certificate {
  position: relative;
  background: linear-gradient(135deg, #f8fbff, #eef6fb);
  border: 1px solid #dfe7f0;
  border-radius: var(--radius);
  padding: 14px;
  overflow: hidden;
}
.certificate::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed #d6dee8;
  border-radius: 10px;
  pointer-events: none;
}
.cert-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.cert-row h4 { margin: 6px 0; }
.cert-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.stat {
  background: #ffffff;
  border: 1px solid #dfe7f0;
  border-radius: 10px;
  padding: 8px 10px;
}
.right { text-align: right; }
.small { font-size: 12px; }

.share {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.share a, .share button.btn-ghost {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #dbe3ed;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
}
.share a:hover, .share button.btn-ghost:hover { border-color: var(--accent); }

.deploy-list {
  margin: 0 0 10px 16px;
  color: var(--muted);
  line-height: 1.6;
}
.deploy-note {
  background: #e7f7fa;
  border: 1px solid #d2e9f1;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(15, 163, 177, 0.08);
}

.footer {
  padding: 24px 20px 30px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid #e5eaf1;
  background: #f8fbff;
}

@media (max-width: 720px) {
  .controls { flex-direction: column; align-items: stretch; }
  .control-left, .control-right { width: 100%; }
  .control-left .btn, .control-right .btn { width: 100%; justify-content: center; }
  .nav { flex-wrap: wrap; }
  .nav-links { width: 100%; justify-content: flex-start; }
}

