/* ===================================================
   KONNEX — DESIGN SYSTEM v2.0
   Fixes: responsive hero, bento grid, problem section,
          cases grid, pricing cards, footer, mobile layout
   =================================================== */

/* ─── TOKENS ─────────────────────────────────────── */
:root {
  --emerald: #0A8754;
  --emerald-dark: #065C3A;
  --emerald-light: #12C87A;
  --emerald-glow: rgba(10, 135, 84, 0.20);
  --navy: #0B1628;
  --navy-mid: #122040;
  --blue-light: #1E3A5F;
  --orange: #FF6B35;
  --white: #FFFFFF;
  --gray-50: #F7F9FC;
  --gray-100: #EDF1F7;
  --gray-200: #D8E0EC;
  --gray-300: #B8C8D8;
  --gray-400: #8A9BB8;
  --gray-600: #4A5E78;
  --gray-700: #2E3F55;
  --gray-800: #1A2638;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .12);
  --shadow-colored: 0 16px 48px rgba(10, 135, 84, .22), 0 4px 16px rgba(10, 135, 84, .12);
  --glass-border: rgba(255, 255, 255, .10);
  --blur-glass: blur(20px) saturate(180%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 100px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-smooth: cubic-bezier(.4, 0, .2, 1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: 'Syne', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--navy);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

code {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: .82em;
  background: rgba(0, 0, 0, .06);
  color: var(--gray-700);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ─── SKIP LINK (a11y) ──────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--emerald);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  z-index: 9999;
  transition: top .2s;
}

.skip-link:focus {
  top: 16px;
}

/* ─── LAYOUT UTILITIES ──────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  padding: 4px 14px;
  background: rgba(10, 135, 84, .07);
  border: 1px solid rgba(10, 135, 84, .12);
  border-radius: var(--radius-pill);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  box-shadow: var(--shadow-colored);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 64px rgba(10, 135, 84, .45), 0 8px 24px rgba(10, 135, 84, .25);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .2);
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: .95rem;
  font-weight: 600;
  transition: background .25s, border-color .25s, transform .25s;
  white-space: nowrap;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .35);
  transform: translateY(-1px);
}

.btn-ghost:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .6);
  outline-offset: 3px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--emerald);
  border: 2px solid var(--emerald);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: .95rem;
  font-weight: 700;
  transition: all .25s var(--ease-smooth);
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--emerald);
  color: #fff;
  transform: translateY(-1px);
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* ─── HEADER ─────────────────────────────────────── */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(calc(100% - 32px), 860px);
  transition: all .4s var(--ease-smooth);
}

.header-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 8px 18px;
  background: rgba(11, 22, 40, .45);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
  transition: background .4s var(--ease-smooth), box-shadow .4s var(--ease-smooth), border-color .4s;
}

.header.scrolled .header-pill {
  background: rgba(11, 22, 40, .60);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 12px 48px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(10, 135, 84, .45);
  flex-shrink: 0;
  transition: transform .4s var(--ease-out);
}

.logo:hover .logo-icon {
  transform: rotate(8deg) scale(1.06);
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}

.logo-text span {
  color: #fff;
}

/* Nav */
.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a {
  color: rgba(255, 255, 255, .68);
  font-size: .83rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  transition: all .2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--emerald-light);
  outline-offset: 2px;
}

/* Header CTA */
/* Login link — ghost style before the green CTA */
.header-login {
  color: rgba(255, 255, 255, .62);
  font-size: .82rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .14);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s;
}

.header-login:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
}

.header-cta {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .25s;
  box-shadow: 0 4px 14px rgba(10, 135, 84, .44);
}

.header-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 22px rgba(10, 135, 84, .55);
}

.header-cta:focus-visible {
  outline: 2px solid var(--emerald-light);
  outline-offset: 2px;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  margin: 4px 0;
  transition: all .3s;
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--emerald-light);
  outline-offset: 2px;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 22, 40, .98);
  backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 24px;
}

.mobile-menu[aria-hidden="false"] {
  display: flex;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  width: 100%;
  max-width: 280px;
}

.mobile-menu li a {
  color: rgba(255, 255, 255, .8);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 14px 24px;
  display: block;
  border-radius: var(--radius-lg);
  transition: all .2s;
}

.mobile-menu li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.mobile-menu .btn-primary {
  width: 100%;
  max-width: 280px;
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  min-height: min(100svh, 780px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 60px;
  background: var(--navy);
}

/* Background elements */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 {
  width: min(600px, 50vw);
  height: min(600px, 50vw);
  top: -15%;
  right: -5%;
  background: radial-gradient(circle, rgba(10, 135, 84, .16), transparent 65%);
}

.orb-2 {
  width: min(500px, 40vw);
  height: min(500px, 40vw);
  bottom: -20%;
  left: -8%;
  background: radial-gradient(circle, rgba(30, 58, 95, .22), transparent 65%);
}

.orb-3 {
  width: min(300px, 25vw);
  height: min(300px, 25vw);
  top: 40%;
  left: 45%;
  background: radial-gradient(circle, rgba(255, 107, 53, .05), transparent 65%);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(40px, 6vw, 80px);
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 10px;
  background: rgba(10, 135, 84, .12);
  border: 1px solid rgba(10, 135, 84, .22);
  border-radius: var(--radius-pill);
  font-size: .78rem;
  color: var(--emerald-light);
  font-weight: 600;
  margin-bottom: 24px;
  max-width: 100%;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--emerald-light);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(1.6);
  }
}

.hero-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
}

.text-gradient {
  background: linear-gradient(135deg, var(--emerald-light), #4ADE80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: rgba(255, 255, 255, .65);
  margin-bottom: 32px;
  max-width: 100%;
  line-height: 1.75;
}

.hero-sub strong {
  color: rgba(255, 255, 255, .9);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-microcopy {
  font-size: .78rem;
  color: rgba(255, 255, 255, .38);
  margin-bottom: 36px;
  line-height: 1.6;
}

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

.proof-avatars {
  display: flex;
  flex-shrink: 0;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
  flex-shrink: 0;
}

.avatar:first-child {
  margin-left: 0;
}

.av1 {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.av2 {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.av3 {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.av4 {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
}

.hero-proof p {
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}

.hero-proof p strong {
  color: rgba(255, 255, 255, .84);
}

/* ─── HERO VISUAL — removed, keep class for legacy ─ */
.hero-visual {
  display: none;
}

.dashboard-mockup {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.mockup-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-red {
  background: #FF5F56;
}

.dot-yellow {
  background: #FFBD2E;
}

.dot-green {
  background: #27C93F;
}

.mockup-title {
  font-size: .72rem;
  color: rgba(255, 255, 255, .4);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-body {
  display: grid;
  grid-template-columns: 120px 1fr 80px;
  min-height: 240px;
}

.mockup-sidebar {
  padding: 12px 8px;
  border-right: 1px solid rgba(255, 255, 255, .05);
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: .68rem;
  color: rgba(255, 255, 255, .42);
  transition: all .2s;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-item.active {
  background: rgba(10, 135, 84, .14);
  color: var(--emerald-light);
}

.sidebar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  flex-shrink: 0;
}

.sidebar-item.active .sidebar-dot {
  background: var(--emerald-light);
}

.badge-count {
  margin-left: auto;
  background: var(--emerald);
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  flex-shrink: 0;
}

.mockup-chat {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid rgba(255, 255, 255, .05);
  overflow: hidden;
}

.chat-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  flex-shrink: 0;
}

.contact-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.chat-contact strong {
  font-size: .72rem;
  color: rgba(255, 255, 255, .85);
  display: block;
}

.contact-tag {
  font-size: .6rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 6px;
  display: inline-block;
}

.tag-lead {
  background: rgba(255, 107, 53, .15);
  color: var(--orange);
}

.chat-msgs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.msg-received,
.msg-bot {
  font-size: .65rem;
  line-height: 1.4;
  padding: 6px 8px;
  border-radius: 10px;
  max-width: 95%;
}

.msg-received {
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .72);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.msg-bot {
  background: rgba(10, 135, 84, .12);
  border: 1px solid rgba(10, 135, 84, .18);
  color: rgba(255, 255, 255, .72);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.msg-bot em {
  color: var(--emerald-light);
  font-style: normal;
}

.mockup-crm {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.crm-label {
  font-size: .6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .3);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.crm-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.crm-num {
  font-size: 1.2rem;
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  line-height: 1;
}

.crm-stat span:last-child {
  font-size: .58rem;
  color: rgba(255, 255, 255, .32);
  line-height: 1.3;
}

/* Float metrics */
.float-metric {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  font-size: .74rem;
  color: rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  max-width: 180px;
}

.float-metric strong {
  display: block;
  font-weight: 700;
  font-size: .76rem;
}

.float-sub {
  font-size: .64rem;
  color: rgba(255, 255, 255, .42);
}

.float-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.float-metric-1 {
  top: 2%;
  right: -8%;
  animation: float-y 5s ease-in-out infinite;
}

.float-metric-2 {
  bottom: 4%;
  left: -10%;
  animation: float-y 5s ease-in-out infinite 1.8s;
}

@keyframes float-y {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ─── INTEGRATIONS — MARQUEE ─────────────────────── */
.integrations {
  padding: 28px 0 32px;
  background: var(--gray-50);
  overflow: hidden;
}

.integrations-label {
  text-align: center;
  font-size: .65rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

/* Wrapper: relative so the fade overlays can be absolute inside */
.integrations-marquee-wrap {
  position: relative;
  width: 100%;
}

/* Blur fade edges */
.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.marquee-fade--left {
  left: 0;
  background: linear-gradient(to right, var(--gray-50) 30%, transparent 100%);
}

.marquee-fade--right {
  right: 0;
  background: linear-gradient(to left, var(--gray-50) 30%, transparent 100%);
}

/* Clip the scrolling strip */
.marquee-track {
  overflow: hidden;
  width: 100%;
}

/* Inner strip: exactly 2× content, so translateX(-50%) === 1× width */
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  will-change: transform;
  animation: marquee-scroll 40s linear infinite;
}

/* Pause on hover */
.integrations-marquee-wrap:hover .marquee-inner {
  animation-play-state: paused;
}

/* The only keyframe: 0 → -50%. Since content is doubled, it snaps back seamlessly */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Each chip: minimal, no border, just icon + label */
.int-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 22px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--gray-500);
  white-space: nowrap;
  cursor: default;
  transition: color .2s;
  position: relative;
}

/* Dot separator between chips */
.int-chip::after {
  content: '·';
  position: absolute;
  right: 0;
  color: var(--gray-300);
  font-size: .9rem;
  line-height: 1;
}

.int-chip i {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  color: var(--gray-400);
}

.int-chip:hover {
  color: var(--gray-700);
}

/* ─── SECTION BLUR DECORATORS ──────────────────────── */
/* These are the blur orbs used for parallax in non-hero sections */
.section-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  /* filter applied on each variant */
}

/* Problem section orbs */
.section-orb--a {
  width: min(520px, 50vw);
  height: min(520px, 50vw);
  top: -10%;
  right: -8%;
  background: radial-gradient(circle, rgba(10, 135, 84, .10), transparent 65%);
  filter: blur(70px);
}

.section-orb--b {
  width: min(380px, 38vw);
  height: min(380px, 38vw);
  bottom: -5%;
  left: -5%;
  background: radial-gradient(circle, rgba(18, 200, 122, .07), transparent 65%);
  filter: blur(80px);
}

/* Features section orbs */
.section-orb--c {
  width: min(600px, 55vw);
  height: min(600px, 55vw);
  top: 5%;
  left: -12%;
  background: radial-gradient(circle, rgba(10, 135, 84, .08), transparent 65%);
  filter: blur(90px);
}

.section-orb--d {
  width: min(400px, 40vw);
  height: min(400px, 40vw);
  bottom: 0%;
  right: -8%;
  background: radial-gradient(circle, rgba(30, 58, 95, .12), transparent 65%);
  filter: blur(80px);
}

/* Ensure sections with orbs contain them */
.problem,
.features {
  position: relative;
  overflow: hidden;
}

/* ─── PROBLEM SECTION ────────────────────────────── */
.problem {
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--gray-50);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.problem-content .section-label {
  margin-bottom: 18px;
}

.problem-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 18px;
  line-height: 1.18;
}

.problem-content p {
  color: var(--gray-600);
  font-size: .97rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.problem-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.pstat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pstat-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--emerald);
  flex-shrink: 0;
  line-height: 1;
}

.pstat-label {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.55;
  padding-top: 4px;
}

/* Mockup image in problem section — iPhone PNG, no card */
.problem-phone-img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 0 0 auto;
}

/* ─── FEATURES — BENTO GRID ──────────────────────── */
.features {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--white);
}

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

.bento-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .03);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--emerald-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(10, 135, 84, .25);
}

.bento-card:hover::before {
  transform: scaleX(1);
}

/* Uniform bento grid — 4x2, all cards equal size */
.bento-grid--uniform {
  grid-template-columns: repeat(2, 1fr);
}

.bento-grid--uniform .bento-card {
  /* Ensure all cards fill equally without spanning */
  grid-column: span 1;
}

/* Keep old .bento-lg/.bento-wide non-breaking for legacy */
.bento-lg {
  grid-column: span 2;
}

.bento-wide {
  grid-column: span 2;
}

.bento-dark {
  background: var(--navy);
  border-color: rgba(255, 255, 255, .06);
  color: #fff;
}

.bento-dark h3 {
  color: #fff;
}

.bento-dark p {
  color: rgba(255, 255, 255, .6);
}

.bento-dark:hover {
  background: var(--navy-mid);
  border-color: rgba(10, 135, 84, .35);
}

.bento-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.bento-dark .bento-icon {
  font-size: 2.4rem;
}

.bento-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-family: 'Syne', sans-serif;
  letter-spacing: -.01em;
}

.bento-card p {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.bento-highlight {
  margin-top: 18px;
  padding: 9px 14px;
  background: rgba(10, 135, 84, .18);
  border: 1px solid rgba(10, 135, 84, .3);
  border-radius: var(--radius-md);
  font-size: .8rem;
  color: var(--emerald-light);
  font-weight: 600;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.bento-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tag {
  padding: 3px 11px;
  background: rgba(10, 135, 84, .07);
  border: 1px solid rgba(10, 135, 84, .12);
  border-radius: var(--radius-pill);
  font-size: .7rem;
  font-weight: 600;
  color: var(--emerald);
}

/* ─── CASES ──────────────────────────────────────── */
.cases {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--gray-50);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: clamp(20px, 2.5vw, 28px);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 135, 84, .18);
}

.case-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}

.case-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  font-family: 'Syne', sans-serif;
}

.case-card p {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

/* Featured case */
.case-card--featured {
  background: var(--navy);
  border-color: rgba(255, 255, 255, .06);
  grid-row: span 2;
}

.case-card--featured:hover {
  border-color: rgba(10, 135, 84, .45);
}

.case-card--featured h3 {
  color: #fff;
}

.case-card--featured p {
  color: rgba(255, 255, 255, .62);
}

.case-card--featured p strong {
  color: var(--emerald-light);
}

.case-featured-badge {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(10, 135, 84, .2);
  border: 1px solid rgba(10, 135, 84, .3);
  border-radius: var(--radius-pill);
  font-size: .7rem;
  font-weight: 700;
  color: var(--emerald-light);
  margin-bottom: 18px;
}

.case-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
  padding-top: 20px;
}

.case-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .83rem;
  color: rgba(255, 255, 255, .68);
}

.case-list li::before {
  content: '✓';
  color: var(--emerald-light);
  font-weight: 700;
  flex-shrink: 0;
}

.case-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  margin-top: auto;
}

.result-metric {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--emerald);
  flex-shrink: 0;
  line-height: 1;
  white-space: nowrap;
}

.case-result--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.case-result--stacked .result-metric {
  font-size: 1.3rem;
}

.case-result--stacked .result-label {
  font-size: .74rem;
}

.result-label {
  font-size: .76rem;
  color: var(--gray-600);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

/* ─── PRICING ────────────────────────────────────── */
.pricing {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  align-items: stretch;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform .35s var(--ease-out), box-shadow .35s, background .35s;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card--featured {
  background: rgba(11, 22, 40, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, .15);
  box-shadow: var(--shadow-colored);
}

.pricing-card--featured:hover {
  transform: translateY(-6px);
}

.pricing-card--featured .pricing-header h3 {
  color: #fff;
}

.pricing-card--featured .price-value {
  color: var(--emerald-light);
}

.pricing-card--featured .price-period {
  color: rgba(255, 255, 255, .42);
}

.pricing-card--featured .pricing-sub {
  color: rgba(255, 255, 255, .42);
}

.pricing-card--featured .pricing-divider {
  border-color: rgba(255, 255, 255, .08);
}

.pricing-card--featured .pricing-features li {
  color: rgba(255, 255, 255, .72);
}

.pricing-card--featured .pricing-features .check {
  color: var(--emerald-light);
}

.pricing-card--featured .pricing-guarantee {
  color: rgba(255, 255, 255, .36);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(10, 135, 84, .4);
}

.pricing-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  font-family: 'Syne', sans-serif;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 5px;
}

.price-value {
  font-size: clamp(2rem, 4vw, 2.4rem);
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  color: var(--navy);
}

.price-period {
  font-size: .83rem;
  color: var(--gray-400);
  font-weight: 500;
}

.pricing-sub {
  font-size: .76rem;
  color: var(--gray-400);
  margin-bottom: 22px;
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin-bottom: 22px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .84rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.pricing-features strong {
  font-weight: 700;
}

.check {
  color: var(--emerald);
  font-weight: 700;
  flex-shrink: 0;
  font-size: .9rem;
}

.check-x {
  color: var(--gray-300);
  flex-shrink: 0;
  font-size: .9rem;
}

.feature-muted {
  color: var(--gray-400);
}

.pricing-guarantee {
  font-size: .72rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 10px;
  line-height: 1.6;
}

.pricing-comparison {
  text-align: center;
}

.pricing-comparison-text {
  font-size: .97rem;
  color: var(--gray-600);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.75;
}

.pricing-comparison-text strong {
  color: var(--navy);
}

/* 3-column layout when Basic/Premium plans are present */
.pricing-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* 1-column layout for single highlighted plan */
.pricing-grid--1 {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Black Plan Card ── */
.pricing-card--black {
  background: linear-gradient(145deg, #0d0d1a, #131328);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow:
    0 0 0 1px rgba(18, 200, 122, .12),
    0 24px 64px rgba(0, 0, 0, .40);
  position: relative;
  overflow: hidden;
}

.pricing-card--black::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at top right, rgba(10, 135, 84, .18), transparent 65%);
  pointer-events: none;
}

/* Ribbon badge — top-right corner */
.pricing-ribbon {
  position: absolute;
  top: 16px;
  right: -28px;
  transform: rotate(35deg);
  background: linear-gradient(135deg, #1a1a2e, #000);
  color: #fff;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 40px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
  z-index: 2;
}

.pricing-ribbon i {
  font-size: .85rem;
  color: #f0c040;
  transform: rotate(-35deg);
}

/* ─── SOCIAL PROOF ────────────────────────────────── */
.social-proof {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--navy);
}

.proof-box {
  background: linear-gradient(135deg, #0f1e35, var(--navy));
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 56px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .28);
  max-width: 860px;
  margin: 0 auto;
}

.proof-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

.proof-stat {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.proof-stat--highlight {
  background: rgba(10, 135, 84, .10);
  border-color: rgba(10, 135, 84, .25);
  box-shadow: 0 0 0 1px rgba(10, 135, 84, .12);
}

.proof-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.3rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -.02em;
}

.proof-stat--highlight .proof-stat-num {
  color: var(--emerald-light);
}

.proof-stat-label {
  font-size: .72rem;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.4;
}

.proof-quote {
  border-left: 3px solid var(--emerald);
  margin: 0 0 28px;
  padding: 0 0 0 24px;
}

.proof-quote p {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, .82);
  font-style: italic;
  line-height: 1.7;
}

.proof-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.proof-author img {
  border-radius: 50%;
  border: 2px solid var(--emerald);
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.proof-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proof-author-info strong {
  font-size: .95rem;
  color: #fff;
}

.proof-author-info span {
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
}

.proof-verified {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .74rem;
  color: var(--emerald-light);
  font-weight: 600;
}

.proof-verified i {
  font-size: 1.1rem;
}

/* ─── TESTIMONIAL TICKER ─────────────────────────── */
.ticker-header {
  text-align: center;
  margin-bottom: 40px;
}

.ticker-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: #fff;
  margin-top: 8px;
}

.ticker-wrapper {
  overflow: hidden;
  /* Fade masks at edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-wrapper:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

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

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

.ticker-card {
  background: linear-gradient(135deg, #0f1e35, #0B1628);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  padding: 28px 32px;
  width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ticker-card blockquote {
  margin: 0;
}

.ticker-card blockquote p {
  font-size: .9rem;
  color: rgba(255, 255, 255, .78);
  line-height: 1.65;
  font-style: italic;
}

.ticker-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-author img {
  border-radius: 50%;
  border: 2px solid rgba(10, 135, 84, .5);
  flex-shrink: 0;
}

.ticker-author strong {
  display: block;
  font-size: .85rem;
  color: #fff;
}

.ticker-author span {
  font-size: .75rem;
  color: rgba(255, 255, 255, .4);
}

/* ─── META API SECTION ───────────────────────────── */
.meta-api {
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.meta-api::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 119, 242, .06) 0%, transparent 70%);
  pointer-events: none;
}

.meta-api-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  justify-items: center;
}

/* Left — content */
.meta-api-content {
  color: rgba(255, 255, 255, .85);
}

.meta-badge-row {
  margin-bottom: 20px;
}

.meta-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(24, 119, 242, .1);
  border: 1px solid rgba(24, 119, 242, .25);
  border-radius: var(--radius-pill);
  padding: 6px 14px 6px 10px;
  font-size: .78rem;
  font-weight: 600;
  color: #60a5fa;
}

/* Removed .meta-label to inherit the default section-label color */

.meta-api-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #fff;
  margin: 12px 0 16px;
  line-height: 1.15;
}

.meta-api-content>p {
  font-size: .97rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 28px;
}

.meta-api-content em {
  font-style: italic;
  color: #f87171;
}

.meta-api-content strong {
  color: #fff;
  font-weight: 700;
}

/* Comparison columns */
.meta-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.meta-compare--fullwidth {
  margin-top: 40px;
  margin-bottom: 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.meta-compare--fullwidth .meta-compare-col {
  padding: 22px 28px;
}

.meta-compare-col {
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  font-size: .82rem;
}

.meta-compare-col--danger {
  background: rgba(239, 68, 68, .06);
  border: 1px solid rgba(239, 68, 68, .2);
}

.meta-compare-col--safe {
  background: rgba(10, 135, 84, .07);
  border: 1px solid rgba(10, 135, 84, .22);
}

.meta-compare-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: .83rem;
}

.meta-compare-col--danger .meta-compare-header {
  color: #f87171;
}

.meta-compare-col--safe .meta-compare-header {
  color: var(--emerald-light);
}

.meta-compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.4;
}

/* Right — card */
.meta-api-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.meta-api-visual-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  /* badge and compare fill same width */
}

.meta-api-visual-col .meta-compare {
  margin: 0;
  gap: 8px;
}

.meta-api-visual-col .meta-compare-col {
  padding: 12px 14px;
  font-size: .65rem;
}

.meta-api-visual-col .meta-compare-header {
  font-size: .7rem;
  margin-bottom: 6px;
}

.meta-badge-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 100%;
  background: rgba(24, 119, 242, .04);
  border: 1px solid rgba(24, 119, 242, .12);
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(24, 119, 242, .08), 0 24px 60px rgba(0, 0, 0, .25);
  box-sizing: border-box;
  overflow: hidden;
}

.meta-badge-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 24px rgba(24, 119, 242, .15));
}

.meta-api-card {
  background: linear-gradient(145deg, #0f1e35, #0a1424);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 24px;
  padding: 36px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .3);
}

.meta-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.meta-partner-pill {
  background: rgba(24, 119, 242, .12);
  border: 1px solid rgba(24, 119, 242, .25);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.meta-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.meta-pillar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.meta-pillar>i {
  font-size: 1.4rem;
  color: var(--emerald-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.meta-pillar strong {
  display: block;
  font-size: .88rem;
  color: #fff;
  font-weight: 700;
}

.meta-pillar span {
  font-size: .75rem;
  color: rgba(255, 255, 255, .42);
  line-height: 1.4;
}

/* FAQ ─────────────────────────────────────────────── */
.faq {
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--gray-50);
}

.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s;
}

.faq-item:has([aria-expanded="true"]) {
  border-color: rgba(10, 135, 84, .28);
}

.faq-item h3 {
  margin: 0;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: color .2s;
}

.faq-trigger:hover {
  color: var(--emerald);
}

.faq-trigger[aria-expanded="true"] {
  color: var(--emerald);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: -2px;
}

.faq-icon {
  font-size: 1.2rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform .3s var(--ease-out);
  color: var(--gray-400);
  line-height: 1;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--emerald);
}

.faq-answer {
  padding: 0 22px 18px;
}

.faq-answer p {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.faq-cta {
  text-align: center;
  margin-top: 44px;
}

.faq-cta p {
  font-size: .97rem;
  color: var(--gray-600);
  margin-bottom: 14px;
}

.faq-cta .btn-ghost {
  background: transparent;
  color: var(--emerald);
  border: 2px solid var(--emerald);
}

.faq-cta .btn-ghost:hover {
  background: var(--emerald);
  color: #fff;
}

/* ─── CTA FINAL / CONTACT FORM ──────────────────── */
.cta-final {
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--gray-50);
}

.cta-final-box {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 6vw, 72px) clamp(32px, 5vw, 60px);
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.cta-form-header {
  margin-bottom: 32px;
}

.cta-form-header h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}

.cta-form-header p {
  font-size: .95rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.6;
}

/* Form layout */
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 14px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .35);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 14px 12px 38px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .2s, background .2s;
  outline: none;
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, .28);
}

.input-wrapper input:focus {
  border-color: rgba(10, 135, 84, .6);
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 0 0 3px rgba(10, 135, 84, .12);
}

.btn-cta-final {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
}

.cta-form-micro {
  font-size: .72rem;
  color: rgba(255, 255, 255, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
}

.cta-form-micro i {
  font-size: .9rem;
}

.cta-final-box h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.2;
}

.cta-final-box p {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, .58);
  margin-bottom: 32px;
  line-height: 1.75;
}

.btn-cta-final {
  box-shadow: 0 0 0 8px rgba(10, 135, 84, .12), var(--shadow-colored);
}

.cta-final-micro {
  font-size: .78rem;
  color: rgba(255, 255, 255, .32);
  margin-top: 14px;
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  padding: clamp(48px, 6vw, 80px) 0 32px;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(36px, 4vw, 56px);
}

.footer-brand .logo {
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: .84rem;
  color: rgba(255, 255, 255, .42);
  line-height: 1.8;
  margin-bottom: 22px;
}

.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: rgba(10, 135, 84, .16);
  border: 1px solid rgba(10, 135, 84, .28);
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 600;
  color: var(--emerald-light);
  transition: background .25s;
}

.footer-wa-btn:hover {
  background: rgba(10, 135, 84, .28);
}

.footer-wa-btn:focus-visible {
  outline: 2px solid var(--emerald-light);
  outline-offset: 3px;
}

.footer h4 {
  font-family: 'Syne', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .45);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: .83rem;
  color: rgba(255, 255, 255, .42);
  transition: color .2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, .84);
}

.footer-links a:focus-visible {
  outline: 1px solid var(--emerald-light);
  outline-offset: 2px;
}

.footer-trust {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.trust-badge {
  padding: 3px 9px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius-pill);
  font-size: .7rem;
  color: rgba(255, 255, 255, .38);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: .76rem;
  color: rgba(255, 255, 255, .28);
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── MOBILE STICKY CTA ──────────────────────────── */
/* Floating pill button with no background bar */
.mobile-sticky {
  display: none;
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 360px;
  z-index: 900;
  /* No background — button floats directly */
  pointer-events: auto;
}

.mobile-sticky .btn-primary {
  box-shadow: 0 8px 32px rgba(10, 135, 84, .45), 0 2px 8px rgba(0, 0, 0, .3);
  border-radius: var(--radius-pill);
  font-size: .95rem;
}

/* ─── SCROLL REVEAL CLASSES ──────────────────────── */
/* Elements start visible — JS adds .reveal-ready and .reveal-in */
.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}

.reveal-ready.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* ─── REDUCED MOTION ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .float-metric-1,
  .float-metric-2 {
    animation: none !important;
  }

  .reveal-ready {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── RESPONSIVE — 1200px ────────────────────────── */
@media (max-width: 1200px) {
  .float-metric-1 {
    right: -4%;
  }

  .float-metric-2 {
    left: -4%;
  }
}

/* ─── RESPONSIVE — 1024px (Tablet Landscape) ─────── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    display: none;
  }

  .hero-content {
    align-items: center;
    max-width: 640px;
    text-align: center;
  }

  .hero-headline {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .problem-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
  }

  .problem-visual {
    display: flex;
    justify-content: center;
  }

  /* Simplified on smaller screens */

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

  .bento-lg {
    grid-column: span 2;
  }

  .bento-wide {
    grid-column: span 2;
    flex-direction: column;
  }

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

  .case-card--featured {
    grid-row: span 1;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card--featured {
    transform: none;
  }

  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ─── RESPONSIVE — 768px (Tablet Portrait / Large Mobile) ─ */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  /* Header */
  .nav-links {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .header-login {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .header {
    width: calc(100% - 24px);
    top: 12px;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 100px;
  }

  .hero-headline {
    font-size: clamp(1.9rem, 6vw, 2.6rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  /* Problem */
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .problem-visual {
    display: none;
  }

  /* Meta API — stack on mobile */
  .meta-api-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: stretch;
  }

  .meta-badge-img-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
  }

  .meta-api-visual-col .meta-compare {
    grid-template-columns: 1fr 1fr;
  }

  /* Bento */
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-lg,
  .bento-wide {
    grid-column: span 1;
  }

  .bento-wide {
    flex-direction: column;
  }

  /* Cases */
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .case-card--featured {
    grid-row: span 1;
  }

  /* Integrations */
  .integrations-row {
    gap: 6px;
  }

  .integration-item span {
    display: none;
  }

  .integration-item {
    padding: 8px 10px;
  }

  /* Mobile sticky visible */
  .mobile-sticky {
    display: block;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  }

  .mobile-sticky.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}

/* ─── RESPONSIVE — 480px (Small Mobile) ─────────── */
@media (max-width: 480px) {
  .section-header {
    margin-bottom: 36px;
  }

  .bento-card {
    padding: 20px;
  }

  .case-card {
    padding: 20px;
  }

  .pricing-card {
    padding: 22px 18px;
  }

  .pricing-grid {
    max-width: 100%;
  }

  .hero-badge {
    font-size: .72rem;
  }


  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .faq-trigger {
    padding: 16px 16px;
    font-size: .88rem;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }

  .chaos-grid {
    padding: 16px;
    gap: 8px;
  }

  .problem-stats {
    gap: 14px;
  }
}