:root {
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --cyan: #2dd4bf;
  --navy: #1e293b;
  --slate: #334155;
  --mute: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f8fafc;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --container: 68rem;
  --space: clamp(1.1rem, 3.5vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100% - (var(--space) * 2), var(--container));
  margin-inline: auto;
}

.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;
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}

.brand-dark {
  color: var(--navy);
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background:
    linear-gradient(135deg, #fff 45%, transparent 45%),
    linear-gradient(135deg, var(--cyan), var(--blue-500));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.brand-dark .brand-mark {
  background:
    linear-gradient(135deg, #fff 45%, transparent 45%),
    linear-gradient(135deg, var(--cyan), var(--blue-600));
  box-shadow: none;
}

/* Buttons — Cruip-style pills (reference override) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn-dark {
  background: var(--navy);
  color: #f8fafc;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.btn-dark:hover {
  background: #0f172a;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: var(--blue-700);
}

.btn-ghost-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
}

.btn-ghost-light:hover {
  color: #fff;
}

.btn-arrow {
  font-size: 1rem;
  line-height: 1;
}

/* Hero */
.hero {
  position: relative;
  padding: 7.5rem 0 6.5rem;
  color: #fff;
  background:
    radial-gradient(ellipse 90% 80% at 20% 0%, #60a5fa 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 90% 20%, #38bdf8 0%, transparent 45%),
    linear-gradient(160deg, #3b82f6 0%, #2563eb 48%, #1d4ed8 100%);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: auto -10% -30% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
  }
}

.hero-copy h1 {
  margin: 0 0 1.1rem;
  max-width: 12ch;
  font-size: clamp(2.35rem, 5.5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.highlight {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.highlight::after {
  content: "";
  position: absolute;
  left: -0.2em;
  right: -0.25em;
  top: 0.05em;
  bottom: -0.05em;
  border: 2.5px solid var(--cyan);
  border-radius: 50% 45% 55% 48% / 55% 48% 52% 45%;
  transform: rotate(-2deg);
  pointer-events: none;
}

.hero-lede {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.hero-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4.5rem;
  background: var(--paper);
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 0;
  width: 55%;
}

@media (max-width: 759px) {
  .hero-curve {
    width: 75%;
    height: 3rem;
  }
}

/* Floating product visuals */
.hero-visual {
  position: relative;
  min-height: 22rem;
  max-width: 26rem;
  margin-inline: auto;
}

@media (min-width: 960px) {
  .hero-visual {
    max-width: none;
    min-height: 26rem;
    margin-inline: 0;
  }
}

.float-card {
  border-radius: 1rem;
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.float-card-chat {
  position: relative;
  z-index: 1;
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.85rem 0.9rem 1rem;
  width: min(100%, 22rem);
  margin-left: auto;
}

.chat-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 14rem;
  justify-content: flex-end;
}

.bubble {
  max-width: 92%;
  padding: 0.65rem 0.8rem;
  font-size: 0.78rem;
  line-height: 1.45;
  border-radius: 0.85rem;
  opacity: 0;
  transform: translateY(8px);
}

.bubble.is-visible {
  animation: bubble-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bubble-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bubble-user {
  align-self: flex-end;
  background: var(--blue-600);
  color: #fff;
  border-bottom-right-radius: 0.3rem;
}

.bubble-bot {
  align-self: flex-start;
  background: #1e293b;
  color: #e2e8f0;
  border-bottom-left-radius: 0.3rem;
}

.bubble-picks {
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem;
}

.pick {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.45rem;
  border-left: 2px solid var(--cyan);
}

.pick strong {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f8fafc;
}

.pick span {
  font-size: 0.68rem;
  color: #94a3b8;
  white-space: nowrap;
}

.float-card-summary {
  position: absolute;
  left: 0;
  bottom: 1.25rem;
  z-index: 2;
  width: min(70%, 13.5rem);
  padding: 1rem 1.05rem;
  background: #fff;
  color: var(--navy);
  box-shadow:
    0 20px 40px -12px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(15, 23, 42, 0.04);
}

.summary-label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

.summary-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.summary-meta {
  margin: 0.2rem 0 0.75rem;
  font-size: 0.75rem;
  color: var(--mute);
}

.summary-bar {
  height: 0.4rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.summary-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue-500));
}

.summary-score {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-600);
}

/* Features */
.features {
  padding: 1rem 0 4.5rem;
  background: var(--paper);
}

.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.features article h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.features article p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--mute);
  max-width: 28ch;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 0.85rem;
  color: var(--blue-600);
  background: linear-gradient(160deg, #dbeafe, #eff6ff);
}

/* Dark panel */
.panel {
  padding: 0 var(--space) 4rem;
}

.panel-inner {
  display: grid;
  gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 3.75rem);
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(45, 212, 191, 0.18), transparent 50%),
    linear-gradient(165deg, #1e293b, #0f172a);
  color: #fff;
  border-radius: 1.75rem;
  overflow: hidden;
}

@media (min-width: 900px) {
  .panel-inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.panel-copy h2 {
  margin: 0 0 0.85rem;
  max-width: 16ch;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.panel-copy > p {
  margin: 0 0 1.75rem;
  max-width: 42ch;
  color: #94a3b8;
}

.panel-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.panel-steps li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.panel-steps span {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cyan);
  padding-top: 0.15rem;
}

.panel-steps strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-steps em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.9rem;
  color: #94a3b8;
}

.panel-visual {
  position: relative;
  min-height: 14rem;
}

.panel-chip {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.chip-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--cyan);
}

.panel-card {
  margin-top: 2rem;
  padding: 1.35rem 1.4rem;
  background: linear-gradient(145deg, #2dd4bf, #22d3ee 55%, #38bdf8);
  border-radius: 1.15rem;
  color: #0f172a;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transform: rotate(-3deg);
}

.panel-card p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.8;
}

.panel-card strong {
  display: block;
  margin: 0.2rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 3.5rem;
}

.mini-bars i {
  flex: 1;
  display: block;
  border-radius: 0.3rem 0.3rem 0.1rem 0.1rem;
  background: rgba(15, 23, 42, 0.22);
}

/* Try */
.try {
  padding: 2rem 0 5rem;
}

.try-inner {
  max-width: 36rem;
  text-align: center;
}

.try-inner h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.try-inner > p {
  margin: 0 0 1.5rem;
  color: var(--mute);
}

.try-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  text-align: left;
}

.try-form textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 1rem;
  resize: vertical;
  min-height: 7rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.try-form textarea::placeholder {
  color: #94a3b8;
}

.try-form textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.try-form .btn {
  align-self: center;
}

.form-note {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-600);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--mute);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }

  .bubble {
    opacity: 1;
    transform: none;
  }

  .bubble.is-visible {
    animation: none;
  }
}
