:root {
  --bg: #070d13;
  --bg-soft: #101a24;
  --text: #f4fbff;
  --muted: #b9c8d9;
  --primary: #32d07f;
  --primary-soft: #1da965;
  --card: hsl(200 30% 12% / 0.38);
  --border: rgba(182, 209, 234, 0.18);
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  background-color: var(--bg);
  background-image: url('/img/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
}

a { color: #7ee6ff; }
a:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.skip-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.6rem 1rem;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.content-narrow {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: hsl(200 28% 8% / 0.42);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.site-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-nav a.active,
.site-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
}

section {
  padding: clamp(2.25rem, 5vw, 4.5rem) 0;
}

section[id] {
  scroll-margin-top: 88px;
}

section.section-tight-top {
  padding-top: clamp(1.5rem, 3.5vw, 2.75rem);
}

.page-intro h1 {
  margin-bottom: 0.75rem;
}

.page-intro--center {
  text-align: center;
}

.page-actions {
  margin-top: 1.5rem;
}

.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.hero .container,
.section-inner {
  background: transparent;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 1rem; text-align: center; }
h1 { font-size: clamp(2rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.8rem); }

p { color: var(--muted); margin: 0 0 1rem; }
.hero-subheading,
.page-subheading {
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  text-align: center;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
}

.btn-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  align-items: center;
}

.btn-row--center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.15rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-soft)); color: #fff; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

/* Panel icon styles: stacked icon above heading for .card-with-icon (responsive and consistent) */
.card.card-with-icon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px; /* matches previous inline gap:8px */
}
.card.card-with-icon .panel-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.card.card-with-icon .panel-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}
/* Ensure headings and body text in stacked icon cards align left so icon and text don't overlap */
.card.card-with-icon h3,
.card.card-with-icon p {
  text-align: left;
  margin: 0;
}

/* Small-screen adjustments: center stacked content for narrow viewports */
@media (max-width: 420px) {
  .card.card-with-icon {
    align-items: center;
    text-align: center; /* inherit center for children */
  }
  .card.card-with-icon h3,
  .card.card-with-icon p {
    text-align: center;
  }
}

.card ul {
  margin: 0 0 0.25rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.card li {
  margin-bottom: 0.35rem;
}

.card li:last-child {
  margin-bottom: 0;
}

.hero-preview {
  margin-top: 1.4rem;
  max-width: min(100%, 720px);
  margin-left: auto;
  margin-right: auto;
}

.hero-preview .media-img {
  width: auto;
  height: auto;
  max-width: min(100%, 100vw, 720px);
  max-height: min(70vh, 720px);
  max-height: min(70dvh, 720px);
  margin: 0 auto;
  display: block;
  border-radius: 10px;
  object-fit: contain;
}

.media-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

img,
video {
  max-width: 100%;
}

.cms-content {
  max-width: 65ch;
}

.cms-content img,
.cms-content video {
  height: auto;
  border-radius: 10px;
}

.legal-content {
  max-width: 75ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(1rem, 2.5vw, 2rem);
}

.legal-content h2,
.legal-content h3,
.legal-content p {
  text-align: left;
}

.legal-content h2 {
  margin-top: 1.25rem;
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
}

.legal-content h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.feature-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pricing-card.popular {
  border-color: rgba(50, 208, 127, 0.55);
  box-shadow: 0 0 0 1px rgba(50, 208, 127, 0.35), var(--shadow);
  transform: scale(1.02);
}
.pill {
  display: inline-block;
  border-radius: 999px;
  background: rgba(50, 208, 127, 0.2);
  color: #9effcb;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.stack-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item { margin-bottom: 0; }
.faq-item h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }

.cta-wrap {
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: var(--text);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
}

.cookie-banner__content {
  max-width: 980px;
  margin: 0 auto;
  background: hsl(200 28% 8% / 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1rem;
}

.cookie-banner__content p {
  margin: 0;
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.agent-form textarea,
.agent-form input,
.agent-form select {
  width: 100%;
  background: hsl(200 25% 8% / 0.5);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
}

.agent-list {
  margin-top: 0.85rem;
}

.agent-checkpoints {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.agent-checkpoints li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.agent-log {
  min-height: 220px;
  white-space: pre-wrap;
}

body > .site-header {
  flex-shrink: 0;
}

body > .site-main {
  flex: 1 0 auto;
}

body > footer {
  flex-shrink: 0;
}

pre {
  background: hsl(200 25% 8% / 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
  overflow-x: auto;
}

@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-media-grid { grid-template-columns: 1fr; }
  .steps, .pricing-grid, .two-col { grid-template-columns: 1fr; }
  .pricing-card.popular {
    transform: none;
  }
}

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; padding: 0.6rem 0; }
  .nav-toggle { display: inline-block; }
  .site-nav { width: 100%; display: none; padding: 0.5rem 0 0.7rem; }
  .site-nav[data-open='true'] { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.5rem; }
  .cookie-banner__content {
    align-items: flex-start;
    flex-direction: column;
  }
}
