:root {
  --bg: #f7f9ff;
  --bg2: #ffffff;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-muted: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(15, 30, 60, 0.085);
  --glass-border-strong: rgba(15, 30, 60, 0.16);
  --ink: #0c0f1c;
  --muted: #5f627e;
  --muted2: #8f94b6;
  --primary: #1766ff;
  --accent: #ff7c5c;
  --good: #16b58c;
  --warm: #ffc857;
  --shadow: 0 30px 70px rgba(15, 30, 60, 0.1);
  --shadow-soft: 0 14px 34px rgba(15, 30, 60, 0.08);
  --r: 18px;
  --r2: 28px;
  --section-y: 96px;
  --card-pad: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background:
    radial-gradient(1200px 900px at 20% 20%, rgba(23, 102, 255, 0.16), transparent 62%),
    radial-gradient(1200px 900px at 80% 30%, rgba(255, 124, 92, 0.12), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  color: var(--ink);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.mesh {
  position: fixed;
  inset: -30%;
  pointer-events: none;
  filter: blur(45px);
  opacity: 0.42;
  z-index: -1;
  background:
    radial-gradient(circle at 25% 25%, rgba(23, 102, 255, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 60% 20%, rgba(255, 124, 92, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 40% 70%, rgba(22, 181, 140, 0.2) 0%, transparent 60%);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 26px 0;
  transition: all 0.25s ease;
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(250, 251, 255, 0.92);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand,
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}
.spark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--primary));
  box-shadow: 0 0 0 10px rgba(23, 102, 255, 0.15), 0 0 30px rgba(23, 102, 255, 0.4);
}
.nav-links { display: flex; align-items: center; gap: 20px; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav-links a { opacity: 0.8; }
.nav-links a:hover { opacity: 1; color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 16px;
  font-weight: 700;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--glass-border-strong); }
.btn.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #1766ff, #5ba3ff);
  box-shadow: 0 25px 70px rgba(23, 102, 255, 0.25);
}
.btn.ghost { background: rgba(23, 102, 255, 0.08); border-color: transparent; color: #1145b8; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 10px rgba(22, 181, 140, 0.15); }

header.hero { padding: 64px 0 54px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 42px; align-items: stretch; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 102, 255, 0.25);
  background: rgba(23, 102, 255, 0.12);
  color: rgba(10, 40, 90, 0.9);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 800;
}
h1 { margin: 16px 0 14px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(38px, 4.2vw, 60px); line-height: 1.06; letter-spacing: -0.02em; }
.lead,
.subtitle { margin: 0 0 20px; color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 66ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 18px; }

.micro-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.micro {
  padding: 18px;
  border-radius: var(--r);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
}
.micro strong { display: block; font-size: 13px; color: var(--ink); }
.micro span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted2); line-height: 1.35; }
.glass {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--r2);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section h3,
.carousel h3,
.feature-grid h3,
.plan-grid h3 {
  margin: 12px 0 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.section p { margin: 0; }

.preview { position: relative; border-radius: var(--r2); padding: 22px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.segmented { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px; border-radius: 16px; border: 1px solid var(--glass-border); background: rgba(246, 248, 254, 0.95); }
.segmented button { cursor: pointer; border: 1px solid var(--glass-border); background: #fff; color: var(--muted); border-radius: 999px; padding: 10px 14px; font-weight: 700; font-size: 13px; }
.segmented button.is-active { background: linear-gradient(135deg, #1766ff, #5ba3ff); color: #fff; border-color: transparent; box-shadow: var(--shadow-soft); }

.workspace { margin-top: 16px; border-radius: var(--r2); border: 1px solid var(--glass-border); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.ws-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px; border-bottom: 1px solid var(--glass-border); }
.ws-top h3 { margin: 0; font-size: 20px; }
.mini-label { text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; color: var(--muted2); font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--surface-muted); font-size: 12px; font-weight: 700; }
.ws-body { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 16px; padding: 18px; }

.tree,
.kpis { border-radius: 20px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.9); padding: 14px; box-shadow: var(--shadow-soft); }
.tree li,
.folder-list li,
.notif-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.85); margin-bottom: 8px; }
.tree .left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tree .name { font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree .sub { font-size: 12px; font-weight: 700; color: var(--muted2); }
.icon { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-muted); color: var(--primary); font-weight: 700; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kpi { border-radius: 18px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.95); padding: 12px; box-shadow: var(--shadow-soft); }
.kpi span { font-size: 12px; color: var(--muted2); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.kpi strong { display: block; margin-top: 6px; font-size: 18px; font-family: 'Space Grotesk', sans-serif; color: var(--ink); }

.hero-panel { padding: 26px; }
.hero-panel-top h3 { margin: 12px 0 10px; }
.hero-panel-top .subtitle { margin: 0; }
.hero-panel-cards { display: grid; gap: 12px; margin-top: 18px; }
.hero-card {
  border-radius: 22px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.hero-card-k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted2); font-weight: 800; }
.hero-card-v { margin-top: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 20px; letter-spacing: -0.01em; }
.hero-card-h { margin-top: 8px; color: var(--muted); line-height: 1.65; }
.hero-panel-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }

.hero-visual { display: grid; gap: 20px; position: relative; }
.visual-card { background: #fff; border-radius: 26px; border: 1px solid var(--glass-border); padding: 26px; box-shadow: var(--shadow); }
.visual-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.visual-tabs .tab-btn { flex: 1; border-radius: 14px; border: 1px solid var(--glass-border); padding: 10px 0; font-weight: 700; background: var(--surface-muted); color: var(--muted); }
.visual-tabs .tab-btn.is-active { background: linear-gradient(135deg, #1766ff, #5ba3ff); color: #fff; border-color: transparent; }
.visual-screen { border-radius: var(--r2); border: 1px solid var(--glass-border); overflow: hidden; background: var(--surface); }
.screen-header,
.screen-footer { padding: 18px; border-bottom: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: space-between; }
.screen-footer { border-top: 1px solid var(--glass-border); border-bottom: 0; color: var(--primary); font-weight: 700; }
.screen-body { display: flex; gap: 20px; flex-wrap: wrap; padding: 18px; border-bottom: 1px solid var(--glass-border); }
.screen-kpi { flex: 1; min-width: 120px; }
.screen-graph { padding: 18px; }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-flex; margin-right: 8px; }
.dot.blue { background: #1766ff; }
.dot.orange { background: #ff8a57; }
.dot.green { background: #1dbf72; }
.dot.purple { background: #9b5eff; }

.proof { padding: 24px 0 6px; color: var(--muted); }
.proof-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); padding: 18px 0; }
.logos { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.logo-pill { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--glass-border); background: #fff; font-weight: 700; letter-spacing: 0.02em; }

.section { padding: var(--section-y) 0; }
.section.alt {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.25));
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
h2 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: clamp(30px, 2.5vw, 40px); letter-spacing: -0.02em; }
.subhead { margin: 12px 0 0; color: var(--muted); line-height: 1.8; max-width: 72ch; font-size: 16px; }

.campaign-grid,
.feature-grid,
.highlight-grid,
.story-grid,
.testimonial-grid,
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.campaign-grid article,
.feature-grid article,
.highlight-card,
.story-grid article,
.testimonial-grid article,
.plan-grid article { background: #fff; border-radius: 24px; border: 1px solid var(--glass-border); padding: var(--card-pad); box-shadow: var(--shadow-soft); }
.plan-grid .featured { border-color: rgba(23, 102, 255, 0.35); box-shadow: 0 25px 70px rgba(23, 102, 255, 0.2); }

.feature-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}
.feature-list li { margin: 8px 0; }
.feature-list strong { color: var(--ink); }

.split,
.sandbox { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 20px; align-items: start; }
.sticky { position: sticky; top: 120px; }
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { border-radius: var(--r2); border: 1px solid var(--glass-border); background: #fff; padding: 16px; box-shadow: var(--shadow-soft); }
.step.is-active { border-color: rgba(23, 102, 255, 0.3); box-shadow: 0 20px 60px rgba(23, 102, 255, 0.15); }
.shot { border-radius: var(--r2); border: 1px solid var(--glass-border); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.shot .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(15, 30, 60, 0.04);
}
.dots { display: flex; gap: 8px; align-items: center; }
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15, 30, 60, 0.2);
}
.shot .body { padding: 16px; }
.grid-ui { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.9);
  padding: 18px;
  min-height: 120px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease;
  transform: translate3d(0, var(--py, 0px), 0);
}
.tile:hover { border-color: var(--glass-border-strong); transform: translate3d(0, calc(var(--py, 0px) - 6px), 0); }
.tile .t { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted2); font-weight: 700; }
.tile .v { margin-top: 8px; font-size: 20px; font-family: 'Space Grotesk', sans-serif; color: var(--ink); }
.tile .hint { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.tile.accent::before,
.tile.warm::before {
  content: '';
  position: absolute;
  inset: -80px;
  pointer-events: none;
  border-radius: 40%;
  filter: blur(20px);
  opacity: 0.6;
}
.tile.accent::before { background: radial-gradient(circle, rgba(23, 102, 255, 0.3), transparent 60%); }
.tile.warm::before { background: radial-gradient(circle, rgba(255, 124, 92, 0.3), transparent 60%); }
.carousel { position: relative; overflow: hidden; border-radius: var(--r2); border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-soft); }
.car-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
  z-index: 2;
}
.iconbtn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.track { display: flex; gap: 18px; padding: 22px; overflow-x: auto; scroll-snap-type: x mandatory; }
.slide { flex: 0 0 min(480px, 88%); scroll-snap-align: start; border-radius: 24px; border: 1px solid var(--glass-border); background: var(--surface-muted); padding: 22px; }
.dots-nav { display: flex; gap: 8px; justify-content: center; padding: 0 0 16px; }
.dots-nav button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 30, 60, 0.15);
  cursor: pointer;
}
.dots-nav button.is-active { background: linear-gradient(135deg, #1766ff, #5ba3ff); transform: scale(1.2); }
.mini-shot {
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(23, 102, 255, 0.18), rgba(255, 124, 92, 0.14));
  height: 180px;
}

.panel { border-radius: var(--r2); border: 1px solid var(--glass-border); background: #fff; padding: 22px; box-shadow: var(--shadow-soft); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sw { width: 34px; height: 34px; border-radius: 12px; border: 1px solid var(--glass-border); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 18px; border: 1px solid var(--glass-border); background: var(--surface-muted); }
.switch { width: 54px; height: 30px; border-radius: 999px; border: 1px solid var(--glass-border); background: #fff; position: relative; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-soft); }
.switch.on { background: linear-gradient(135deg, rgba(23, 102, 255, 0.2), rgba(255, 124, 92, 0.25)); border-color: rgba(23, 102, 255, 0.25); }
.switch.on i { left: 27px; }

.tenant { border-radius: var(--r2); border: 1px solid var(--glass-border); background: #fff; box-shadow: var(--shadow); }
.tenant .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--glass-border); }
.tenant .body { padding: 18px; }
.tenant .cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

footer { padding: 48px 0 60px; border-top: 1px solid var(--glass-border); color: var(--muted); }
.foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); font-weight: 700; }
.foot a:hover { color: var(--primary); }

.sign-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, #fdfefe, #eff2fa);
  color: var(--ink);
}
.sign-panel {
  width: min(460px, 100%);
  padding: 36px;
  border-radius: var(--r2);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  text-align: left;
}
.slug-form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.input-wrap { display: flex; border: 1px solid var(--glass-border); border-radius: var(--r); overflow: hidden; background: #fff; }
.input-wrap input { flex: 1; border: 0; padding: 14px 16px; font-size: 1rem; color: var(--ink); }
.input-wrap .domain { padding: 14px 16px; background: rgba(23, 102, 255, 0.12); color: var(--primary); font-weight: 700; }
.helper { color: var(--muted2); font-size: 0.9rem; }
.sign-links { margin-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-weight: 700; color: var(--muted); }
.error { color: #c83248; background: rgba(200, 50, 72, 0.12); border: 1px solid rgba(200, 50, 72, 0.25); border-radius: var(--r); padding: 10px 12px; font-size: 0.9rem; }
.error.hidden { display: none; }

.loading { position: fixed; inset: 0; z-index: 9999; background: rgba(255, 255, 255, 0.85); display: grid; place-items: center; opacity: 1; transition: opacity 0.45s ease; pointer-events: none; }
.loading.hidden { opacity: 0; }
.cursor-dot { display: none; }

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .sandbox { grid-template-columns: 1fr; }
  .micro-row { grid-template-columns: 1fr; }
  .ws-body { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .sticky { position: relative; top: auto; }
  :root { --section-y: 72px; --card-pad: 22px; }
  .container { width: min(960px, calc(100% - 36px)); }
  .track { padding: 18px; }
  .slide { flex-basis: min(520px, 92%); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .mesh { display: none; }
}
