/* ========================================
   ShipLoop — Clay-inspired design
   ======================================== */

:root {
  --purple: #6C5CE7;
  --violet: #7C5CFC;
  --green: #00B894;
  --blue: #4A90D9;
  --orange: #F39C12;
  --pink: #E84393;
  --tangerine: #E17055;
  --coral: #FF6B6B;

  --bg: #FDFCFA;
  --bg-alt: #F5F3EF;
  --bg-warm: #FAF8F5;
  --bg-dark: #1D2026;

  --text: #1D2026;
  --text-2: #4A4A5A;
  --text-3: #8E8E9A;

  --border: #E8E5DF;
  --border-dashed: #D5D0C8;
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1100px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; color: var(--text); letter-spacing: -0.025em; }
h1 { font-size: clamp(2.75rem, 6vw, 4.25rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-weight: 600; }

.text-gradient {
  background: linear-gradient(135deg, var(--purple), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(108, 92, 231, 0.08);
  border-radius: 99px;
}

.section-sub {
  color: var(--text-2);
  font-size: 1.1rem;
  max-width: 560px;
  margin-top: 1rem;
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 99px;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #2D3040;
}

.btn-cta-sm { padding: 0.5rem 1.15rem; font-size: 0.8rem; white-space: nowrap; }

.btn-cta-light {
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1.5px solid var(--border);
}
.btn-cta-light:hover { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-color: var(--text); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  transition: all 0.2s ease;
}
.btn-outline:hover { border-color: var(--text); background: var(--bg-warm); transform: translateY(-1px); }

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 252, 250, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px dashed var(--border-dashed);
  transform: translateZ(0);
  will-change: transform;
}

.header-container { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }
.logo-icon { width: 28px; height: 28px; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; gap: 1.25rem; }
.nav-link { font-size: 0.85rem; font-weight: 500; color: var(--text-2); transition: color 0.15s; white-space: nowrap; }
.nav-link:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-dropdown { position: relative; }
.nav-dropdown .nav-link { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-dropdown .nav-link svg { transition: transform 0.2s; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  transform: translateX(-50%) translateY(4px);
}

/* Bridge the gap between trigger and dropdown so hover doesn't break */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  height: 0.75rem;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .nav-link svg { transform: rotate(180deg); }

.dropdown-link {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.dropdown-link:hover { background: var(--bg-alt); color: var(--text); }

.mobile-menu-btn { display: none; padding: 0.5rem; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.2s; border-radius: 2px; }

/* ========================================
   Hero
   ======================================== */
.hero {
  padding: calc(68px + 3.5rem) 0 5rem;
  background: var(--bg);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  border-bottom: 1px dashed var(--border-dashed);
}

/* ---- Hero Loops ---- */
.hero-loops {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.loop {
  position: absolute;
  border-radius: 50%;
  background: transparent;
  border: 2.5px solid var(--loop-color);
  animation: loopFloat linear infinite;
}

.loop-1 {
  --loop-color: var(--purple);
  width: 44px; height: 44px;
  opacity: 0.35;
  top: 12%; left: 6%;
  animation-duration: 18s;
}

.loop-2 {
  --loop-color: var(--green);
  width: 64px; height: 64px;
  opacity: 0.3;
  top: 52%; right: 5%;
  animation-duration: 22s;
  animation-delay: -4s;
}

.loop-3 {
  --loop-color: var(--orange);
  width: 30px; height: 30px;
  opacity: 0.4;
  top: 22%; right: 12%;
  animation-duration: 15s;
  animation-delay: -8s;
}

.loop-4 {
  --loop-color: var(--violet);
  width: 54px; height: 54px;
  opacity: 0.25;
  bottom: 12%; left: 4%;
  animation-duration: 25s;
  animation-delay: -2s;
}

.loop-5 {
  --loop-color: var(--pink);
  width: 24px; height: 24px;
  opacity: 0.4;
  top: 38%; left: 14%;
  animation-duration: 13s;
  animation-delay: -6s;
}

.loop-6 {
  --loop-color: var(--blue);
  width: 38px; height: 38px;
  opacity: 0.3;
  bottom: 28%; right: 16%;
  animation-duration: 20s;
  animation-delay: -10s;
}

.loop-7 {
  --loop-color: var(--coral);
  width: 20px; height: 20px;
  opacity: 0.45;
  top: 8%; right: 30%;
  animation-duration: 16s;
  animation-delay: -3s;
}

.loop-8 {
  --loop-color: var(--tangerine);
  width: 48px; height: 48px;
  opacity: 0.25;
  top: 65%; left: 20%;
  animation-duration: 24s;
  animation-delay: -7s;
}

.loop-9 {
  --loop-color: var(--green);
  width: 18px; height: 18px;
  opacity: 0.45;
  top: 30%; left: 28%;
  animation-duration: 12s;
  animation-delay: -1s;
}

.loop-10 {
  --loop-color: var(--purple);
  width: 56px; height: 56px;
  opacity: 0.2;
  bottom: 20%; right: 8%;
  animation-duration: 26s;
  animation-delay: -5s;
}

.loop-11 {
  --loop-color: var(--pink);
  width: 36px; height: 36px;
  opacity: 0.3;
  top: 48%; right: 25%;
  animation-duration: 19s;
  animation-delay: -9s;
}

.loop-12 {
  --loop-color: var(--blue);
  width: 26px; height: 26px;
  opacity: 0.35;
  bottom: 40%; left: 10%;
  animation-duration: 14s;
  animation-delay: -11s;
}

.loop-13 {
  --loop-color: var(--orange);
  width: 42px; height: 42px;
  opacity: 0.28;
  top: 15%; left: 35%;
  animation-duration: 21s;
  animation-delay: -13s;
}

.loop-14 {
  --loop-color: var(--violet);
  width: 16px; height: 16px;
  opacity: 0.5;
  bottom: 35%; right: 32%;
  animation-duration: 11s;
  animation-delay: -2s;
}

.loop-15 {
  --loop-color: var(--coral);
  width: 50px; height: 50px;
  opacity: 0.2;
  top: 60%; right: 38%;
  animation-duration: 23s;
  animation-delay: -8s;
}

.loop-16 {
  --loop-color: var(--tangerine);
  width: 22px; height: 22px;
  opacity: 0.4;
  top: 5%; left: 22%;
  animation-duration: 17s;
  animation-delay: -14s;
}

@keyframes loopFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-20px) rotate(90deg) scale(1.05);
  }
  50% {
    transform: translateY(-8px) rotate(180deg) scale(0.95);
  }
  75% {
    transform: translateY(-25px) rotate(270deg) scale(1.08);
  }
  100% {
    transform: translateY(0) rotate(360deg) scale(1);
  }
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-rotate {
  display: block;
  position: relative;
  overflow: hidden;
  transition: height 0.4s ease;
}

.hero-rotate-line {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-rotate-line.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-rotate-line.exit {
  opacity: 0;
  transform: translateY(-40px);
}

.hero-sub {
  color: var(--text-2);
  font-size: 1.15rem;
  line-height: 1.75;
  margin-top: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-3);
}

.hero-visual {
  margin-top: 4rem;
}

/* ---- Hero Ocean (bottom of hero) ---- */
.hero-ocean {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
  overflow: hidden;
}

.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 40px;
}

.hero-wave-1 { animation: waveShift 8s ease-in-out infinite; }
.hero-wave-2 { animation: waveShift 10s ease-in-out infinite reverse; }

.hero-boat {
  position: absolute;
  bottom: 12px;
  width: 50px;
  height: 38px;
  animation: sailAcross 25s linear infinite, boatBob 3s ease-in-out infinite;
}

/* ---- Hero Carousel ---- */
.carousel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  position: relative;
  box-shadow: 0 2px 40px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
}

.carousel-track {
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.slide-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg);
  border-top: 1px dashed var(--border-dashed);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--border);
  border: none;
  padding: 0;
  transition: all 0.3s;
}

.carousel-dot.active {
  width: 28px;
  background: var(--text);
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  border-bottom: 1px dashed var(--border-dashed);
}

.section-alt { background: var(--bg-alt); }

.section > .container > .label,
.section > .container > h2 {
  text-align: center;
}

.section > .container > .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   How It Works
   ======================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg);
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  border-color: var(--text);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.step h4 { margin-bottom: 0.25rem; }
.step p { font-size: 0.9rem; color: var(--text-2); }

/* ========================================
   Agents
   ======================================== */
.agents-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.agent-card {
  padding: 1.75rem 1.25rem;
  background: var(--bg);
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
}

.agent-card:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
  border-color: transparent;
  background: #fff;
}

.agent-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.agent-card:hover .agent-icon {
  transform: scale(1.1) rotate(-4deg);
}

.agent-card h4 { margin-bottom: 0.5rem; }
.agent-card p { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }

/* ========================================
   Integrations
   ======================================== */


.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.integrations-grid-3 {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.integration-card {
  padding: 2rem 1.5rem;
  background: var(--bg);
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.integration-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  border-style: solid;
  border-color: var(--border);
}

.integration-logo {
  width: 52px;
  height: 52px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--purple);
  transition: transform 0.3s ease;
}

.integration-card:hover .integration-logo {
  transform: scale(1.1);
}

.integration-card h4 { margin-bottom: 0.4rem; }
.integration-card p { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }

@media (max-width: 768px) {
  .integrations-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .integrations-grid { grid-template-columns: 1fr; }
}

/* ---- Dogfood Dogs ---- */
.dogfood-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.dogfood-dog {
  width: 55px;
  height: 42px;
  flex-shrink: 0;
  pointer-events: none;
  animation: dogBounce 2s ease-in-out infinite;
}

.dogfood-dog-right {
  animation-delay: -0.5s;
}

#roadmap {
  position: relative;
}

.dog-svg { width: 100%; height: 100%; }

.dog-tail {
  transform-origin: 18px 34px;
  animation: tailWag 0.4s ease-in-out infinite alternate;
}

.dog-tongue {
  animation: tonguePant 0.6s ease-in-out infinite alternate;
}

@keyframes dogBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes tailWag {
  0% { transform: rotate(-12deg); }
  100% { transform: rotate(12deg); }
}

@keyframes tonguePant {
  0% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* ========================================
   Roadmap
   ======================================== */
.roadmap-embed {
  margin-top: 2.5rem;
}

/* ========================================
   Pricing
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  padding: 2.25rem;
  background: var(--bg);
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

.pricing-card.featured {
  background: var(--text);
  border: 1px solid var(--text);
  color: #fff;
}

.pricing-card.featured h4,
.pricing-card.featured .price-amount,
.pricing-card.featured .price-desc { color: #fff; }

.pricing-card.featured .price { color: rgba(255,255,255,0.5); }
.pricing-card.featured .price-features li { color: rgba(255,255,255,0.8); }
.pricing-card.featured .price-features li::before { color: var(--green); }

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  white-space: nowrap;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.9rem;
  color: var(--text-3);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.price-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 1.5rem;
}

.price-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.price-features li {
  font-size: 0.875rem;
  color: var(--text-2);
  padding-left: 1.4rem;
  position: relative;
}

.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 600;
}

.pricing-card.featured .btn-cta {
  background: #fff;
  color: var(--text);
  width: 100%;
  justify-content: center;
  box-shadow: none;
}

.pricing-card.featured .btn-cta:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  background: var(--bg-alt);
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  max-width: 700px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  background: var(--bg);
  border-left: 1px dashed var(--border-dashed);
  border-right: 1px dashed var(--border-dashed);
  border-bottom: 1px dashed var(--border-dashed);
  overflow: hidden;
}

.faq-item:first-child {
  border-top: 1px dashed var(--border-dashed);
  border-radius: var(--radius) var(--radius) 0 0;
}

.faq-item:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  transition: background 0.15s;
}
.faq-question:hover { background: var(--bg-alt); }

.faq-chevron {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
  color: var(--text-3);
}
.faq-item.active .faq-chevron { transform: rotate(180deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.active .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ========================================
   Use Case Pages
   ======================================== */
.use-case-hero {
  padding: calc(68px + 6rem) 0 4rem;
  background: var(--bg);
}

.use-case-hero .hero-sub {
  max-width: 600px;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.use-case-point {
  padding: 2rem;
  background: var(--bg);
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.use-case-point:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.use-case-point h3 {
  margin-bottom: 0.75rem;
  color: var(--purple);
}

.use-case-point p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .use-case-hero { padding: calc(68px + 2.5rem) 0 2rem; }
  .use-case-grid { grid-template-columns: 1fr; gap: 1rem; }
  .use-case-point { padding: 1.5rem; }
}

/* ========================================
   CTA
   ======================================== */
.cta-section {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  max-width: var(--max-w);
  margin: 0 auto 4rem;
  position: relative;
  overflow: hidden;
}

/* ---- CTA Ocean Animation ---- */
.cta-ocean {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cta-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 80px;
}

.cta-wave-1 { animation: waveShift 8s ease-in-out infinite; }
.cta-wave-2 { animation: waveShift 10s ease-in-out infinite reverse; }
.cta-wave-3 { animation: waveShift 12s ease-in-out infinite 1s; }

@keyframes waveShift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-25%); }
}

.cta-boat {
  position: absolute;
  bottom: 30px;
  width: 60px;
  height: 45px;
  animation: sailAcross 20s linear infinite, boatBob 3s ease-in-out infinite;
}

@keyframes sailAcross {
  0% { left: -80px; }
  100% { left: calc(100% + 80px); }
}

@keyframes boatBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-1.5deg); }
  75% { transform: translateY(3px) rotate(1deg); }
}

.cta-section h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1.1rem; }

.cta-section .btn-cta-light {
  background: #fff;
  color: var(--text);
  border: none;
}
.cta-section .btn-cta-light:hover {
  background: var(--bg-alt);
  border: none;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--bg-dark);
  color: #e4e4e7;
  padding: 3.5rem 0 1.5rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: #71717a;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-brand .logo { color: #fff; }

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-link {
  font-size: 0.85rem;
  color: #71717a;
  transition: color 0.15s;
}
.footer-link:hover { color: #fff; }

/* Compare links in footer */
.compare-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.compare-footer-col h5 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #71717a;
  margin-bottom: 0.75rem;
}

.compare-footer-col a {
  display: block;
  font-size: 0.8rem;
  color: #52525b;
  padding: 0.2rem 0;
  transition: color 0.15s;
}

.compare-footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: #52525b;
}

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: #52525b; transition: color 0.15s; }
.footer-legal a:hover { color: #e4e4e7; }

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  padding: 2rem;
  z-index: 1001;
}
.mobile-menu.active { display: block; }
.mobile-menu .nav-links { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-menu .nav-link { font-size: 1.15rem; font-weight: 500; }

/* ========================================
   Responsive - Tablet
   ======================================== */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .agents-row { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card.featured { order: -1; }
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .section::after { left: 1.25rem; right: 1.25rem; }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }

  .hero { padding: calc(68px + 3rem) 0 3rem; }
  .hero::after { left: 1.25rem; right: 1.25rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-actions .btn-cta { width: 100%; justify-content: center; }
  .hero-visual { margin-top: 2.5rem; }

  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-actions { display: none; }

  .steps { grid-template-columns: 1fr; gap: 0.75rem; }
  .step { flex-direction: row; align-items: flex-start; padding: 1.25rem; }

  .agents-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .agent-card { padding: 1.25rem 1rem; }
  .agent-card:last-child { grid-column: 1 / -1; max-width: 280px; margin: 0 auto; }


  .integrations-grid { gap: 0.75rem; }
  .integration-card { text-align: center; }
  .integration-logo { margin-left: auto; margin-right: auto; }
  .dogfood-heading { flex-wrap: wrap; justify-content: center; text-align: center; }
  .dogfood-heading h2 { width: 100%; }

  .pricing-grid { max-width: 100%; }
  .pricing-card { padding: 1.75rem; }
  .price-amount { font-size: 2rem; }

  .faq-question { padding: 1rem 1.25rem; font-size: 0.875rem; }
  .faq-answer-inner { padding: 0 1.25rem 1.25rem; font-size: 0.85rem; }

  .cta-section { padding: 3rem 1.5rem; margin: 0 1.25rem 2.5rem; }
  .cta-section h2 { font-size: 1.35rem; }
  .cta-section p { font-size: 0.9rem; }

  .footer-row { flex-direction: column; gap: 1.5rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
  .compare-footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-legal { justify-content: center; }


  /* Hero ocean - scale down on mobile */
  .hero-ocean { height: 40px; }
  .hero-waves { height: 25px; }
  .hero-boat { width: 35px; height: 27px; bottom: 8px; }

  /* CTA ocean - scale down on mobile */
  .cta-waves { height: 50px; }
  .cta-boat { width: 45px; height: 34px; bottom: 18px; }

  /* Dogfood dogs - scale down on mobile */
  .dogfood-heading { gap: 0.75rem; }
  .dogfood-dog { width: 40px; height: 30px; }

  /* Hide some loops on mobile for performance */
  .loop-2, .loop-5, .loop-8, .loop-10, .loop-14, .loop-16 { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .agents-row { grid-template-columns: 1fr; }
  .agent-card:last-child { max-width: 100%; }
  .compare-footer-grid { grid-template-columns: 1fr; }
}
