:root {
  color-scheme: dark;
  --bg: #080d19;
  --panel: #101827;
  --panel-light: #141f31;
  --border: rgba(159, 178, 215, .12);
  --text: #f0f3ff;
  --muted: #929db5;
  --purple: #a38aff;
  --cyan: #6cdaea;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

button, textarea { font: inherit; }
button:focus-visible, a:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.background-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .13;
  pointer-events: none;
  z-index: -1;
}

.glow-one { background: #754dff; top: -280px; left: 15%; }
.glow-two { background: #087ba9; top: 850px; right: -350px; }

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.navbar {
  max-width: 1200px;
  height: 82px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(140deg, #a58cff, #5c65d9);
  font: 700 20px 'Space Grotesk';
  box-shadow: 0 5px 25px #8066e944;
}

.brand-name {
  font: 700 21px 'Space Grotesk';
  letter-spacing: -1px;
}

.brand-name span { color: #a6b0c7; font-weight: 400; }

.navigation { display: flex; gap: 34px; }
.navigation a {
  color: #9da8be;
  font-size: 12px;
  text-decoration: none;
  transition: color .2s;
}
.navigation a:hover { color: white; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #e9e5ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 11px 15px;
  border: 1px solid #8870df55;
  border-radius: 8px;
  background: #8270d51a;
}
.nav-cta span { color: var(--purple); font-size: 16px; }

main { max-width: 1040px; margin: auto; padding: 0 25px; }

.hero {
  text-align: center;
  padding: 95px 0 67px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid #8770d744;
  border-radius: 30px;
  background: #8170d512;
  color: #c0b4ff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6bd9a7;
  box-shadow: 0 0 12px #6bd9a7;
}

h1, h2, h3, p { margin-top: 0; }

.hero h1 {
  max-width: 800px;
  margin: 26px auto 19px;
  font: 600 clamp(42px, 7vw, 68px)/1.08 'Space Grotesk';
  letter-spacing: -3.7px;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(95deg, #b19aff 15%, #7bdde9 90%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  max-width: 570px;
  margin: auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.hero-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 25px;
  color: #a9b4ca;
  font-size: 11px;
}

.hero-points i {
  color: #72d9ad;
  font-style: normal;
  margin-right: 5px;
}

.workspace {
  max-width: 850px;
  margin: 0 auto;
}

.workspace-top, .results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}

.section-kicker {
  color: #a895f5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.9px;
}

.workspace-top h2, .results-heading h2 {
  margin: 7px 0 4px;
  font: 600 23px 'Space Grotesk';
  letter-spacing: -.5px;
}

.workspace-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.privacy-pill {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: #aeb9ce;
  font-size: 10px;
  white-space: nowrap;
}
.privacy-pill span { color: #6ed6ad; margin-right: 5px; }

.editor-card, .metrics-card, .summary-card, .stat-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #121c2d, #0e1726);
  border-radius: 15px;
}

.editor-card {
  padding: 25px;
  box-shadow: 0 25px 90px #0004;
}

.editor-toolbar, .editor-footer, .editor-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editor-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
}

.editor-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  color: #b4a1ff;
  background: #9a7eff20;
  font-size: 16px;
}

.format-label {
  color: #78869f;
  font-size: 9px;
  letter-spacing: 1.2px;
}

textarea {
  display: block;
  width: 100%;
  height: 225px;
  margin-top: 19px;
  padding: 18px;
  resize: vertical;
  border: 1px solid #9aabc51a;
  border-radius: 10px;
  outline: none;
  background: #0a1220;
  color: var(--text);
  font: 13px/1.85 'DM Sans';
  transition: border .2s, box-shadow .2s;
}

textarea:focus {
  border-color: #9b83f5a8;
  box-shadow: 0 0 0 3px #9674ff13;
}

textarea::placeholder { color: #65728b; }

.editor-footer {
  padding: 13px 2px 19px;
  color: #7f8ba4;
  font-size: 10px;
}

.editor-actions { display: flex; gap: 18px; }

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: #aab5cb;
  cursor: pointer;
  font-size: 10px;
  transition: color .2s;
}
.text-button:hover { color: white; }

.editor-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.minimum-info {
  color: #8794ad;
  font-size: 10px;
}

.info-circle {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  border: 1px solid #8290a8;
  border-radius: 50%;
  font-size: 9px;
}

.analyze-button {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 13px 17px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(110deg, #9276f4, #6479e9);
  color: white;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 25px #8066e933;
  transition: transform .2s, filter .2s;
}
.analyze-button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.12); }
.analyze-button:disabled { opacity: .4; cursor: not-allowed; }
.button-arrow { font-size: 17px; }

.error-message {
  min-height: 0;
  margin: 10px 0 0;
  color: #ff91a2;
  font-size: 11px;
}

.hidden { display: none !important; }

.results {
  margin-top: 48px;
  animation: appear .4s ease;
}

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

.completed-pill {
  padding: 8px 12px;
  border: 1px solid #5cc69b35;
  border-radius: 30px;
  background: #55c99b12;
  color: #80dfb6;
  font-size: 10px;
  white-space: nowrap;
}
.completed-pill span { margin-right: 5px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.stat-card {
  min-width: 0;
  padding: 17px;
  transition: transform .2s, border-color .2s;
}
.stat-card:hover { transform: translateY(-3px); border-color: #a18bfa55; }

.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
}

.purple { color: #b49fff; background: #9b7eff20; }
.cyan { color: #75ddec; background: #62d7e520; }
.pink { color: #f19bc5; background: #e77eaa20; }
.gold { color: #eac57c; background: #eac57c20; }

.stat-caption { color: #77859f; font-size: 8px; letter-spacing: 1px; }
.stat-card strong { display: block; font: 600 27px 'Space Grotesk'; }
.stat-card strong small { color: #8995ac; font: 400 12px 'DM Sans'; }
.stat-description { display: block; margin-top: 5px; color: #929db3; font-size: 10px; }

.details-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 13px;
}

.metrics-card, .summary-card { padding: 22px; }

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

.card-title-row h3, .summary-card h3 {
  margin: 6px 0 0;
  font: 600 17px 'Space Grotesk';
}

.small-tag {
  padding: 6px 9px;
  border-radius: 5px;
  background: #8e78e51b;
  color: #b9a8ff;
  font-size: 9px;
}

.metric { margin-top: 21px; }
.metric-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 11px;
}
.metric-top span:last-child { color: #b7a5ff; font-weight: 700; }

.track {
  height: 7px;
  overflow: hidden;
  border-radius: 10px;
  background: #263248;
}

.fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #9274f3, #69d7e8);
  transition: width .8s ease;
}

.metric-description {
  margin: 8px 0 0;
  color: #8591a9;
  font-size: 10px;
  line-height: 1.6;
}

.summary-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: #a18aff20;
  color: #b7a5ff;
  font-size: 17px;
}

.summary-card h3 { margin-bottom: 25px; }

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
  color: #9aa6bd;
  font-size: 10px;
}
.summary-item strong { color: #f0f3ff; font-size: 12px; }

.notice-card {
  display: flex;
  gap: 13px;
  margin-top: 14px;
  padding: 19px;
  border: 1px solid #9c83ee27;
  border-radius: 12px;
  background: #8471d40c;
}

.notice-symbol {
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #a18aff20;
  color: #bbaaff;
  font-size: 12px;
}

.notice-card strong { font: 600 12px 'Space Grotesk'; }
.notice-card p {
  margin: 7px 0 0;
  color: #a0abc1;
  font-size: 10px;
  line-height: 1.75;
}

.new-analysis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: #b9a7ff;
  font-size: 11px;
  cursor: pointer;
}
.new-analysis:hover { color: white; }
.new-analysis span { font-size: 16px; }

.features-section { padding: 110px 0 85px; }

.section-heading { text-align: center; }
.section-heading h2 {
  margin: 15px 0 12px;
  font: 600 39px/1.2 'Space Grotesk';
  letter-spacing: -1.5px;
}
.section-heading > p { color: var(--muted); font-size: 12px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.feature-card {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(145deg, #121c2c, #0d1523);
  transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: #9b85e64a; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  margin-bottom: 20px;
  border-radius: 10px;
  font-size: 20px;
}
.purple-bg { background: #9674ff20; color: #b7a4ff; }
.cyan-bg { background: #66d8e920; color: #76dfed; }
.pink-bg { background: #e78bb820; color: #f2a6ca; }

.feature-card h3 { margin-bottom: 9px; font: 600 14px 'Space Grotesk'; }
.feature-card p { max-width: 230px; color: #929db3; font-size: 11px; line-height: 1.8; }
.feature-number {
  position: absolute;
  right: 18px;
  bottom: 8px;
  color: #ffffff08;
  font: 700 49px 'Space Grotesk';
}

.about-section {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 34px;
  margin-bottom: 75px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(110deg, #151d32, #101a28);
}

.about-orb {
  flex: 0 0 100px;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border: 1px solid #a48aff55;
  border-radius: 28px;
  background: linear-gradient(140deg, #a48aff30, #6bd9e922);
  color: #d3c8ff;
  font: 700 53px 'Space Grotesk';
  box-shadow: 0 0 65px #8066e91b;
}

.about-section h2 {
  margin: 9px 0 12px;
  font: 600 25px/1.25 'Space Grotesk';
  letter-spacing: -.7px;
}
.about-section p {
  max-width: 620px;
  margin: 0;
  color: #9ba7bd;
  font-size: 11px;
  line-height: 1.9;
}

.footer {
  max-width: 1200px;
  min-height: 90px;
  margin: auto;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.footer .brand-name { font-size: 17px; }
.footer .brand-mark { width: 28px; height: 28px; font-size: 16px; }
.footer p, .copyright { margin: 0; color: #78859d; font-size: 10px; }

@media (max-width: 760px) {
  .navigation { gap: 17px; }
  .navigation a { font-size: 10px; }
  .nav-cta { font-size: 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .navbar { height: 70px; padding: 0 18px; }
  .navigation { display: none; }
  .nav-cta { padding: 9px 11px; }
  .brand-name { font-size: 19px; }

  main { padding: 0 17px; }
  .hero { padding: 72px 0 50px; }
  .hero h1 { font-size: clamp(39px, 10vw, 53px); letter-spacing: -2.5px; }
  .hero-description { font-size: 13px; }
  .hero-points { gap: 12px 18px; font-size: 10px; }

  .workspace-top { align-items: flex-start; }
  .workspace-top h2, .results-heading h2 { font-size: 20px; }
  .privacy-pill { font-size: 9px; padding: 8px; }
  .editor-card { padding: 16px; }
  textarea { height: 200px; padding: 14px; font-size: 12px; }

  .editor-footer { align-items: flex-start; }
  .editor-actions { gap: 12px; }
  .text-button { font-size: 9px; }
  .minimum-info { max-width: 120px; line-height: 1.5; }
  .analyze-button { gap: 10px; padding: 12px; font-size: 10px; }

  .results-heading { align-items: flex-start; }
  .completed-pill { font-size: 9px; padding: 7px 9px; }
  .stat-card { padding: 13px; }
  .stat-card strong { font-size: 24px; }
  .stat-caption { font-size: 7px; }

  .details-grid { grid-template-columns: 1fr; }
  .metrics-card, .summary-card { padding: 18px; }
  .features-section { padding: 80px 0 60px; }
  .section-heading h2 { font-size: 33px; }
  .feature-grid { grid-template-columns: 1fr; gap: 11px; margin-top: 30px; }
  .feature-card { min-height: 175px; }

  .about-section { padding: 23px; gap: 18px; align-items: flex-start; }
  .about-orb { flex-basis: 55px; width: 55px; height: 55px; border-radius: 15px; font-size: 30px; }
  .about-section h2 { font-size: 19px; }
  .about-section p { font-size: 10px; }

  .footer { padding: 20px 18px; flex-wrap: wrap; }
  .footer p { display: none; }
  .copyright { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
