:root {
  --ink: #151325;
  --muted: #686477;
  --line: #e9e7ef;
  --surface: #ffffff;
  --background: #f7f7fa;
  --purple: #6f52ed;
  --purple-dark: #5138cb;
  --purple-soft: #eeeaff;
  --orange: #f29b60;
  --orange-soft: #fff0e6;
  --blue: #608fd8;
  --blue-soft: #eaf2ff;
  --green: #44a982;
  --green-soft: #e8f7f1;
  --dark: #171626;
  --shadow: 0 24px 72px rgba(27, 24, 58, .14);
  --shadow-soft: 0 16px 42px rgba(27, 24, 58, .08);
  --radius: 26px;
  --max: 1180px;
  --font-sans: Inter, "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --accent: var(--purple);
  --accent-dark: var(--purple-dark);
  --accent-soft: var(--purple-soft);
  --accent-rgb: 111, 82, 237;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(111, 82, 237, .16), transparent 34%),
    radial-gradient(circle at 95% 12%, rgba(68, 169, 130, .15), transparent 28%),
    var(--background);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body[data-feature="apply"],
body[data-feature="pipeline"] {
  --accent: var(--green);
  --accent-dark: #2d8062;
  --accent-soft: var(--green-soft);
  --accent-rgb: 68, 169, 130;
}

body[data-feature="simulator"] {
  --accent: var(--orange);
  --accent-dark: #cc6c35;
  --accent-soft: var(--orange-soft);
  --accent-rgb: 242, 155, 96;
}

body[data-feature="offer"] {
  --accent: var(--blue);
  --accent-dark: #447fcf;
  --accent-soft: var(--blue-soft);
  --accent-rgb: 96, 143, 216;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  background: var(--dark);
  text-decoration: none;
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(233, 231, 239, .78);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(calc(100% - 36px), var(--max));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.6px;
}

.brand-name {
  font-size: 24px;
  line-height: 1;
}

.brand-name span {
  color: var(--purple);
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 8px;
  border-radius: 10px;
  background: var(--purple);
  transform: rotate(-4deg);
  box-shadow: 0 14px 24px rgba(111, 82, 237, .24);
}

.brand-mark span {
  width: 4px;
  border-radius: 6px;
  background: #fff;
}

.brand-mark span:nth-child(1) { height: 8px; }
.brand-mark span:nth-child(2) { height: 15px; }
.brand-mark span:nth-child(3) { height: 11px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 410px;
  height: 20px;
  transform: translateX(-50%);
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible,
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--purple);
  outline: none;
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  z-index: 40;
  width: 390px;
  display: grid;
  gap: 4px;
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 10px;
  border: 1px solid rgba(233, 231, 239, .92);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 54px rgba(27, 24, 58, .14);
  backdrop-filter: blur(18px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  border-left: 1px solid rgba(233, 231, 239, .92);
  border-top: 1px solid rgba(233, 231, 239, .92);
  background: rgba(255, 255, 255, .96);
}

.nav-dropdown-menu a {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 15px;
  color: var(--ink);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible,
.nav-dropdown-menu a[aria-current="page"] {
  color: var(--purple);
  background: var(--purple-soft);
  transform: translateX(2px);
  outline: none;
}

.nav-dropdown-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--purple);
  background: var(--purple-soft);
}

.nav-dropdown-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-dropdown-icon.blue {
  color: #447fcf;
  background: var(--blue-soft);
}

.nav-dropdown-icon.green {
  color: #258264;
  background: var(--green-soft);
}

.nav-dropdown-icon.orange {
  color: #cc6c35;
  background: var(--orange-soft);
}

.nav-dropdown-copy {
  display: grid;
  gap: 3px;
}

.nav-dropdown-menu strong {
  font-size: 14px;
  line-height: 1.2;
}

.nav-dropdown-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.nav-menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 24px rgba(27, 24, 58, .08);
  cursor: pointer;
  font: 800 13px/1 var(--font-sans);
}

.nav-menu-toggle:hover,
.nav-menu-toggle:focus-visible {
  color: var(--purple);
  outline: 3px solid rgba(111, 82, 237, .14);
}

.nav-menu-icon {
  width: 18px;
  height: 14px;
  display: grid;
  align-content: space-between;
}

.nav-menu-icon span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.nav-menu-toggle[aria-expanded="true"] .nav-menu-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-menu-toggle[aria-expanded="true"] .nav-menu-icon span:nth-child(2) {
  opacity: 0;
}

.nav-menu-toggle[aria-expanded="true"] .nav-menu-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile-actions {
  display: none;
}

.nav-cta,
.nav-login,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.nav-login {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.nav-cta,
.button.primary {
  color: #211b45;
  background: #fff;
  box-shadow: 0 18px 34px rgba(15, 12, 42, .18);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
}

.nav-cta:hover,
.nav-login:hover,
.button:hover,
.nav-cta:focus-visible,
.nav-login:focus-visible,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.nav-cta:focus-visible,
.button:focus-visible {
  box-shadow: 0 0 0 4px rgba(111, 82, 237, .18), 0 18px 34px rgba(15, 12, 42, .18);
}

.feature-hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(410px, 1.06fr);
  align-items: center;
  gap: clamp(32px, 5vw, 68px);
  overflow: hidden;
  padding: clamp(52px, 7vw, 88px) max(18px, calc((100vw - var(--max)) / 2));
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, .22), transparent 22%),
    radial-gradient(circle at 88% 86%, rgba(var(--accent-rgb), .36), transparent 32%),
    linear-gradient(135deg, #251950 0%, var(--accent-dark) 46%, #151325 100%);
}

.feature-hero::before,
.feature-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.feature-hero::before {
  inset: auto -8% -32% 46%;
  height: 360px;
  border-radius: 50%;
  background: rgba(68, 169, 130, .28);
  filter: blur(24px);
}

.feature-hero::after {
  right: 5%;
  top: 11%;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 34px;
  transform: rotate(12deg);
}

.hero-copy,
.hero-visual {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #d9d0ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .14);
}

h1 {
  max-width: 780px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 950;
  line-height: .98;
  letter-spacing: -2.5px;
}

.hero-lead {
  max-width: 650px;
  margin: 0 0 30px;
  color: #eeeaff;
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-actions .button {
  min-height: 54px;
  padding: 0 24px;
  font-size: 15px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-visual {
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 0 8%;
  z-index: -1;
  border-radius: 44px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(var(--accent-rgb), .18));
  filter: blur(14px);
}

.product-mockup {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 36px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.mockup-head,
.mockup-row,
.mockup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mockup-head span,
.mockup-row span,
.mockup-footer span,
.mini-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.mockup-head strong,
.mockup-row strong,
.mockup-footer strong {
  color: var(--ink);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.05;
}

.mockup-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 900;
}

.score-orb {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-dark);
  background:
    radial-gradient(circle, #fff 0 58%, transparent 59%),
    conic-gradient(var(--accent) var(--score, 84%), #ebe9f1 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 18px 34px rgba(var(--accent-rgb), .2);
  font-size: 25px;
  font-weight: 950;
}

.score-84 { --score: 84%; }
.score-92 { --score: 92%; }
.progress-86 { --progress: 86%; }

.mockup-list,
.mini-kanban,
.chat-stack {
  display: grid;
  gap: 10px;
}

.mockup-list p,
.chat-bubble {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  color: #4b475c;
  background: #f7f5fb;
  font-size: 14px;
  font-weight: 750;
}

.mockup-list p strong {
  color: var(--accent-dark);
}

.chat-bubble:nth-child(even) {
  margin-left: 38px;
  color: #fff;
  background: var(--accent);
}

.mini-kanban {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-column {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 12px;
  border-radius: 18px;
  background: #f7f5fb;
}

.mini-column strong {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.mini-task {
  padding: 10px;
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 24px rgba(27, 24, 58, .07);
  font-size: 12px;
  font-weight: 850;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe9f1;
}

.progress-track span {
  display: block;
  width: var(--progress, 76%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), .62));
}

.mini-card {
  position: absolute;
  right: -16px;
  bottom: 30px;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 44px rgba(27, 24, 58, .16);
  backdrop-filter: blur(14px);
}

.mini-card strong {
  font-size: 18px;
  line-height: 1.15;
}

.floating-chip {
  position: absolute;
  top: 28px;
  left: -12px;
  padding: 10px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(21, 19, 37, .82);
  box-shadow: 0 18px 34px rgba(21, 19, 37, .2);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

@media (max-width: 980px) {
  .nav-shell {
    position: relative;
  }

  .nav-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-shell > .nav-cta,
  .nav-shell > .nav-login {
    display: none;
  }

  .nav-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
  }

  .nav-mobile-actions .nav-login,
  .nav-mobile-actions .nav-cta {
    flex: 1 1 145px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 45;
    display: grid;
    gap: 6px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(233, 231, 239, .92);
    border-radius: 22px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 22px 54px rgba(27, 24, 58, .16);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .site-header.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links > a,
  .nav-dropdown-trigger {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-radius: 13px;
    color: var(--ink);
    background: transparent;
  }

  .nav-links > a:hover,
  .nav-links > a:focus-visible,
  .nav-dropdown-trigger:hover,
  .nav-dropdown-trigger:focus-visible {
    color: var(--purple);
    background: var(--purple-soft);
  }

  .nav-dropdown::after,
  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    display: grid;
    gap: 4px;
    padding: 4px 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown-menu a {
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 13px;
  }

  .nav-dropdown-icon {
    width: 36px;
    height: 36px;
  }

  .feature-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .hero-visual {
    max-width: 760px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .nav-shell {
    width: min(calc(100% - 28px), var(--max));
    min-height: 70px;
  }

  .brand-name {
    font-size: 21px;
  }

  .feature-hero {
    padding: 34px 18px 38px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 48px);
    letter-spacing: -1.6px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .product-mockup {
    border-radius: 26px;
  }

  .mockup-head,
  .mockup-row,
  .mockup-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-orb {
    width: 88px;
    height: 88px;
  }

  .mini-kanban {
    grid-template-columns: 1fr;
  }

  .mini-column {
    min-height: auto;
  }

  .mini-card,
  .floating-chip {
    position: static;
    width: fit-content;
    margin-top: -4px;
  }

  .chat-bubble:nth-child(even) {
    margin-left: 16px;
  }
}

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