:root {
  --ink: #172033;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --tint: #f7f8fb;
  --violet: #6d4aff;
  --violet-dark: #5738df;
  --teal: #0d9488;
  --green: #067647;
  --green-soft: #ecfdf3;
  --dark: #111827;
  --shadow: 0 20px 60px rgba(36, 28, 72, 0.1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--surface); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(109, 74, 255, 0.35);
  outline-offset: 3px;
}

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 820px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(228, 231, 236, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 780; letter-spacing: -0.04em; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: linear-gradient(140deg, #7454ff, #0d9488);
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(109, 74, 255, 0.24);
}
.primary-nav { display: flex; align-items: center; gap: 28px; color: #475467; font-size: 14px; font-weight: 650; }
.primary-nav a:hover { color: var(--violet); }
.primary-nav .nav-cta { padding: 10px 17px; border-radius: 999px; color: white; background: var(--dark); }
.primary-nav .nav-cta:hover { color: white; background: #263246; }
.menu-button { display: none; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 8px 12px; color: var(--ink); }
.legal-nav { display: flex; }

.hero {
  overflow: hidden;
  padding: 92px 0 82px;
  background:
    radial-gradient(circle at 12% 18%, rgba(109, 74, 255, 0.12), transparent 29%),
    radial-gradient(circle at 87% 9%, rgba(13, 148, 136, 0.12), transparent 27%),
    linear-gradient(180deg, #fff, #fbfaff);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 78px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(13, 148, 136, 0.12); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(48px, 7vw, 78px); line-height: 0.98; letter-spacing: -0.065em; }
.hero-copy { max-width: 650px; margin-bottom: 30px; color: #546078; font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 19px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  padding: 0 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--violet); box-shadow: 0 12px 26px rgba(109, 74, 255, 0.24); }
.button-primary:hover { background: var(--violet-dark); box-shadow: 0 15px 32px rgba(109, 74, 255, 0.31); }
.button-secondary { color: var(--ink); border: 1px solid var(--line); background: white; }
.hero-note { color: #7c8496; font-size: 12px; }

.hero-card {
  position: relative;
  border: 1px solid #e0dcf5;
  border-radius: 24px;
  padding: 0 23px 23px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.hero-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 24px -24px -24px 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, #eeeaff, #dff7f2);
}
.window-bar { height: 56px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #edeaf6; color: #7a8090; font-size: 12px; }
.window-bar span { width: 8px; height: 8px; border-radius: 50%; background: #d7d3e2; }
.window-bar strong { margin-left: auto; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.prompt-preview { margin: 20px 0; border-radius: 14px; padding: 15px 16px; color: #3e4352; background: #f6f4ff; font-size: 14px; font-weight: 650; line-height: 1.5; }
.rule-list { display: grid; gap: 10px; }
.rule-list div { display: flex; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; font-size: 12px; }
.rule-list span { color: var(--muted); }
.rule-list strong { text-align: right; }
.generated-state { margin-top: 18px; display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 13px; font-weight: 750; }
.generated-state span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid div { padding: 24px; border-right: 1px solid var(--line); }
.trust-grid div:first-child { padding-left: 0; }
.trust-grid div:last-child { border-right: 0; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { margin-bottom: 5px; font-size: 13px; }
.trust-grid span { color: var(--muted); font-size: 12px; }

.section { padding: 100px 0; scroll-margin-top: 68px; }
.section-tint { background: var(--tint); }
.section-heading { max-width: 710px; margin-bottom: 40px; }
.section-heading h2, .pricing-copy h2 { margin-bottom: 16px; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.05em; }
.section-heading > p:last-child, .pricing-copy > p:last-child { color: var(--muted); line-height: 1.7; }
.section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }

.playground-card { border: 1px solid #ddd8f2; border-radius: 24px; padding: 22px; background: white; box-shadow: 0 18px 50px rgba(57, 45, 102, 0.08); }
.prompt-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.prompt-form input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 17px;
  color: var(--ink);
  background: #fafbfc;
}
.prompt-form input:focus { border-color: #a797ff; background: white; }
.suggestion-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 15px 0 20px; }
.suggestion-row button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: #5f6879; background: white; cursor: pointer; font-size: 12px; }
.suggestion-row button:hover { color: var(--violet); border-color: #bcb1f8; background: #faf9ff; }
.generation-status { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 14px 16px; color: var(--green); background: var(--green-soft); }
.generation-status > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); }
.generation-status strong, .generation-status small { display: block; }
.generation-status small { margin-top: 3px; color: #3a7d60; }
.generation-status.loading > span { animation: pulse 700ms infinite alternate; }

.results-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.results-heading > div { max-width: 700px; }
.table-search { min-width: 250px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; }
.table-search span { display: block; margin-bottom: 8px; }
.table-search input { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; color: var(--ink); background: white; font-size: 13px; text-transform: none; }
.result-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; overflow: hidden; }
.result-summary div { padding: 17px; border-right: 1px solid var(--line); }
.result-summary div:last-child { border-right: 0; }
.result-summary span, .result-summary strong { display: block; }
.result-summary span { margin-bottom: 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.result-summary strong { font-size: 13px; }
.table-wrap { border: 1px solid var(--line); border-radius: 18px; background: white; overflow: auto; box-shadow: 0 12px 32px rgba(35, 47, 70, 0.05); }
table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 13px; }
th, td { padding: 16px 17px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: #475467; background: #fafafa; font-size: 11px; letter-spacing: 0.035em; text-transform: uppercase; cursor: pointer; }
th:last-child { cursor: default; }
th span { color: #98a2b3; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #faf9ff; }
.positive { color: var(--green); font-weight: 700; }
.match { display: inline-flex; border-radius: 999px; padding: 5px 9px; color: var(--green); background: var(--green-soft); font-size: 11px; font-weight: 750; }
.empty-results { padding: 48px; color: var(--muted); text-align: center; }
.data-disclaimer { max-width: 840px; margin: 16px auto 0; color: #7b8497; font-size: 11px; line-height: 1.6; text-align: center; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid article { min-height: 220px; border: 1px solid var(--line); border-radius: 20px; padding: 26px; background: white; }
.feature-number { color: var(--violet); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; }
.feature-grid h3 { margin: 44px 0 12px; font-size: 24px; letter-spacing: -0.03em; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.65; }

.section-dark { color: white; background: var(--dark); }
.pricing-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 80px; }
.pricing-copy > p:last-child { color: #aeb7c7; }
.eyebrow-light { color: #a897ff; }
.price-card { border: 1px solid #394356; border-radius: 24px; padding: 30px; background: #1b2535; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24); }
.price-card-top { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.plan-label { color: #b8aaff; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.price-card h3 { margin: 8px 0 0; font-size: 20px; }
.popular { border-radius: 999px; padding: 6px 9px; color: #d8d0ff; background: #322a58; font-size: 10px; font-weight: 700; }
.price { display: flex; align-items: center; gap: 14px; margin: 28px 0; }
.price strong { font-size: 52px; letter-spacing: -0.05em; }
.price span { color: #aeb7c7; font-size: 11px; line-height: 1.6; }
.price-card ul { display: grid; gap: 13px; margin: 0 0 28px; padding: 0; list-style: none; color: #e1e6ef; font-size: 13px; }
.price-card li::before { content: "✓"; margin-right: 10px; color: #66d7bd; font-weight: 800; }
.button-light { width: 100%; color: var(--dark); background: white; }
.billing-note { margin: 13px 0 0; color: #9ca6b8; font-size: 10px; text-align: center; }

.faq-section details { border-bottom: 1px solid var(--line); }
.faq-section summary { padding: 22px 4px; cursor: pointer; font-weight: 750; }
.faq-section details p { margin: 0 4px 22px; color: var(--muted); line-height: 1.7; }

.site-footer { padding: 68px 0 26px; color: #cbd2df; background: #0b101a; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; }
.brand-footer { color: white; }
.footer-grid p { max-width: 290px; margin-top: 17px; color: #8e99aa; font-size: 13px; line-height: 1.6; }
.footer-grid > div:not(:first-child) { display: grid; align-content: start; gap: 11px; }
.footer-grid strong { margin-bottom: 6px; color: white; font-size: 12px; }
.footer-grid a { color: #98a3b5; font-size: 12px; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 50px; border-top: 1px solid #242d3b; padding-top: 22px; color: #7f8998; font-size: 11px; }

.legal-main { min-height: 70vh; padding: 78px 0 100px; background: var(--tint); }
.legal-card { max-width: 850px; margin: 0 auto; border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 6vw, 64px); background: white; box-shadow: 0 18px 50px rgba(35, 47, 70, 0.06); }
.legal-card h1 { margin-bottom: 12px; font-size: clamp(40px, 6vw, 60px); }
.legal-card .updated { margin-bottom: 42px; color: var(--muted); font-size: 13px; }
.legal-card h2 { margin: 34px 0 12px; font-size: 20px; letter-spacing: -0.02em; }
.legal-card p, .legal-card li { color: #596579; font-size: 14px; line-height: 1.75; }
.legal-card ul { padding-left: 22px; }
.legal-card a { color: var(--violet); text-decoration: underline; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 30px 0; }
.contact-tile { border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.contact-tile strong, .contact-tile span { display: block; }
.contact-tile span { margin-top: 7px; color: var(--muted); font-size: 13px; }

@keyframes pulse { from { opacity: 0.35; } to { opacity: 1; } }

@media (max-width: 860px) {
  .hero-grid, .pricing-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-card { max-width: 620px; }
  .trust-grid, .result-summary { grid-template-columns: repeat(2, 1fr); }
  .trust-grid div:nth-child(2), .result-summary div:nth-child(2) { border-right: 0; }
  .trust-grid div { border-bottom: 1px solid var(--line); }
  .trust-grid div:nth-child(3), .trust-grid div:nth-child(4) { border-bottom: 0; }
  .result-summary div:nth-child(1), .result-summary div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: auto; }
  .feature-grid h3 { margin-top: 24px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1160px); }
  .menu-button { display: block; }
  .primary-nav {
    position: absolute;
    top: 70px;
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 8px;
    background: white;
    box-shadow: var(--shadow);
  }
  .primary-nav.open { display: grid; }
  .primary-nav.legal-nav { position: static; display: flex; width: auto; border: 0; padding: 0; background: transparent; box-shadow: none; }
  .primary-nav a { padding: 12px; }
  .primary-nav .nav-cta { margin-top: 5px; text-align: center; }
  .hero { padding: 68px 0 58px; }
  h1 { font-size: 48px; }
  .hero-grid { gap: 42px; }
  .hero-card { transform: none; }
  .hero-card::before { display: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid div { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .trust-grid div:last-child { border-bottom: 0 !important; }
  .section { padding: 76px 0; }
  .prompt-form { grid-template-columns: 1fr; }
  .results-heading { display: block; }
  .table-search { display: block; min-width: 0; margin-top: 24px; }
  .result-summary { grid-template-columns: 1fr; }
  .result-summary div { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .result-summary div:last-child { border-bottom: 0 !important; }
  .pricing-grid { gap: 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 22px; }
  .footer-grid > div:first-child { grid-column: 1 / 3; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { display: grid; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal-nav a:not(.nav-cta) { display: none; }
}

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