/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── TOKENS ─── */
:root {
  --black:      rgb(15, 15, 15);
  --white:      rgb(255, 255, 255);
  --off-white:  rgb(248, 248, 246);
  --mid:        rgb(96, 96, 102);
  --border:     rgb(230, 230, 228);
  --radius-btn: 12px;
  --radius-img: 16px;
  --max-text:   720px;
  --max-page:   1200px;
  --font:       'Manrope', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── HERO ─── */
.hero {
  padding: 80px 24px 16px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--black);
  max-width: 800px;
  margin: 0 auto 22px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--black);
  max-width: 780px;
  margin: 0 auto 32px;
}

.hero-sub strong {
  font-weight: 700;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: opacity 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.82; }

.arrow-ext {
  margin-left: 6px;
  vertical-align: -1px;
}

.hero-note {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--mid);
}

/* ─── HERO MEDIA ─── */
.hero-media {
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
}

.masonry-track {
  display: flex;
  gap: 24px;
  will-change: transform;
}

.masonry-track.running {
  animation: slide-left var(--slide-duration, 36s) linear infinite;
}

.hero-media:hover .masonry-track.running {
  animation-play-state: paused;
}

@keyframes slide-left {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--slide-distance, -50%)); }
}

.masonry-item {
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  height: auto;
  transition: transform 0.2s;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.mi-w1, .mi-w2, .mi-w3, .mi-w4 { width: 180px; }

.open-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.open-btn::after {
  content: '';
  display: inline-block;
  width: 11px;
  height: 11px;
  background-image: url("data:image/svg+xml,%3Csvg width='11' height='11' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.25 2.625H3.5C3.036 2.625 2.591 2.809 2.263 3.138C1.934 3.466 1.75 3.911 1.75 4.375V10.5C1.75 10.964 1.934 11.409 2.263 11.737C2.591 12.066 3.036 12.25 3.5 12.25H9.625C10.089 12.25 10.534 12.066 10.862 11.737C11.191 11.409 11.375 10.964 11.375 10.5V8.75' stroke='%230f0f0f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.75 1.75H12.25V5.25' stroke='%230f0f0f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.833 8.167L12.25 1.75' stroke='%230f0f0f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.masonry-item .open-btn {
  display: none;
}

.g1  { background: linear-gradient(160deg, #1a1a1a 0%, #2e2e2e 100%); }
.g2  { background: linear-gradient(160deg, #f5ece0 0%, #e8d4b8 100%); }
.g3  { background: linear-gradient(160deg, #e0ece8 0%, #b8d4cc 100%); }
.g4  { background: linear-gradient(160deg, #e0e4f0 0%, #b8c0d8 100%); }
.g5  { background: linear-gradient(160deg, #f0e0e0 0%, #d8b8b8 100%); }
.g6  { background: linear-gradient(160deg, #ece8e0 0%, #d4ccb8 100%); }
.g7  { background: linear-gradient(160deg, #e0f0ec 0%, #b8d8d0 100%); }
.g8  { background: linear-gradient(160deg, #f5f0e8 0%, #e0d8c8 100%); }

.masonry-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.9);
}

.masonry-tag.light {
  background: rgba(15,15,15,0.08);
  color: rgba(15,15,15,0.55);
}

.masonry-icon { font-size: 48px; }

/* ─── ALTERNATING SECTIONS ─── */
.section-alt {
  background: var(--off-white);
}

.masonry-caption {
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 12px 24px 32px;
}

/* ─── DIVIDER ─── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── SHARED SECTION LAYOUT ─── */
.page-section {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 96px 40px;
}

.page-section.wide {
  max-width: 1600px;
}

.section-centered {
  text-align: center;
}

.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-bottom: 14px;
}

h2.xl {
  font-size: clamp(28px, 4vw, 44px);
  max-width: var(--max-text);
  margin-left: auto;
  margin-right: auto;
}

.section-centered h2.xl {
  text-align: center;
}

.body {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--mid);
  max-width: 500px;
  margin-bottom: 28px;
}

.body.wide { max-width: 620px; }
.body.c { margin-left: auto; margin-right: auto; text-align: center; }

/* ─── STATS CARDS ─── */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 32px 40px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
a.stat-card:hover {
  border-color: var(--black);
  background: var(--off-white);
}

.stat-card-n {
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card-l {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  line-height: 1.4;
}

/* ─── 2-COL FEATURE ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 96px 40px;
}

.two-col.flip { direction: rtl; }
.two-col.flip > * { direction: ltr; }

.two-col-text {
  align-items: start;
  padding-bottom: 48px;
}
.two-col-text .body {
  max-width: 100%;
}

.feat-media {
  border-radius: var(--radius-img);
  overflow: hidden;
  aspect-ratio: 2/3;
  background: var(--off-white);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
}

.ba-pane {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.ba-pane img {
  transition: transform 0.2s;
}

.ba-pane:hover img {
  transform: scale(1.05);
}

.ba-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before { background: #f2f2f2; }
.ba-after  { background: #181818; }

.ba-tag {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.ba-style-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.9);
  color: #0f0f0f;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.ba-pane .open-btn {
  display: none;
}

.ba-caption {
  font-size: 11px;
  color: rgba(15,15,15,0.4);
  margin-top: 12px;
  line-height: 1.6;
  text-align: center;
}
.ba-caption span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(15,15,15,0.55);
}

/* IP block grid */
.ip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 100%;
  padding: 16px;
}

.ip-cell {
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ip-cell-icon { font-size: 28px; }

.ip-cell-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15,15,15,0.4);
}

.ip-cell.dark .ip-cell-label { color: rgba(255,255,255,0.4); }

/* ─── TOOLS GRID ─── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
}

.tool {
  background: var(--white);
  padding: 28px 22px;
}

.tool-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 14px;
}

.tool-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.tool-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.55;
}

/* ─── CASE STUDY CALLOUT ─── */
.callout-wrap {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.callout-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 96px 40px;
}

.callout-quote {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 20px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  transition: border-color 0.15s;
}
.btn-ghost:hover { border-color: var(--black); }

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 36px;
}

.metric {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.metric-n {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 4px;
}

.metric-d {
  font-size: 12px;
  font-weight: 500;
  color: var(--mid);
  line-height: 1.4;
}

.output-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.output-cell {
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
  overflow: hidden;
}

.output-lbl {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.output-caption {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ─── USE CASE GRID ─── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
}

.case {
  background: var(--white);
  padding: 32px 28px;
  transition: background 0.15s;
}
.case:hover { background: var(--off-white); }

.case-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 14px;
}

.case-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 10px;
}

.case-body {
  font-size: 14px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 20px;
}

.case-stat {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.5;
}
.case-stat strong { color: var(--black); font-weight: 700; }

/* ─── HOW IT WORKS ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
}

.step {
  background: var(--white);
  padding: 32px 28px;
}

.step-n {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 18px;
}

.step-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 10px;
}

.step-body {
  font-size: 14px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.65;
}

.step-img {
  width: 100%;
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid #f1f1f1;
}

.step-img-crop {
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid #f1f1f1;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.step-img-crop img {
  width: 200%;
  height: auto;
  transform-origin: top left;
}

/* ─── PRICING ─── */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.plan {
  background: var(--white);
  padding: 32px 28px;
}
.plan.mid { background: var(--off-white); }

.plan-tier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 14px;
}

.plan-price {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 4px;
}

.plan-period {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  margin-bottom: 22px;
}

.plan-list {
  list-style: none;
  margin-bottom: 28px;
}

.plan-list li {
  font-size: 14px;
  font-weight: 400;
  color: var(--mid);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  line-height: 1.5;
  align-items: flex-start;
}
.plan-list li:last-child { border-bottom: none; }
.plan-list li::before { content: '\2192'; color: var(--black); font-weight: 700; flex-shrink: 0; }

.btn-plan {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { opacity: 0.82; }
.btn-outline { background: transparent; color: var(--black); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--black); }

/* ─── PRACTICES ─── */
.practices-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.practice-list { list-style: none; }

.practice {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.practice:first-child { border-top: 1px solid var(--border); }

.p-n {
  font-size: 12px;
  font-weight: 700;
  color: var(--mid);
  padding-top: 2px;
}

.p-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.p-body {
  font-size: 14px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.6;
}

/* ─── LIMITS TABLE ─── */
.limits {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 28px;
}

.lim-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.lim-row:last-child { border-bottom: none; }

.lim-head { background: var(--off-white); }

.lim-cell {
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
}

.lim-head .lim-cell {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mid);
}

.lim-right {
  border-left: 1px solid var(--border);
  color: var(--mid);
}

/* ─── FAQ ─── */
.faq {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 96px 40px;
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
}

.faq-plus {
  font-size: 22px;
  font-weight: 300;
  color: var(--mid);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-a {
  font-size: 15px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.7;
  padding-bottom: 22px;
  display: none;
}

.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-plus { transform: rotate(45deg); }

/* ─── FINAL CTA ─── */
.final-cta {
  text-align: center;
  padding: 120px 24px;
}

.final-cta h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 620px;
  margin: 0 auto 16px;
  line-height: 1.1;
}

.final-sub {
  font-size: 17px;
  color: var(--mid);
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-row .btn-primary,
.btn-row .btn-ghost {
  min-width: 180px;
  justify-content: center;
  text-align: center;
  padding: 12px 28px;
  font-size: 16px;
}

/* ─── FOOTER ─── */
footer {
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--mid);
  text-decoration: none;
}
.footer-links a:hover { color: var(--black); }

/* ─── EXAMPLE MODELS CAROUSEL ─── */
.carousel {
  margin-top: 48px;
  text-align: left;
}

/* Header: tabs + play/pause */
.carousel-header {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: var(--border);
  gap: 1px;
}

/* Play/pause inside active tab */
.carousel-tab-playpause {
  display: none;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--mid);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  line-height: 0;
}
.carousel-tab-playpause:hover { color: var(--black); }
.carousel-tab.active:hover .carousel-tab-playpause { display: block; }
.carousel-tab-playpause .play-icon { display: none; }
.carousel-tab-playpause.paused .pause-icon { display: none; }
.carousel-tab-playpause.paused .play-icon { display: block; }

/* Tabs row */
.carousel-tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 1px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-tabs::-webkit-scrollbar { display: none; }

.carousel-tab {
  flex: 1;
  min-width: 140px;
  padding: 18px 20px;
  padding-right: 36px;
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  position: relative;
  transition: background 0.2s;
}
.carousel-tab:hover { background: var(--off-white); }
.carousel-tab.active { background: var(--off-white); }

.carousel-tab-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}

.carousel-tab-meta {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--mid);
}

.carousel-tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--black);
  width: 0;
  transition: none;
}

.carousel-tab.active .carousel-tab-progress {
  animation: carousel-progress 6s linear forwards;
}

.carousel.paused .carousel-tab.active .carousel-tab-progress {
  animation: none;
  width: 100%;
}

@keyframes carousel-progress {
  from { width: 0; }
  to   { width: 100%; }
}

/* Viewport */
.carousel-viewport {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  background: var(--white);
}

.carousel-slide {
  display: none;
  padding: 32px;
  animation: carousel-fade-in 0.35s ease;
}
.carousel-slide.active { display: block; }

@keyframes carousel-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.carousel-info {
  margin: 0;
}

.carousel-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.65;
  max-width: 100%;
}

/* Image grid: 6 images in 3x2 */
.carousel-images {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

/* Image wrapper with hover button */
.carousel-img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 2/3;
  cursor: pointer;
  background: var(--off-white);
}

.carousel-img-wrap .open-btn {
  display: none;
}

img.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.carousel-img-wrap:hover img.carousel-img {
  transform: scale(1.05);
}

/* Placeholder gradient cards (models without images yet) */
div.carousel-img {
  aspect-ratio: 2/3;
  border-radius: 10px;
}

/* ─── CAROUSEL SECTION (below hero) ─── */
.carousel-section {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 40px 48px;
}

/* ─── ENTERPRISE ─── */
.enterprise-wrap {
  background: var(--off-white);
}

.enterprise-wrap-white {
  background: var(--white);
}

.enterprise-inner {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 96px 40px;
}

/* Centered hero block */
.enterprise-hero {
  text-align: center;
  margin-bottom: 48px;
}

.enterprise-hero h2 {
  text-align: center;
}

.enterprise-sub {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--mid);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* Feature grid */
.enterprise-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
}

.enterprise-feature {
  background: var(--white);
  padding: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mid);
}

.enterprise-feature strong {
  color: var(--black);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

/* Stats cards */
.enterprise-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.enterprise-stat-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: var(--white);
  text-decoration: none;
  transition: border-color 0.15s;
}

a.enterprise-stat-card:hover {
  border-color: var(--black);
}

.enterprise-stat-n {
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
}

.enterprise-stat-l {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  line-height: 1.4;
}

/* Logos */
.enterprise-logos {
  text-align: center;
}

.enterprise-logos-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 20px;
}

.enterprise-logo-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.enterprise-logo {
  aspect-ratio: 1/1;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.enterprise-logo img {
  max-width: 70%;
  max-height: 70%;
  filter: brightness(0);
  opacity: 0.55;
  transition: opacity 0.2s;
}

.enterprise-logo:hover img {
  opacity: 1;
}

.enterprise-logo img.logo-wide {
  max-width: 90%;
  max-height: 80%;
}


/* ─── API SECTION ─── */
.api-steps {
  margin-top: 24px;
}

.api-step {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.api-step:first-child { border-top: 1px solid var(--border); }

.api-step-n {
  font-size: 11px;
  font-weight: 700;
  color: var(--mid);
  flex-shrink: 0;
}

.api-step-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
}

.api-code-block {
  background: var(--black);
  padding: 32px;
  display: flex;
  align-items: center;
  aspect-ratio: auto;
}

.api-code-block pre {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.api-code-block code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  white-space: pre;
}

.code-comment {
  color: rgba(255,255,255,0.35);
}

.code-string {
  color: #a8d8a8;
}

/* ─── NDA MODAL ─── */
.nda-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15,15,15,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.nda-overlay.dismissed {
  display: none;
}

.nda-modal {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  text-align: left;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
}

.nda-badge {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 24px;
}

.nda-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-bottom: 16px;
  line-height: 1.2;
}

.nda-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--mid);
  margin-bottom: 12px;
}

.nda-launch {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  text-align: center;
}

.nda-launch-date {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 4px;
}

.nda-launch-time {
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
}

.nda-thanks {
  margin-bottom: 28px;
}

.nda-actions {
  display: flex;
  gap: 10px;
}

.nda-btn {
  flex: 1;
  justify-content: center;
}

/* ─── PRE-LAUNCH BANNER ─── */
.prelaunch-banner {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.prelaunch-banner.scrolled {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* When modal is active, blur page content */
body.nda-active > *:not(.nda-overlay) {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

/* ─── IMAGE PREVIEW MODAL ─── */
.preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.preview-modal {
  position: relative;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
}

.preview-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}
.preview-close:hover { color: #fff; }

.preview-body {
  display: flex;
  gap: 32px;
  align-items: stretch;
  background: #1a1a1e;
  border-radius: 16px;
  padding: 20px;
}

.preview-image-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.preview-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: visible;
  background: #1a1a1a;
}

.preview-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
}

.preview-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 2;
}
.preview-arrow:hover { background: rgba(0,0,0,0.8); }
.preview-prev { left: 8px; }
.preview-next { right: 8px; }

.preview-thumbs {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.preview-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.15s;
  border: 2px solid transparent;
}
.preview-thumb:hover { opacity: 0.7; }
.preview-thumb.active {
  opacity: 1;
  border-color: #fff;
}

.preview-info-col {
  width: 280px;
  flex-shrink: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 4px;
}

.preview-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.preview-prompt {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  white-space: pre-wrap;
}

.preview-open-btn {
  margin-top: 8px;
  text-align: center;
  text-decoration: none;
  justify-content: center;
  background: var(--white);
  color: var(--black);
}
.preview-open-btn:hover { opacity: 0.82; }

.preview-open-btn::after {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .preview-overlay { padding: 20px; }
  .preview-body { flex-direction: column; }
  .preview-info-col { width: 100%; }
  .preview-thumb { width: 36px; height: 36px; }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════
   RESPONSIVE: TABLET (641px – 1024px)
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {

  .page-section {
    padding: 72px 32px;
  }

  /* Stats cards: stack on tablet */
  .stats-cards {
    padding: 24px 32px;
  }

  /* Two-col feature: stack */
  .two-col {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 72px 32px;
  }
  .two-col.flip { direction: ltr; }

  /* Let text fill available width when stacked */
  .two-col .body,
  .callout-inner .body {
    max-width: 100%;
  }

  .feat-media {
    aspect-ratio: 3/4;
    max-width: 560px;
    margin: 0 auto;
  }

  /* Tools grid: 3 cols at tablet for even rows */
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Carousel: 3x2 images on tablet */
  .carousel-images {
    grid-template-columns: repeat(3, 1fr);
  }
  .carousel-tab {
    min-width: 120px;
  }

  /* Callout: stack */
  .callout-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 72px 32px;
  }

  /* Enterprise: stack features to 2 cols */
  .enterprise-inner {
    padding: 72px 32px;
  }
  .enterprise-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .enterprise-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .enterprise-logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .carousel-section {
    padding: 0 32px 40px;
  }

  /* Cases: 2 cols */
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Steps: stack */
  .steps {
    grid-template-columns: 1fr;
  }

  /* Pricing: stack */
  .pricing {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  /* Practices: stack */
  .practices-wrap {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .final-cta {
    padding: 80px 24px;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE: MOBILE (≤ 640px)
   ═══════════════════════════════════════════ */
@media (max-width: 640px) {

  .nda-overlay {
    padding: 0;
    align-items: stretch;
  }

  .nda-modal {
    max-width: none;
    border-radius: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
  }

  .hero {
    padding: 56px 20px 24px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 5px 12px;
    margin-bottom: 20px;
  }

  h1 {
    font-size: 28px;
    line-height: 1.15;
  }

  .hero-sub {
    margin-bottom: 24px;
  }

  .page-section {
    padding: 56px 20px;
  }

  /* Stats cards mobile */
  .stats-cards {
    grid-template-columns: 1fr;
    padding: 20px 20px;
  }

  /* Masonry items smaller */
  .mi-w1, .mi-w2, .mi-w3, .mi-w4 { width: 140px; }
  .masonry-track { gap: 16px; }

  /* Two-col */
  .two-col {
    gap: 36px;
    padding: 56px 20px;
  }

  .feat-media {
    max-width: 100%;
    aspect-ratio: 1/1;
    max-height: 480px;
  }

  /* Tools grid: 2 cols on mobile */
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 32px;
  }

  /* Carousel mobile: 3x2 grid, scrollable tabs */
  .carousel-images {
    grid-template-columns: repeat(3, 1fr);
  }
  .carousel-tab {
    min-width: 110px;
    padding: 14px 16px;
  }
  .carousel-tab-name { font-size: 13px; }
  .carousel-tab-meta { font-size: 10px; }
  .carousel-slide { padding: 20px; }
  .carousel-desc { font-size: 14px; }

  /* Cases: single col */
  .cases-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .case {
    padding: 24px 20px;
  }

  /* Steps */
  .steps {
    margin-top: 32px;
  }

  .step {
    padding: 24px 20px;
  }

  /* Callout */
  .callout-inner {
    padding: 56px 20px;
    gap: 36px;
  }

  /* Enterprise */
  .enterprise-inner {
    padding: 56px 20px;
  }
  .enterprise-features {
    grid-template-columns: 1fr;
  }
  .enterprise-stats {
    grid-template-columns: 1fr 1fr;
  }
  .enterprise-logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-section {
    padding: 0 20px 32px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Practices */
  .practices-wrap {
    gap: 48px;
  }

  /* Limits table: stack cells vertically */
  .lim-row {
    grid-template-columns: 1fr;
  }
  .lim-right {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .lim-cell {
    padding: 10px 14px;
    font-size: 12px;
  }

  /* FAQ */
  .faq {
    padding: 56px 20px;
  }

  .faq-q {
    font-size: 15px;
    padding: 18px 0;
  }

  .faq-a {
    font-size: 14px;
  }

  /* Final CTA */
  .final-cta {
    padding: 64px 20px;
  }

  .final-sub {
    font-size: 16px;
  }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    text-align: center;
  }

  /* Pricing */
  .pricing {
    max-width: 100%;
  }

  .plan {
    padding: 28px 20px;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE: WIDE SCREENS (≥ 1440px)
   ═══════════════════════════════════════════ */
@media (min-width: 1440px) {

  :root {
    --max-page: 1320px;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .page-section {
    padding: 120px 60px;
  }

  .two-col {
    gap: 96px;
    padding: 120px 60px;
  }

  .callout-inner {
    gap: 96px;
    padding: 120px 60px;
  }

  .final-cta {
    padding: 140px 40px;
  }

  .mi-w1, .mi-w2, .mi-w3, .mi-w4 { width: 220px; }
  .masonry-track { gap: 28px; }
}
