/* =========================================================
   Tsedra — Design System v4
   Dark theme · bg #0c0c0c · Accent #3C56FF
   ========================================================= */

:root {
  --bg: #0c0c0c;
  --bg-2: #111111;
  --card: #161616;
  --card-2: #1a1a1a;
  --card-3: #1f1f1f;

  /* Ink (light on dark) */
  --ink: #f2f2f2;
  --ink-2: #a8a8ae;
  --ink-3: #7a7a80;
  --ink-4: #5a5a60;

  /* Lines */
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.11);
  --line-3: rgba(255, 255, 255, 0.18);

  /* Brand blue */
  --red: #3c56ff;
  --red-2: #2f46e0;
  --red-soft: rgba(60, 86, 255, 0.16);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --max: 1160px;
  --max-narrow: 900px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.55);
  --shadow-pill: 0 8px 28px -10px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Satoshi", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }

/* ===== Layout ===== */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; position: relative; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }

/* Section header (centered, kargul) */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--red); text-transform: uppercase; margin-bottom: 16px;
}
.sec-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.sec-title { font-size: clamp(30px, 4.4vw, 50px); }
.sec-title.text-letters { color: #fff; }
.sec-title.text-letters .word { display: inline-block; }
.sec-title.text-letters .char {
  display: inline-block;
}
@media (max-width: 600px) {
  .sec-title.text-letters {
    padding-inline: 4px;
    line-height: 1.18;
  }
}
.sec-sub { color: var(--ink-2); font-size: 18px; margin: 16px auto 0; max-width: 560px; line-height: 1.5; font-weight: 500; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; border: 1px solid transparent; white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn-primary:hover svg,
.btn-primary:focus-visible svg,
.btn-primary:active svg { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--red-2); transform: translateY(-1px); }
.btn-dark { background: #fff; color: #0c0c0c; }
.btn-dark:hover { background: #e8e8e8; transform: translateY(-1px); }
.btn-light { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn-light:hover { border-color: var(--line-3); background: var(--card-2); transform: translateY(-1px); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15.5px; }
.btn-nav {
  height: 36px; padding: 0 14px; border-radius: 10px;
  background: #fff; color: #0c0c0c !important; border: 0;
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  box-shadow: none;
  transition: background 0.15s linear, transform 0.15s linear, box-shadow 0.5s ease;
}
.btn-nav:hover { background: #e8e8e8; transform: none; color: #0c0c0c !important; box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.btn-hero {
  background: #fff; color: #0c0c0c; border: 1px solid transparent;
  box-shadow: none; gap: 14px; padding-right: 10px;
}
.btn-hero:hover { background: #e8e8e8; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-hero .btn-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: #0c0c0c; position: relative; flex-shrink: 0;
}
.btn-hero .btn-dot::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(60,86,255,0.25);
}

.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14.5px; font-weight: 500; transition: gap 0.2s, color 0.2s; }
.text-link:hover { gap: 9px; color: var(--red); }
.text-link svg { width: 15px; height: 15px; }

/* ===== Header (Sanas-style black pill + scroll collapse) ===== */
header {
  position: fixed; top: 32px; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: max-content;
  max-width: calc(100vw - 40px);
  height: 58px;
  display: flex; align-items: center;
  padding: 8px 8px 8px 20px;
  border-radius: 16px;
  background: rgba(12, 12, 12, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 40px -12px rgba(0,0,0,0.45);
  box-sizing: border-box;
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
}
.brand {
  display: flex; align-items: center; flex-shrink: 0;
  margin: 0; z-index: 2;
}
.brand img { height: 20px; width: auto; display: block; }
.brand.foot img { height: 30px; }

.nav-main {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition:
    width 0.75s cubic-bezier(0.165, 0.84, 0.44, 1),
    opacity 0.35s linear;
  will-change: width, opacity;
}
.nav-links {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  white-space: nowrap;
}
.nav-links a {
  font-size: 14px; font-weight: 400; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.62); padding: 6px 10px; border-radius: 8px;
  transition: color 0.15s linear;
}
.nav-links a:hover { color: #fff; background: transparent; }

.nav-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  margin-left: 12px;
  transition: margin-left 0.75s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  position: relative;
  z-index: 210;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Collapse: middle width → 0, pill hugs logo + buttons */
header.scrolled .nav-main {
  opacity: 0;
  pointer-events: none;
}
header.scrolled .nav-actions {
  margin-left: 28px;
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 190; background: #0c0c0c;
  padding: 0; display: flex; flex-direction: column;
  transform: translateY(-100%); transition: transform 0.35s var(--ease), opacity 0.25s ease;
  opacity: 0; visibility: hidden;
}
.mobile-menu.open { transform: none; opacity: 1; visibility: visible; }
.mobile-menu-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 72px 0 120px;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 400;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  letter-spacing: -0.01em;
}
.mobile-menu-nav a:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu-actions {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  gap: 10px;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #0c0c0c;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu-actions .btn {
  flex: 1 1 0;
  height: 48px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: 0;
  margin: 0;
  padding: 0 12px;
  justify-content: center;
}
.mobile-menu-actions .btn-menu-sec {
  background: #fff;
  color: #0c0c0c !important;
}
.mobile-menu-actions .btn-menu-sec:hover {
  background: #e8e8e8;
  color: #0c0c0c !important;
  transform: none;
}
.mobile-menu-actions .btn-menu-pri {
  background: var(--red);
  color: #fff !important;
  box-shadow: none;
}
.mobile-menu-actions .btn-menu-pri:hover {
  background: var(--red-2);
  color: #fff !important;
  transform: none;
}

/* ===== Hero (user bg image · wide rounded stage) ===== */
.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 108px 16px 48px;
  background: #0c0c0c;
}
.hero-stage {
  position: relative;
  width: min(1320px, calc(100vw - 32px));
  aspect-ratio: 1024 / 565;
  border-radius: 36px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 28px 90px -30px rgba(0, 0, 0, 0.75);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: #050508 url("assets/hero-bg.png") center / cover no-repeat;
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 980px;
  padding: 48px 48px 64px;
  text-align: center;
}
.hero h1,
.hero .hero-title {
  font-size: clamp(26px, 4.2vw, 64px);
  max-width: 100%; margin: 0 auto;
  font-weight: 500; letter-spacing: -0.04em; line-height: 1.06;
  white-space: nowrap;
  color: #fff;
}
.hero-title-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero h1 .h1-line { display: inline; }
.hero h1 .red,
.hero .hero-blur-item.red { color: var(--red); }

/* Linear.app hero text reveal — 1:1
   from: opacity 0, blur(10px), translateY(20%)
   to: opacity 1, blur(0), translateY(0)
   duration 1s, ease [.25,.1,.25,1], stagger 40ms */
.hero-blur-item {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20%);
  will-change: transform, opacity, filter;
}
.hero-blur-space { display: inline; }
.hero-content.is-shown .hero-blur-item {
  animation: heroLinearReveal 1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.hero-blur-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.hero-blur-cta {
  display: inline-flex;
}
@keyframes heroLinearReveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blur-item {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none !important;
  }
}

.hero-sub {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  margin: 24px auto 36px;
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 400; line-height: 1.35;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.88);
}
.hero-sub .hero-blur-block > span {
  display: block; text-align: center; white-space: nowrap;
}
.hero-sub .hero-blur-block > span:nth-child(1) { font-size: 1em; }
.hero-sub .hero-blur-block > span:nth-child(2) { font-size: 0.94em; opacity: 0.95; }
.hero-sub .hero-blur-block > span:nth-child(3) { font-size: 0.88em; opacity: 0.9; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: stretch; }
.hero-cta .btn,
.hero-cta .btn-lg {
  width: 240px;
  min-width: 240px;
  height: 52px;
  padding: 0 22px;
  font-size: 15.5px;
  font-weight: 500;
  border-radius: 10px;
  box-sizing: border-box;
  justify-content: center;
  letter-spacing: 0.01em;
}
.hero-cta .btn-primary {
  background: var(--red);
  color: #fff !important;
  border: 0;
  box-shadow: none;
}
.hero-cta .btn-primary:hover {
  background: var(--red-2);
  color: #fff !important;
  transform: translateY(-1px);
}
.hero-cta .btn-primary svg {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.hero-cta .btn-light {
  background: #0c0c0c;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.hero-cta .btn-light:hover {
  background: #161616;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* ===== Work grid ===== */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.work {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  text-decoration: none; color: inherit;
}
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work:hover .work-meta p { color: #fff; }
.work.span-7, .work.span-5 { grid-column: auto; }
.work-canvas { position: absolute; inset: 0; z-index: 0; background-color: var(--card-2); background-size: cover; background-position: center; background-repeat: no-repeat; }
.work-canvas video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.work-canvas::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}
.work .tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  color: #fff; padding: 6px 11px; border-radius: 999px;
  background: rgba(12,12,12,0.85); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.work .tag svg { width: 12px; height: 12px; }
.work .ghost-num { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-size: 160px; font-weight: 600; color: rgba(255,255,255,0.12); letter-spacing: -0.05em; }
.work-meta { position: relative; z-index: 2; }
.work-meta .cat { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 7px; }
.work-meta h3 { font-size: 20px; letter-spacing: -0.02em; color: #fff; }
.work-meta p {
  color: rgba(255,255,255,0.75); font-size: 14px; margin-top: 5px; font-weight: 500;
  transition: color 0.25s var(--ease);
}
.work-grid:not(.is-expanded) .work-extra {
  display: none;
}
.work-soon {
  cursor: default;
  pointer-events: none;
}
.work-canvas--soon {
  background: linear-gradient(160deg, #16161a 0%, #0c0c0c 100%);
}
.work-soon .work-meta p {
  color: rgba(255, 255, 255, 0.55);
}
.work-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.work-more-btn {
  appearance: none;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.work-more-btn:hover {
  color: #fff;
  background: none;
  border-color: transparent;
}

/* ===== Case / project page ===== */
.case-page {
  padding: 120px 0 80px;
  min-height: 70vh;
}
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.case-back:hover { color: #fff; }
.case-back svg { width: 16px; height: 16px; }
.case-cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.case-page h1 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  color: #fff;
}
.case-lead {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 0 36px;
}
.case-hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  aspect-ratio: 16 / 9;
  margin-bottom: 48px;
}
.case-hero img,
.case-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-section {
  margin-bottom: 48px;
  max-width: 720px;
}
.case-section h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 12px;
}
.case-section p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}
.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}
.case-slot {
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  border: 1px dashed rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  display: grid;
  place-items: center;
  color: var(--ink-4);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 16px;
}
.case-slot--wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}
.case-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.case-cta-row .btn {
  border-radius: 10px;
  box-shadow: none;
}
@media (max-width: 600px) {
  .case-page { padding: 96px 0 56px; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-slot--wide { aspect-ratio: 16 / 10; }
}

/* ===== Logos strip ===== */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logos .cell {
  height: 84px; display: grid; place-items: center; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 18px; font-weight: 600; color: var(--ink-4); letter-spacing: -0.02em;
  transition: color 0.25s, transform 0.25s;
}
.logos .cell:hover { color: var(--ink-2); transform: translateY(-2px); }

/* ===== Why bento (Ramp platform cards) ===== */
.why-bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: minmax(200px, 0.85fr) minmax(320px, 1.2fr);
  gap: 24px;
  min-height: 640px;
}
.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: #161617;
  color: inherit;
  min-height: 0;
  cursor: default;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.platform-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 42%, transparent 72%);
  transition: opacity 0.35s var(--ease);
}
.platform-card:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: #17181c;
  box-shadow: none;
}
.platform-card:hover::before {
  opacity: 0;
}
.platform-card--tall { grid-column: 1; grid-row: 1 / 3; }
.platform-card--wide { grid-column: 2 / 4; grid-row: 1; }
.platform-card--sm { grid-column: 2; grid-row: 2; }
.platform-card--logos { grid-column: 3; grid-row: 2; }

/* Pixel-perfect detail demo */
.platform-card--pixel {
  overflow: hidden;
}
.platform-card--pixel .platform-card-head,
.platform-card--pixel .platform-card-body {
  position: relative;
  z-index: 3;
}
.pixel-stage {
  position: absolute;
  z-index: 2;
  left: 8%;
  right: 8%;
  top: 30%;
  bottom: 28%;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
}
.pixel-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Figma-style collab resize demo */
.platform-card--collab {
  overflow: hidden;
}
.platform-card--collab .platform-card-head h3 {
  max-width: 300px;
  position: relative;
  z-index: 3;
}
.platform-card--collab .platform-card-body {
  max-width: 46%;
  position: relative;
  z-index: 3;
}
.platform-card-pyramid {
  max-width: none;
  line-height: 1.5;
}
.figma-stage {
  position: absolute;
  z-index: 2;
  right: 4%;
  top: 18%;
  bottom: 14%;
  width: 48%;
  pointer-events: none;
  overflow: visible;
}
.figma-frame {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  background: transparent;
  border-radius: 1px;
  will-change: transform, width, height;
}
.figma-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: #161617;
  border-radius: 1px;
}
.figma-handle--tl { left: -4px; top: -4px; }
.figma-handle--tr { right: -4px; top: -4px; }
.figma-handle--bl { left: -4px; bottom: -4px; }
.figma-handle--br { right: -4px; bottom: -4px; }

.figma-cursor {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  will-change: transform;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  z-index: 3;
}
.figma-pointer {
  width: 15px;
  height: 19px;
  flex-shrink: 0;
  display: block;
}
.figma-tag {
  margin-top: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.figma-cursor--designer {
  color: #9747ff;
  flex-direction: row-reverse;
}
.figma-cursor--designer .figma-pointer,
.figma-cursor--programmer .figma-pointer {
  transform: scaleX(-1);
  transform-origin: center;
}
.figma-cursor--designer .figma-tag { background: #9747ff; }
.figma-cursor--marketer {
  color: #f24e1e;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 4px;
}
.figma-cursor--marketer .figma-pointer {
  transform: scaleX(-1) scaleY(-1);
  transform-origin: center;
  margin-top: 8px;
}
.figma-cursor--marketer .figma-tag {
  background: #f24e1e;
  margin-top: 0;
}
.figma-cursor--programmer {
  color: #0d99ff;
  flex-direction: row-reverse;
}
.figma-cursor--programmer .figma-tag { background: #0d99ff; }
.figma-cursor.is-active { z-index: 5; }

.platform-card-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 24px 0 32px;
}
.platform-card-head h3 {
  margin: 0;
  max-width: 300px;
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}
.platform-card-head h3 span {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
}

.platform-card-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 28px 32px 32px;
}
.platform-card-body p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 500;
  max-width: 360px;
}
.platform-card-extra {
  margin-top: 14px !important;
  color: rgba(255, 255, 255, 0.42) !important;
}

/* Manager chat demo inside platform card */
.platform-card--chat {
  overflow: hidden;
}
.mgr-chat {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  top: 92px;
  padding: 8px 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 100%);
}
.mgr-chat-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.mgr-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
  opacity: 0;
  transform: translateY(8px);
  animation: mgrIn 0.35s var(--ease) forwards;
}
.mgr-row--out {
  align-self: flex-end;
  flex-direction: row-reverse;
  margin-left: auto;
}
.mgr-row--in {
  align-self: flex-start;
  margin-right: auto;
}
.mgr-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1a1c;
  border: 1px solid rgba(255,255,255,0.1);
}
.mgr-ava--brand {
  display: grid;
  place-items: center;
  background: #fff;
  padding: 5px;
  box-sizing: border-box;
}
.mgr-ava--brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mgr-bubble {
  max-width: min(240px, 78%);
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mgr-row--out .mgr-bubble {
  background: var(--red);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.mgr-row--in .mgr-bubble {
  background: #232326;
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-left-radius: 6px;
}
.mgr-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.38);
  font-family: "IBM Plex Mono", monospace;
}
.mgr-row--out .mgr-meta { justify-content: flex-end; color: rgba(255,255,255,0.55); }
.mgr-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 14px;
}
.mgr-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  animation: mgrDot 1.1s ease-in-out infinite;
}
.mgr-row--out .mgr-typing i { background: rgba(255,255,255,0.85); }
.mgr-typing i:nth-child(2) { animation-delay: 0.15s; }
.mgr-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes mgrDot {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
@keyframes mgrIn {
  to { opacity: 1; transform: none; }
}

.logo-cloud {
  margin: 0;
  max-width: none;
  aspect-ratio: auto;
  min-height: 0;
  height: 100%;
}
.logo-cloud-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 24px 0 32px;
  pointer-events: none;
}
.logo-cloud-head h3 {
  margin: 0;
  max-width: 220px;
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}
.logo-cloud-accent { color: var(--red); }
.logo-cloud-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: auto;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 53%, #000 50%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.15) 80%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 53%, #000 50%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.15) 80%, transparent 100%);
}
.logo-cloud-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Services cards (crossfade) ===== */
.svc-flip {
  max-width: 980px;
  margin: 0 auto;
  --svc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --svc-flip-ms: 650ms;
}
.svc-flip-stage {
  position: relative;
  min-height: 380px;
  isolation: isolate;
}
.svc-page {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: #161617;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.985);
  pointer-events: none;
  transition:
    opacity var(--svc-flip-ms) ease,
    transform var(--svc-flip-ms) var(--svc-ease),
    visibility 0s linear var(--svc-flip-ms);
  overflow: hidden;
  z-index: 1;
}
.svc-page.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  box-shadow: none;
  z-index: 3;
  transition:
    opacity var(--svc-flip-ms) ease,
    transform var(--svc-flip-ms) var(--svc-ease),
    visibility 0s linear 0s;
}
.svc-page.is-leaving {
  opacity: 0;
  visibility: visible;
  transform: translateY(-8px) scale(0.99);
  z-index: 2;
  pointer-events: none;
}
.svc-page-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 36px 28px 36px 44px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: center;
  box-sizing: border-box;
}
.svc-copy {
  min-width: 0;
}
.svc-page .svc-idx {
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.svc-page h3 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #fff;
  margin: 0;
  max-width: 14ch;
}
.svc-page .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 20px;
}
.svc-page .tags span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}
.svc-page p {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
}

/* Right-side thematic visuals */
.svc-viz {
  position: relative;
  height: 260px;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.svc-page:not(.is-active) .svc-viz * {
  animation-play-state: paused !important;
}

/* 01 — strategy radar */
.viz-strat {
  position: relative;
  width: 220px;
  height: 220px;
}
.viz-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(60, 86, 255, 0.22);
}
.viz-ring.r1 { width: 70px; height: 70px; animation: vizPulse 2.8s ease-out infinite; }
.viz-ring.r2 { width: 130px; height: 130px; animation: vizPulse 2.8s ease-out 0.45s infinite; }
.viz-ring.r3 { width: 200px; height: 200px; animation: vizPulse 2.8s ease-out 0.9s infinite; }
.viz-core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(60, 86, 255, 0.2);
  display: grid;
  place-items: center;
}
.viz-core i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3c56ff;
  box-shadow: 0 0 18px rgba(60, 86, 255, 0.7);
}
.viz-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}
.viz-node.n1 { top: 18%; left: 62%; animation: vizOrbit 5s linear infinite; }
.viz-node.n2 { top: 58%; left: 12%; background: #3c56ff; animation: vizOrbit 6.5s linear infinite reverse; }
.viz-node.n3 { top: 72%; left: 68%; animation: vizFloat 3.2s ease-in-out infinite; }
.viz-node.n4 { top: 28%; left: 22%; background: #3c56ff; animation: vizFloat 3.8s ease-in-out 0.4s infinite; }

/* 02 — brand identity */
.viz-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.viz-mark {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background: linear-gradient(145deg, #3c56ff, #2436b8);
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.06em;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px -18px rgba(60, 86, 255, 0.75);
  animation: vizMark 3.6s var(--svc-ease) infinite;
}
.viz-swatches {
  display: flex;
  gap: 8px;
}
.viz-swatches span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--c);
  border: 1px solid rgba(255,255,255,0.12);
  animation: vizSwatch 2.8s ease-in-out infinite;
}
.viz-swatches span:nth-child(2) { animation-delay: 0.15s; }
.viz-swatches span:nth-child(3) { animation-delay: 0.3s; }
.viz-swatches span:nth-child(4) { animation-delay: 0.45s; }
.viz-type {
  font-size: 28px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: -0.04em;
  animation: vizType 4s ease-in-out infinite;
}

/* 03 — web browser + scroll cursor */
.viz-web {
  position: relative;
  width: 240px;
}
.viz-browser {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0a0a0c;
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.8);
}
.viz-browser-bar {
  display: flex;
  gap: 5px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.viz-browser-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.viz-browser-bar i:first-child { background: #ff5f57; }
.viz-browser-bar i:nth-child(2) { background: #febc2e; }
.viz-browser-bar i:nth-child(3) { background: #28c840; }
.viz-browser-viewport {
  height: 168px;
  overflow: hidden;
  position: relative;
}
.viz-scroll {
  padding: 14px 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: vizPageScroll 5.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: transform;
}
.viz-hero {
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(60,86,255,0.4), rgba(60,86,255,0.1));
  flex-shrink: 0;
}
.viz-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.viz-line.w1 { width: 62%; }
.viz-line.w2 { width: 88%; }
.viz-line.w3 { width: 48%; }
.viz-line.w4 { width: 70%; }
.viz-line.w5 { width: 40%; }
.viz-block {
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(60,86,255,0.28), rgba(60,86,255,0.06));
  flex-shrink: 0;
}
.viz-block.dim {
  height: 36px;
  background: rgba(255,255,255,0.06);
}
.viz-cta {
  width: 72px;
  height: 22px;
  border-radius: 999px;
  background: #3c56ff;
  flex-shrink: 0;
}
.viz-cursor {
  position: absolute;
  top: 78px;
  left: 58%;
  width: 16px;
  height: 16px;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.55));
  animation: vizCursorScroll 5.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: transform;
}
.viz-cursor::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: polygon(0 0, 0 100%, 28% 72%, 48% 100%, 62% 92%, 42% 62%, 100% 62%);
  border-radius: 1px;
}

@keyframes vizPageScroll {
  0%, 8% { transform: translateY(0); }
  42%, 52% { transform: translateY(-118px); }
  86%, 100% { transform: translateY(0); }
}
@keyframes vizCursorScroll {
  0%, 8% { transform: translate(0, 0); }
  42%, 52% { transform: translate(6px, 52px); }
  86%, 100% { transform: translate(0, 0); }
}

/* 04 — UI phone */
.viz-ui {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
.viz-phone {
  width: 128px;
  height: 220px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #0a0a0c;
  padding: 14px 12px 12px;
  box-sizing: border-box;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.75);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.viz-phone-notch {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  margin: 0 auto 4px;
}
.viz-ui-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.viz-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3c56ff;
  flex-shrink: 0;
}
.viz-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.14);
  flex: 1;
}
.viz-bar.long { width: 70%; }
.viz-ui-card {
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.viz-ui-card.c1 { animation: vizCard 3.2s ease-in-out infinite; }
.viz-ui-card.c2 {
  height: 36px;
  animation: vizCard 3.2s ease-in-out 0.35s infinite;
  background: rgba(60, 86, 255, 0.18);
}
.viz-ui-row.pads span {
  flex: 1;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  animation: vizPad 2.6s ease-in-out infinite;
}
.viz-ui-row.pads span:nth-child(2) { animation-delay: 0.2s; }
.viz-ui-row.pads span:nth-child(3) { animation-delay: 0.4s; }
.viz-comp {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.viz-chip {
  width: 54px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  animation: vizChip 2.8s ease-in-out infinite;
}
.viz-chip:nth-child(2) {
  width: 42px;
  animation-delay: 0.25s;
  background: rgba(60, 86, 255, 0.25);
}
.viz-btn-ghost {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px dashed rgba(60, 86, 255, 0.45);
  background: rgba(60, 86, 255, 0.08);
  animation: vizChip 3.2s ease-in-out 0.4s infinite;
}

/* 05 — motion orbs */
.viz-motion {
  position: relative;
  width: 220px;
  height: 220px;
}
.viz-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.2px);
}
.viz-orb.o1 {
  width: 72px;
  height: 72px;
  left: 30%;
  top: 28%;
  background: radial-gradient(circle at 30% 30%, #6b82ff, #3c56ff 60%, transparent 70%);
  animation: vizOrb1 3.6s ease-in-out infinite;
}
.viz-orb.o2 {
  width: 48px;
  height: 48px;
  left: 52%;
  top: 48%;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,0.2) 55%, transparent 70%);
  animation: vizOrb2 3.2s ease-in-out infinite;
}
.viz-orb.o3 {
  width: 36px;
  height: 36px;
  left: 22%;
  top: 54%;
  background: radial-gradient(circle at 30% 30%, #a8b4ff, #3c56ff);
  animation: vizOrb3 2.8s ease-in-out infinite;
}
.viz-trail {
  position: absolute;
  inset: 18% 12%;
  border-radius: 40% 60% 55% 45%;
  border: 1px solid rgba(60, 86, 255, 0.28);
  animation: vizTrail 5s linear infinite;
}

@keyframes vizPulse {
  0% { transform: scale(0.92); opacity: 0.9; }
  70% { opacity: 0.25; }
  100% { transform: scale(1.08); opacity: 0; }
}
@keyframes vizOrbit {
  0% { transform: translate(0, 0); }
  25% { transform: translate(10px, -8px); }
  50% { transform: translate(4px, 10px); }
  75% { transform: translate(-8px, 4px); }
  100% { transform: translate(0, 0); }
}
@keyframes vizFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes vizMark {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.04); }
}
@keyframes vizSwatch {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes vizType {
  0%, 100% { opacity: 0.45; letter-spacing: -0.04em; }
  50% { opacity: 0.85; letter-spacing: 0.08em; }
}
@keyframes vizLine {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes vizCard {
  0%, 100% { transform: translateX(0); opacity: 0.85; }
  50% { transform: translateX(4px); opacity: 1; }
}
@keyframes vizPad {
  0%, 100% { background: rgba(255,255,255,0.08); }
  50% { background: rgba(60, 86, 255, 0.35); }
}
@keyframes vizChip {
  0%, 100% { transform: translateX(0); opacity: 0.75; }
  50% { transform: translateX(6px); opacity: 1; }
}
@keyframes vizOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -12px) scale(1.12); }
}
@keyframes vizOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-16px, 14px) scale(0.9); }
}
@keyframes vizOrb3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, 10px); }
}
@keyframes vizTrail {
  0% { transform: rotate(0deg); border-radius: 40% 60% 55% 45%; }
  50% { border-radius: 55% 45% 40% 60%; }
  100% { transform: rotate(360deg); border-radius: 40% 60% 55% 45%; }
}
.svc-flip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}
.svc-flip-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.svc-flip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: width 0.35s var(--svc-ease), background 0.25s ease;
}
.svc-flip-dot.is-on {
  width: 28px;
  background: var(--red);
}
.svc-flip-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.svc-flip-count {
  font-size: 12.5px;
  color: var(--ink-3);
  min-width: 64px;
  text-align: center;
  letter-spacing: 0.04em;
}
.svc-flip-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.03);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.svc-flip-btn svg { width: 18px; height: 18px; }
.svc-flip-btn:hover {
  border-color: rgba(60, 86, 255, 0.55);
  background: rgba(60, 86, 255, 0.12);
}
.svc-flip-btn:active { transform: scale(0.96); }

@media (max-width: 820px) {
  .svc-page-inner {
    grid-template-columns: 1fr;
    padding: 32px 28px 28px;
    gap: 10px;
  }
  .svc-flip-stage { min-height: 500px; }
  .svc-viz { height: 200px; }
}
@media (max-width: 600px) {
  .svc-flip-stage { min-height: 520px; }
  .svc-page-inner {
    grid-template-columns: 1fr;
    padding: 28px 22px 24px;
    gap: 8px;
    align-content: center;
  }
  .svc-page h3 { max-width: none; font-size: 28px; }
  .svc-viz { height: 180px; }
  .viz-strat { transform: scale(0.78); }
  .viz-web { transform: scale(0.85); }
  .viz-ui { transform: scale(0.78); }
  .viz-motion { transform: scale(0.78); }
  .svc-flip-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .svc-flip-nav { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-page {
    transition: opacity 0.2s ease, visibility 0s !important;
    transform: none !important;
  }
  .svc-page:not(.is-active) {
    visibility: hidden !important;
    opacity: 0 !important;
  }
  .svc-viz * {
    animation: none !important;
  }
}

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats .cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 34px 26px; text-align: center; }
.stats .num { font-size: clamp(34px, 4vw, 48px); font-weight: 600; letter-spacing: -0.04em; color: var(--red); }
.stats .lbl { color: var(--ink-2); font-size: 14px; margin-top: 8px; font-weight: 600; line-height: 1.4; }

/* ===== Testimonials ===== */
.reviews { columns: 3; column-gap: 16px; }
.review { break-inside: avoid; margin-bottom: 16px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 26px; }
.review .co { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.review .co .mark { width: 20px; height: 20px; border-radius: 6px; background: #2a2a2a; display: inline-block; }
.review p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; font-weight: 500; }
.review .who { display: flex; align-items: center; gap: 11px; margin-top: 20px; }
.review .ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #fff; background: #2a2a2a; flex-shrink: 0; }
.review .name { font-size: 14px; font-weight: 600; }
.review .role { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }

/* Coming-soon reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-soon {
  border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); min-height: 180px; padding: 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.review-soon:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review-soon .soon-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--red);
  padding: 7px 13px; border-radius: 999px; background: var(--red-soft);
}
.review-soon .soon-badge svg { width: 13px; height: 13px; }
.review-soon p { color: var(--ink-3); font-size: 14.5px; font-weight: 600; }

/* ===== Tools ===== */
/* ===== Team (centered staggered) ===== */
.team-grid { display: flex; flex-wrap: wrap; gap: 18px 26px; justify-content: center; max-width: 860px; margin: 0 auto; }
.member { width: 150px; text-align: center; }
.member .ph { aspect-ratio: 1; border-radius: 20px; background: var(--card-3); border: 1px solid var(--line); display: grid; place-items: center; font-size: 34px; font-weight: 600; color: var(--ink-4); margin-bottom: 12px; transition: transform 0.3s var(--ease); }
.member:hover .ph { transform: translateY(-3px); }
.member .name { font-size: 15px; font-weight: 600; }
.member .role { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }

/* ===== FAQ accordion ===== */
.faq-box { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; background: none; border: 0; color: var(--ink); text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em; }
.faq-q .chev { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-3); transition: transform 0.3s var(--ease), color 0.3s; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--red); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { color: var(--ink-2); font-size: 15px; line-height: 1.65; font-weight: 500; padding: 0 24px 24px; }

/* ===== CTA closing ===== */
.cta { text-align: center; max-width: 720px; margin: 0 auto; }
.cta h2 { font-size: clamp(34px, 5.4vw, 66px); letter-spacing: -0.04em; }
.cta p { color: var(--ink-2); font-size: 18px; margin: 18px auto 32px; max-width: 440px; font-weight: 500; }
.cta .hero-cta { justify-content: center; }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--line-2); padding: 60px 0 30px; }
.foot-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.foot-brand img { height: 32px; width: auto; margin-bottom: 16px; }
.foot-brand p { color: var(--ink-2); font-size: 14.5px; max-width: 280px; line-height: 1.55; font-weight: 500; }
.foot-social { display: flex; gap: 8px; margin-top: 20px; }
.foot-social a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-2); color: var(--ink-2); box-shadow: var(--shadow-sm); transition: color 0.2s, transform 0.2s; }
.foot-social a:hover { color: var(--red); transform: translateY(-2px); }
.foot-social svg { width: 17px; height: 17px; }
.foot-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--ink-2); font-size: 14.5px; padding: 6px 0; font-weight: 600; transition: color 0.2s; }
.foot-col a:hover { color: var(--red); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }
.foot-bottom p { color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.foot-bottom .legal { display: flex; gap: 20px; }
.foot-bottom .legal a { color: var(--ink-3); font-size: 13.5px; font-weight: 600; transition: color 0.2s; }
.foot-bottom .legal a:hover { color: var(--ink); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  header {
    top: 0;
    padding: 0;
    pointer-events: auto;
  }
  .nav {
    width: 100% !important;
    max-width: none;
    height: 56px;
    padding: 0 12px 0 16px;
    border-radius: 0;
    justify-content: space-between;
    background: #0c0c0c;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .brand img { height: 18px; }
  .nav-main {
    display: none !important;
    width: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .nav-links { display: none !important; }
  .burger {
    display: flex !important;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    gap: 5px;
  }
  .burger span { width: 16px; }
  .burger.open {
    background: rgba(255, 255, 255, 0.06);
  }
  .nav-actions {
    margin-left: 0 !important;
    gap: 4px;
  }
  .nav-actions .btn,
  .nav-actions .btn.desktop { display: none !important; }
  header.scrolled .nav-actions { margin-left: 0 !important; }
  header.scrolled .nav-main { display: none !important; }
  header.scrolled .nav {
    width: 100% !important;
    background: #0c0c0c;
  }

  .hero {
    padding: 72px 16px 40px;
  }
  .hero-stage {
    width: 100%;
    max-width: none;
    border-radius: 28px;
  }
  .hero-content { padding: 40px 28px 48px; max-width: 100%; }
  .hero h1 {
    white-space: nowrap;
    font-size: clamp(24px, 4vw, 42px);
  }
  .work-grid { grid-template-columns: 1fr; }
  .why-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
    gap: 14px;
  }
  .platform-card--tall { grid-column: 1 / -1; grid-row: auto; min-height: 280px; }
  .platform-card--pixel { min-height: 360px; }
  .pixel-stage {
    top: 22%;
    bottom: 20%;
  }
  .platform-card--wide { grid-column: 1 / -1; grid-row: auto; min-height: 200px; }
  .platform-card--collab { min-height: 240px; }
  .platform-card--collab .platform-card-body { max-width: 50%; }
  .figma-stage {
    right: 2%;
    top: 16%;
    bottom: 12%;
    width: 46%;
  }
  .platform-card--sm { grid-column: 1; grid-row: auto; min-height: 260px; }
  .platform-card--chat { min-height: 380px; }
  .platform-card--logos { grid-column: 2; grid-row: auto; min-height: 280px; }
  .mgr-chat { top: 88px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .reviews { columns: 2; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .why-bento {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .platform-card--tall,
  .platform-card--wide,
  .platform-card--sm,
  .platform-card--logos {
    grid-column: 1;
    min-height: 280px;
  }
  .platform-card--pixel {
    min-height: 400px;
  }
  .pixel-stage {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: 220px;
    margin: 8px 0 auto;
    padding: 8px 16px;
    box-sizing: border-box;
  }
  .platform-card--collab {
    min-height: 360px;
  }
  .platform-card--collab .platform-card-body {
    display: none;
  }
  .platform-card--collab .platform-card-head h3 {
    max-width: none;
  }
  .figma-stage {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: 210px;
    margin-top: auto;
    padding: 28px 22px 32px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .figma-tag { font-size: 9.5px; padding: 2px 5px; }
  .figma-pointer { width: 12px; height: 15px; }
  .figma-handle { width: 6px; height: 6px; }
  .figma-cursor { gap: 3px; }
  .platform-card--logos { min-height: 340px; }
  .platform-card--chat {
    min-height: 420px;
  }
  .platform-card--chat .platform-card-head {
    padding: 22px 18px 0;
  }
  .platform-card--chat .platform-card-head h3 {
    font-size: 20px;
    max-width: 260px;
    line-height: 1.25;
  }
  .mgr-chat {
    top: 86px;
    padding: 8px 14px 18px;
  }
  .mgr-chat-stream { gap: 12px; }
  .mgr-bubble {
    font-size: 13px;
    line-height: 1.45;
    max-width: min(280px, 84%);
    padding: 11px 13px;
  }
  .mgr-ava {
    width: 30px;
    height: 30px;
  }
  .mgr-meta { font-size: 10px; }
  .platform-card-head { padding: 22px 18px 0; }
  .platform-card-head h3 { font-size: 20px; max-width: none; width: 100%; text-align: left; margin: 0; }
  .logo-cloud-head { justify-content: flex-start; padding: 22px 18px 0; }
  .logo-cloud-head h3 { max-width: none; width: 100%; text-align: left; margin: 0; }
  .platform-card-body { padding: 18px; text-align: left; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .reviews { columns: 1; }
  .reviews-grid { grid-template-columns: 1fr; }

  .hero {
    padding: 64px 10px 12px;
    box-sizing: border-box;
    /* Lock to small viewport so iOS URL-bar hide doesn't stretch hero */
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    min-height: 100svh;
    height: 100svh;
    max-height: 100svh;
    align-items: stretch;
  }
  .hero-stage {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    border-radius: 22px;
    align-items: stretch;
    justify-content: flex-start;
  }
  .hero-content {
    padding: 32px 16px 28px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100%;
    text-align: left;
  }
  .hero h1,
  .hero .hero-title {
    white-space: normal;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
    max-width: 100%;
    width: 100%;
    margin: 0;
    overflow: visible;
    text-overflow: unset;
    text-align: left;
  }
  .hero h1 .h1-line {
    display: block;
    text-align: left;
  }
  .hero-sub {
    display: block;
    font-size: 17px;
    margin: 16px 0 28px;
    gap: 0;
    padding: 0;
    width: 100%;
    max-width: none;
    color: rgba(255,255,255,0.72);
    text-align: left;
    line-height: 1.35;
    font-weight: 400;
    align-items: flex-start;
  }
  .hero-sub .hero-blur-block {
    display: block;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .hero-sub span,
  .hero-sub .hero-blur-block > span {
    display: inline;
    white-space: normal;
    max-width: none !important;
    font-size: inherit !important;
    opacity: 1 !important;
    text-align: left;
  }
  .hero-sub span + span::before,
  .hero-sub .hero-blur-block > span + span::before {
    content: " ";
  }
  .hero .hero-cta {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }
  .hero-blur-cta {
    display: block;
    width: 100%;
  }
  .hero .hero-cta .btn,
  .hero .hero-cta .btn-lg {
    flex: none;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
  }
  .hero .hero-cta .btn-primary svg {
    width: 16px;
    height: 16px;
  }

  /* Last CTA block — same Ramp-style stacked buttons on mobile */
  .cta {
    text-align: left;
    max-width: none;
  }
  .cta h2 {
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }
  .cta p {
    font-size: 17px;
    margin: 16px 0 28px;
    max-width: none;
    text-align: left;
  }
  .cta .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .cta .hero-cta .btn,
  .cta .hero-cta .btn-lg {
    flex: none;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    border-radius: 8px;
  }

  /* Мобильная шапка — формат Ramp */
  header { top: 0; padding: 0; }
  .nav {
    padding: 0 12px 0 16px;
    height: 56px;
    width: 100% !important;
    border-radius: 0;
    justify-content: space-between;
  }
  .brand { margin-left: 0; }
  .brand img { height: 18px; }
  .nav-actions .btn { display: none !important; }
  .burger { display: flex !important; }
  header.scrolled .nav { width: 100% !important; }
  header.scrolled .nav-actions { margin-left: 0 !important; }

  .mobile-menu {
    z-index: 180;
  }
  .mobile-menu-nav {
    padding-top: 56px;
  }

  /* Мобильный подвал: только 3 колонки ссылок */
  .foot-brand, .foot-bottom { display: none; }
  .foot-top { grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: 8px; }
  .foot-col h4 { font-size: 10.5px; margin-bottom: 12px; }
  .foot-col a { font-size: 12.5px; padding: 5px 0; word-break: break-word; }
  footer { padding: 44px 0 40px; }
}
/* ===== Legal pages ===== */
.legal-page {
  padding: 120px 0 72px;
  min-height: 70vh;
}
.legal-wrap {
  max-width: 760px;
}
.legal-meta {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 16px;
}
.legal-page h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  line-height: 1.15;
}
.legal-lead {
  font-size: 17px;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 36px;
  line-height: 1.55;
}
.legal-page h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 36px 0 14px;
}
.legal-page p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 12px;
}
.legal-page ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 16px;
}
.legal-page li {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
  font-weight: 500;
  margin-bottom: 8px;
}
.legal-page a { color: var(--red); }
.legal-page a:hover { text-decoration: underline; }
.legal-page strong { color: var(--ink); font-weight: 600; }
.legal-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14px !important;
  color: var(--ink-3) !important;
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.legal-page .nav {
  width: max-content;
  max-width: calc(100vw - 40px);
}
.legal-page header { pointer-events: none; }
.legal-page header .nav { pointer-events: auto; }
.legal-page .nav-actions .btn { display: inline-flex !important; }

@media (max-width: 600px) {
  .legal-page { padding: 96px 0 56px; }
  .legal-page h2 { font-size: 18px; }
  .legal-page p, .legal-page li { font-size: 14.5px; }
  .foot-bottom.legal-only {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
