:root {
  --ink: #15192a;
  --muted: #667085;
  --paper: #fffdf8;
  --panel: rgba(255, 255, 255, 0.78);
  --line: rgba(21, 25, 42, 0.1);
  --blue: #316bff;
  --cyan: #1bb7c9;
  --green: #41c982;
  --yellow: #ffc857;
  --coral: #ff6b6b;
  --purple: #7b61ff;
  --shadow: 0 28px 80px rgba(49, 107, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 200, 87, 0.3), transparent 27%),
    radial-gradient(circle at 88% 6%, rgba(49, 107, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #fffdf8 54%, #f4f8ff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(21, 25, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 25, 42, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
  z-index: -2;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 60px rgba(21, 25, 42, 0.08);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  padding-block: 9px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 46px rgba(21, 25, 42, 0.12);
}

.brand,
.main-nav a,
.header-cta,
.button {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 32px rgba(49, 107, 255, 0.22);
}

.main-nav {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover {
  color: var(--blue);
  background: rgba(49, 107, 255, 0.09);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta {
  padding: 0 18px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 16px 38px rgba(49, 107, 255, 0.24);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 142px 24px 76px;
  overflow: hidden;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero-orbit span {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(49, 107, 255, 0.16);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite;
}

.hero-orbit span:nth-child(1) {
  top: 22%;
  left: 8%;
  background: rgba(255, 200, 87, 0.12);
}

.hero-orbit span:nth-child(2) {
  right: 12%;
  bottom: 14%;
  background: rgba(27, 183, 201, 0.1);
  animation-delay: 1.4s;
}

.hero-orbit span:nth-child(3) {
  top: 12%;
  right: 28%;
  width: 140px;
  height: 140px;
  background: rgba(255, 107, 107, 0.1);
  animation-delay: 2.2s;
}

.hero-grid {
  width: min(1180px, 100%);
  min-height: calc(100vh - 218px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.84fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.mobile-copy h2,
.final-content h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(3.15rem, 7.2vw, 6.8rem);
}

.hero-text,
.section-heading p,
.mobile-copy p,
.final-content p,
.role-card p,
.feature-card p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-text {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: 1.13rem;
}

.hero-subline {
  margin: 18px 0 0;
  font-size: 1.08rem;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  padding: 0 22px;
  border: 1px solid transparent;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 18px 46px rgba(49, 107, 255, 0.25);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.button-secondary:hover {
  background: white;
  box-shadow: 0 16px 36px rgba(21, 25, 42, 0.08);
}

.ai-console {
  min-height: 560px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 12% 0%, rgba(255, 200, 87, 0.28), transparent 36%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  transform-style: preserve-3d;
}

.console-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.console-top span:nth-child(1) {
  background: var(--coral);
}

.console-top span:nth-child(2) {
  background: var(--yellow);
}

.console-top span:nth-child(3) {
  background: var(--green);
}

.console-top strong {
  margin-left: auto;
}

.chat-stream {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.message {
  width: fit-content;
  max-width: 86%;
  padding: 16px 18px;
  border-radius: 22px;
  line-height: 1.5;
  animation: lift 5s ease-in-out infinite;
}

.message.user {
  justify-self: end;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.message.ai {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(21, 25, 42, 0.07);
}

.message:nth-child(2) {
  animation-delay: 700ms;
}

.message:nth-child(3) {
  animation-delay: 1.2s;
}

.message:nth-child(4) {
  animation-delay: 1.8s;
}

.mini-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.mini-dashboard article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.mini-dashboard span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.mini-dashboard strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.section,
.ai-section,
.intelligence {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 0;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 42px;
}

.section-heading h2,
.mobile-copy h2,
.final-content h2 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.section-heading p:not(.eyebrow),
.mobile-copy p,
.final-content p {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 1.03rem;
}

.data-cloud,
.benefit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.data-cloud span,
.benefit-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 42px rgba(21, 25, 42, 0.06);
  backdrop-filter: blur(18px);
}

.data-cloud span {
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 900;
}

.until {
  margin: 34px 0 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 900;
}

.prompt-grid,
.role-grid,
.feature-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.prompt-card,
.role-card,
.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(21, 25, 42, 0.08);
  backdrop-filter: blur(18px);
}

.prompt-card {
  min-height: 330px;
  padding: 24px;
  border-radius: 28px;
  transform-style: preserve-3d;
}

.prompt-card h3,
.role-card h3,
.feature-card h3 {
  margin: 0 0 18px;
  font-size: 1.25rem;
}

.prompt-card p {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--muted);
  background: white;
  line-height: 1.45;
}

.role-grid {
  grid-template-columns: repeat(3, 1fr);
}

.role-card,
.feature-card {
  padding: 28px;
  border-radius: 26px;
}

.role-card p,
.feature-card p {
  margin: 0;
}

.intelligence {
  padding-top: 120px;
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 46px;
  color: var(--blue);
  font-weight: 900;
}

.mobile-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  align-items: center;
  gap: 56px;
}

.phone {
  width: min(340px, 100%);
  min-height: 620px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(21, 25, 42, 0.12);
  border-radius: 44px;
  background: #15192a;
  box-shadow: 0 28px 80px rgba(21, 25, 42, 0.24);
}

.phone-screen {
  height: 588px;
  padding: 28px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(49, 107, 255, 0.16), transparent 44%),
    #fff;
}

.phone-screen span {
  color: var(--blue);
  font-weight: 900;
}

.phone-screen strong {
  display: block;
  margin-top: 46px;
  font-size: 2.4rem;
}

.phone-screen p {
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 18px;
  background: #f4f7ff;
  font-weight: 800;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.benefit-card {
  padding: 26px;
  border-radius: 24px;
  font-weight: 900;
}

.final-cta {
  width: min(1180px, calc(100% - 48px));
  margin: 120px auto 0;
  padding: 86px;
  border-radius: 36px;
  color: white;
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 200, 87, 0.32), transparent 32%),
    linear-gradient(135deg, #244de6, #7b61ff 62%, #1bb7c9);
  box-shadow: 0 32px 90px rgba(49, 107, 255, 0.25);
}

.final-content {
  max-width: 780px;
}

.final-content .eyebrow,
.final-content p {
  color: rgba(255, 255, 255, 0.82);
}

.final-content .button-primary {
  margin-top: 34px;
  color: var(--blue);
  background: white;
  box-shadow: none;
}

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 46px auto 0;
  padding: 28px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 800;
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(22px, -24px, 0) scale(1.08);
  }
}

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

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

@media (max-width: 1040px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .mobile-section {
    grid-template-columns: 1fr;
  }

  .prompt-grid,
  .feature-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .role-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 10px;
    width: min(100% - 20px, 1180px);
    border-radius: 18px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 118px 18px 58px;
  }

  .hero-grid {
    min-height: auto;
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.4rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .ai-console {
    min-height: auto;
    border-radius: 26px;
  }

  .message {
    max-width: 100%;
  }

  .mini-dashboard,
  .prompt-grid,
  .role-grid,
  .feature-rail,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .ai-section,
  .intelligence,
  .final-cta,
  .site-footer {
    width: min(100% - 32px, 1180px);
  }

  .section,
  .ai-section,
  .intelligence {
    padding-top: 84px;
  }

  .prompt-card {
    min-height: auto;
  }

  .phone {
    min-height: auto;
  }

  .phone-screen {
    height: auto;
    min-height: 480px;
  }

  .final-cta {
    margin-top: 84px;
    padding: 54px 24px;
    border-radius: 28px;
  }

  .site-footer {
    flex-direction: column;
  }
}
