:root {
  --bg: #070d17;
  --bg-soft: #0f1b2d;
  --surface: #111f34;
  --surface-2: #172943;
  --line: rgba(168, 192, 230, 0.2);
  --line-strong: rgba(173, 205, 255, 0.36);
  --text: #eef5ff;
  --muted: #a8bad4;
  --title: #f7fbff;
  --primary: #25c4f2;
  --primary-2: #30e8bf;
  --warning: #ffb84d;
  --danger: #ff6f78;
  --ok: #2ed18a;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-1: 0 24px 60px rgba(2, 8, 20, 0.45);
  --shadow-2: 0 12px 24px rgba(3, 12, 32, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at -10% -10%, rgba(48, 232, 191, 0.18), transparent 60%),
    radial-gradient(840px 560px at 110% 0%, rgba(37, 196, 242, 0.2), transparent 58%),
    linear-gradient(180deg, #060c16 0%, #081120 45%, #070d17 100%);
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.page-glow {
  position: fixed;
  inset: -25%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(680px 360px at 20% 20%, rgba(33, 180, 224, 0.16), transparent 60%),
    radial-gradient(760px 380px at 80% 30%, rgba(46, 209, 138, 0.12), transparent 58%);
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(169, 200, 244, 0.14);
  backdrop-filter: blur(12px);
  background: rgba(7, 14, 26, 0.78);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Unbounded", sans-serif;
  font-size: 14px;
  color: var(--title);
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 22px rgba(48, 232, 191, 0.55);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--title);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

.nav-cta {
  margin-left: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #032033;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 10px 26px rgba(37, 196, 242, 0.34);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(48, 232, 191, 0.35);
}

.btn-ghost {
  background: rgba(17, 31, 52, 0.5);
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
}

.hero {
  padding: 64px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: #87d6f0;
}

.hero-copy h1,
.section-head h2,
.economy-card h2,
.integration-card h2,
.cta-wrap h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  color: var(--title);
  line-height: 1.2;
}

.hero-copy h1 {
  font-size: clamp(30px, 5.2vw, 52px);
  max-width: 14ch;
}

.hero-text {
  margin: 20px 0 0;
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--muted);
  max-width: 56ch;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-points li {
  position: relative;
  padding-left: 26px;
  color: #c6d8f3;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
}

.hero-visual {
  display: grid;
  gap: 14px;
}

.hero-panel,
.image-slot,
.trust-grid > div,
.benefit-card,
.economy-card,
.integration-card,
.analytics-card,
.demo-card,
.faq-list details,
.cta-wrap {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 31, 52, 0.93), rgba(13, 24, 40, 0.92));
  box-shadow: var(--shadow-2);
  border-radius: var(--radius-lg);
}

.hero-panel {
  padding: 18px;
}

.hero-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.live-dot {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(46, 209, 138, 0.2);
  color: #b9f8da;
}

.quality-bars {
  display: grid;
  gap: 12px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--muted);
}

.meter {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(170, 196, 235, 0.14);
}

.meter span {
  display: block;
  height: 100%;
}

.meter.good span {
  background: linear-gradient(90deg, #22b97a, #4cf0a6);
}

.meter.warn span {
  background: linear-gradient(90deg, #e49a3f, #ffc06d);
}

.meter.bad span {
  background: linear-gradient(90deg, #ec5d7f, #ff8797);
}

.hero-cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-cards article {
  border: 1px solid rgba(168, 202, 244, 0.2);
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(11, 22, 37, 0.6);
}

.hero-cards strong {
  display: block;
  font-size: 25px;
  color: var(--title);
}

.hero-cards span {
  color: var(--muted);
  font-size: 13px;
}

.hero-dashboard {
  border: 1px solid rgba(143, 190, 255, 0.38);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 210px at 80% -20%, rgba(37, 196, 242, 0.16), transparent 72%),
    rgba(10, 20, 35, 0.92);
  padding: 14px;
  box-shadow: var(--shadow-2);
}

.hero-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.hero-dashboard-head strong {
  color: #e7f3ff;
  font-size: 15px;
}

.hero-dashboard-head span {
  color: #b5d2f8;
  font-size: 12px;
}

.hero-dashboard-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hero-dashboard-grid article {
  border: 1px solid rgba(168, 202, 244, 0.24);
  border-radius: 12px;
  background: rgba(10, 20, 35, 0.68);
  padding: 10px;
}

.hero-dashboard-grid span {
  color: #9ebce4;
  font-size: 12px;
}

.hero-dashboard-grid b {
  display: block;
  margin-top: 5px;
  color: #ecf5ff;
  font-size: 18px;
}

.hero-dashboard-list {
  margin-top: 10px;
  border: 1px solid rgba(168, 202, 244, 0.24);
  border-radius: 12px;
  background: rgba(10, 20, 35, 0.62);
  padding: 9px 10px;
  display: grid;
  gap: 6px;
}

.hero-dashboard-list div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #c9defa;
  font-size: 13px;
}

.hero-dashboard-list b {
  color: #9ff5d8;
}

.hero-dashboard-legend {
  margin-top: 10px;
  border: 1px solid rgba(170, 202, 244, 0.24);
  border-radius: 12px;
  background: rgba(10, 20, 35, 0.56);
  padding: 8px 10px;
  display: grid;
  gap: 6px;
}

.hero-dashboard-legend p {
  margin: 0;
  color: #cfe1fb;
  font-size: 12px;
  line-height: 1.45;
}

.image-slot {
  margin: 0;
  min-height: 174px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  border-style: dashed;
  border-color: rgba(143, 190, 255, 0.38);
  background:
    radial-gradient(350px 180px at 80% 10%, rgba(37, 196, 242, 0.16), transparent 68%),
    rgba(10, 20, 35, 0.82);
}

.image-slot.compact {
  min-height: 130px;
}

.image-slot figcaption {
  color: #c2d9fa;
  font-size: 14px;
}

.trust {
  padding: 0 0 72px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trust-grid > div {
  padding: 16px;
}

.trust-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: #8ecde4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-grid p {
  margin: 0;
  color: #cee0fc;
}

.benefits,
.demo,
.faq {
  padding: 0 0 86px;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  max-width: 19ch;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.benefit-card {
  padding: 18px;
}

.benefit-card h3,
.analytics-card h3,
.demo-card h3 {
  margin: 0;
  color: var(--title);
}

.benefit-card p,
.analytics-card p,
.demo-card-head p,
.faq-list p,
.cta-wrap p,
.site-footer p,
.economy-card p,
.integration-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.economy {
  padding: 0 0 86px;
}

.economy-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
}

.economy-card,
.integration-card {
  padding: 22px;
  box-shadow: var(--shadow-1);
}

.economy-form {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.economy-form label,
.quiz-lead label,
.lead-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: #c9d8ee;
}

.economy-form input,
.quiz-lead input,
.lead-form input,
.lead-form select,
.lead-form textarea,
.integration-card pre {
  border: 1px solid rgba(170, 202, 244, 0.28);
  border-radius: 12px;
  background: rgba(6, 13, 24, 0.68);
  color: var(--text);
}

.economy-form input,
.quiz-lead input,
.lead-form input,
.lead-form select,
.lead-form textarea {
  min-height: 48px;
  padding: 11px 12px;
}

.lead-form textarea {
  min-height: 90px;
  resize: vertical;
}

.economy-form input:focus,
.quiz-lead input:focus,
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(48, 232, 191, 0.5);
  outline-offset: 1px;
}

.economy-result,
.check-result {
  margin-top: 14px;
  border: 1px dashed rgba(165, 198, 244, 0.4);
  background: rgba(8, 16, 29, 0.76);
  border-radius: 12px;
  padding: 12px;
  color: #d3e4ff;
  font-size: 14px;
}

.integration-card pre {
  margin: 16px 0;
  padding: 14px;
  font-size: 12px;
  overflow-x: auto;
}

.integration-shot {
  margin: 14px 0 0;
  border: 1px solid rgba(170, 202, 244, 0.28);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(8, 16, 29, 0.74);
}

.integration-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.integration-shot figcaption {
  margin: 0;
  padding: 10px 12px;
  color: #c9dbf5;
  font-size: 13px;
  border-top: 1px solid rgba(170, 202, 244, 0.24);
}

.analytics {
  padding: 0 0 86px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.analytics-card {
  padding: 18px;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.demo-card {
  padding: 20px;
}

.demo-card-head {
  margin-bottom: 14px;
}

.quiz-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(155, 183, 226, 0.16);
  margin-bottom: 18px;
}

.quiz-progress span {
  display: block;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 0.25s ease;
}

.quiz-stage {
  display: none;
}

.quiz-stage.active {
  display: block;
}

.quiz-stage h4 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.25;
}

.quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-option {
  text-align: left;
  border: 1px solid rgba(171, 199, 241, 0.22);
  background: rgba(12, 24, 42, 0.75);
  border-radius: 12px;
  min-height: 50px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.quiz-option:hover {
  transform: translateY(-1px);
  border-color: rgba(48, 232, 191, 0.55);
}

.quiz-option.active {
  border-color: rgba(48, 232, 191, 0.85);
  background: rgba(15, 35, 47, 0.88);
}

.quiz-controls {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.lead-form {
  display: grid;
  gap: 10px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}

.status-chip.allow {
  color: #b4ffe0;
  background: rgba(46, 209, 138, 0.2);
  border: 1px solid rgba(75, 223, 162, 0.55);
}

.status-chip.challenge {
  color: #ffe2b0;
  background: rgba(255, 184, 77, 0.2);
  border: 1px solid rgba(255, 184, 77, 0.52);
}

.status-chip.deny {
  color: #ffd2d6;
  background: rgba(255, 111, 120, 0.2);
  border: 1px solid rgba(255, 111, 120, 0.52);
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list details {
  padding: 14px 16px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--title);
}

.faq-list p {
  margin-top: 10px;
}

.cta {
  padding: 0 0 80px;
}

.cta-wrap {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-wrap h2 {
  font-size: clamp(26px, 4vw, 38px);
  max-width: 16ch;
}

.site-footer {
  border-top: 1px solid rgba(159, 186, 222, 0.18);
  padding: 22px 0 30px;
  background: rgba(6, 12, 22, 0.65);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #c4d9f7;
}

.footer-links a:hover {
  color: #e7f2ff;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .economy-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid,
  .analytics-grid,
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 840px) {
  .nav {
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(8, 16, 28, 0.98);
    padding: 14px;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .benefit-grid,
  .analytics-grid,
  .trust-grid,
  .hero-cards {
    grid-template-columns: 1fr;
  }

  .section-head h2,
  .hero-copy h1,
  .cta-wrap h2 {
    max-width: none;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

.nav a.is-active {
  color: var(--title);
}

.instruction-main {
  padding-bottom: 76px;
}

.instruction-hero {
  padding: 58px 0 24px;
}

.instruction-hero h1 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(30px, 5.1vw, 52px);
  line-height: 1.18;
  max-width: 17ch;
}

.instruction-lead {
  margin: 16px 0 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: 17px;
}

.quick-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(13, 27, 46, 0.66);
  color: #c8dcfb;
  font-size: 13px;
}

.quick-links a:hover {
  border-color: var(--line-strong);
  color: var(--title);
}

.instruction-layout {
  padding: 6px 0 0;
}

.instruction-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}

.instruction-aside {
  position: sticky;
  top: 92px;
  height: fit-content;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 31, 52, 0.95), rgba(11, 22, 36, 0.94));
  padding: 16px;
}

.instruction-aside h3,
.instruction-card h2,
.problem-list h3 {
  margin: 0;
  color: var(--title);
}

.instruction-aside ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #c8daf5;
  display: grid;
  gap: 8px;
}

.instruction-content {
  display: grid;
  gap: 12px;
}

.instruction-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 29, 48, 0.95), rgba(10, 20, 34, 0.95));
  box-shadow: var(--shadow-2);
  padding: 20px;
}

.instruction-card h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(20px, 2.8vw, 30px);
}

.instruction-card p,
.instruction-card li {
  color: #d4e5ff;
  line-height: 1.62;
}

.instruction-card ol,
.instruction-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.instruction-card pre {
  margin: 12px 0 0;
  border: 1px solid rgba(170, 202, 244, 0.28);
  border-radius: 12px;
  background: rgba(6, 13, 24, 0.75);
  padding: 14px;
  overflow-x: auto;
}

.instruction-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hint-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(46, 209, 138, 0.35);
  background: rgba(46, 209, 138, 0.1);
  color: #b9f8da;
}

.checklist {
  display: grid;
  gap: 8px;
}

.checklist p {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.problem-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.problem-list > div {
  border: 1px solid rgba(255, 184, 77, 0.4);
  background: rgba(255, 184, 77, 0.08);
  border-radius: 12px;
  padding: 12px;
}

.problem-list h3 {
  font-size: 18px;
}

@media (max-width: 1080px) {
  .instruction-grid {
    grid-template-columns: 1fr;
  }

  .instruction-aside {
    position: static;
  }
}

@media (max-width: 840px) {
  .instruction-hero {
    padding-top: 40px;
  }
}

.work-main {
  padding-bottom: 76px;
}

.work-hero {
  padding: 58px 0 22px;
}

.work-hero h1 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(30px, 4.7vw, 48px);
  line-height: 1.2;
  max-width: 18ch;
}

.work-hero p {
  margin: 14px 0 0;
  color: #d2e4ff;
  max-width: 78ch;
  line-height: 1.65;
}

.work-hero ol {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  color: #d2e4ff;
}

.work-content {
  padding: 0 0 16px;
}

.work-stack {
  display: grid;
  gap: 12px;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 29, 48, 0.95), rgba(10, 20, 34, 0.95));
  box-shadow: var(--shadow-2);
  padding: 20px;
}

.work-card h2,
.work-card h3 {
  margin: 0;
  color: var(--title);
}

.work-card h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(20px, 2.7vw, 31px);
  line-height: 1.3;
}

.work-card h3 {
  margin-top: 12px;
  font-size: 19px;
}

.work-card p,
.work-card li {
  color: #d4e5ff;
  line-height: 1.62;
}

.work-card p {
  margin: 11px 0 0;
}

.work-card ul,
.work-card ol {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
}

.work-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 840px) {
  .work-hero {
    padding-top: 40px;
  }

  .work-card {
    padding: 16px;
  }
}

body.modal-open {
  overflow: hidden;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 8, 18, 0.72);
  backdrop-filter: blur(6px);
}

.popup-overlay.active {
  display: flex;
}

.popup-card {
  width: min(460px, 96vw);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 30, 50, 0.98), rgba(11, 20, 34, 0.98));
  box-shadow: var(--shadow-1);
  padding: 18px;
}

.popup-close {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 22, 36, 0.75);
  color: #d1e4ff;
  cursor: pointer;
}

.popup-card h3 {
  margin: 0;
  color: var(--title);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(20px, 3vw, 26px);
}

.popup-text {
  margin: 10px 0 0;
  color: var(--muted);
}

.popup-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.popup-form label {
  display: grid;
  gap: 6px;
  color: #cde0fb;
  font-size: 14px;
}

.popup-form input {
  min-height: 46px;
  border: 1px solid rgba(170, 202, 244, 0.28);
  border-radius: 12px;
  background: rgba(6, 13, 24, 0.68);
  color: var(--text);
  padding: 10px 12px;
}

.popup-form input:focus {
  outline: 2px solid rgba(48, 232, 191, 0.5);
  outline-offset: 1px;
}

.popup-source {
  margin: 0;
  color: #b7d4ff;
  font-size: 13px;
}

.popup-result {
  margin-top: 12px;
  border: 1px dashed rgba(165, 198, 244, 0.4);
  background: rgba(8, 16, 29, 0.76);
  border-radius: 12px;
  padding: 10px 12px;
  color: #d3e4ff;
  font-size: 14px;
}

@media (max-width: 600px) {
  .popup-card {
    padding: 14px;
  }
}

.analysis-card {
  margin-top: 2px;
  border: 1px solid rgba(164, 199, 245, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 20, 36, 0.94), rgba(6, 14, 24, 0.94));
  padding: 12px;
  display: grid;
  gap: 10px;
}

.analysis-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.analysis-head h4 {
  margin: 6px 0 0;
  color: #e8f3ff;
  font-size: 17px;
}

.analysis-score {
  border: 1px solid rgba(48, 232, 191, 0.4);
  background: rgba(48, 232, 191, 0.1);
  color: #c8ffe9;
  border-radius: 999px;
  min-height: 30px;
  padding: 4px 12px;
  font-weight: 700;
  white-space: nowrap;
}

.analysis-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.analysis-kpis > div {
  border: 1px solid rgba(165, 197, 239, 0.25);
  border-radius: 12px;
  background: rgba(12, 22, 37, 0.72);
  padding: 8px;
}

.analysis-kpis span {
  display: block;
  color: #9eb8da;
  font-size: 12px;
}

.analysis-kpis strong {
  display: block;
  margin-top: 4px;
  color: #e8f3ff;
  font-size: 15px;
}

.analysis-section {
  border: 1px solid rgba(165, 197, 239, 0.2);
  border-radius: 12px;
  background: rgba(9, 19, 32, 0.66);
  padding: 10px;
}

.analysis-section h5,
.analysis-ai h5 {
  margin: 0;
  color: #dff0ff;
  font-size: 14px;
}

.analysis-list {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #cfe1fb;
  font-size: 13px;
}

.analysis-list.score-list {
  list-style: none;
  padding-left: 0;
}

.analysis-list.score-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(162, 196, 243, 0.14);
  padding-bottom: 4px;
}

.analysis-list.score-list li:last-child {
  border-bottom: 0;
}

.analysis-list.score-list b {
  color: #9ff5d8;
}

.analysis-ai {
  border: 1px solid rgba(48, 232, 191, 0.28);
  border-radius: 12px;
  background: rgba(22, 56, 57, 0.34);
  padding: 10px;
}

.analysis-ai p {
  margin: 8px 0 0;
  color: #d6eeeb;
  font-size: 13px;
}

.analysis-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #b9d2f2;
  font-size: 12px;
}

.analysis-extra {
  margin-top: 8px;
  border: 1px dashed rgba(172, 202, 244, 0.38);
  border-radius: 12px;
  background: rgba(8, 16, 29, 0.82);
  padding: 8px 10px;
  color: #d6e7ff;
  font-size: 13px;
}

@media (max-width: 820px) {
  .analysis-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .analysis-head {
    flex-direction: column;
  }
}
