/* ==========================================================================
   NexaCloud Landing Page
   Design tokens from Figma style guide
   ========================================================================== */

:root {
  /* Solid */
  --purple: #4B12C1;
  --secondary: #FB923C;
  --info: #2B7FFF;
  --warning: #F5A623;
  --danger: #E5533D;
  --success: #37B24D;

  /* Transparent / soft */
  --purple-20: #E0E7FF;
  --secondary-20: #FFEDD5;

  /* Neutral */
  --black: #191919;
  --black-02: #454745;
  --gray: #6A6C6A;
  --border: #E5E7EB;
  --neutral: #FAFAFA;
  --ink: #2F3143;            /* heading navy */

  /* Gradients */
  --grad-purple: linear-gradient(180deg, #6F2DE0 0%, #4B12C1 55%, #3A0D9C 100%);
  --grad-purple-soft: linear-gradient(135deg, #F6F1FE 0%, #EDE2FC 60%, #E3D2FA 100%);
  --grad-dark: linear-gradient(180deg, #23253F 0%, #05061A 100%);

  --radius: 16px;
  --container: 1388px; /* 1340px content + 2x24px padding, matches Figma (content x=50..1390 @1440) */
  --font: "Mona Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn .arrow { font-size: 17px; line-height: 1; }

.btn-primary {
  color: #fff;
  background: var(--grad-purple);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -8px rgba(75,18,193,.55);
}

.btn-dark {
  color: #fff;
  background: var(--grad-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 16px -8px rgba(5,6,26,.5);
}

.btn-ghost {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(25,25,25,.04);
}

/* ==========================================================================
   Chips / badges
   ========================================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 7px;
  background: #fff;
  border: 1px solid #ECEBF3;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  box-shadow: 0 1px 3px rgba(25,25,25,.05);
  margin-bottom: 20px;
}

.chip-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--grad-purple);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.chip-icon svg { width: 13px; height: 13px; }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

.section { padding: 96px 0; }

.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -.5px;
  color: var(--ink);
}

.section-sub {
  color: var(--gray);
  max-width: 720px;
  margin: 16px auto 0;
  font-size: 17px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 48px;
}
.section-head-left { max-width: 620px; }
.section-head-right {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section-head-right p { color: var(--gray); font-size: 16px; }

.section-head-center { text-align: center; margin-bottom: 56px; }

.section-title.max-520 { max-width: 520px; }
.section-title.max-640 { max-width: 640px; }
.section-head-center .section-title.max-640,
.section-head-center .section-title.max-520 { margin-inline: auto; }

/* ==========================================================================
   Navbar
   ========================================================================== */

/* transparent, floats over the hero so the gradient runs behind it (per Figma) */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(47,49,67,.09);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon { width: 38px; height: auto; }
.brand-name { font-size: 22px; font-weight: 700; color: var(--ink); }
.brand-name b { color: var(--purple); }
.brand-name.light { color: #fff; }
.brand-name.light b { color: #A78BFA; }

.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--black-02);
  transition: color .15s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--purple); font-weight: 600; }
.nav-menu-actions { display: none; }

.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-login { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.nav-login:hover { color: var(--purple); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

/* background = actual gradient art exported from Figma (blends exactly like the design);
   the linear-gradient fills whatever is left of the image and matches its left-edge colors */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 76px; /* room for the transparent navbar */
  background: linear-gradient(180deg, #F0EEF9 0%, #F2EFFC 55%, #E8E0FC 100%);
}

/* actual gradient art exported from Figma, anchored to the container center
   (like the stack) so the arc keeps its designed position at any viewport width;
   at 1440 it spans x83..1444 exactly as in the design */
.hero-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 637px);
  width: 1361px;
  background: url("../assets/images/hero-glow.png") no-repeat center / 100% 100%;
  pointer-events: none;
}
/* on screens wider than the 1440 design, continue the art's right-edge colors
   to the viewport edge so no cut is visible */
.hero-glow::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  bottom: 0;
  width: 100vw;
  background: url("../assets/images/hero-glow-edge.png") repeat-x;
  background-size: 4px 100%;
}

/* isometric tile pattern under the server stack — Figma x765 y314 @1440,
   anchored to the container center like the glow art */
.hero::before {
  content: "";
  position: absolute;
  left: calc(50% + 45px);
  top: 390px;
  width: 846px;
  height: 574px;
  z-index: 1;
  background: url("../assets/images/hero-tiles.png") no-repeat center / 100% 100%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 55%, transparent 98%);
          mask-image: radial-gradient(75% 75% at 50% 50%, #000 55%, transparent 98%);
}

.hero-beam {
  position: absolute;
  top: 0;
  mix-blend-mode: plus-lighter;
  pointer-events: none;
  opacity: .65;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 85%);
          mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 85%);
}
.hero-beam-left { left: 0; }
.hero-beam-right { right: 0; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 24px;
  padding-top: 96px;  /* Figma: content starts at y180 incl. 80px header */
  padding-bottom: 42px;
}

.hero-content { position: relative; z-index: 3; }

.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 16px 7px 8px;
  background: rgba(255,255,255,.85);
  border: 1px dashed #B39DE3;
  margin-bottom: 28px;
}
.hero-badge-text { font-size: 14.5px; font-weight: 500; color: var(--black-02); }

.corner {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--purple);
}
.corner.tl { top: -3.5px; left: -3.5px; }
.corner.tr { top: -3.5px; right: -3.5px; }
.corner.bl { bottom: -3.5px; left: -3.5px; }
.corner.br { bottom: -3.5px; right: -3.5px; }

.hero-title {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 640;
  line-height: 1.14;
  letter-spacing: -1px;
  color: var(--ink);
  max-width: 640px;
}
.hero-title span { color: var(--purple); }

.hero-sub {
  margin-top: 22px;
  max-width: 560px;
  color: #565964;
  font-size: 17px;
}

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

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin-top: 26px;
  list-style: none;
}
.hero-checks li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.hero-checks svg { width: 22px; height: 22px; }

.hero-compat { margin-top: 72px; }
.hero-compat p { font-size: 14.5px; color: var(--gray); margin-bottom: 12px; }
.hero-compat-logos { display: flex; align-items: center; gap: 12px; }
.compat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid #ECEBF3;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(25,25,25,.07);
}
.compat-pill img { height: 22px; width: auto; }

.hero-art { position: relative; z-index: 1; }

/* soft halo behind the transparent stack */
.hero-art::before {
  content: "";
  position: absolute;
  inset: -18% -26% -18% -6%;
  background:
    radial-gradient(closest-side at 52% 46%,
      rgba(255,255,255,.0) 46%,
      rgba(255,255,255,.20) 58%,
      rgba(255,255,255,.10) 66%,
      rgba(255,255,255,0) 76%);
  pointer-events: none;
}
.hero-art img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px; /* Figma: stack is 500px wide, flush to the content edge */
  margin: 0 0 0 auto;
  filter: drop-shadow(0 40px 60px rgba(30,10,80,.35));
}

/* cloud positions taken from Figma (all bottom-left/center, none on the right) */
.hero-cloud {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  /* soften the rectangular edges of the cloud crops */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 86%, transparent 99%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 86%, transparent 99%);
}
.hc-1 { left: -13.2%; bottom: -18%; width: 73.8%; }
.hc-2 { left: -10.9%; bottom: -16%; width: 64%; opacity: .95; }
.hc-3 { left: 11.6%; bottom: -6%; width: 60%; opacity: .9; }

/* ==========================================================================
   Hatched rails + corner dots (shared by Stats & Why sections)
   ========================================================================== */

.corner-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--purple);
  z-index: 3;
}
.corner-dot.tl { top: -4px; left: 20px; }
.corner-dot.tr { top: -4px; right: 20px; }
.corner-dot.bl { bottom: -4px; left: 20px; }
.corner-dot.br { bottom: -4px; right: 20px; }

/* --frame-x = horizontal distance from viewport edge to the container content edge */
:root { --frame-x: max(24px, calc((100% - 1340px) / 2)); }

/* full-width section frame: solid horizontals + dashed verticals at container edges */
.framed {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.framed::before,
.framed::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-image: linear-gradient(180deg, #D8D1E8 55%, transparent 55%);
  background-size: 1px 9px;
  pointer-events: none;
}
.framed::before { left: calc(var(--frame-x) - 1px); }
.framed::after { right: calc(var(--frame-x) - 1px); }

/* purple squares pinned to the frame corners of a full-width section */
.frame-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--purple);
  z-index: 3;
  pointer-events: none;
}
.frame-dot.tl { top: -4px; left: calc(var(--frame-x) - 4px); }
.frame-dot.tr { top: -4px; right: calc(var(--frame-x) - 4px); }
.frame-dot.bl { bottom: -4px; left: calc(var(--frame-x) - 4px); }
.frame-dot.br { bottom: -4px; right: calc(var(--frame-x) - 4px); }

/* purple squares pinned to the corners of an in-flow block (e.g. FAQ list) */
.list-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--purple);
  z-index: 3;
  pointer-events: none;
}
.list-dot.tl { top: -4px; left: -4px; }
.list-dot.tr { top: -4px; right: -4px; }
.list-dot.bl { bottom: -4px; left: -4px; }
.list-dot.br { bottom: -4px; right: -4px; }

/* diagonal hatched rails filling the side margins outside the container */
.hatch {
  position: absolute;
  top: 0;
  bottom: 0;
  width: max(0px, calc((100% - 1340px) / 2));
  background: repeating-linear-gradient(22.5deg, #E0DAEE 0 2px, transparent 2px 13px);
  pointer-events: none;
  /* paint above the white container background so the rail reaches the frame line */
  z-index: 1;
}
.hatch.left { left: 0; }
.hatch.right { right: 0; }

/* ==========================================================================
   Stats
   ========================================================================== */

.stats {
  position: relative;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  background: #fff;
}

.stat {
  padding: 40px 36px;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: 1px dashed #CFC6E8; }
.stat:last-child { border-right: 1px dashed #CFC6E8; }
.stat.stat-trust { border-right: 1px dashed #CFC6E8; }
.stat-trust + .stat { border-left: none; }

.stat-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--gray);
  margin-bottom: 6px;
}

.stat-value {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--ink);
  line-height: 1.2;
}

.stat-desc { color: var(--gray); font-size: 16px; margin-top: 8px; }

.stat-rating { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.stat-rating .stars { color: var(--secondary); font-size: 17px; letter-spacing: 2px; }
.stat-rating .mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--gray);
}

/* ==========================================================================
   Marketplace slider
   ========================================================================== */

.slider-nav { display: flex; gap: 10px; align-self: flex-end; }

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.slider-btn svg { width: 20px; height: 20px; }
.slider-btn:hover:not(:disabled) { background: var(--purple); border-color: var(--purple); color: #fff; }
.slider-btn:disabled { opacity: .4; cursor: default; }

/* full-bleed: cards run edge-to-edge, first card aligns with the container */
.slider-wrap { width: 100%; overflow: visible; }

.slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px var(--frame-x) 20px;
  scroll-padding-inline: var(--frame-x);
  scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }

/* card specs from Figma node 41:349: 407x247, #FAFAFA bg, radius 14 */
.app-card {
  flex: 0 0 min(407px, 84vw);
  scroll-snap-align: start;
  background: var(--neutral);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 17px 14px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.app-card:hover { box-shadow: 0 14px 30px -12px rgba(25,25,25,.14); transform: translateY(-3px); }

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 13px;
}

.app-icon { width: 55px; height: 55px; border-radius: 8px; object-fit: contain; }

.badge-popular {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5.5px 10.5px;
  border-radius: 999px;
  background: linear-gradient(162deg, #6A37D5 19%, #371D6F 135%);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.12px;
}
.badge-popular svg, .badge-popular img { width: 11px; height: 11px; margin-left: 3px; }

.app-card h3 { font-size: 20px; font-weight: 600; color: #212121; margin-bottom: 6px; }
.app-card p { color: var(--gray); font-size: 14px; line-height: 20px; letter-spacing: -.16px; flex: 1; }

.app-card-foot { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 18px; }

.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: var(--neutral);
  font-size: 12.5px;
  font-weight: 600;
  color: #212121;
  transition: all .15s ease;
}
.btn-detail:hover { border-color: var(--purple); color: var(--purple); }

.marketplace .center { margin-top: 20px; }

/* ==========================================================================
   Database
   ========================================================================== */

.database { background: #fff; }
/* the following .how section provides the boundary line, avoid doubling it */
.database.framed { border-bottom: none; }

/* geometry from Figma node 84:224: card 1276x390, inset 32px inside the container,
   text column 53%, artwork clipped flush to the right edge.
   Background matches the baked-in bg of db-art.png (#F2E4FC -> #EBDCFA). */
.db-hero-card {
  position: relative;
  background: linear-gradient(180deg, #F2E4FC 0%, #F0E1FC 60%, #EBDCFA 100%);
  border-radius: 24px;
  padding: 56px 40px;
  margin-inline: 32px;
  overflow: hidden;
}

.db-hero-content { position: relative; z-index: 2; max-width: 53%; }

.db-hero-art {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 48.5%;
}
.db-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%);
}

.db-hero-content h3 {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}
.db-hero-content p { color: #5A5566; max-width: 560px; margin-bottom: 38px; }

.db-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 32px 0;
}

/* card colors/geometry from Figma node 84:432 */
.db-card {
  position: relative;
  border-radius: 18px;
  padding: 26px 24px;
  color: #fff;
  background: linear-gradient(180deg, #450E9D 0%, #670CCA 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.db-card h3 { font-size: 25px; font-weight: 600; margin-bottom: 12px; }
.db-card p { color: #E3DAF8; font-size: 15.5px; line-height: 1.55; }

.db-card-visual { margin-top: 28px; }

/* card 1 — lightning tile + concentric rounded-square rings (Figma 84:437) */
.db-visual-bolt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  margin-bottom: -56px;
}

.bolt-tile {
  position: relative;
  z-index: 2;
  width: 170px;
  height: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 42px;
  background: #8859C3;
  border: 1.3px solid #9292AF;
  box-shadow:
    0 33px 27px -1px rgba(0,0,0,.2),
    inset 0 -1.3px 1.3px 1.3px rgba(204,199,199,.2),
    inset 0 1.3px 1.3px 1.3px rgba(204,199,199,.2);
}
.bolt-tile img { width: 80px; transform: rotate(10deg); }
.db-visual-bolt .ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1.3px solid #9292AF;
}
.ring.r1 { width: 223px; height: 223px; border-radius: 69px;  opacity: .4; }
.ring.r2 { width: 276px; height: 276px; border-radius: 95px;  opacity: .2; }
.ring.r3 { width: 329px; height: 329px; border-radius: 122px; opacity: .1; }
.ring.r4 { width: 382px; height: 382px; border-radius: 148px; opacity: .05; }

/* card 2 — analytic panel */
.db-card-analytic { padding-top: 64px; }

.analytic-panel {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 44px 20px 18px;
  color: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(20,4,60,.55);
  margin-bottom: 26px;
}

.analytic-shield {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  border-radius: 18px;
  box-shadow: 0 14px 26px -10px rgba(0,0,0,.5);
}

.analytic-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.analytic-head h4 { font-size: 18px; font-weight: 700; }
.analytic-head .dots { color: var(--gray); font-size: 18px; }

.analytic-row {
  display: grid;
  grid-template-columns: 62px 1fr 38px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray);
  padding: 7px 0;
}
.analytic-row b { color: var(--ink); font-weight: 600; text-align: right; }
.analytic-row .bar {
  height: 6px;
  background: #EDEBF4;
  border-radius: 999px;
  overflow: hidden;
}
.analytic-row .bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8B5CF6, #4B12C1);
}

/* card 3 — db chips marquee */
.db-visual-chips {
  overflow: hidden;
  margin: 28px -32px -36px;
  padding: 4px 0 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.chip-row { display: flex; gap: 16px; width: max-content; margin-bottom: 16px; }
.row-a { animation: marquee 22s linear infinite; }
.row-b { animation: marquee 22s linear infinite reverse; }
.row-c { animation: marquee 26s linear infinite; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.db-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}
.db-chip img, .db-chip svg { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; }

/* ==========================================================================
   How it works
   ========================================================================== */

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.how-steps { display: flex; flex-direction: column; }

.how-step {
  position: relative;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  padding: 26px 20px;
  transition: background .15s ease;
}
.how-step:last-child { border-bottom: 1px solid var(--border); }
.how-step:hover { background: var(--neutral); }

.how-step h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.how-step h4 svg, .how-step h4 .step-icon { width: 24px; height: 24px; color: var(--ink); flex: 0 0 24px; }
.how-step p { color: var(--gray); font-size: 15.5px; padding-left: 36px; }

.how-step.is-active { background: var(--neutral); }
.how-step.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--purple);
}

.how-art {
  background: linear-gradient(160deg, #F6F2FE 0%, #FDFCFF 70%);
  border-radius: 20px;
  padding: 28px;
}
.how-art img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 24px 50px -24px rgba(25,25,25,.25);
}

/* ==========================================================================
   Why us
   ========================================================================== */

.why { padding-bottom: 0; }

.why-band {
  position: relative;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  grid-template-rows: repeat(2, minmax(280px, auto));
  background: #fff;
}

.why-cell {
  background: #fff;
  padding: 40px 36px;
}
.cell-1 { grid-column: 1; grid-row: 1; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cell-2 { grid-column: 1; grid-row: 2; border-left: 1px solid var(--border); }
.cell-3 { grid-column: 3; grid-row: 1; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cell-4 { grid-column: 3; grid-row: 2; border-right: 1px solid var(--border); }

.why-center {
  grid-column: 2;
  grid-row: 1 / span 2;
  background: #fff;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.why-center img { width: 100%; max-width: 620px; }

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--grad-purple);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 16px -8px rgba(75,18,193,.5);
  margin-bottom: 40px;
}
.why-icon svg, .why-icon img { width: 23px; height: 23px; }

.why-cell h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.why-cell p { color: var(--gray); font-size: 15.5px; }

/* ==========================================================================
   Integrations
   ========================================================================== */

.int-cloud {
  position: absolute;
  top: -30px;
  pointer-events: none;
  opacity: .85;
}
.ic-1 { left: -4%; width: 46%; }
.ic-2 { right: -3%; width: 30%; }

.integrations {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 220px at 30% 0%, rgba(196,170,240,.5), transparent 70%),
    radial-gradient(700px 220px at 75% 0%, rgba(214,196,245,.55), transparent 70%),
    radial-gradient(500px 160px at 50% 30px, rgba(255,255,255,.9), transparent 70%),
    var(--neutral);
}

.orbit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  overflow: hidden;
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(75,18,193,.18);
  border-radius: 50%;
  pointer-events: none;
}
.or-1 { width: 340px;  height: 340px; }
.or-2 { width: 600px;  height: 600px; border-color: rgba(75,18,193,.14); }
.or-3 { width: 880px;  height: 880px; border-color: rgba(75,18,193,.11); }
.or-4 { width: 1180px; height: 1180px; border-color: rgba(75,18,193,.08); }

.orbit-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3.2vw, 44px);
}
.oi { width: 46px; height: 46px; object-fit: contain; border-radius: 11px; }
.oi-lg { width: 58px; height: 58px; }
.orbit-core { width: 140px; height: 140px; margin: 0 clamp(4px, 1vw, 14px); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq .section-head-center .btn { margin-top: 26px; }

.faq-list { position: relative; max-width: var(--container); }

/* top & bottom rules run edge-to-edge across the viewport */
.faq-list::before,
.faq-list::after {
  content: "";
  position: absolute;
  left: calc((100% - 100vw) / 2);
  width: 100vw;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}
.faq-list::before { top: 0; }
.faq-list::after { bottom: 0; }

.faq-item {
  border: 1px solid var(--border);
  border-bottom: none;
  background: #fff;
  border-radius: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  padding: 26px 28px;
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.faq-toggle {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--ink);
  transition: transform .25s ease;
  transform: rotate(180deg);
}
.faq-toggle svg { width: 20px; height: 20px; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a p {
  padding: 0 28px 26px;
  color: var(--gray);
  font-size: 16.5px;
  max-width: 1100px;
}

.faq-item.is-open { background: var(--neutral); }
.faq-item.is-open .faq-a { max-height: 360px; }
.faq-item.is-open .faq-q span:first-child { color: var(--purple); }
.faq-item.is-open .faq-toggle { transform: rotate(0deg); background: #fff; }

/* ==========================================================================
   Blog
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 168 / 100;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover img {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -16px rgba(25,25,25,.28);
}

.blog-date { color: var(--gray); font-size: 15px; margin-bottom: 8px; }
.blog-card h3 { font-size: 22px; font-weight: 700; line-height: 1.32; }

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-section { padding: 40px 0 96px; }

/* background + pixel mosaic exported straight from Figma (node 84:1258) */
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 88px 32px 110px;
  text-align: center;
  color: #fff;
  background: url("../assets/images/cta-mosaic.png") no-repeat center bottom / cover, #0B0714;
}

/* corner light beams — the actual beam vectors from Figma (node 84:1283),
   original on the right, mirrored for the left corner */
.cta-card::before,
.cta-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52.4%;
  background: url("../assets/images/cta-beams.svg") no-repeat right top / cover;
  pointer-events: none;
}
.cta-card::before {
  left: 0;
  transform: scaleX(-1);
  opacity: .8;
}
.cta-card::after { right: 0; }

.cta-logo {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 30px;
  border-radius: 18px;
  box-shadow: 0 12px 30px -8px rgba(124,58,237,.7);
}

.cta-card h2 {
  position: relative;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 650;
  letter-spacing: -.5px;
  line-height: 1.2;
  max-width: 640px;
  margin: 0 auto 18px;
}

.cta-card p {
  position: relative;
  color: #C9C2DD;
  max-width: 560px;
  margin: 0 auto 34px;
}

.cta-card .btn { position: relative; }
.cta-card > * { z-index: 1; } /* keep content above the corner beams */

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(700px 420px at 85% 15%, rgba(75,18,193,.4), transparent 65%),
    radial-gradient(500px 300px at 5% 90%, rgba(75,18,193,.28), transparent 65%),
    #08050F;
  padding: 84px 0 28px;
}

.footer-pixels {
  position: absolute;
  top: 0; right: 0;
  width: 46%;
  height: 82%;
  opacity: .5;
  pointer-events: none;
}

.footer-pixels-left {
  position: absolute;
  left: 0; bottom: 0;
  width: 42%;
  height: 68%;
  opacity: .45;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr .7fr .7fr 1fr;
  gap: 48px;
}

.footer-brand .brand { margin-bottom: 18px; }
.footer-desc { color: #A79FBC; font-size: 15.5px; max-width: 460px; }

.footer-news-title { font-size: 21px; font-weight: 700; margin-top: 44px; }
.footer-news-sub { color: #A79FBC; font-size: 15px; margin: 6px 0 18px; }

.footer-form { display: flex; gap: 12px; max-width: 430px; }
.footer-form input {
  flex: 1;
  min-width: 0;
  background: #17112A;
  border: 1px solid #2C2347;
  border-radius: 10px;
  padding: 13px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
}
.footer-form input::placeholder { color: #7E7694; }
.footer-form input:focus { outline: 2px solid var(--purple); outline-offset: 1px; }

.footer-col { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.footer-col h5 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.footer-col a { color: #A79FBC; font-size: 15.5px; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }

.social-row { display: flex; gap: 16px; }
.social-row a {
  color: #fff;
  display: inline-flex;
  width: 26px;
  height: 26px;
}
.social-row svg { width: 22px; height: 22px; }
.social-row a:hover { color: #A78BFA; }

.footer-end {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin: 28px auto 20px;
}

.footer-copy {
  position: relative;
  border: 1px solid #241C3C;
  border-radius: 16px;
  padding: 16px 24px;
  text-align: center;
  color: #B4ACC9;
  font-size: 14.5px;
  background: rgba(255,255,255,.02);
}
.footer-copy b { color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .section { padding: 72px 0; }

  /* the exported glow art is tuned for the desktop hero ratio — on stacked
     layouts fall back to an equivalent smooth gradient */
  .hero {
    background:
      radial-gradient(120vw 90vw at 88% 62%,
        rgba(116,50,226,.42) 0%,
        rgba(124,62,232,.32) 32%,
        rgba(132,76,238,.20) 52%,
        rgba(139,92,246,.10) 68%,
        rgba(139,92,246,.03) 80%,
        transparent 90%),
      linear-gradient(180deg, #F0EEF9 0%, #F2EFFC 55%, #E8E0FC 100%);
  }
  .hero-glow { display: none; }
  .hero::before { left: auto; right: -167px; top: auto; bottom: -97px; }

  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-art { order: 2; }
  .hero-art img { width: 100%; margin: 0 auto; }
  .hero-compat { margin-top: 40px; }

  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child, .stat:last-child, .stat.stat-trust { border: none; }
  .stat:nth-of-type(2), .stat:nth-of-type(4) { border-left: 1px solid var(--border); }
  .stat:nth-of-type(3), .stat:nth-of-type(4) { border-top: 1px solid var(--border); }

  .why-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .why-center { grid-column: 1 / -1; grid-row: 2; order: 0; border: none; border-bottom: 1px solid var(--border); }
  .cell-1 { grid-column: 1; grid-row: 1; border: none; border-bottom: 1px solid var(--border); }
  .cell-3 { grid-column: 2; grid-row: 1; border: none; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); }
  .cell-2 { grid-column: 1; grid-row: 3; border: none; }
  .cell-4 { grid-column: 2; grid-row: 3; border: none; border-left: 1px solid var(--border); }

  .how-grid { grid-template-columns: 1fr; gap: 40px; }

  .db-hero-card { min-height: 0; padding: 40px 32px 0; margin-inline: 0; }
  .db-hero-content { max-width: 100%; padding-bottom: 8px; }
  .db-hero-art { position: static; width: 100%; height: auto; margin: 28px -32px 0; width: calc(100% + 64px); }
  .db-hero-art img {
    height: auto;
    object-fit: contain;
    border-radius: 0;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .db-grid { grid-template-columns: 1fr; margin-inline: 0; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    box-shadow: 0 24px 40px -20px rgba(25,25,25,.2);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: all .22s ease;
    z-index: 99;
  }
  .nav-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid #F2F2F6; }
  .nav-menu-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
  }
  .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 36px; }
  .slider-nav { align-self: flex-start; }

  .hero-title { letter-spacing: -.5px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-checks { flex-direction: column; gap: 12px; }

  .stats-inner { grid-template-columns: 1fr; }
  .stat { border: none !important; border-top: 1px solid var(--border) !important; padding: 28px 24px; }
  .stat:nth-of-type(1) { border-top: none !important; }
  .corner-dot.tl, .corner-dot.bl { left: 8px; }
  .corner-dot.tr, .corner-dot.br { right: 8px; }

  .app-card { flex-basis: min(84vw, 320px); }

  .db-hero-card { padding: 32px 24px 0; }
  .db-hero-art { margin: 24px -24px 0; width: calc(100% + 48px); }
  .db-card { padding: 28px 24px; }
  .db-visual-chips { margin: 24px -24px -28px; padding-bottom: 28px; }

  .why-grid { grid-template-columns: 1fr; }
  .why-cell, .why-center { grid-column: 1 !important; grid-row: auto !important; border: none !important; border-bottom: 1px solid var(--border) !important; }
  .why-cell:last-child { border-bottom: none !important; }
  .why-cell { padding: 32px 24px; }
  .why-icon { margin-bottom: 22px; }

  .framed::before, .framed::after { display: none; }
  .frame-dot, .list-dot { display: none; }

  .faq-q { font-size: 17px; padding: 20px 18px; }
  .faq-a p { padding: 0 18px 20px; }

  .blog-grid { grid-template-columns: 1fr; }

  .cta-card { padding: 64px 22px 96px; }

  .orbit { min-height: 260px; }
  .oi { width: 30px; height: 30px; border-radius: 7px; }
  .oi-lg { width: 38px; height: 38px; }
  .orbit-core { width: 74px; height: 74px; }
  .or-1 { width: 200px; height: 200px; }
  .or-2 { width: 360px; height: 360px; }
  .or-3 { width: 540px; height: 540px; }
  .or-4 { width: 720px; height: 720px; }

  .hero-cloud { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-form { max-width: none; }
  .footer-end { justify-content: center; }
}
