@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;600;700&display=swap');

:root {
  --bg: #020F1C;
  --bg-alt: #071827;
  --bg-card: #0E2433;
  --bg-card-hover: #112a3d;
  --border: rgba(108, 169, 177, 0.18);
  --border-strong: rgba(108, 169, 177, 0.35);

  --primary: #02264C;
  --navy: #133548;
  --accent: #6CA9B1;
  --accent-bright: #1F9CA3;
  --accent-soft: #CFE6ED;

  --cta: #F6A779;
  --cta-hover: #F2694C;

  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.5);

  --radius: 16px;
  --radius-pill: 9999px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);

  --radial-glow: radial-gradient(circle, #CFE6ED 0%, #6CA9B1 40%, #020F1C 100%);
}

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

html { scroll-behavior: smooth; }

/* Anchor-target offset so jumping to a section doesn't hide the heading
   behind the fixed site header (~80px tall + breathing room). */
:target,
[id] { scroll-margin-top: 100px; }

body {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-soft); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: 'Figtree', sans-serif;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text); }

.accent-word { color: var(--cta); }
strong { font-weight: 600; color: var(--text); }

p { margin-bottom: 1rem; color: var(--text-muted); }

.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-circuit {
  background:
    linear-gradient(180deg, rgba(2,15,28,0.85) 0%, rgba(2,15,28,0.95) 100%),
    url('../images/circuit-bg.png') center / cover no-repeat fixed;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { font-size: 1.1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cta);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: center;
  font-family: inherit;
}
.btn-primary {
  background: var(--cta);
  color: var(--bg);
  box-shadow: 0 6px 20px rgba(242, 105, 76, 0.35);
}
.btn-primary:hover {
  background: var(--cta-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(242, 105, 76, 0.5);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  color: var(--accent-soft);
}

/* ---- Header (hamburger-only) ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  z-index: 100;
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled {
  background: rgba(2, 15, 28, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  font-family: 'Figtree', sans-serif;
}
.logo img { height: 44px; width: auto; display: block; }
.logo-circle { width: 44px; height: 44px; border-radius: 50%; }
.logo span.tag {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.menu-toggle:hover { background: rgba(255,255,255,0.06); border-color: var(--accent); }
.menu-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  margin: 2.5px auto;
  transition: transform 0.25s, opacity 0.25s;
  border-radius: 2px;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 24px;
  background: rgba(14, 36, 51, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 16px;
  min-width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: var(--shadow-lg);
}
.nav-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu li { margin: 0; }
.nav-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
}
.nav-menu a:hover { background: rgba(108,169,177,0.1); color: var(--text); }
.nav-menu .menu-cta {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.nav-menu .menu-cta a {
  background: var(--cta);
  color: var(--bg);
  font-weight: 600;
  text-align: center;
}
.nav-menu .menu-cta a:hover { background: var(--cta-hover); color: #fff; }

/* Chevron indicator next to "About" so visitors know there are sub-items */
.nav-menu .has-submenu > a {
  position: relative;
  padding-right: 32px;
}
.nav-menu .has-submenu > a::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease, opacity 0.2s ease;
  opacity: 0.55;
}

/* Default: sub-menu collapsed */
.nav-menu .nav-submenu {
  list-style: none;
  margin: 0 0 0 12px;
  padding: 0 0 0 14px;
  border-left: 1px solid transparent;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.2s ease,
    margin 0.25s ease,
    padding 0.25s ease,
    border-color 0.2s ease;
}
.nav-menu .nav-submenu li { margin: 0; }
.nav-menu .nav-submenu a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
}
.nav-menu .nav-submenu a:hover {
  background: rgba(108,169,177,0.08);
  color: var(--text);
}

/* Expand: on mouse hover, on keyboard focus, or when JS marks it open (touch tap) */
.nav-menu .has-submenu:hover .nav-submenu,
.nav-menu .has-submenu:focus-within .nav-submenu,
.nav-menu .has-submenu.is-open .nav-submenu {
  max-height: 240px;
  opacity: 1;
  margin: 6px 0 8px 12px;
  padding: 4px 0 4px 14px;
  border-left-color: var(--border-strong);
}
.nav-menu .has-submenu:hover > a::after,
.nav-menu .has-submenu:focus-within > a::after,
.nav-menu .has-submenu.is-open > a::after {
  transform: translateY(-30%) rotate(225deg);
  opacity: 0.95;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 100px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(2,15,28,0.7) 0%, rgba(2,15,28,0.92) 100%),
    url('../images/circuit-bg.png') center / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(207,230,237,0.18) 0%, rgba(108,169,177,0.1) 35%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-inner {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 32px;
}
.hero .lead {
  font-size: 1.1rem;
  margin: 0 auto 40px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Trust strip ---- */
.trust {
  padding: 28px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.trust-row strong { color: var(--accent); font-weight: 700; }

/* ---- Grids + Cards ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s, background 0.2s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.card p { color: var(--text-muted); }
.card h3 { color: var(--text); }
.card a { color: var(--cta); font-weight: 600; font-size: 0.95rem; }
.card a:hover { color: var(--cta-hover); }

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(108,169,177,0.18), rgba(31,156,163,0.1));
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }

.card.card-media { padding: 0; display: flex; flex-direction: column; }
.card.card-media .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.card.card-media .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card.card-media:hover .thumb img { transform: scale(1.04); }
.card.card-media .body { padding: 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.pdf-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(2, 15, 28, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}
.pdf-badge svg { width: 13px; height: 13px; }

.pdf-link {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cta);
}
.pdf-link:hover { color: var(--cta-hover); }
.pdf-link svg { width: 16px; height: 16px; }
.pdf-link .arrow { transition: transform 0.2s; }
.pdf-link:hover .arrow { transform: translateX(3px); }

.card-actions {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.card-actions .pdf-link { margin-top: 0; padding-top: 0; }

.trial-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--cta);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(242, 105, 76, 0.25);
}
.trial-trigger:hover {
  background: var(--cta-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(242, 105, 76, 0.4);
}
.trial-trigger .arrow { transition: transform 0.2s; }
.trial-trigger:hover .arrow { transform: translateX(3px); }

/* ---- Value prop / split section ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split ul { list-style: none; margin-top: 20px; }
.split ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: var(--text-muted);
}
.split ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 18px; height: 18px;
  background: rgba(245, 167, 125, 0.18);
  border-radius: 50%;
}
.split ul li::after {
  content: "";
  position: absolute;
  left: 5px; top: 11px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--cta);
  border-bottom: 2px solid var(--cta);
  transform: rotate(-45deg);
}

.mosaic {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Values list ---- */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.value h3 { font-size: 1.05rem; color: var(--accent); }
.value p { font-size: 0.92rem; margin-bottom: 0; color: var(--text-muted); }

/* ---- CTA banner ---- */
.cta-banner {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(31,156,163,0.25), transparent 50%),
    linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
  color: var(--text);
  border-radius: 20px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.cta-banner h2, .cta-banner h3 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.cta-banner .btn-primary { justify-self: end; }

/* ---- Optimize section (from Figma) ---- */
.optimize-section {
  position: relative;
  overflow: hidden;
}
.optimize-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--radial-glow);
  opacity: 0.35;
  pointer-events: none;
}
.optimize-section .container { position: relative; z-index: 1; }
.optimize-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.optimize-inner h2 { margin-bottom: 16px; }
.optimize-inner > p.sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.check-list {
  list-style: none;
  text-align: left;
  max-width: 560px;
  margin: 0 auto 40px;
}
.check-list li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 24px; height: 24px;
  background: var(--accent);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2'/><path d='M8 12l3 3 5-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2'/><path d='M8 12l3 3 5-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}
.check-list li strong { color: var(--text); font-weight: 600; }

/* ---- Social proof band ---- */
.social-proof {
  padding: 80px 0;
}
.proof-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }

.proof-scroll-wrap {
  position: relative;
  margin: 0 -24px;
}
.proof-scroll {
  display: flex;
  gap: 20px;
  padding: 4px 24px 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.proof-scroll::-webkit-scrollbar { height: 8px; }
.proof-scroll::-webkit-scrollbar-track { background: transparent; }
.proof-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}
.proof-scroll::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.proof-scroll > .card {
  flex: 0 0 340px;
  scroll-snap-align: start;
}

.proof-scroll-wrap::before,
.proof-scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 28px;
  width: 40px;
  pointer-events: none;
  z-index: 2;
}
.proof-scroll-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}
.proof-scroll-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-alt), transparent);
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  box-shadow: var(--shadow);
}
.scroll-btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.scroll-btn:disabled { opacity: 0.35; cursor: default; }
.scroll-btn:disabled:hover { background: var(--bg-card); color: var(--text); border-color: var(--border-strong); }
.scroll-btn svg { width: 20px; height: 20px; }
.scroll-prev { left: 8px; }
.scroll-next { right: 8px; }

@media (max-width: 640px) {
  .scroll-btn { display: none; }
  .proof-scroll > .card { flex: 0 0 280px; }
}

/* ---- Booking row ---- */
.booking-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: stretch;
}
.booking-card-dark,
.booking-card-light {
  height: 400px;
}
.booking-card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.booking-card-dark h3 {
  font-size: 1.6rem;
  line-height: 1.15;
  margin-bottom: 2px;
}
.booking-card-dark p { color: var(--text-muted); margin-bottom: 8px; }
.booking-meta {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}
.booking-meta div { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.booking-meta svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.booking-meta a { color: var(--text-muted); }
.booking-meta a:hover { color: var(--cta); }

.booking-card-light {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.booking-card-light iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}
/* Covers Calendly's internal grey footer strip — rendered inside their iframe and not controllable via URL params. */
.booking-card-light::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: #fff;
  pointer-events: none;
}
.cookie-blocked {
  position: absolute;
  inset: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 16px;
  z-index: 3;
}
.cookie-blocked p {
  color: var(--text);
  margin: 0;
  max-width: 280px;
  font-size: 0.95rem;
}

/* ---- Forms ---- */
.form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}
.form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}
.form input,
.form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--text-dim); }
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 169, 177, 0.2);
}
.form textarea { min-height: 140px; resize: vertical; }

/* ---- Contact cards ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: grid; gap: 14px; }
.contact-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-item .icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(108,169,177,0.18), rgba(31,156,163,0.1));
  display: grid; place-items: center;
  color: var(--accent);
}
.contact-item .icon svg { width: 20px; height: 20px; }
.contact-item strong { color: var(--text); display: block; margin-bottom: 2px; font-size: 0.95rem; }
.contact-item span, .contact-item a { color: var(--text-muted); font-size: 0.95rem; }

/* ---- Footer ---- */
.site-footer {
  background: #000a16;
  color: var(--text-muted);
  padding: 64px 0 28px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h4 {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: var(--text-muted); font-size: 0.95rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand p { color: var(--text-dim); font-size: 0.95rem; max-width: 320px; }
.site-footer .logo { color: var(--text); margin-bottom: 16px; }
.site-footer .logo span.tag { color: var(--text-dim); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.social { display: flex; gap: 12px; }
.social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.social a:hover { background: var(--cta); color: var(--bg); }
.social svg { width: 16px; height: 16px; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  padding: 90px 0 70px;
  background:
    linear-gradient(180deg, rgba(2,15,28,0.82) 0%, rgba(2,15,28,0.96) 100%),
    url('../images/circuit-bg.png') center / cover no-repeat;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(199,233,237,0.12), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { max-width: 680px; margin: 0 auto; font-size: 1.1rem; color: var(--text-muted); }

/* ---- About page ---- */
.bio { max-width: 780px; margin: 0 auto; }
.bio p { font-size: 1.05rem; margin-bottom: 1.2rem; color: var(--text-muted); }
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.mv-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mv-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cta);
}

/* ---- Legal / long-form pages ---- */
.legal { padding: 140px 0 80px; }
.legal-container { max-width: 820px; }
.legal-head { text-align: center; margin-bottom: 56px; }
.legal-head h1 { margin-bottom: 10px; }
.legal-head .updated { color: var(--text-dim); font-size: 0.95rem; margin: 0; }
.legal-body h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--cta);
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p,
.legal-body li { color: var(--text-muted); line-height: 1.7; }
.legal-body p { margin-bottom: 16px; }
.legal-body ul { list-style: disc; padding-left: 24px; margin-bottom: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--cta); }
.legal-body strong { color: var(--text); }
.legal-body code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
  color: var(--accent-soft);
}

/* ---- FAQ accordion ---- */
.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.faq-group { margin-bottom: 36px; }
.faq-group:last-of-type { margin-bottom: 0; }
.faq-group h3 {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  padding-left: 4px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: var(--border-strong); background: var(--bg-card-hover); }
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cta);
  border-bottom: 2px solid var(--cta);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-item summary:hover { color: var(--accent-soft); }
.faq-item .faq-answer {
  padding: 0 22px 22px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item .faq-answer p { margin-bottom: 0; }
.faq-item .faq-answer strong { color: var(--text); }

@media (max-width: 600px) {
  .faq-item summary { padding: 16px 18px; font-size: 0.98rem; }
  .faq-item .faq-answer { padding: 0 18px 18px; font-size: 0.95rem; }
}

/* ---- AI Help Bots trial popup ---- */
.trial-popup {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.trial-popup[hidden] { display: none; }
.trial-popup.visible {
  opacity: 1;
  pointer-events: auto;
}
.trial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 15, 28, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.trial-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 0 0 36px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s ease;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  overflow-y: auto;
}

.trial-banner {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15), transparent 45%),
    linear-gradient(135deg, var(--cta) 0%, var(--cta-hover) 100%);
  color: #fff;
  padding: 32px 36px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.trial-banner-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
}
.trial-banner-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 2px 0;
}
.trial-banner-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}

.trial-body { padding: 28px 36px 0; }
.trial-popup.visible .trial-modal {
  transform: translateY(0) scale(1);
}
.trial-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  z-index: 2;
}
.trial-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }

.trial-body h2 { font-size: 1.35rem; margin-bottom: 10px; }
.trial-body p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.96rem; }

.trial-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.trial-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.trial-form input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.trial-form input::placeholder { color: var(--text-dim); }
.trial-form input:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(246, 167, 121, 0.2);
}
.trial-submit {
  margin-top: 6px;
  width: 100%;
}
.trial-fineprint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 10px 0 0;
}
.trial-honeypot { position: absolute; left: -9999px; opacity: 0; }

.trial-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 10px 14px;
  background: rgba(246, 167, 121, 0.1);
  border: 1px solid rgba(246, 167, 121, 0.3);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cta);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.trial-pdf-link:hover {
  background: rgba(246, 167, 121, 0.18);
  border-color: var(--cta);
  color: var(--cta-hover);
}
.trial-pdf-link svg { width: 16px; height: 16px; }
.trial-pdf-link .arrow { transition: transform 0.2s; margin-left: 2px; }
.trial-pdf-link:hover .arrow { transform: translateX(3px); }

.trial-success,
.trial-error {
  text-align: center;
  padding: 10px 0;
}
.trial-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(27,168,196,0.15);
  color: var(--accent-bright);
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.trial-success-icon svg { width: 28px; height: 28px; }
.trial-success h3 { font-size: 1.3rem; margin-bottom: 8px; }
.trial-error p { color: var(--cta); }

@media (max-width: 600px) {
  .trial-modal { padding: 0 0 28px; border-radius: 14px; }
  .trial-banner { padding: 26px 24px 24px; border-top-left-radius: 14px; border-top-right-radius: 14px; }
  .trial-body { padding: 22px 24px 0; }
  .trial-body h2 { font-size: 1.2rem; }
}

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  background: rgba(14, 36, 51, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.25s ease;
  pointer-events: none;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 280px; }
.cookie-text strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 600;
}
.cookie-text p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}
.cookie-text a { color: var(--cta); font-weight: 500; }
.cookie-text a:hover { color: var(--cta-hover); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  padding: 10px 22px;
  font-size: 0.9rem;
}
@media (max-width: 600px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
  .cookie-banner-inner { padding: 16px; gap: 14px; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero { padding: 120px 0 64px; min-height: auto; }
  .grid-3, .grid-2, .split, .contact-grid, .mv-grid, .footer-grid,
  .proof-grid, .booking-row { grid-template-columns: 1fr; gap: 20px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; }
  .cta-banner .btn-primary { justify-self: center; }
  .section { padding: 64px 0; }
  .booking-card-dark { padding: 28px 22px; height: auto; }
  .nav-menu { right: 16px; left: 16px; min-width: auto; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }

  .hero { padding: 100px 0 52px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.7rem); line-height: 1.08; }
  .hero .lead { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions .btn { flex: 1; min-width: 140px; }

  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 1rem; }

  .card { padding: 24px; }
  .card.card-media .body { padding: 22px; }
  .card h3 { font-size: 1.15rem; }

  .split ul li { padding-left: 28px; font-size: 0.95rem; }

  .optimize-inner h2 { font-size: 1.8rem; }
  .optimize-inner > p.sub { font-size: 1rem; margin-bottom: 28px; }
  .check-list { max-width: 100%; }
  .check-list li { padding-left: 34px; font-size: 0.95rem; margin-bottom: 14px; }
  .check-list li::before { width: 22px; height: 22px; }

  .cta-banner { padding: 32px 22px; }
  .cta-banner h2 { font-size: 1.6rem; }

  .booking-card-dark { padding: 24px 20px; }
  .booking-card-dark h3 { font-size: 1.3rem; }
  .booking-card-dark p { font-size: 0.95rem; }
  .booking-meta { font-size: 0.9rem; gap: 8px; }

  .booking-card-light { height: 380px; }
  .booking-card-light iframe { height: 380px; }
  .booking-card-light::after { height: 50px; }

  .proof-scroll-wrap { margin: 0 -18px; }
  .proof-scroll { padding: 4px 18px 24px; scroll-padding: 18px; }
  .proof-scroll > .card { flex: 0 0 260px; }
  .proof-scroll-wrap::before,
  .proof-scroll-wrap::after { width: 24px; }

  .pdf-badge { padding: 4px 8px; font-size: 0.68rem; }
  .pdf-link { font-size: 0.85rem; }

  .page-hero { padding: 100px 0 48px; }

  .footer-grid { gap: 28px; margin-bottom: 36px; }
  .site-footer { padding: 48px 0 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Legal page tighter */
  .legal { padding: 110px 0 56px; }
  .legal-head { margin-bottom: 36px; }
  .legal-body h2 { font-size: 1.2rem; margin-top: 28px; }
}

@media (max-width: 520px) {
  .values { grid-template-columns: 1fr; }
  .trust-row { gap: 20px; font-size: 0.78rem; }
  .logo span.tag { display: none; }
  .logo span:not(.tag) { font-size: 0.95rem; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 380px) {
  .logo img, .logo-circle { height: 38px; width: 38px; }
  .logo span:not(.tag) { font-size: 0.88rem; }
  .hero h1 { font-size: 1.9rem; }
  .card { padding: 20px; }
  .card.card-media .body { padding: 20px; }
}
