/* ============ Dchati Landing — styles ============ */

:root {
  --accent-h: 195;
  --bg: oklch(0.16 0.03 250);
  --bg-raised: oklch(0.20 0.035 250);
  --ink: oklch(0.95 0.01 230);
  --ink-dim: oklch(0.72 0.02 240);
  --accent: oklch(0.80 0.14 var(--accent-h));
  --accent-strong: oklch(0.70 0.17 var(--accent-h));
  --accent-soft: oklch(0.80 0.14 var(--accent-h) / 0.12);
  --line: oklch(0.80 0.10 var(--accent-h) / 0.18);
  --line-quiet: oklch(0.60 0.02 250 / 0.25);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Aurora (faithful port of Aceternity's aurora-background) ----------
   Premium palette: soft champagne/white light instead of the stock blue.
   To revert to the original Aceternity colors, swap --aurora for:
   repeating-linear-gradient(100deg,#3b82f6 10%,#a5b4fc 15%,#93c5fd 20%,#ddd6fe 25%,#60a5fa 30%)
*/

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 72%);
}

.aurora-layer {
  position: absolute;
  inset: -10px;
  --dark-gradient: repeating-linear-gradient(100deg,
      #000 0%, #000 7%, transparent 10%, transparent 12%, #000 16%);
  --aurora: repeating-linear-gradient(100deg,
      oklch(0.97 0.015 230) 10%,
      oklch(0.93 0.035 200) 15%,
      oklch(0.95 0.03 280) 20%,
      oklch(0.90 0.05 75) 25%,
      oklch(0.96 0.02 220) 30%);
  background-image: var(--dark-gradient), var(--aurora);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;
  filter: blur(10px);
  opacity: 0.5;
  will-change: transform;
}

.aurora-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dark-gradient), var(--aurora);
  background-size: 200%, 100%;
  background-attachment: fixed;
  mix-blend-mode: difference;
  animation: aurora 60s linear infinite;
}

@keyframes aurora {
  from { background-position: 50% 50%, 50% 50%; }
  to   { background-position: 350% 50%, 350% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-layer::after { animation: none; }
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

::selection { background: var(--accent-strong); color: var(--bg); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; }

p { text-wrap: pretty; }

a { color: inherit; }

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-strong);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 70;
  box-shadow: 0 0 12px oklch(0.70 0.17 var(--accent-h) / 0.6);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: oklch(0.16 0.03 250 / 0.72);
  border-bottom: 1px solid var(--line-quiet);
  transition: background 0.3s;
}

.nav.scrolled { background: oklch(0.15 0.03 250 / 0.88); }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  transition: padding 0.3s;
}

.nav.scrolled .nav-inner { padding-block: 9px; }

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-dim);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-platform {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--ink) !important;
  transition: background 0.2s, border-color 0.2s;
}

.nav-platform:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-strong);
  color: oklch(0.14 0.03 250);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px oklch(0.70 0.17 var(--accent-h) / 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { background: var(--accent-soft); }

.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero {
  padding: 168px 0 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  min-height: 92vh;
}

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
  background: var(--accent-soft);
  animation: riseIn 0.7s ease both;
}

.hero h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero h1 em { font-style: normal; color: var(--accent); }

.hero h1.split .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  animation: wordIn 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1.split .w-accent { color: var(--accent); }

@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .lead {
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 52ch;
  margin-bottom: 38px;
  animation: riseIn 0.7s 0.55s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: riseIn 0.7s 0.7s ease both;
}

/* ---------- Chat demo ---------- */

.chat-wrap { position: relative; animation: riseIn 0.8s 0.4s ease both; }

.chat-frame {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px oklch(0.05 0.02 250 / 0.6),
              0 0 60px oklch(0.70 0.17 var(--accent-h) / 0.08);
  max-width: 400px;
  margin-left: auto;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-quiet);
  background: oklch(0.18 0.03 250);
}

.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: oklch(0.14 0.03 250);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}

.chat-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; }

.chat-status { font-size: 12.5px; color: var(--accent); }

.chat-status::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  animation: statusPulse 2.2s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.chat-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 350px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: oklch(0.4 0.03 250) transparent;
}

.msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.45;
}

.msg.shown { animation: msgIn 0.4s ease both; }

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-bot {
  align-self: flex-start;
  background: oklch(0.26 0.03 250);
  border-bottom-left-radius: 4px;
}

.msg-user {
  align-self: flex-end;
  background: oklch(0.34 0.085 var(--accent-h));
  border-bottom-right-radius: 4px;
}

.msg-note {
  align-self: center;
  background: transparent;
  border: 1px dashed var(--line-quiet);
  color: var(--ink-dim);
  font-size: 12.5px;
  text-align: center;
  max-width: 94%;
}

.msg-tag {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 13px 16px;
  background: oklch(0.26 0.03 250);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}

.typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: oklch(0.75 0.05 var(--accent-h));
  animation: bounce 1.1s infinite;
}

.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* WhatsApp Flows-style quick replies */

.flow-replies {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-self: flex-start;
  width: min(84%, 260px);
}

.flow-replies.shown { animation: msgIn 0.4s 0.15s ease both; }

.flow-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, opacity 0.3s;
}

.flow-btn:hover { background: oklch(0.80 0.14 var(--accent-h) / 0.22); border-color: var(--accent); }

.flow-replies.used .flow-btn { opacity: 0.35; pointer-events: none; }
.flow-replies.used .flow-btn.chosen { opacity: 0.85; border-color: var(--accent); }

.flow-btn-solid {
  background: var(--accent-strong);
  color: oklch(0.14 0.03 250);
  font-weight: 600;
}

.flow-btn-solid:hover { background: var(--accent); border-color: var(--accent); }

/* input bar */

.chat-inputbar {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line-quiet);
  background: oklch(0.18 0.03 250);
}

.chat-inputbar input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line-quiet);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 10px 18px;
}

.chat-inputbar input:focus { outline: 1px solid var(--accent); }

.chat-inputbar input::placeholder { color: oklch(0.55 0.02 240); }

.chat-send {
  width: 42px; height: 42px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: var(--accent-strong);
  color: oklch(0.14 0.03 250);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s, opacity 0.2s;
}

.chat-send:hover { transform: scale(1.08); }
.chat-send:disabled { opacity: 0.45; cursor: default; transform: none; }

.chat-hint {
  position: absolute;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-strong);
  color: oklch(0.14 0.03 250);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  animation: hintFloat 2.4s ease-in-out infinite;
  box-shadow: 0 6px 24px oklch(0.70 0.17 var(--accent-h) / 0.4);
  transition: opacity 0.4s;
  z-index: 2;
}

.chat-hint.hidden { opacity: 0; }

@keyframes hintFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* ---------- Brand moment (DC monogram formation) ---------- */

.brand-moment {
  position: relative;
  z-index: 1;
  min-height: 230vh;            /* scroll room for the beams to gather, hold + release */
}

.brand-moment-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0 24px 13vh;
  gap: 16px;
}

.brand-moment-inner > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s ease, transform 1s ease;
}

.brand-moment.formed .brand-moment-inner > * { opacity: 1; transform: none; }

.bm-eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-left: 0.42em;
}

.bm-caption {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}

@media (max-width: 900px) {
  .brand-moment { min-height: 200vh; }
  .brand-moment-inner { padding-bottom: 10vh; }
}

/* ---------- Ticker ---------- */

.ticker {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--line-quiet);
  background: oklch(0.18 0.03 250 / 0.55);
  backdrop-filter: blur(6px);
  overflow: hidden;
  padding: 16px 0;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: tickerMove 30s linear infinite;
}

.ticker span {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0 28px;
  white-space: nowrap;
}

.ticker span::after {
  content: "✦";
  color: var(--accent);
  margin-left: 56px;
  font-size: 10px;
}

@keyframes tickerMove {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

section { padding: 110px 0; position: relative; z-index: 1; }

.section-head { max-width: 640px; margin-bottom: 64px; }

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0 18px;
}

.section-head p { color: var(--ink-dim); font-size: 18px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 12px;
}

/* ---------- Cards ---------- */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  overflow: hidden;
  background: oklch(0.19 0.03 250 / 0.75);
  border: 1px solid var(--line-quiet);
  border-radius: 16px;
  padding: 34px 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(6px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(230px circle at var(--mx, 50%) var(--my, 50%),
              oklch(0.70 0.17 var(--accent-h) / 0.10), transparent 65%);
  pointer-events: none;
}

.card:hover::before { opacity: 1; }

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 18px 50px oklch(0.05 0.02 250 / 0.45);
}

.card .num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card p { color: var(--ink-dim); font-size: 16px; }

/* ---------- Use cases ---------- */

.cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.case-card { padding: 44px 38px; }

.case-card::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.70 0.17 var(--accent-h) / 0.14), transparent 70%);
  pointer-events: none;
}

.case-card h3 { font-size: 26px; }

.case-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.case-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.tag {
  font-size: 13.5px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--accent-soft);
}

/* ---------- CTA ---------- */

.cta { text-align: center; padding: 130px 0 150px; }

.cta h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cta p {
  color: var(--ink-dim);
  font-size: 19px;
  max-width: 46ch;
  margin: 0 auto 40px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line-quiet);
  padding: 56px 0 28px;
  position: relative;
  z-index: 1;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}

.foot-brand .logo { font-size: 22px; }
.foot-brand p {
  color: var(--ink-dim);
  font-size: 14.5px;
  margin-top: 12px;
  max-width: 30ch;
}

.foot-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.foot-col address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.5;
}
.foot-col address a { color: var(--ink-dim); text-decoration: none; transition: color 0.2s; }
.foot-col address a:hover { color: var(--accent); }

.foot-bottom {
  border-top: 1px solid var(--line-quiet);
  padding-top: 24px;
  color: var(--ink-dim);
  font-size: 13.5px;
}

@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Tweaks panel ---------- */

.tweaks-toggle {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 60;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.tweaks-toggle:hover { color: var(--ink); border-color: var(--accent); }

.tweaks-panel {
  position: fixed;
  bottom: 70px; right: 22px;
  z-index: 60;
  width: 280px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: none;
  box-shadow: 0 20px 60px oklch(0.05 0.02 250 / 0.6);
}

.tweaks-panel.open { display: block; }

.tweaks-panel h4 {
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 16px;
}

.tweak-row { margin-bottom: 16px; }

.tweak-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 7px;
}

.tweak-row input[type="range"] { width: 100%; accent-color: var(--accent-strong); }

.tweak-row input[type="text"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-quiet);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 9px 12px;
}

.tweak-row input[type="text"]:focus { outline: 1px solid var(--accent); }

.tweak-hint { font-size: 12px; color: var(--ink-dim); margin-top: 5px; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1.split .w, .kicker, .hero .lead, .hero-actions, .chat-wrap { animation: none; opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .chat-hint { animation: none; }
  .chat-status::before { animation: none; }
  .msg.shown, .flow-replies.shown { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 130px 0 70px;
    gap: 48px;
    min-height: auto;
  }
  .chat-frame { margin: 0 auto; }
  .grid-4, .cases { grid-template-columns: 1fr; }
  .case-wide { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  section { padding: 80px 0; }
}

/* ---------- Legal pages (privacy / terms) ---------- */

.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 140px 24px 100px;
  position: relative;
  z-index: 1;
}

.legal-wrap .back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--ink-dim);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.legal-wrap .back-link:hover { color: var(--ink); }

.legal-wrap h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.legal-updated { color: var(--ink-dim); font-size: 14px; margin-bottom: 14px; }

.legal-note {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-dim);
  margin-bottom: 40px;
}

.legal-wrap h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 38px 0 12px;
  letter-spacing: -0.01em;
}

.legal-wrap p, .legal-wrap li { color: var(--ink-dim); font-size: 16px; line-height: 1.7; }
.legal-wrap ul { margin: 10px 0 10px 22px; }
.legal-wrap li { margin-bottom: 7px; }
.legal-wrap a { color: var(--accent); }
.legal-wrap strong { color: var(--ink); font-weight: 600; }

.legal-foot {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--line-quiet);
  font-size: 13.5px;
  color: var(--ink-dim);
}

.foot-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.foot-links a { color: var(--ink-dim); text-decoration: none; font-size: 14.5px; transition: color 0.2s; }
.foot-links a:hover { color: var(--ink); }
.foot-wa { color: var(--accent); }

/* ===================== Mobile layer (additive — desktop layout untouched) =====================
   The two elements below are hidden on desktop and only surface inside the
   max-width media queries. No desktop rule above is overridden. */

.nav-toggle { display: none; }
.nav-scrim { display: none; }

@media (max-width: 900px) {
  .nav-inner { gap: 16px; }

  /* Hamburger button */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0 9px;
    background: transparent;
    border: 1px solid var(--line-quiet);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    z-index: 60;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Slide-in panel */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(82vw, 320px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
    padding: 92px 22px 28px;
    background: oklch(0.15 0.03 250 / 0.98);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--line-quiet);
    box-shadow: -20px 0 60px oklch(0.04 0.02 250 / 0.5);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 55;
  }
  .nav-links.open { transform: translateX(0); }

  /* Re-show the links the layout breakpoint hid, laid out for the panel */
  .nav-links a:not(.btn) {
    display: block;
    font-size: 17px;
    padding: 13px 14px;
    border-radius: 10px;
  }
  .nav-links a:not(.btn):hover { background: var(--accent-soft); }
  .nav-platform { text-align: center; margin-top: 6px; }
  .nav-links .btn {
    justify-content: center;
    margin-top: 10px;
    font-size: 16px;
    padding: 14px 20px;
  }

  /* Dimmed backdrop behind the open panel */
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: oklch(0.05 0.02 250 / 0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 45;            /* below the nav (50) so the panel paints above it */
  }
  .nav-scrim.open {
    opacity: 1;
    pointer-events: auto;
    background: oklch(0.05 0.02 250 / 0.5);
  }

  body.nav-open { overflow: hidden; }
}

/* Phone tuning — spacing, typography, full-width CTAs */
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }

  /* Hero — 8pt rhythm, room to breathe */
  .hero { padding: 112px 0 64px; gap: 32px; }
  .hero h1 {
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.16;
    margin-bottom: 16px;
    overflow-wrap: break-word;
  }
  .hero .lead { font-size: 16px; line-height: 1.6; margin-bottom: 32px; }
  .lead-desktop { display: none; }
  .lead-mobile { display: block; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .kicker { margin-bottom: 24px; font-size: 12px; }

  .chat-frame { max-width: 100%; }

  /* Section rhythm */
  section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: clamp(25px, 7vw, 32px); }
  .section-head p { font-size: 15.5px; line-height: 1.6; }

  /* Shorter copy on phones */
  .desc-full { display: none; }
  .desc-short { display: block; }

  /* Feature cards become compact app-style rows */
  .grid-4 { gap: 16px; }
  .card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    align-items: center;
    padding: 20px;
  }
  .card .num {
    grid-row: 1 / 3;
    align-self: center;
    margin: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    border: 1px solid var(--line);
    font-size: 15px;
  }
  .card h3 { grid-column: 2; margin: 0 0 4px; font-size: 17px; }
  .card .desc-short { grid-column: 2; margin: 0; font-size: 14px; line-height: 1.5; }

  /* Use-case cards */
  .cases { gap: 16px; }
  .case-card { padding: 28px 24px; }
  .case-card h3 { font-size: 21px; }
  .case-card p { font-size: 15px; line-height: 1.6; }
  .case-tags { margin-top: 20px; gap: 8px; }
  .case-wide { gap: 24px; }
  .case-wide .btn { width: 100%; justify-content: center; }

  .cta { padding: 88px 0 96px; }
  .cta p { font-size: 16px; line-height: 1.6; }


  .brand-moment { min-height: 175vh; }
  .bm-caption { font-size: 18px; }
}

/* ===================== Mobile CRM preview (phone mockup) =====================
   Hidden on desktop; swaps in for the browser-window demo on phones. */

.crm-mobile { display: none; }
.crm-head-mobile { display: none; }
.lead-mobile { display: none; }
.desc-short { display: none; }

@media (max-width: 640px) {
  .crm-window { display: none; }
  .crm-head-desktop { display: none; }
  .crm-head-mobile { display: block; }
  .crm-mobile { display: flex; justify-content: center; margin-top: 4px; }
}

.cmob-phone {
  width: min(340px, 86vw);
  background: oklch(0.20 0.03 250);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: 10px;
  position: relative;
  box-shadow: 0 30px 70px oklch(0.04 0.02 250 / 0.6),
              0 0 0 1px oklch(0.8 0.1 var(--accent-h) / 0.05),
              0 0 50px oklch(0.70 0.17 var(--accent-h) / 0.12);
}
.cmob-notch {
  position: absolute;
  top: 11px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 20px;
  background: oklch(0.12 0.02 250);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.cmob-screen {
  background: var(--bg);
  border-radius: 28px;
  padding: 24px 16px 16px;
  overflow: hidden;
}

.cmob-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cmob-ws { display: flex; align-items: center; gap: 10px; }
.cmob-ws-avatar {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--accent-strong); color: oklch(0.14 0.03 250);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
}
.cmob-ws b { display: block; font-size: 15px; font-family: var(--font-display); }
.cmob-ws small { color: var(--ink-dim); font-size: 12px; }
.cmob-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px;
}
.cmob-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: statusPulse 2.2s infinite; }

.cmob-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.cmob-stat {
  background: oklch(0.19 0.03 250 / 0.85); border: 1px solid var(--line-quiet);
  border-radius: 14px; padding: 14px 8px; text-align: center;
}
.cmob-stat b { display: block; font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.cmob-stat span { font-size: 10.5px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.08em; }

.cmob-ai {
  display: flex; align-items: center; gap: 10px;
  background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 14px; font-size: 13px; color: var(--ink);
  margin-bottom: 16px;
}
.cmob-ai b { color: var(--accent); font-weight: 700; }
.cmob-ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 10px var(--accent); }

.cmob-list { list-style: none; display: flex; flex-direction: column; margin-bottom: 16px; }
.cmob-list li { display: flex; align-items: center; gap: 12px; padding: 12px 6px; }
.cmob-list li + li { border-top: 1px solid var(--line-quiet); }
.cmob-av {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-weight: 700; font-family: var(--font-display); font-size: 15px;
  color: var(--ink);
  background: oklch(0.40 0.09 var(--a, 245));
}
.cmob-meta { flex: 1; min-width: 0; }
.cmob-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cmob-row b { font-size: 14.5px; }
.cmob-row time { font-size: 11px; color: var(--ink-dim); flex: none; }
.cmob-meta p { font-size: 13px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.cmob-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent);
  border: 1px solid var(--line); background: var(--accent-soft);
  border-radius: 6px; padding: 3px 6px; flex: none;
}

.cmob-tabs {
  display: flex; justify-content: space-around; align-items: center;
  border-top: 1px solid var(--line-quiet); padding-top: 12px;
}
.cmob-tabs span { color: var(--ink-dim); }
.cmob-tabs span.active { color: var(--accent); }
.cmob-tabs svg { width: 22px; height: 22px; display: block; }
