/* ==========================================================================
   OQY Labs — theme.css
   Black SaaS theme. Loaded by the redesigned pages only (index.html first).
   Fonts are self-hosted in assets/fonts (Inter, JetBrains Mono, Lato, Space Grotesk).
   ========================================================================== */

/* ---------- self-hosted fonts (no third-party font requests) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../assets/fonts/inter-latin-var.woff2) format('woff2-variations'), url(../assets/fonts/inter-latin-var.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url(../assets/fonts/jetbrains-mono-latin-var.woff2) format('woff2-variations'), url(../assets/fonts/jetbrains-mono-latin-var.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/lato-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/lato-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 900; font-display: swap; src: url(../assets/fonts/lato-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/space-grotesk-latin-600-normal.woff2) format('woff2'); }

:root {
  --bg: #08090A;
  --bg-2: #0B0C0E;
  --panel: #0F1011;
  --panel-2: #141516;
  --panel-3: #191A1C;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #F7F8F8;
  --text-2: #D0D3D8;
  --muted: #8A8F98;
  --muted-2: #62666D;

  --accent: #D8FF3E;
  --accent-ink: #0B0F00;
  --accent-dim: rgba(216, 255, 62, 0.14);

  --slack-aubergine: #4A154B;
  --slack-bg: #1A1D21;
  --slack-panel: #222529;
  --slack-border: #35373B;
  --slack-text: #D1D2D3;
  --slack-muted: #ABABAD;
  --slack-link: #1D9BD1;
  --slack-green: #007A5A;

  --font-ui: 'Inter', -apple-system, 'SF Pro Display', system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-slack: 'Lato', var(--font-ui);

  --container: 1200px;
  --gutter: 24px;
  --radius: 12px;
  --radius-lg: 20px;
  --nav-h: 64px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--accent { color: var(--accent); }
.h1 {
  font-size: 64px;
  line-height: 1.0;
  font-weight: 500;
  letter-spacing: -0.028em;
  color: var(--text);
  text-wrap: balance;
}
.h2 {
  font-size: 44px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.024em;
  color: var(--text);
  text-wrap: balance;
}
.h3 { font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -0.012em; }
.lede { font-size: 18px; line-height: 1.55; color: var(--muted); letter-spacing: -0.005em; }
.lede--lg { font-size: 22px; line-height: 1.45; color: var(--text-2); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--text); color: #0B0C0E; }
.btn--primary:hover { background: #FFFFFF; }
.btn--ghost { color: var(--text-2); border: 1px solid var(--border-strong); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.28); color: var(--text); }
.btn--link { height: auto; padding: 0; color: var(--muted); border-radius: 4px; }
.btn--link:hover { color: var(--text); }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn svg { width: 14px; height: 14px; flex: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border-2);
  background: rgba(8, 9, 10, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__logo { display: flex; align-items: center; height: 32px; }
.nav__logo svg { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--text); background: rgba(255,255,255,0.05); }
.nav__link svg { width: 10px; height: 10px; opacity: .7; }
.nav__cta { margin-left: 8px; height: 34px; }
.nav__divider { width: 1px; height: 20px; background: var(--border-strong); margin: 0 8px; }

/* dropdown */
.nav__item { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: -8px;
  min-width: 300px; padding: 8px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s linear .16s;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu, .nav__menu.is-open {
  opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s;
}
.nav__menu a {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  padding: 10px 10px; border-radius: 8px;
}
.nav__menu a:hover { background: rgba(255,255,255,0.05); }
.nav__menu-icon { width: 28px; height: 28px; border-radius: 7px; background: var(--panel-3); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); }
.nav__menu-icon svg { width: 14px; height: 14px; }
.nav__menu a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.nav__menu-title { display: block; font-size: 14px; font-weight: 500; color: var(--text); }
.nav__menu-desc { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.nav__burger { display: none; width: 40px; height: 40px; border-radius: 8px; margin-left: auto; place-items: center; color: var(--text); }
.nav__burger svg { width: 20px; height: 20px; }
.nav__mobile {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
  height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
  background: var(--bg); padding: 16px 24px 40px; overflow: auto;
  border-top: 1px solid var(--border-2);
}
.nav__burger .ic-close { display: none; }
.nav__burger[aria-expanded="true"] .ic-open { display: none; }
.nav__burger[aria-expanded="true"] .ic-close { display: block; }
.nav__mobile.is-open { display: block; }
.nav__mobile a { display: block; padding: 14px 0; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--border-2); color: var(--text); }
.nav__mobile .nav__mobile-sub a { font-size: 15px; color: var(--muted); padding-left: 16px; }
.nav__mobile .btn { display: flex; margin-top: 20px; width: 100%; justify-content: center; border-bottom: 0; }
.nav__mobile .btn--primary { color: #0B0C0E; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  height: 28px; padding: 0 12px 0 8px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
}
.hero__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero__sub { max-width: 520px; }
.hero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }

.hero__stage { position: relative; min-height: 640px; display: grid; place-items: center; }
.hero__glow {
  position: absolute; inset: -10% -20%; pointer-events: none;
  background:
    radial-gradient(45% 45% at 60% 40%, rgba(216,255,62,0.10), transparent 70%),
    radial-gradient(40% 40% at 30% 70%, rgba(74,21,75,0.35), transparent 70%);
  filter: blur(10px);
}
.hero__grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 60% at 55% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(60% 60% at 55% 50%, #000 30%, transparent 100%);
}

/* stats */
.stats { margin-top: 48px; border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); }
.stats__inner { display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; }
.stat { padding: 32px 28px 32px 0; border-right: 1px solid var(--border-2); }
.stat + .stat { padding-left: 28px; }
.stat__num { font-size: 48px; line-height: 1; font-weight: 500; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 8px; font-size: 14px; color: var(--muted); }
.stats__note { padding: 32px 0 32px 28px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.stats__note .eyebrow { color: var(--muted-2); }
.stats__note a { font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.stats__note a:hover { color: var(--text); }
.stats__note a svg { width: 12px; height: 12px; }

/* ---------- iPhone ---------- */
.phone-scene {
  position: relative;
  perspective: 1800px;
  perspective-origin: 40% 40%;
  width: 340px; height: 690px;
  z-index: 1;
}
.phone {
  position: absolute; inset: 0;
  transform: rotateY(-24deg) rotateX(9deg) rotateZ(3deg) translateZ(0);
  transform-style: preserve-3d;
  animation: phoneFloat 9s ease-in-out infinite;
  will-change: transform;
}
@keyframes phoneFloat {
  0%, 100% { transform: rotateY(-24deg) rotateX(9deg) rotateZ(3deg) translateY(0); }
  50% { transform: rotateY(-22deg) rotateX(8deg) rotateZ(2.5deg) translateY(-10px); }
}
.phone__body {
  position: absolute; inset: 0;
  border-radius: 58px;
  background: linear-gradient(160deg, #3A3B40 0%, #1B1C1F 22%, #0C0D0F 50%, #1E1F23 78%, #3C3D42 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10),
    inset 0 0 0 1px rgba(0,0,0,0.8),
    0 60px 120px -20px rgba(0,0,0,0.85),
    0 30px 60px -30px rgba(0,0,0,0.9),
    40px 80px 140px -40px rgba(216,255,62,0.10);
}
/* titanium rim highlight */
.phone__body::before {
  content: ""; position: absolute; inset: 2px; border-radius: 56px;
  background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02) 30%, rgba(0,0,0,0) 55%, rgba(255,255,255,0.08) 100%);
  pointer-events: none;
}
/* side depth (right edge) */
.phone__edge {
  position: absolute; top: 40px; bottom: 40px; right: -7px; width: 8px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #2C2D31, #16171A 50%, #2A2B2F);
  transform: rotateY(-90deg) translateZ(6px);
  transform-origin: left center;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.08);
}
.phone__btn { position: absolute; left: -3px; width: 3px; border-radius: 2px 0 0 2px; background: linear-gradient(180deg, #3B3C41, #1A1B1E); box-shadow: -1px 0 0 rgba(255,255,255,0.08); }
.phone__btn--mute { top: 120px; height: 28px; }
.phone__btn--vol1 { top: 172px; height: 56px; }
.phone__btn--vol2 { top: 240px; height: 56px; }
.phone__btn--power { left: auto; right: -3px; top: 190px; height: 84px; border-radius: 0 2px 2px 0; box-shadow: 1px 0 0 rgba(255,255,255,0.08); }
.phone__screen {
  position: absolute; inset: 10px;
  border-radius: 48px;
  background: var(--slack-bg);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.9);
}
.phone__glass {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 18%, rgba(255,255,255,0) 32%),
    linear-gradient(200deg, rgba(255,255,255,0) 60%, rgba(255,255,255,0.04) 100%);
}
.phone__island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 32px; border-radius: 20px; background: #000; z-index: 6;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.phone__island::after { content: ""; position: absolute; right: 12px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2A2F3A, #0A0C10 60%); box-shadow: inset 0 0 2px rgba(120,160,255,0.35); }

/* Slack UI inside phone */
.slack { position: absolute; inset: 0; display: flex; flex-direction: column; font-family: var(--font-slack); color: var(--slack-text); }
.slack__status { height: 50px; padding: 14px 28px 0; display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: #fff; background: var(--slack-aubergine); }
.slack__status svg { width: 58px; height: 14px; }
.slack__ws { background: var(--slack-aubergine); padding: 6px 16px 12px; display: flex; align-items: center; gap: 10px; }
.slack__ws-icon { width: 26px; height: 26px; border-radius: 7px; background: #fff; display: grid; place-items: center; }
.slack__ws-icon svg { width: 16px; height: 16px; }
.slack__ws-name { font-size: 15px; font-weight: 900; color: #fff; }
.slack__ws-actions { margin-left: auto; display: flex; gap: 14px; color: #fff; opacity: .85; }
.slack__ws-actions svg { width: 16px; height: 16px; }
.slack__channel { background: var(--slack-panel); border-bottom: 1px solid var(--slack-border); padding: 10px 16px; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 900; color: #fff; }
.slack__channel .hash { color: var(--slack-muted); font-weight: 400; }
.slack__channel .members { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--slack-muted); }
.slack__feed { flex: 1; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 11px; overflow: hidden; }
.msg { display: flex; gap: 10px; }
.msg__avatar { width: 34px; height: 34px; border-radius: 7px; flex: none; object-fit: cover; background: #2C2D30; }
.msg__avatar--app { display: grid; place-items: center; background: var(--slack-aubergine); }
.msg__avatar--app svg { width: 18px; height: 18px; }
.msg__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.msg__head { font-size: 13.5px; color: #fff; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.msg__name { font-weight: 900; }
.msg__badge { font-size: 10px; font-weight: 700; color: var(--slack-muted); background: var(--slack-border); padding: 1px 5px; border-radius: 3px; letter-spacing: .02em; }
.msg__time { font-size: 12px; color: var(--slack-muted); }
.msg__text { font-size: 13.5px; line-height: 1.4; color: var(--slack-text); }
.msg__text b { color: #fff; font-weight: 700; }
.msg__thread { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12px; font-weight: 700; color: var(--slack-link); }
.msg__thread img { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; }
.msg__thread span { color: var(--slack-muted); font-weight: 400; }
.slack__composer { margin: 0 12px 12px; border-radius: 10px; background: var(--slack-panel); border: 1px solid var(--slack-border); }
.slack__composer-input { padding: 9px 12px 4px; font-size: 13.5px; color: var(--slack-muted); }
.slack__composer-bar { padding: 2px 10px 7px; display: flex; align-items: center; gap: 12px; color: var(--slack-muted); }
.slack__composer-bar svg { width: 16px; height: 16px; }
.slack__composer-bar .send { margin-left: auto; width: 28px; height: 28px; border-radius: 5px; background: var(--slack-green); display: grid; place-items: center; }
.slack__composer-bar .send svg { width: 14px; height: 14px; }
.slack__home { width: 120px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.6); margin: 0 auto 10px; }

/* ---------- sections ---------- */
.section { padding: 96px 0 0; }
.section__head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.section__head--center { align-items: center; text-align: center; margin: 0 auto; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.split .h2 { max-width: 460px; }
.split__right { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }

/* tabs */
.tabs { margin-top: 32px; display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; height: 44px; padding: 0 16px;
  font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: color .15s;
}
.tab:hover { color: var(--text-2); }
.tab[aria-selected="true"] { color: var(--text); }
.tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transition: transform .25s var(--ease); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.panel { display: none; margin-top: 32px; }
.panel.is-active { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: start; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel__copy { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.panel__copy .h3 { font-size: 26px; }
.panel__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); font-size: 12.5px; color: var(--text-2); }

/* desktop slack card */
.slack-card {
  border-radius: 14px; overflow: hidden;
  background: var(--slack-bg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,0,0,0.5);
  font-family: var(--font-slack); color: var(--slack-text);
}
.slack-card__top { background: var(--slack-aubergine); padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.slack-card__top .slack__ws-icon { width: 24px; height: 24px; }
.slack-card__top .slack__ws-icon svg { width: 14px; height: 14px; }
.slack-card__top .slack__ws-name { font-size: 14px; }
.slack-card__search { margin-left: auto; height: 26px; width: 220px; border-radius: 6px; background: rgba(255,255,255,0.18); display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #fff; font-size: 12px; }
.slack-card__search svg { width: 12px; height: 12px; }
.slack-card__body { display: grid; grid-template-columns: 180px 1fr; min-height: 300px; }
.slack-card__side { background: #19171D; border-right: 1px solid #2A272E; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: #B8B4BD; }
.slack-card__side .lbl { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8C8891; padding: 6px 8px; }
.slack-card__side div:not(.lbl) { padding: 5px 8px; border-radius: 6px; }
.slack-card__side .is-active { background: #1264A3; color: #fff; font-weight: 700; }
.slack-card__main { display: flex; flex-direction: column; }
.slack-card__main .slack__channel { padding: 10px 18px; }
.slack-card__main .slack__feed { padding: 18px; gap: 16px; }
.slack-card__main .msg__text { font-size: 14.5px; line-height: 1.5; }
.slack-card__main .msg__avatar { width: 36px; height: 36px; }
.slack-card__main .msg__head { font-size: 14.5px; }
.cmd { font-family: var(--font-slack); }

/* ---------- pillars (FIG cards) ---------- */
.pillars { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-2); }
.pillar { padding: 40px 32px 44px 0; border-right: 1px solid var(--border-2); display: flex; flex-direction: column; gap: 0; }
.pillar + .pillar { padding-left: 32px; }
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar .eyebrow { color: var(--muted-2); }
.pillar__fig { height: 240px; display: grid; place-items: center; margin: 12px 0 28px; }
.pillar__fig svg { width: 230px; height: 230px; }
.pillar .h3 { margin-bottom: 8px; }
.pillar p { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ---------- testimonial ---------- */
.quote {
  margin-top: 32px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 48px 56px;
  display: grid; grid-template-columns: 1fr; gap: 32px;
  position: relative; overflow: hidden;
}
.quote::before { content: ""; position: absolute; inset: -40% 40% auto auto; width: 60%; height: 100%; background: radial-gradient(50% 50% at 50% 50%, rgba(216,255,62,0.07), transparent 70%); pointer-events: none; }
.quote__text { font-size: 26px; line-height: 1.4; font-weight: 400; letter-spacing: -0.012em; color: var(--text); max-width: 900px; }
.quote__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.quote__who { display: flex; align-items: center; gap: 14px; }
.quote__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-strong); }
.quote__name { font-size: 15px; font-weight: 500; }
.quote__role { font-size: 13.5px; color: var(--muted); }

/* ---------- comparison ---------- */
.table-wrap { margin-top: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: auto; background: var(--panel); }
.cmp { width: 100%; border-collapse: collapse; min-width: 760px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--border-2); }
.cmp th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 18px 20px; }
.cmp th:first-child, .cmp td:first-child { text-align: left; width: 34%; color: var(--text-2); font-weight: 500; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp .is-us { background: rgba(255,255,255,0.03); }
.cmp th.is-us { color: var(--text); }
.cmp td { color: var(--muted); }
.check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.check svg { width: 12px; height: 12px; }

/* ---------- offers ---------- */
.offers { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer {
  position: relative; padding: 28px 28px 32px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--panel); display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.offer:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.offer--hi { background: linear-gradient(180deg, rgba(216,255,62,0.06), rgba(216,255,62,0.0) 60%), var(--panel); border-color: rgba(216,255,62,0.25); }
.offer .eyebrow { color: var(--muted-2); }
.offer .h3 { font-size: 24px; }
.offer p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.offer__list { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.offer__list li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.offer__list svg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--accent); }

/* ---------- CTA ---------- */
.cta {
  margin-top: 96px;
  border-top: 1px solid var(--border-2);
  padding: 96px 0 0;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.cta .h2 { font-size: 48px; }
.cta__sub { font-size: 17px; color: var(--muted); max-width: 520px; }
.cta__note { font-size: 13px; color: var(--muted-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 380px 1fr; gap: 64px; }
.faq__list { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; text-align: left; font-size: 17px; font-weight: 500; color: var(--text); }
.faq__q svg { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform .25s var(--ease); }
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); color: var(--accent); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 0 22px; font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ---------- footer ---------- */
.footer { margin-top: 96px; border-top: 1px solid var(--border-2); padding: 56px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__brand svg { height: 34px; width: auto; }
.footer__brand p { font-size: 14px; color: var(--muted); max-width: 300px; line-height: 1.55; }
.footer__brand a { font-size: 14px; color: var(--text-2); }
.footer__col h4 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 14px; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: 14px; color: var(--muted); transition: color .15s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-2); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted-2); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .h1 { font-size: 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__stage { min-height: 600px; }
  .phone-scene { transform: scale(0.86); transform-origin: center; }
  .stats__inner { grid-template-columns: repeat(3, 1fr); }
  .stats__note { grid-column: 1 / -1; padding: 20px 0 28px; border-top: 1px solid var(--border-2); }
  .stat:nth-child(3) { border-right: 0; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .panel.is-active { grid-template-columns: 1fr; gap: 28px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--border-2); padding: 32px 0; }
  .pillar + .pillar { padding-left: 0; }
  .pillar__fig { height: 180px; }
  .offers { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; --nav-h: 60px; }
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .hero { padding-top: 56px; }
  .h1 { font-size: 42px; letter-spacing: -0.03em; }
  .h2 { font-size: 34px; }
  .cta .h2 { font-size: 34px; }
  .lede { font-size: 16px; }
  .hero__stage { min-height: 540px; margin: 0 -20px; }
  .phone-scene { transform: scale(0.74); transform-origin: center; }
  .phone { transform: rotateY(-16deg) rotateX(6deg) rotateZ(2deg); }
  @keyframes phoneFloat { 0%,100% { transform: rotateY(-16deg) rotateX(6deg) rotateZ(2deg) translateY(0); } 50% { transform: rotateY(-14deg) rotateX(5deg) rotateZ(1.5deg) translateY(-8px); } }
  .stats { margin-top: 48px; }
  .stats__inner { grid-template-columns: 1fr 1fr 1fr; }
  .stat { padding: 20px 12px 20px 0; }
  .stat + .stat { padding-left: 12px; }
  .stat__num { font-size: 32px; }
  .stat__label { font-size: 12.5px; }
  .section { padding-top: 64px; }
  .quote { padding: 32px 24px; }
  .quote__text { font-size: 20px; }
  .cta { margin-top: 64px; padding: 64px 0 0; }
  .footer { margin-top: 64px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .slack-card__body { grid-template-columns: 1fr; }
  .slack-card__side { display: none; }
  .slack-card__search { display: none; }
}

/* ---------- inner pages ---------- */
.hero--page { padding-top: 88px; }
.hero__copy--page { max-width: 760px; gap: 20px; }
.hero__copy--page .hero__sub { max-width: 640px; }
.hero--page .stats { margin-top: 64px; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); }
.point { padding: 40px 32px 44px 0; border-right: 1px solid var(--border-2); display: flex; flex-direction: column; gap: 12px; }
.point + .point { padding-left: 32px; }
.point:last-child { border-right: 0; padding-right: 0; }
.point .eyebrow { color: var(--muted-2); }
.point p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: start; }
.contact__list { margin-top: 8px; }
.contact__list a { color: var(--text); border-bottom: 1px solid var(--border-strong); }
.contact__cal { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); min-height: 700px; }
.container--narrow { max-width: 780px; }
.article { padding: 72px 0 0; }
.article h1 { font-size: 48px; line-height: 1.05; font-weight: 500; letter-spacing: -0.028em; margin: 12px 0 20px; text-wrap: balance; }
.article h2 { font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -0.018em; margin: 56px 0 14px; }
.article h3 { font-size: 20px; font-weight: 500; margin: 32px 0 10px; }
.article p, .article li { font-size: 17px; line-height: 1.65; color: var(--text-2); }
.article p { margin: 0 0 18px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 18px; list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: 8px; }
.article a { color: var(--text); border-bottom: 1px solid var(--border-strong); }
.article a:hover { border-color: var(--text); }
.article strong { color: var(--text); font-weight: 600; }
.article .eyebrow, .article .fr-eyebrow, .article .page-eyebrow { display: block; }
.article aside, .article .key-points, .article .summary-box { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel); padding: 24px 28px; margin: 24px 0 32px; }
.article aside p:last-child, .article .key-points ul { margin-bottom: 0; }
.article figure { margin: 24px 0; }
.article img { border-radius: 12px; border: 1px solid var(--border); }
.article figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-2); color: var(--text-2); }
.article th { color: var(--muted); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.article .btn { border-bottom: 0; }
.article .cta-row, .article .hero-actions, .article .fr-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
@media (max-width: 1080px) {
  .points { grid-template-columns: 1fr; }
  .point { border-right: 0; border-bottom: 1px solid var(--border-2); padding: 28px 0; }
  .point + .point { padding-left: 0; }
  .point:last-child { border-bottom: 0; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .article h1 { font-size: 34px; }
  .article h2 { font-size: 24px; margin-top: 40px; }
  .article p, .article li { font-size: 16px; }
}
.hero--article { padding-top: 72px; }
.hero--article .hero__copy--page { max-width: 780px; }
.article__section { margin-top: 56px; }
.article__section .h2 { font-size: 30px; margin-bottom: 14px; }
.article__section .faq__list { margin-top: 8px; }
.article .cta { margin-top: 72px; }
.article .btn--primary, .article .btn--primary:hover { color: #0B0C0E; }
.article .btn--ghost { color: var(--text-2); }
.hero--article .h1 { max-width: 720px; font-size: 56px; }

/* ---------- case study (legacy cs-* markup, themed) ---------- */
.cs--themed { padding-top: 72px; }
.cs--themed .cs-h1 { font-size: 48px; line-height: 1.05; font-weight: 500; letter-spacing: -0.028em; max-width: 900px; text-wrap: balance; margin: 0 0 48px; }
.cs--themed .cs-top { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.cs--themed .cs-sidebar { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel); padding: 28px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--nav-h) + 24px); }
.cs--themed .cs-logo, .cs--themed .cs-quote-logo { font-family: var(--font-ui); font-weight: 600; font-size: 28px; letter-spacing: -0.03em; color: var(--text); }
.cs--themed .cs-logo-d { color: var(--accent); }
.cs--themed .cs-about { font-size: 14.5px; line-height: 1.55; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--border-2); }
.cs--themed .cs-meta-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.cs--themed .cs-meta-label { color: var(--muted-2); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.cs--themed .cs-meta-value { color: var(--text-2); text-align: right; }
.cs--themed .cs-cards { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center; gap: 12px; }
.cs--themed .cs-tag { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; min-height: 100%; }
.cs--themed .cs-tag-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cs--themed .cs-tag-text { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.cs--themed .cs-center-connector { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cs--themed .cs-conn-line { width: 1px; height: 28px; background: var(--border-strong); }
.cs--themed .cs-conn-badge { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.cs--themed .cs-challenges { margin-top: 40px; }
.cs--themed .cs-section-title, .cs--themed .cs-results-title { font-size: 28px; font-weight: 500; letter-spacing: -0.018em; margin: 0 0 20px; }
.cs--themed .cs-ch-title { font-size: 17px; font-weight: 500; margin: 20px 0 6px; color: var(--text); }
.cs--themed .cs-ch-text { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.cs--themed .cs-results { margin-top: 72px; }
.cs--themed .cs-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); }
.cs--themed .cs-result { padding: 28px 24px 28px 0; border-right: 1px solid var(--border-2); display: flex; flex-direction: column; gap: 8px; }
.cs--themed .cs-result + .cs-result { padding-left: 24px; }
.cs--themed .cs-result:last-child { border-right: 0; }
.cs--themed .cs-result-cat { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.cs--themed .cs-result-num { font-size: 48px; line-height: 1; font-weight: 500; letter-spacing: -0.035em; }
.cs--themed .cs-result-desc { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.cs--themed .cs-quote { margin-top: 72px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); display: grid; grid-template-columns: minmax(0, 1fr) 280px; overflow: hidden; }
.cs--themed .cs-quote-left { padding: 44px 48px; display: flex; flex-direction: column; gap: 20px; }
.cs--themed .cs-quote-text { font-size: 24px; line-height: 1.4; font-weight: 400; letter-spacing: -0.012em; color: var(--text); }
.cs--themed .cs-quote-author { font-size: 14px; color: var(--muted); }
.cs--themed .cs-quote-right { position: relative; }
.cs--themed .cs-avatar-photo { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1080px) {
  .cs--themed .cs-top { grid-template-columns: 1fr; gap: 24px; }
  .cs--themed .cs-sidebar { position: static; }
  .cs--themed .cs-cards { grid-template-columns: 1fr; }
  .cs--themed .cs-center-connector { flex-direction: row; justify-content: center; }
  .cs--themed .cs-conn-line { width: 28px; height: 1px; }
  .cs--themed .cs-results-grid { grid-template-columns: 1fr; }
  .cs--themed .cs-result { border-right: 0; border-bottom: 1px solid var(--border-2); padding: 20px 0; }
  .cs--themed .cs-result + .cs-result { padding-left: 0; }
  .cs--themed .cs-result:last-child { border-bottom: 0; }
  .cs--themed .cs-quote { grid-template-columns: 1fr; }
  .cs--themed .cs-quote-right { height: 320px; }
}
@media (max-width: 720px) {
  .cs--themed { padding-top: 48px; }
  .cs--themed .cs-h1 { font-size: 34px; margin-bottom: 32px; }
  .cs--themed .cs-quote-left { padding: 28px 24px; }
  .cs--themed .cs-quote-text { font-size: 19px; }
}

/* ---------- language switch (sliding pill, flags) ---------- */
.lang-switch {
  position: relative; display: inline-flex; align-items: center;
  width: 82px; height: 34px; padding: 3px; border-radius: 999px;
  background: var(--panel-3); border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
  transition: border-color .2s var(--ease);
}
.lang-switch:hover { border-color: rgba(255,255,255,0.28); }
.lang-switch__knob {
  position: absolute; top: 3px; left: 3px; width: 36px; height: 26px; border-radius: 999px;
  background: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.6);
  transition: transform .28s var(--ease);
}
.lang-switch--fr .lang-switch__knob { transform: translateX(38px); }
.lang-switch__opt {
  position: relative; z-index: 1; flex: 1; height: 26px; display: grid; place-items: center;
  opacity: .38; filter: saturate(.25); transition: opacity .28s var(--ease), filter .28s var(--ease);
}
.lang-switch__opt svg { width: 24px; height: 13px; display: block; border-radius: 2px; }
.lang-switch:not(.lang-switch--fr) .lang-switch__opt:nth-child(2),
.lang-switch--fr .lang-switch__opt:nth-child(3) { opacity: 1; filter: none; }
.lang-switch__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav__mobile .lang-switch { display: inline-flex; padding: 3px; border-bottom: 1px solid var(--border-strong); font-size: 0; }
.nav__mobile-lang { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 0; border-bottom: 0; font-size: 14px; color: var(--muted); }

/* ---------- language hint ---------- */
.lang-hint { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 16px; font-size: 13.5px; color: var(--text-2); background: var(--panel-2); border-bottom: 1px solid var(--border); }
.lang-hint a { color: var(--text); border-bottom: 1px solid var(--border-strong); }
.lang-hint button { width: 28px; height: 28px; border-radius: 6px; color: var(--muted); font-size: 18px; line-height: 1; }
.lang-hint button:hover { color: var(--text); background: rgba(255,255,255,0.05); }
html[lang="fr"] .hero .h1 { font-size: 58px; }
@media (max-width: 720px) { html[lang="fr"] .hero .h1 { font-size: 38px; } }
