:root {
  --blue-950: #061528;
  --blue-900: #0a2540;
  --blue-800: #0e3a66;
  --blue-600: #1a6fd4;
  --blue-500: #2b7fff;
  --blue-400: #5ca0ff;
  --blue-100: #e8f1ff;
  --blue-50: #f3f7ff;
  --ink: #0c1b2e;
  --muted: #5a6f88;
  --white: #ffffff;
  --line: rgba(26, 111, 212, 0.14);
  --radius: 14px;
  --max: 1120px;
  --font: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--white);
}

.logo span {
  color: var(--blue-400);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  list-style: none;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.nav-links a:hover {
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(43, 127, 255, 0.35);
}

.btn-primary:hover {
  background: #1f6eef;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-dark {
  background: var(--blue-900);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 1.5px solid var(--blue-600);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(43, 127, 255, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(14, 58, 102, 0.7), transparent 50%),
    linear-gradient(160deg, var(--blue-950) 0%, var(--blue-900) 45%, #0c4a8a 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 7.5rem 0 4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: end;
}

.hero-copy {
  max-width: 34rem;
  padding-bottom: 1.5rem;
}

.hero-brand {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: rise 0.8s ease forwards 0.1s;
}

.hero-brand span {
  color: var(--blue-400);
}

.hero h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  opacity: 0;
  animation: rise 0.8s ease forwards 0.25s;
}

.hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  max-width: 28rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise 0.8s ease forwards 0.4s;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.8s ease forwards 0.55s;
}

/* Inbox mock */
.inbox {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: rise 0.9s ease forwards 0.35s, float 6s ease-in-out 1.2s infinite;
}

.inbox-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 4px rgba(61, 214, 140, 0.2);
}

.inbox-body {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  min-height: 320px;
}

.thread-list {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
}

.thread {
  padding: 0.75rem;
  border-radius: 10px;
  margin-bottom: 0.25rem;
}

.thread.active {
  background: rgba(43, 127, 255, 0.28);
}

.thread strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.thread span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.chat {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bubble {
  max-width: 85%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.bubble.in {
  background: rgba(255, 255, 255, 0.1);
  align-self: flex-start;
}

.bubble.out {
  background: var(--blue-500);
  align-self: flex-end;
}

.bubble.auto {
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: rgba(43, 127, 255, 0.15);
  align-self: flex-end;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Sections */
section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.features {
  background: var(--blue-50);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}

.feature {
  padding: 0.5rem 0;
}

.feature-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-500);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.feature h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

.pain {
  background: var(--white);
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.pain-list,
.gain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pain-list li,
.gain-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
}

.pain-list li::before,
.gain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pain-list li::before {
  background: #c45c5c;
}

.gain-list li::before {
  background: var(--blue-500);
}

.pain-grid h3 {
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}

.steps {
  background: linear-gradient(180deg, var(--blue-900), var(--blue-950));
  color: var(--white);
}

.steps .section-head p {
  color: rgba(255, 255, 255, 0.65);
}

.step-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step h3 {
  font-size: 1.15rem;
  margin: 0.75rem 0 0.45rem;
  letter-spacing: -0.02em;
}

.step p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.step-n {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-500);
  font-weight: 700;
  font-size: 0.9rem;
}

.cta {
  background: var(--blue-50);
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.75rem;
}

.cta p {
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto 1.75rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Legal pages */
.legal-hero {
  background: linear-gradient(160deg, var(--blue-950), var(--blue-800));
  color: var(--white);
  padding: 8rem 0 3.5rem;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
}

.legal-hero p {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
}

.legal-body {
  padding: 3.5rem 0 5rem;
}

.legal-body .wrap {
  max-width: 720px;
}

.legal-body h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
}

.legal-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-nav .logo {
  color: var(--white);
}

/* Footer */
.footer {
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 6.5rem;
  }

  .inbox-body {
    grid-template-columns: 1fr;
  }

  .thread-list {
    display: none;
  }

  .feature-grid,
  .step-row,
  .pain-grid {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.btn) {
    display: none;
  }
}
