/* ═══════════════════════════════════════════════════════════
   ximg.ai — Landing Page Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --bg:           #08080c;
  --bg-alt:       #0e0e14;
  --surface:      #15151d;
  --border:       #1f1f28;
  --border-light: #2a2a35;

  --text:         #f0ece6;
  --text-muted:   #8a8690;
  --text-dim:     #5a5760;

  --accent:       #c8a97e;
  --accent-hover: #dfc19a;
  --accent-glow:  rgba(200, 169, 126, 0.12);
  --accent-glow2: rgba(200, 169, 126, 0.06);
  --rose:         #c9a0a0;

  --radius:       0.625rem;
  --radius-lg:    1rem;

  --font-display: "Cormorant Garant", "Georgia", serif;
  --font-body:    "Outfit", system-ui, -apple-system, sans-serif;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }

/* ── Typography ────────────────────────────────────────────── */
.serif { font-family: var(--font-display); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.section-title.serif {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.0625rem;
  font-weight: 300;
  max-width: 580px;
  margin: 1rem auto 0;
  text-align: center;
  line-height: 1.7;
}

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.8125rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              transform 0.2s var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 32px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm { font-size: 0.8125rem; padding: 0.5625rem 1.375rem; }
.btn-lg { font-size: 1.0625rem; padding: 1rem 2.75rem; }

/* ── Navigation ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(8, 8, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.logo {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.logo-x  { color: var(--accent); }
.logo-dot { color: var(--text-muted); }

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile Nav ────────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(8, 8, 12, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .btn { font-family: var(--font-body); font-size: 1rem; margin-top: 1rem; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 4.25rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(200, 169, 126, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(201, 160, 160, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 1.5rem;
  min-height: calc(100vh - 4.25rem);
  min-height: calc(100dvh - 4.25rem);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Hero Floating Grid ────────────────────────────────────── */
.hero-grid {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - 10rem);
}

.hero-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  will-change: transform;
}

.hero-card .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
}

.hero-card-1 {
  top: 2%;  left: 0;
  width: 42%; height: 50%;
  animation: heroFloat 7s var(--ease-out) infinite;
  animation-delay: 0s;
}
.hero-card-2 {
  top: 0;   left: 46%;
  width: 52%; height: 32%;
  animation: heroFloat 8s var(--ease-out) infinite;
  animation-delay: -1.5s;
}
.hero-card-3 {
  top: 56%; left: 3%;
  width: 30%; height: 32%;
  animation: heroFloat 6s var(--ease-out) infinite;
  animation-delay: -3s;
}
.hero-card-4 {
  top: 36%; left: 36%;
  width: 28%; height: 38%;
  animation: heroFloat 9s var(--ease-out) infinite;
  animation-delay: -2s;
}
.hero-card-5 {
  top: 36%; left: 67%;
  width: 32%; height: 26%;
  animation: heroFloat 7.5s var(--ease-out) infinite;
  animation-delay: -4s;
}
.hero-card-6 {
  top: 66%; left: 55%;
  width: 36%; height: 30%;
  animation: heroFloat 6.5s var(--ease-out) infinite;
  animation-delay: -1s;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0)     rotate(0.3deg);  }
  50%      { transform: translateY(-18px)  rotate(-0.3deg); }
}

/* ── Image Placeholders ────────────────────────────────────── */
.img-placeholder {
  position: relative;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(200,169,126,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(201,160,160,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.img-placeholder span {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 1rem;
}
.img-placeholder:hover {
  border-color: var(--border-light);
  box-shadow: 0 0 40px var(--accent-glow2);
}

.placeholder-16-9 {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.placeholder-muted {
  opacity: 0.55;
}

/* ── Trust Bar ─────────────────────────────────────────────── */
.trust-bar {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.trust-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-logo {
  width: 120px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.trust-logo:hover { opacity: 0.65; }
.trust-logo span {
  font-size: 0.6875rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ── Problem Statement ─────────────────────────────────────── */
.problem {
  padding: 8rem 0;
}

.problem-inner {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.problem-body {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ── Use Cases ─────────────────────────────────────────────── */
.use-cases {
  padding: 2rem 0;
}

.use-case {
  padding: 5rem 0;
}
.use-case:nth-child(odd)  { background: var(--bg); }
.use-case:nth-child(even) { background: var(--bg-alt); }

.use-case-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}

.use-case-reverse .use-case-inner {
  grid-template-columns: 1fr 1.15fr;
  direction: rtl;
}
.use-case-reverse .use-case-inner > * {
  direction: ltr;
}

.use-case-content .eyebrow { margin-bottom: 0.75rem; }

.use-case-content .section-title {
  margin-bottom: 1.25rem;
}

.use-case-content p {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 480px;
}

.check-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.check-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* Coming soon variant */
.use-case-soon { position: relative; }
.badge-soon {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ── Platform — Bento Grid ─────────────────────────────────── */
.platform {
  padding: 7rem 0;
  background: var(--bg-alt);
}

.platform-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr 1fr;
  gap: 1.25rem;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.bento-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-3px);
}

/* 4-col bento: Model=2x2, Photo=3-wide, rest=1x1 */
.bento-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento-card:nth-child(2) { grid-column: 3; grid-row: 1; }
.bento-card:nth-child(3) { grid-column: 4; grid-row: 1; }
.bento-card:nth-child(4) { grid-column: 3; grid-row: 2; }
.bento-card:nth-child(5) { grid-column: 4; grid-row: 2; }
.bento-card:nth-child(6) { grid-column: 1 / 4; grid-row: 3; }
.bento-card:nth-child(7) { grid-column: 4; grid-row: 3; }

.bento-icon {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.bento-icon svg {
  width: 100%;
  height: 100%;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.bento-card > p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}

.bento-placeholder {
  flex: 1;
  min-height: 80px;
  margin-top: 1.25rem;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bento-placeholder span {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── How It Works ──────────────────────────────────────────── */
.how-it-works {
  padding: 7rem 0;
  background: var(--bg);
}

.how-header {
  text-align: center;
  margin-bottom: 4rem;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 0 1.5rem;
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.step-number span {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--accent);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.step p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

.step-line {
  width: 80px;
  height: 1px;
  background: var(--border-light);
  margin-top: 1.75rem;
  flex-shrink: 0;
}

/* ── Enterprise ────────────────────────────────────────────── */
.enterprise {
  padding: 7rem 0;
  background: var(--bg-alt);
}

.enterprise-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.enterprise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}
.enterprise-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transform: translateY(-3px);
}

.enterprise-icon {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.enterprise-icon svg {
  width: 100%;
  height: 100%;
}

.enterprise-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.enterprise-card p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Final CTA ─────────────────────────────────────────────── */
.final-cta {
  position: relative;
  padding: 8rem 0;
  text-align: center;
  overflow: hidden;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(200,169,126,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
}

.final-cta .section-title {
  max-width: 600px;
  margin: 0 auto 1rem;
}

.final-cta-sub {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-signin {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.cta-signin a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.cta-signin a:hover { color: var(--accent); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.copyright {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 480ms; }

/* ── Focus / Accessibility ─────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-inner {
    gap: 3rem;
  }
  /* 3-col bento: Model=2x2, Edit=2-tall to balance Photo */
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto auto;
  }
  .bento-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
  .bento-card:nth-child(2) { grid-column: 3; grid-row: 1; }
  .bento-card:nth-child(3) { grid-column: 3; grid-row: 2; }
  .bento-card:nth-child(4) { grid-column: 1; grid-row: 3; }
  .bento-card:nth-child(5) { grid-column: 2; grid-row: 3; }
  .bento-card:nth-child(6) { grid-column: 1 / 3; grid-row: 4; }
  .bento-card:nth-child(7) { grid-column: 3; grid-row: 3 / 5; }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 6rem 1.5rem 3rem;
    min-height: auto;
  }
  .hero-content { order: 1; }
  .hero-grid {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions { justify-content: center; }

  .use-case-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .use-case-reverse .use-case-inner {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .use-case-media { order: 1; }
  .use-case-content { order: 2; }

  /* 2-col bento: Model full-width, rest paired */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .bento-card:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
  .bento-card:nth-child(2) { grid-column: auto; }
  .bento-card:nth-child(3) { grid-column: auto; }
  .bento-card:nth-child(4) { grid-column: auto; }
  .bento-card:nth-child(5) { grid-column: auto; }
  .bento-card:nth-child(6) { grid-column: 1 / -1; grid-row: auto; }
  .bento-card:nth-child(7) { grid-column: auto; }

  .enterprise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-toggle { display: flex; }

  .hero {
    min-height: auto;
  }
  .hero-inner {
    padding: 5rem 1.5rem 2rem;
  }
  .hero-grid {
    max-width: 340px;
  }
  .hero-title {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }

  .problem { padding: 5rem 0; }

  .use-case { padding: 3.5rem 0; }
  .use-case-inner { gap: 2rem; }

  .steps {
    flex-direction: column;
    align-items: center;
  }
  .step-line {
    width: 1px;
    height: 40px;
    margin: 0;
  }
  .step { max-width: 400px; padding: 0; }

  .platform, .enterprise, .how-it-works {
    padding: 5rem 0;
  }

  /* 1-col bento: everything stacked */
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
  }

  .enterprise-grid {
    grid-template-columns: 1fr;
  }

  .trust-logos { gap: 1.5rem; }
  .trust-logo { width: 100px; height: 34px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0.5rem;
  }
  .hero-grid { display: none; }

  .section-title.serif {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .final-cta { padding: 5rem 0; }
}
