/* ============================================================================
   SOTTO — Premium design system
   A crafted, Apple-grade dark interface: layered neutrals, atmospheric light,
   sophisticated glass, editorial typography, spring motion.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   0. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Layered neutrals — rich, slightly warm blacks → soft whites */
  --ink-1000: #060608;
  --ink-950: #0a0a0d;
  --ink-900: #101015;
  --ink-850: #16161d;
  --ink-800: #1d1d26;
  --ink-700: #2a2a36;
  --ink-600: #3a3a48;

  --paper-100: #f6f6f8;
  --paper-200: #ebebf0;

  /* Text */
  --text: #f4f4f7;
  --text-soft: #c4c4cf;
  --text-muted: #8a8a99;
  --text-faint: #5e5e6e;

  /* Electric accents — restrained, atmospheric */
  --electric: #7c8bff;        /* periwinkle */
  --electric-bright: #9aa6ff;
  --violet: #b18cff;
  --cyan: #5fe3e0;
  --accent-grad: linear-gradient(135deg, #8b97ff 0%, #b18cff 55%, #5fe3e0 130%);
  --accent-grad-soft: linear-gradient(135deg, rgba(139,151,255,0.9), rgba(177,140,255,0.85));

  /* Glass surfaces — restrained, barely-there edges */
  --glass-bg: rgba(255, 255, 255, 0.028);
  --glass-bg-strong: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-strong: rgba(255, 255, 255, 0.1);
  --glass-highlight: rgba(255, 255, 255, 0.1);
  --blur: 30px;

  /* Radii — soft, organic */
  --r-sm: 16px;
  --r-md: 24px;
  --r-lg: 28px;
  --r-xl: 32px;
  --r-2xl: 40px;
  --r-pill: 999px;

  /* Shadows — soft, deep, quiet */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 40px -12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 60px 140px -32px rgba(0, 0, 0, 0.72);
  --shadow-glow: 0 24px 90px -24px rgba(124, 139, 255, 0.32);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.07);

  /* Motion */
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-soft: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Type scale (fluid) */
  --fs-display: clamp(3rem, 8.5vw, 6.5rem);
  --fs-h1: clamp(2.4rem, 5.5vw, 4rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.2rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.35rem);
  --fs-body: 1.02rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;
}

/* ----------------------------------------------------------------------------
   1. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter",
    "Segoe UI", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--ink-1000);
  overflow-x: hidden;
  position: relative;
}

/* Atmospheric layered background — two quiet light sources + fine noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58% 48% at 16% -4%, rgba(124, 139, 255, 0.11), transparent 62%),
    radial-gradient(52% 46% at 88% 4%, rgba(177, 140, 255, 0.075), transparent 64%),
    var(--ink-1000);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select {
  font: inherit;
}

::selection {
  background: rgba(124, 139, 255, 0.35);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink-800);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  z-index: 200;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ----------------------------------------------------------------------------
   2. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: 820px;
}

.section {
  padding-block: clamp(100px, 14vw, 200px);
  position: relative;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.kicker {
  color: var(--text-muted);
  letter-spacing: 0.16em;
  margin-bottom: 20px;
}
.eyebrow-dot,
.eyebrow .eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(56px, 7vw, 100px);
  text-align: center;
}
.section-head--left {
  margin-inline: 0;
  text-align: left;
}
.section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.section-lead {
  margin-top: 20px;
  font-size: var(--fs-lead);
  color: var(--text-soft);
  line-height: 1.55;
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }

/* Keyboard chip */
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  padding: 0.12em 0.5em;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--text);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border-strong);
  border-radius: 8px;
  box-shadow: var(--inset-hi), 0 1px 2px rgba(0, 0, 0, 0.4);
  vertical-align: middle;
}

/* ----------------------------------------------------------------------------
   3. Buttons — glass, depth, magnetic, highlight sweep
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--r-pill);
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring),
    background 0.3s var(--ease);
  will-change: transform;
}
.btn--lg {
  padding: 17px 32px;
  font-size: 1rem;
}
.btn--block {
  display: flex;
  width: 100%;
}

/* sweep highlight removed for a quieter, more deliberate surface */

.btn--primary {
  color: #0a0a14;
  background: var(--accent-grad);
  box-shadow: var(--shadow-glow), var(--inset-hi);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 90px -24px rgba(124, 139, 255, 0.5), var(--inset-hi);
}

.btn--ghost {
  color: var(--text);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  box-shadow: var(--inset-hi);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  background: var(--glass-bg-strong);
  border-color: var(--glass-border-strong);
  box-shadow: var(--shadow-md), var(--inset-hi);
}

.btn:focus-visible {
  outline: 2px solid var(--electric-bright);
  outline-offset: 3px;
}

.apple-mark {
  display: inline-flex;
  margin-top: -2px;
}

/* ----------------------------------------------------------------------------
   4. Floating dock navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(calc(100% - 32px), 1080px);
  transition: top 0.5s var(--spring);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 22px;
  border-radius: var(--r-pill);
  background: rgba(14, 14, 19, 0.55);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  box-shadow: var(--shadow-md), var(--inset-hi);
  max-width: none;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.site-header--scrolled .header-inner {
  background: rgba(10, 10, 14, 0.75);
  border-color: var(--glass-border-strong);
  box-shadow: var(--shadow-lg), var(--inset-hi);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand-mark {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 8px rgba(124, 139, 255, 0.5));
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav > a {
  position: relative;
  padding: 8px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--r-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav > a:hover {
  color: var(--text);
  background: var(--glass-bg);
}
.nav-cta {
  margin-left: 6px;
  padding: 11px 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--spring), opacity 0.3s var(--ease);
}

/* ----------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(140px, 18vh, 220px);
  padding-bottom: clamp(60px, 8vw, 120px);
  text-align: center;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  margin-bottom: 30px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-soft);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--inset-hi);
}
.hero-badge .eyebrow-dot {
  margin: 0;
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 14ch;
  margin-inline: auto;
}

.hero-sub {
  margin: 30px auto 0;
  max-width: 60ch;
  font-size: var(--fs-lead);
  color: var(--text-soft);
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.center-cta {
  justify-content: center;
}

.hero-assurances {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.hero-assurances li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Hero ambient glow orbs (parallax targets) */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.42;
  z-index: 1;
  pointer-events: none;
  transform: translate3d(0, var(--py, 0), 0);
  will-change: transform;
}
.hero-orb--1 {
  width: 380px;
  height: 380px;
  top: 6%;
  left: -6%;
  background: radial-gradient(circle, rgba(124, 139, 255, 0.5), transparent 70%);
}
.hero-orb--2 {
  width: 320px;
  height: 320px;
  top: 18%;
  right: -4%;
  background: radial-gradient(circle, rgba(177, 140, 255, 0.42), transparent 70%);
}

/* ----------------------------------------------------------------------------
   6. Product showcase — the floating glass centerpiece
   -------------------------------------------------------------------------- */
.showcase {
  position: relative;
  margin-top: clamp(60px, 8vw, 110px);
  perspective: 1800px;
}
.showcase-stage {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--spring);
}

/* the call window behind */
.app-window {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(28, 28, 38, 0.9), rgba(12, 12, 18, 0.95));
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-xl), var(--inset-hi);
  aspect-ratio: 16 / 10;
}
.app-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(124, 139, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.win-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink-600);
}
.win-dot--r { background: #ff5f57; }
.win-dot--y { background: #febc2e; }
.win-dot--g { background: #28c840; }
.win-title {
  margin-left: 12px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.call-grid {
  position: relative;
  height: calc(100% - 53px);
  display: grid;
  gap: 16px;
  padding: 22px;
  transition: opacity 0.4s var(--ease);
}
/* Crossfade between scenes when the case changes */
.call-grid.is-swapping { opacity: 0; }

/* Per-scene call layouts — each case re-stages the whole call */
.call-grid.is-interview { grid-template-columns: 1.6fr 1fr; }
.call-grid.is-duo { grid-template-columns: 1fr 1fr; }
.call-grid.is-support { grid-template-columns: 1.5fr 1fr; }
.call-grid.is-gallery {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.is-gallery .face { font-size: 1.5rem; }

/* Scenario chip — names the live context over the call. Sits top-right so it
   never collides with the top-left floating feature chip. */
.stage-context {
  position: absolute;
  top: 66px;
  right: 22px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--r-pill);
  background: rgba(14, 14, 20, 0.62);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-soft);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--spring);
}
.stage-context .sc-ico { display: inline-flex; }
.stage-context svg { width: 14px; height: 14px; color: var(--electric-bright); }
.stage-context.is-swapping { opacity: 0; transform: translateY(-6px); }
.call-person {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(160deg, #232334, #15151f);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.call-person--main {
  background: linear-gradient(160deg, #2a2540, #181420);
}
.call-person .face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.18);
}
.call-person .avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}
/* Soft vignette so the meta label stays legible over the avatar */
.call-person::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 14, 0.66), transparent 48%);
  pointer-events: none;
}
.call-person--panel {
  align-items: center;
  justify-content: center;
}
.avatar-cluster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #15151f;
  margin-left: -10px;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}
.avatar-cluster .mini-av:first-child { margin-left: 0; }
.mini-av--more { background: rgba(255, 255, 255, 0.1); }
.call-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--text-soft);
}
.call-rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 95, 87, 0.16);
  color: #ff8e88;
  font-weight: 600;
}
.call-rec::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5f57;
}
.call-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

/* Shared-screen tile — a lightweight CRM/helpdesk mockup for the support scene */
.call-person--screen {
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(160deg, #1b1b27, #111119);
}
.call-person--screen::after {
  background: linear-gradient(to top, rgba(8, 8, 14, 0.82), transparent 34%);
}
.crm {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #20202e, #14141d);
  font-size: 11px;
}
.crm-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}
.crm-traffic { display: inline-flex; gap: 5px; }
.crm-traffic i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-600);
}
.crm-traffic i:nth-child(1) { background: #ff5f57; }
.crm-traffic i:nth-child(2) { background: #febc2e; }
.crm-traffic i:nth-child(3) { background: #28c840; }
.crm-tab {
  color: var(--text-soft);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-status {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(95, 227, 224, 0.16);
  color: var(--cyan);
  font-weight: 600;
}
.crm-body {
  flex: 1;
  display: grid;
  grid-template-columns: 0.32fr 1fr;
  min-height: 0;
}
.crm-side {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.crm-row {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}
.crm-row.is-active {
  background: linear-gradient(90deg, rgba(124, 139, 255, 0.55), rgba(124, 139, 255, 0.15));
}
.crm-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 18px;
  min-width: 0;
}
.crm-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.crm-h {
  width: 46%;
  height: 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}
.crm-line {
  width: 100%;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}
.crm-line.is-short { width: 64%; }
.crm-chip {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(124, 139, 255, 0.16);
  color: var(--electric-bright);
  font-size: 10px;
  font-weight: 600;
}
.crm-chip--warn {
  background: rgba(255, 95, 87, 0.16);
  color: #ff8e88;
}

/* The floating Sotto overlay — an accurate replica of the desktop app.
   Tokens mirror the SwiftUI Theme: layered ink surface, electric accent
   gradient, glass edges, periwinkle glow. */
.sotto-app {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 90%);
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  background: linear-gradient(180deg, rgba(22, 22, 30, 0.14), rgba(12, 12, 18, 0.2));
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  /* glassEdge-style hairline + electric ring + soft periwinkle glow */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(124, 139, 255, 0.10),
    var(--shadow-lg),
    0 30px 90px -32px rgba(124, 139, 255, 0.34);
  transition: transform 0.6s var(--spring), bottom 0.6s var(--spring);
  z-index: 5;
}
/* Keep text legible now that the glass is very transparent */
.sotto-app .sa-field-text,
.sotto-app .sa-ai-text,
.sotto-app .sa-bubble--user p,
.sotto-app .sa-pill-label,
.sotto-app .sa-timer,
.sotto-app [data-sa-caption-text] {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
/* Per-scene resting position — the overlay shifts subtly with the case */
.sotto-app.pos-left { transform: translateX(calc(-50% - 70px)); }
.sotto-app.pos-right { transform: translateX(calc(-50% + 70px)); }

/* Rows */
.sa-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}
.sa-prompt { height: 54px; }
.sa-toolbar { height: 48px; gap: 10px; }
.sa-divider { height: 1px; background: rgba(255, 255, 255, 0.08); }

/* Status pill */
.sa-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  font-size: 12px;
  font-weight: 600;
  color: #e6e6ec;
  white-space: nowrap;
}
.sa-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4c4cf;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.sa-pill.is-listening .sa-pill-dot {
  background: #4ade80;
  box-shadow: 0 0 9px rgba(74, 222, 128, 0.8);
  animation: sa-pulse 1.7s var(--ease) infinite;
}
.sa-pill.is-thinking .sa-pill-dot {
  background: #9aa6ff;
  box-shadow: 0 0 9px rgba(154, 166, 255, 0.85);
  animation: sa-pulse 1.3s var(--ease) infinite;
}
@keyframes sa-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Prompt field */
.sa-field {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}
.sa-caret {
  width: 1.5px;
  height: 18px;
  background: #9aa6ff;
  opacity: 0;
  flex-shrink: 0;
}
.sotto-app.is-focused .sa-caret {
  animation: sa-blink 1.1s steps(1, end) infinite;
}
@keyframes sa-blink {
  0%, 50% { opacity: 0.85; }
  51%, 100% { opacity: 0; }
}
.sa-field-text {
  margin-left: 3px;
  font-size: 14px;
  color: #c4c4cf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ⌘⏎ send button — the website download-button gradient */
.sa-send {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0a0a14;
  background: var(--accent-grad);
  box-shadow: 0 7px 20px -7px rgba(124, 139, 255, 0.6);
}

/* Toolbar controls */
.sa-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #e6e6ec;
}
.sa-tool svg { width: 15px; height: 15px; }
.sa-vsep { width: 1px; height: 20px; background: rgba(255, 255, 255, 0.08); }
.sa-flex { flex: 1; }
.sa-rec { display: inline-flex; align-items: center; gap: 8px; }
.sa-rec-live { display: none; align-items: center; gap: 8px; }
.sa-rec.is-live .sa-rec-idle { display: none; }
.sa-rec.is-live .sa-rec-live { display: inline-flex; }
.sa-stop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e66b63;
}
.sa-stop svg { width: 12px; height: 12px; }
.sa-timer {
  font-size: 12px;
  font-weight: 500;
  color: #c4c4cf;
  font-variant-numeric: tabular-nums;
}

/* Answer area */
.sa-answer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 156px;
  padding: 14px 16px 13px;
}
.sa-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sa-bubble {
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.45s var(--ease), transform 0.5s var(--spring);
}
.sa-bubble.is-in { opacity: 1; transform: none; }
.sa-bubble[hidden] { display: none; }

.sa-bubble--user { align-self: flex-end; max-width: 82%; }
.sa-bubble--user p {
  font-size: 13px;
  line-height: 1.5;
  color: #f4f4f7;
  padding: 7px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
}

.sa-bubble--ai {
  position: relative;
  align-self: stretch;
  padding: 9px 12px 9px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}
.sa-bubble--ai::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
}
.sa-ai-text {
  font-size: 13px;
  line-height: 1.5;
  color: #f4f4f7;
}
.sa-ai-text:empty { display: none; }
.sa-ai-text .sa-cursor {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: #9aa6ff;
  animation: sa-blink 1s steps(1, end) infinite;
}
.sa-typing {
  display: inline-flex;
  gap: 5px;
  padding: 4px 0;
}
.sa-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa6ff;
  animation: sa-typing 1.05s var(--ease) infinite;
}
.sa-typing i:nth-child(2) { animation-delay: 0.15s; }
.sa-typing i:nth-child(3) { animation-delay: 0.3s; }
.sa-typing[hidden] { display: none; }
@keyframes sa-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.sa-caption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #c4c4cf;
  opacity: 0.8;
}
.sa-caption svg { width: 13px; height: 13px; flex-shrink: 0; color: #c4c4cf; }
.sa-caption span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa-caption[hidden] { display: none; }

/* floating chips around showcase */
.showcase-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-soft);
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-md), var(--inset-hi);
  z-index: 6;
  transform: translate3d(0, var(--py, 0), 0);
  will-change: transform;
}
.showcase-float--1 { top: 12%; left: -2%; }
.showcase-float--2 { top: 42%; right: -3%; }
.showcase-float svg { color: var(--electric-bright); }

/* ----------------------------------------------------------------------------
   7. Trust strip
   -------------------------------------------------------------------------- */
.trust-strip {
  margin-top: clamp(90px, 11vw, 150px);
  text-align: center;
}
.trust-strip > p {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 24px;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 30px;
  list-style: none;
}
.logo-row li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--inset-hi);
  transition: transform 0.4s var(--spring), border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.logo-row li:hover {
  transform: translateY(-3px);
  color: var(--text-soft);
  border-color: var(--glass-border-strong);
}
.logo-row li svg {
  color: var(--electric-bright);
}

/* ----------------------------------------------------------------------------
   8. Glass cards (shared)
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-sm), var(--inset-hi);
  overflow: hidden;
  transition: transform 0.6s var(--spring), border-color 0.5s var(--ease),
    box-shadow 0.6s var(--spring);
}
/* border glow on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 0%),
    rgba(124, 139, 255, 0.32),
    transparent 62%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-strong);
  box-shadow: var(--shadow-md), var(--inset-hi);
}
.card:hover::before {
  opacity: 1;
}

/* Feature cards */
.feature-card .ico,
.icon-tile {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 13px;
  background: rgba(124, 139, 255, 0.08);
  color: var(--electric-bright);
}
.feature-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-soft);
  font-size: var(--fs-body);
  line-height: 1.6;
}

/* ----------------------------------------------------------------------------
   9. Solution split
   -------------------------------------------------------------------------- */
.solution-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.check-list {
  list-style: none;
  margin: 28px 0 34px;
  display: grid;
  gap: 16px;
}
.check-list li {
  position: relative;
  padding-left: 38px;
  color: var(--text-soft);
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(124, 139, 255, 0.1);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 8px;
  height: 12px;
  border: solid var(--electric-bright);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.stat-stack {
  display: grid;
  gap: 16px;
}
.stat-card {
  position: relative;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-md), var(--inset-hi);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-ico {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--electric-bright);
  background: rgba(124, 139, 255, 0.08);
  border: 1px solid var(--glass-border);
}
.stat-num {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.stat-note {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin-top: 4px;
}

/* ----------------------------------------------------------------------------
   10. Privacy
   -------------------------------------------------------------------------- */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.steps {
  list-style: none;
  display: grid;
  gap: 16px;
}
.step {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--inset-hi);
  transition: transform 0.4s var(--spring), border-color 0.3s var(--ease);
}
.step:hover {
  transform: translateX(4px);
  border-color: var(--glass-border-strong);
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 600;
  color: var(--electric-bright);
  background: rgba(124, 139, 255, 0.12);
  border: 1px solid var(--glass-border);
}
.step h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.step p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.trust-panel {
  padding: 32px;
  border-radius: var(--r-xl);
  background: linear-gradient(170deg, rgba(124, 139, 255, 0.1), var(--glass-bg));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-md), var(--inset-hi);
}
.trust-title {
  font-size: var(--fs-h3);
  margin-bottom: 22px;
}
.trust-list {
  list-style: none;
  display: grid;
  gap: 18px;
}
.trust-list li {
  display: flex;
  gap: 14px;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  line-height: 1.5;
}
.trust-list .ico {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  color: var(--electric-bright);
}
.trust-list strong { color: var(--text); }
.trust-fineprint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.55;
}
.trust-fineprint a {
  color: var(--electric-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----------------------------------------------------------------------------
   11. How it works
   -------------------------------------------------------------------------- */
.how-card {
  position: relative;
  padding: 32px 30px;
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-md), var(--inset-hi);
  transition: transform 0.5s var(--spring), border-color 0.3s var(--ease);
}
/* Flow connector behind the three steps (desktop) */
.how-flow {
  position: relative;
}
.how-flow::before {
  content: "";
  position: absolute;
  top: 56px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 139, 255, 0.35) 18%,
    rgba(124, 139, 255, 0.35) 82%,
    transparent
  );
  z-index: 0;
  pointer-events: none;
}
.how-flow .how-card {
  z-index: 1;
}
.how-ico {
  position: absolute;
  top: 32px;
  right: 30px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--electric-bright);
  background: rgba(124, 139, 255, 0.08);
  border: 1px solid var(--glass-border);
}
.how-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-strong);
}
.how-num {
  display: block;
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.13);
  margin-bottom: 16px;
}
.how-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 10px;
}
.how-card p {
  color: var(--text-soft);
  line-height: 1.55;
}

/* ----------------------------------------------------------------------------
   12. Use cases
   -------------------------------------------------------------------------- */
.usecase-card {
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--inset-hi);
  transition: transform 0.45s var(--spring), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.usecase-card:hover {
  transform: translateY(-5px);
  background: var(--glass-bg-strong);
  border-color: var(--glass-border-strong);
}
.usecase-card .ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  color: var(--electric-bright);
}
.usecase-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.usecase-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ----------------------------------------------------------------------------
   13. Testimonials
   -------------------------------------------------------------------------- */
.testimonial {
  padding: 30px;
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-md), var(--inset-hi);
  transition: transform 0.5s var(--spring), border-color 0.3s var(--ease);
}
.testimonial:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-strong);
}
.testimonial blockquote {
  font-size: 1.1rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 22px;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.t-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 600;
  color: var(--text);
  background: var(--accent-grad-soft);
}
.testimonial strong { color: var(--text); }

/* ----------------------------------------------------------------------------
   14. Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-md), var(--inset-hi);
  transition: transform 0.5s var(--spring), border-color 0.3s var(--ease);
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-strong);
}
.price-card--featured {
  background: linear-gradient(175deg, rgba(124, 139, 255, 0.14), var(--glass-bg));
  border-color: rgba(124, 139, 255, 0.3);
  box-shadow: var(--shadow-glow), var(--inset-hi);
}
.price-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #0a0a14;
  background: var(--accent-grad);
  border-radius: var(--r-pill);
}
.price-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 14px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.price span {
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.price small {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.price-desc {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: 24px;
}
.price-list {
  list-style: none;
  display: grid;
  gap: 13px;
  margin-bottom: 28px;
  flex: 1;
}
.price-list li {
  position: relative;
  padding-left: 28px;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid var(--cyan);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

/* ----------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 12px;
}
.faq-item {
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--inset-hi);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.faq-item[open] {
  border-color: var(--glass-border-strong);
  background: var(--glass-bg-strong);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-size: 1.05rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border: solid var(--text-muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.4s var(--spring);
}
.faq-item[open] summary::after {
  transform: rotate(-135deg) translateY(0);
}
.faq-item p {
  padding: 0 26px 24px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ----------------------------------------------------------------------------
   16. Final CTA
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative;
  padding-block: clamp(90px, 13vw, 170px);
  text-align: center;
  overflow: hidden;
}
.final-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 740px;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 80px) var(--gutter);
  border-radius: var(--r-2xl);
  background: linear-gradient(170deg, rgba(124, 139, 255, 0.12), var(--glass-bg));
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  box-shadow: var(--shadow-xl), var(--inset-hi);
}
.final-cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(70% 60% at 50% 0%, rgba(124, 139, 255, 0.14), transparent 68%);
  pointer-events: none;
}
.final-cta h2 {
  font-size: var(--fs-h1);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.final-cta p {
  margin: 20px auto 0;
  max-width: 50ch;
  font-size: var(--fs-lead);
  color: var(--text-soft);
}
.final-fine {
  margin-top: 26px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ----------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding-top: clamp(60px, 8vw, 90px);
  padding-bottom: 40px;
  background: linear-gradient(180deg, transparent, rgba(124, 139, 255, 0.04));
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  padding-bottom: 50px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 32ch;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-cols h4 {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-cols a {
  display: block;
  padding: 5px 0;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  transition: color 0.25s var(--ease);
}
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--glass-border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ----------------------------------------------------------------------------
   18. Dialog
   -------------------------------------------------------------------------- */
dialog {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  max-width: 460px;
  width: calc(100% - 40px);
}
dialog::backdrop {
  background: rgba(4, 4, 8, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dialog-card {
  position: relative;
  padding: 36px;
  border-radius: var(--r-2xl);
  background: rgba(18, 18, 26, 0.85);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  box-shadow: var(--shadow-xl), var(--inset-hi);
}
.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--text-muted);
  border-radius: 50%;
  background: var(--glass-bg);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.dialog-close:hover { background: var(--glass-bg-strong); color: var(--text); }
.dialog-body h3,
.dialog-success h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.dialog-body > p {
  color: var(--text-soft);
  margin-bottom: 24px;
  font-size: var(--fs-sm);
}
.field {
  display: block;
  margin-bottom: 16px;
}
.field span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 7px;
}
.field input,
.field select {
  width: 100%;
  padding: 13px 16px;
  color: var(--text);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--electric);
  background: var(--glass-bg-strong);
  box-shadow: 0 0 0 4px rgba(124, 139, 255, 0.18);
}
.dialog-fine {
  margin-top: 14px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
}
.dialog-success {
  text-align: center;
}
.success-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: #0a0a14;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: var(--shadow-glow);
}
.dialog-success p {
  color: var(--text-soft);
  margin-bottom: 24px;
}

/* ----------------------------------------------------------------------------
   19. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity 1s var(--spring), transform 1s var(--spring),
    filter 1s var(--spring);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }

/* ----------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .solution-inner,
  .privacy-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    border-radius: var(--r-xl);
    background: rgba(12, 12, 18, 0.92);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.4s var(--spring), transform 0.4s var(--spring);
  }
  .nav--open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav > a { padding: 12px 16px; }
  .nav-cta { margin-left: 0; margin-top: 6px; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .showcase-float { display: none; }
  .how-flow::before { display: none; }
}

@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .call-grid { grid-template-columns: 1fr; }
  .call-side { display: none; }
  .sotto-app { width: 94%; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .hero-assurances { gap: 14px; }
  .btn--lg { width: 100%; }
}

/* ----------------------------------------------------------------------------
   21. Reduced motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

@media print {
  body::before, body::after, .hero-orb, .showcase-float { display: none; }
  body { background: #fff; color: #000; }
}
