:root {
  --bg: #08090b;
  --bg-soft: #101216;
  --surface: #f4f1ec;
  --surface-strong: #fbfaf8;
  --surface-muted: #e9e5de;
  --text: #111316;
  --text-inverse: #f7f3ed;
  --muted: #6f7279;
  --muted-dark: #a7a9af;
  --border: rgba(17, 19, 22, 0.12);
  --border-dark: rgba(255, 255, 255, 0.12);
  --accent: #77cdb0;
  --accent-dark: #267a60;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 4%, rgba(110, 132, 225, 0.10), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(119, 205, 176, 0.08), transparent 26%),
    var(--bg);
  color: var(--text-inverse);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }

.welcome-ambient {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.35;
}
.welcome-ambient-one { width: 280px; height: 280px; top: 11%; left: -120px; background: #6374df; }
.welcome-ambient-two { width: 320px; height: 320px; top: 42%; right: -140px; background: #57b99a; }

.welcome-header {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.welcome-brand, .welcome-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.welcome-brand img { width: 42px; height: 42px; border-radius: 13px; }
.welcome-brand > span > span { color: #d8e0ff; }
.welcome-header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  color: #e9e6e1;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 150ms ease, background 150ms ease;
}
.welcome-header-action:hover { transform: translateY(-1px); background: rgba(255,255,255,0.08); }

main { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.welcome-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  gap: clamp(38px, 6vw, 84px);
  align-items: center;
  min-height: 720px;
  padding: 70px 0 86px;
}
.welcome-kicker, .welcome-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b8bcc5;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.welcome-kicker span { color: #d9e0ff; font-size: 1rem; }
.welcome-hero h1 {
  max-width: 720px;
  margin: 18px 0 22px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.062em;
  text-wrap: balance;
}
.welcome-hero h1::first-line { color: #fff; }
.welcome-hero-description {
  max-width: 670px;
  margin: 0;
  color: var(--muted-dark);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}
.welcome-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.welcome-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.welcome-button:hover { transform: translateY(-2px); }
.welcome-button-primary { background: var(--surface); color: var(--text); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.welcome-button-primary:hover { box-shadow: 0 16px 36px rgba(0,0,0,.24); }
.welcome-button-secondary { color: var(--text-inverse); border-color: var(--border-dark); background: rgba(255,255,255,.035); }
.welcome-reassurance { display: flex; align-items: center; gap: 9px; margin: 20px 0 0; color: #8f929a; font-size: 0.82rem; }
.welcome-reassurance-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(119,205,176,.09); }

.welcome-demo { position: relative; }
.welcome-demo::before {
  content: '';
  position: absolute;
  inset: 10% -8% -8% 12%;
  border-radius: 36px;
  background: linear-gradient(140deg, rgba(99,116,223,.24), rgba(79,174,138,.14));
  filter: blur(34px);
}
.welcome-demo-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 28px;
  background: #f4f1ec;
  color: var(--text);
  box-shadow: 0 34px 80px rgba(0,0,0,.38);
  transform: rotate(1deg);
}
.welcome-demo-topbar { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; background: #111316; color: #fff; }
.welcome-demo-brand-mini { display: flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 700; }
.welcome-demo-brand-mini img { width: 28px; height: 28px; border-radius: 9px; }
.welcome-demo-status { padding: 6px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #afb2b8; font-size: .65rem; font-weight: 700; }
.welcome-demo-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); background: #ebe7e1; }
.welcome-demo-tabs span { padding: 15px 7px; text-align: center; color: #6b6e74; font-size: .7rem; font-weight: 600; }
.welcome-demo-tabs .is-active { color: #fff; background: #111316; }
.welcome-demo-body { padding: 24px; }
.welcome-demo-label { margin: 0 0 9px; font-size: .75rem; font-weight: 700; }
.welcome-demo-message { padding: 16px; border: 1px solid #d7d2ca; border-radius: 14px; background: #fbfaf8; color: #555960; font-size: .88rem; line-height: 1.55; }
.welcome-demo-arrow { width: 34px; height: 34px; display: grid; place-items: center; margin: 12px auto; border-radius: 50%; background: #e5e1da; color: #5c6067; }
.welcome-demo-result { display: grid; gap: 9px; padding: 17px; border: 1px solid #d7d2ca; border-radius: 16px; background: #fff; }
.welcome-demo-result-label { color: #83868c; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.welcome-demo-result strong { font-size: 1.08rem; }
.welcome-demo-meta { display: flex; flex-wrap: wrap; gap: 7px; color: #6e7278; font-size: .76rem; }
.welcome-demo-meta span { padding: 5px 8px; border-radius: 7px; background: #f1eee9; }
.welcome-demo-category { display: inline-flex; align-items: center; width: fit-content; gap: 8px; padding: 7px 10px; border-radius: 999px; background: #111316; color: #fff; font-size: .72rem; font-weight: 700; }
.welcome-demo-category i { width: 9px; height: 9px; border-radius: 50%; background: #dc2127; box-shadow: 0 0 0 3px rgba(220,33,39,.15); }
.welcome-demo-review { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; padding-top: 11px; border-top: 1px solid #ece8e2; color: #6e7278; font-size: .7rem; }
.welcome-demo-review span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #dff2eb; color: #267a60; font-weight: 800; }

.welcome-section { margin: 0 0 34px; padding: clamp(34px, 5vw, 64px); border-radius: var(--radius-xl); }
.welcome-intro, .welcome-how, .welcome-examples, .welcome-control { background: var(--surface); color: var(--text); }
.welcome-section-heading { max-width: 760px; margin-bottom: 30px; }
.welcome-section-heading-center { margin-inline: auto; text-align: center; }
.welcome-section .welcome-eyebrow { color: #777b83; }
.welcome-section h2, .welcome-final h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.welcome-section-heading p, .welcome-categories-copy p, .welcome-control-card p, .welcome-final p { margin: 0; color: var(--muted); line-height: 1.72; font-size: .96rem; }

.welcome-capability-grid, .welcome-example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.welcome-capability-card, .welcome-example-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.48);
}
.welcome-capability-card.is-featured { background: #111316; color: #fff; border-color: #111316; }
.welcome-capability-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #e7e3dc; color: #111316; }
.welcome-capability-card.is-featured .welcome-capability-icon { background: rgba(255,255,255,.11); color: #fff; }
.welcome-capability-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.welcome-capability-card h3 { margin: 28px 0 8px; font-size: 1.16rem; }
.welcome-capability-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.62; }
.welcome-capability-card.is-featured p { color: #aeb1b7; }

.welcome-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.welcome-step { position: relative; min-height: 270px; padding: 22px; border: 1px solid var(--border); border-radius: 20px; background: #fbfaf8; }
.welcome-step-number { color: #a4a6ab; font-size: .67rem; font-weight: 700; letter-spacing: .1em; }
.welcome-step-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-top: 32px; border-radius: 13px; background: #111316; color: #fff; font-weight: 700; }
.welcome-step h3 { margin: 20px 0 8px; font-size: 1rem; }
.welcome-step p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.58; }

.welcome-example-card { min-height: 270px; display: flex; flex-direction: column; }
.welcome-example-tag { width: fit-content; padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; color: #6f7279; font-size: .67rem; font-weight: 700; }
.welcome-example-card blockquote { margin: 22px 0 28px; font-size: 1rem; line-height: 1.55; letter-spacing: -.015em; }
.welcome-example-output { margin-top: auto; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding-top: 16px; border-top: 1px solid var(--border); }
.welcome-example-output > span { color: #777b83; }
.welcome-example-output p { margin: 0; color: #74777e; font-size: .75rem; line-height: 1.55; }
.welcome-example-output strong { color: var(--text); }

.welcome-categories {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 48px;
  background: #111316;
  color: #fff;
  border: 1px solid var(--border-dark);
}
.welcome-categories .welcome-eyebrow { color: #a8abb2; }
.welcome-categories-copy p { color: #a5a8af; max-width: 590px; }
.welcome-category-preview { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; align-content: center; min-height: 210px; padding: 28px; border-radius: 24px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); }
.welcome-category-preview span { display: inline-flex; align-items: center; gap: 9px; padding: 11px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: #f5f2ed; color: #33363b; font-size: .83rem; font-weight: 600; }
.welcome-category-preview span.is-selected { background: #08090b; color: #fff; border-color: #08090b; }
.welcome-category-preview i { width: 10px; height: 10px; border-radius: 50%; }
.category-red { background: #dc2127; box-shadow: 0 0 0 4px rgba(220,33,39,.13); }
.category-green { background: #51b749; box-shadow: 0 0 0 4px rgba(81,183,73,.13); }
.category-blue { background: #a4bdfc; box-shadow: 0 0 0 4px rgba(164,189,252,.13); }
.category-mint { background: #7ae7bf; box-shadow: 0 0 0 4px rgba(122,231,191,.13); }

.welcome-control { padding-block: 34px; }
.welcome-control-card { display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: center; }
.welcome-control-card h2 { font-size: clamp(1.8rem, 3.3vw, 3rem); }
.welcome-control-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #111316; color: #fff; font-size: 1.4rem; font-weight: 700; box-shadow: 0 12px 28px rgba(17,19,22,.18); }

.welcome-final { margin: 84px auto 62px; max-width: 870px; text-align: center; }
.welcome-final-logo { width: 66px; height: 66px; margin-bottom: 20px; border-radius: 20px; }
.welcome-final .welcome-eyebrow { color: #9fa2aa; }
.welcome-final h2 { margin-inline: auto; color: #fff; }
.welcome-final p { max-width: 600px; margin: 0 auto; color: #9fa2aa; }
.welcome-button-large { min-height: 56px; margin-top: 28px; padding-inline: 25px; }

.welcome-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border-dark);
  color: #858890;
  font-size: .72rem;
}
.welcome-footer-brand { color: #ddd9d3; }
.welcome-footer-brand img { width: 30px; height: 30px; border-radius: 9px; }
.welcome-footer-links { display: flex; gap: 16px; }
.welcome-footer-links a { text-decoration: none; }
.welcome-footer-links a:hover { color: #fff; }
.welcome-footer p { margin: 0; text-align: right; }

@media (prefers-reduced-motion: no-preference) {
  .welcome-demo-window { animation: welcomeFloat 5.5s ease-in-out infinite; }
  @keyframes welcomeFloat { 0%,100% { transform: rotate(1deg) translateY(0); } 50% { transform: rotate(.3deg) translateY(-7px); } }
}

@media (max-width: 980px) {
  .welcome-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 56px; }
  .welcome-hero-copy { text-align: center; }
  .welcome-kicker, .welcome-hero-actions, .welcome-reassurance { justify-content: center; }
  .welcome-hero-description { margin-inline: auto; }
  .welcome-demo { width: min(100%, 620px); margin: 0 auto; }
  .welcome-capability-grid, .welcome-example-grid { grid-template-columns: 1fr; }
  .welcome-capability-card { min-height: 210px; }
  .welcome-steps { grid-template-columns: 1fr 1fr; }
  .welcome-categories { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .welcome-header, main, .welcome-footer { width: min(calc(100% - 28px), var(--max)); }
  .welcome-header { min-height: 70px; }
  .welcome-header-action { padding-inline: 13px; font-size: .78rem; }
  .welcome-hero { padding: 42px 0 62px; gap: 42px; }
  .welcome-hero h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .welcome-hero-actions { flex-direction: column; align-items: stretch; }
  .welcome-button { width: 100%; }
  .welcome-demo-window { border-radius: 22px; transform: none; }
  .welcome-demo-body { padding: 18px; }
  .welcome-section { padding: 28px 20px; border-radius: 24px; }
  .welcome-steps { grid-template-columns: 1fr; }
  .welcome-step { min-height: 220px; }
  .welcome-category-preview { min-height: 180px; padding: 20px 14px; }
  .welcome-control-card { grid-template-columns: 1fr; }
  .welcome-control-icon { width: 54px; height: 54px; border-radius: 16px; }
  .welcome-footer { grid-template-columns: 1fr; text-align: center; }
  .welcome-footer-brand, .welcome-footer-links { justify-content: center; }
  .welcome-footer p { text-align: center; }
}

@media (max-width: 390px) {
  .welcome-header-action span { display: none; }
  .welcome-demo-tabs span { font-size: .62rem; }
  .welcome-demo-body { padding: 14px; }
  .welcome-category-preview span { padding: 10px 12px; font-size: .76rem; }
}