/* ════════════════════════════════════════════════
   DESIGN TOKENS — edit these to rebrand instantly
════════════════════════════════════════════════ */
:root {
  /* Cliff-inspired palette — cream, navy, sage (cliffhandles.it) */
  --bg:          #fdfae7;
  --bg-card:     #c4b99a;
  --bg-raised:   #fdfae7;
  --border:      rgba(14, 20, 18, .12);

  --accent:      #15311a;
  --accent-dim:  rgba(14, 20, 18, .1);
  --accent-glow: rgba(14, 20, 18, .22);

  --text-1:      #0B1B3A;
  --text-2:      rgba(11, 27, 58, .62);
  --text-3:      rgba(11, 27, 58, .38);

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Outfit', sans-serif;

  --radius:  12px;
  --radius-lg: 20px;
  --ease:    cubic-bezier(.4,0,.2,1);
  --shadow:  0 24px 80px rgba(14, 20, 18, .12);
}

/* ════════════════════════════════════════════════
   RESET
════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ════════════════════════════════════════════════
   UTILITY
════════════════════════════════════════════════ */
.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.section { padding-block: clamp(5rem, 10vw, 9rem); }
.section-label {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: .92;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 84ch;
  line-height: 1.7;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s var(--ease);
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fdfae7;
}
.btn-primary:hover {
  background: #121B17;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--accent);
}
.btn-ghost:hover {
  border-color: rgba(14, 20, 18, .45);
  background: rgba(14, 20, 18, .04);
}
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(14, 20, 18, .2);
}

/* ════════════════════════════════════════════════
   ANIMATED BG MESH
════════════════════════════════════════════════ */
.mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.mesh::before, .mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .18;
  animation: drift 18s ease-in-out infinite alternate;
}
.mesh::before {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(14, 20, 18, .14), transparent 70%);
  top: -20%; left: -10%;
}
.mesh::after {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(196, 185, 154, .55), transparent 70%);
  bottom: -20%; right: -10%;
  animation-delay: -9s;
  animation-duration: 22s;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4vw, 3vh) scale(1.08); }
}

/* ════════════════════════════════════════════════
   HEADER / NAV
════════════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(253, 250, 231, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
}
.logo {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: .03em;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .88rem;
  color: var(--text-2);
  font-weight: 400;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text-1); }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .25rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 1rem 1.5rem;
  font-size: .95rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: color .15s, background .15s;
}
.mobile-menu a:hover { color: var(--text-1); background: var(--bg-raised); }
.mobile-menu .btn { margin: 1rem 1.5rem; width: fit-content; }

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

/* ════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════ */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(5rem, 12vw, 10rem);
  position: relative;
}
.hero-eyebrow {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 1.5rem;
  max-width: 21ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  max-width: 58ch;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 4rem;
}

/* Stats row */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.stat-item {}
.stat-number {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
}
.stat-number span { color: var(--accent); }
.stat-label {
  font-size: .82rem;
  color: var(--text-2);
  margin-top: .35rem;
}

/* ════════════════════════════════════════════════
   USE CASES — CARD GRID
════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.card:hover {
  background: #b8ad8e;
  border-color: rgba(14, 20, 18, .28);
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(14, 20, 18, .12);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #d6d0be;
  border: 1px solid rgba(14, 20, 18, .2);
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
div.card-icon {
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
img.card-icon {
  display: block;
  padding: 6px;
  box-sizing: border-box;
  object-fit: contain;
}
.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.card p {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.6;
}
.card-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: all .25s var(--ease);
}
.card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ════════════════════════════════════════════════
   PLATFORM — 4 FEATURE BLOCKS
════════════════════════════════════════════════ */
.features-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  transition: border-color .2s;
}
.feature-block:hover { border-color: rgba(14, 20, 18, .22); }
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-content {}
.feature-content .section-label { margin-bottom: .6rem; }
.feature-content h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: .85rem;
}
.feature-content p {
  color: var(--text-2);
  font-size: .95rem;
  margin-bottom: 1.5rem;
}
.feature-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.feature-visual {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--text-2);
  font-size: .85rem;
  text-align: center;
  padding: 2rem;
}
.feature-visual .placeholder-icon {
  font-size: 2.5rem;
  opacity: .4;
}

@media (max-width: 820px) {
  .feature-block { grid-template-columns: 1fr; }
  .feature-block.reverse { direction: ltr; }
}

/* ════════════════════════════════════════════════
   AGENTS — TABBED LIST
════════════════════════════════════════════════ */
.agents-section { background: var(--bg-card); border-radius: var(--radius-lg); }
.agents-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3rem;
}
.agents-tabs {
  border-right: 1px solid var(--border);
  background: var(--bg);
}
.agent-tab {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
  font-size: .88rem;
  color: var(--text-2);
}
.agent-tab:last-child { border-bottom: none; }
.agent-tab:hover { background: var(--bg-raised); color: var(--text-1); }
.agent-tab.active { background: var(--bg-raised); color: var(--text-1); border-left: 2px solid var(--accent); }
.agent-tab-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background .15s;
}
.agent-tab.active .agent-tab-dot { background: var(--accent); }
.agent-detail {
  padding: 2.5rem;
  display: none;
}
.agent-detail.active { display: block; }
.agent-detail h3 {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.agent-detail p {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

@media (max-width: 680px) {
  .agents-wrap { grid-template-columns: 1fr; }
  .agents-tabs { border-right: none; border-bottom: 1px solid var(--border); display: flex; overflow-x: auto; }
  .agent-tab { border-bottom: none; border-right: 1px solid var(--border); white-space: nowrap; flex-shrink: 0; }
  .agent-tab:last-child { border-right: none; }
  .agent-tab.active { border-left: none; border-bottom: 2px solid var(--accent); }
}

/* ════════════════════════════════════════════════
   SECURITY — 2-COL GRID
════════════════════════════════════════════════ */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}
.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color .2s;
}
.security-card:hover { border-color: rgba(14, 20, 18, .22); }
.security-card-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.security-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.security-card p {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.65;
}
.integrations-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.integration-badge {
  padding: .4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-2);
  background: var(--bg-card);
  transition: border-color .15s, color .15s;
}
.integration-badge:hover { border-color: var(--accent); color: var(--text-1); }

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

/* ════════════════════════════════════════════════
   FAQ — ACCORDION
════════════════════════════════════════════════ */
.faq-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: rgba(14, 20, 18, .28); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-1);
  font-family: var(--ff-body);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: .7rem;
  transition: transform .25s var(--ease), background .15s, border-color .15s;
  color: var(--text-2);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.faq-answer-inner {
  padding: 0 1.5rem 1.3rem;
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ════════════════════════════════════════════════
   CTA BANNER
════════════════════════════════════════════════ */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-dim) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}
.cta-banner p {
  color: var(--text-2);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 2rem;
  font-size: 1rem;
  position: relative;
}
.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
  position: relative;
}

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem;
  margin-top: 6rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-logo {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.footer-logo span { color: var(--accent); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links a {
  font-size: .85rem;
  color: var(--text-2);
  transition: color .15s;
}
.footer-links a:hover { color: var(--text-1); }
.footer-copy {
  font-size: .8rem;
  color: var(--text-2);
}

/* ════════════════════════════════════════════════
   FADE-IN ANIMATION
════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
.fade-in:nth-child(2) { transition-delay: .1s; }
.fade-in:nth-child(3) { transition-delay: .2s; }
.fade-in:nth-child(4) { transition-delay: .3s; }
.fade-in:nth-child(5) { transition-delay: .4s; }
.fade-in:nth-child(6) { transition-delay: .5s; }
.fade-in:nth-child(7) { transition-delay: .6s; }
.fade-in:nth-child(8) { transition-delay: .7s; }
