/* Vayge marketing — matches vayge-ui design tokens */
:root {
  color-scheme: dark;
  --vayge-bg: #060a12;
  --vayge-surface: #0c1220;
  --vayge-panel: #111827;
  --vayge-card: #141c2e;
  --vayge-border: #1e2d45;
  --vayge-cyan: #38bdf8;
  --vayge-cyan-dim: #0ea5e9;
  --vayge-good: #4ade80;
  --vayge-attention: #fbbf24;
  --vayge-critical: #f87171;
  --vayge-muted: #64748b;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --shadow-panel: 0 0 0 1px rgba(56, 189, 248, 0.08), 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 32px rgba(56, 189, 248, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  background: var(--vayge-bg);
  color: #e2e8f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--vayge-cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--vayge-border);
  background: rgba(12, 18, 32, 0.92);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  text-decoration: none;
}

.logo span {
  color: var(--vayge-cyan);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}

.nav a:hover {
  color: #e2e8f0;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.btn-primary {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.15);
}

.btn-primary:hover {
  background: rgba(14, 165, 233, 0.3);
  border-color: rgba(56, 189, 248, 0.5);
  text-decoration: none;
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: var(--vayge-panel);
  border-color: var(--vayge-border);
  color: #cbd5e1;
}

.btn-ghost:hover {
  border-color: rgba(56, 189, 248, 0.3);
  color: #f1f5f9;
  text-decoration: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 55% at 50% 35%, rgba(14, 165, 233, 0.1) 0%, transparent 65%),
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  pointer-events: none;
}

.hero-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-intro {
  width: 100%;
  max-width: 44rem;
  text-align: center;
  margin-inline: auto;
}

.hero-intro .eyebrow {
  margin-inline: auto;
}

.hero-intro .hero-lead {
  margin-inline: auto;
  max-width: 38rem;
}

.hero-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  margin-top: 0.5rem;
}

.hero-footer .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

.hero-footer .hero-stats {
  justify-content: center;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--vayge-border);
  background: rgba(17, 24, 39, 0.8);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vayge-good);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f8fafc;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat {
  min-width: 7rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vayge-cyan);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--vayge-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Dashboard preview frame */
.preview-frame {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 0;
  border-radius: 0.875rem;
  border: 1px solid var(--vayge-border);
  background: linear-gradient(145deg, rgba(20, 28, 46, 0.95) 0%, rgba(12, 18, 32, 0.98) 100%);
  box-shadow: var(--shadow-panel), var(--shadow-glow);
  overflow: hidden;
  font: inherit;
  color: inherit;
  text-align: left;
}

.preview-expand {
  display: block;
  cursor: zoom-in;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.preview-expand:hover,
.preview-expand:focus-visible {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: var(--shadow-panel), 0 0 48px rgba(56, 189, 248, 0.18);
  transform: translateY(-2px);
  outline: none;
}

.preview-image-wrap {
  position: relative;
  display: block;
}

.preview-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.2));
}

.preview-expand-hint {
  position: absolute;
  inset: auto 1rem 1rem auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(6, 10, 18, 0.82);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
  color: #bae6fd;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.preview-expand-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.preview-expand:hover .preview-expand-hint,
.preview-expand:focus-visible .preview-expand-hint {
  transform: scale(1.03);
}

.preview-caption {
  margin: 0;
  font-size: 0.8rem;
  color: var(--vayge-muted);
  text-align: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 14, 0.88);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1400px);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: lightbox-in 0.22s ease;
}

.lightbox-dialog img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(94vh - 3rem);
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid var(--vayge-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), var(--shadow-glow);
}

.lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--vayge-border);
  border-radius: 0.5rem;
  background: rgba(17, 24, 39, 0.95);
  color: #e2e8f0;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.lightbox-close:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: #fff;
}

.lightbox-caption {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body.lightbox-open {
  overflow: hidden;
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--vayge-border);
  background: var(--vayge-surface);
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}

.preview-dot:nth-child(1) { background: #ef4444; opacity: 0.7; }
.preview-dot:nth-child(2) { background: #fbbf24; opacity: 0.7; }
.preview-dot:nth-child(3) { background: #4ade80; opacity: 0.7; }

.preview-url {
  margin-left: 0.75rem;
  font-size: 0.7rem;
  color: var(--vayge-muted);
}

/* ── Sections ── */
section {
  padding: 4rem 0;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vayge-cyan-dim);
  margin-bottom: 0.5rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.section-lead {
  margin: 0 0 2.5rem;
  max-width: 40rem;
  color: #94a3b8;
}

.panel-card {
  border-radius: 0.75rem;
  border: 1px solid var(--vayge-border);
  background: linear-gradient(145deg, rgba(20, 28, 46, 0.95) 0%, rgba(12, 18, 32, 0.98) 100%);
  box-shadow: var(--shadow-panel);
  padding: 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--vayge-border);
  background: rgba(17, 24, 39, 0.6);
  transition: border-color 0.15s;
}

.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
}

.feature-icon {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Flow diagram */
.flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 36rem;
}

.flow-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
}

.flow-step:not(:last-child) {
  border-bottom: 1px solid rgba(30, 45, 69, 0.6);
}

.flow-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--vayge-cyan);
}

.flow-step h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #e2e8f0;
}

.flow-step p {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.status-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(30, 45, 69, 0.5);
  font-size: 0.9rem;
  color: #cbd5e1;
}

.status-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
}

.status-dot.good { background: var(--vayge-good); }
.status-dot.attention { background: var(--vayge-attention); }

/* CTA band */
.cta-band {
  margin: 2rem 0 4rem;
  padding: 2.5rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background:
    radial-gradient(ellipse 80% 80% at 50% 100%, rgba(14, 165, 233, 0.1) 0%, transparent 70%),
    var(--vayge-surface);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  color: #f1f5f9;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: #94a3b8;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--vayge-border);
  padding: 2rem 0;
  background: var(--vayge-surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--vayge-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: none;
}

.footer-links a:hover {
  color: #e2e8f0;
}

.divider-section {
  border-top: 1px solid var(--vayge-border);
}

/* ── Expandable panels ── */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.accordion-item {
  border-radius: 0.75rem;
  border: 1px solid var(--vayge-border);
  background: rgba(17, 24, 39, 0.55);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.accordion-item:hover {
  border-color: rgba(56, 189, 248, 0.22);
}

.accordion-item.is-open {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-glow);
}

.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.accordion-trigger:hover {
  background: rgba(56, 189, 248, 0.04);
}

.accordion-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  width: 1.75rem;
  text-align: center;
}

.accordion-heading {
  flex: 1;
  min-width: 0;
}

.accordion-heading h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
}

.accordion-heading p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--vayge-muted);
}

.accordion-chevron {
  flex-shrink: 0;
  color: var(--vayge-cyan);
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.accordion-item.is-open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.accordion-panel-inner {
  padding: 0 1.125rem 1.125rem 3.75rem;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.65;
}

.accordion-panel-inner ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.accordion-panel-inner li {
  margin-bottom: 0.35rem;
}

.accordion-panel-inner strong {
  color: #cbd5e1;
  font-weight: 600;
}

.audit-highlight {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 70%),
    rgba(12, 18, 32, 0.9);
}

.audit-highlight .section-title {
  font-size: 1.35rem;
}

/* ── Contact form ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

@media (min-width: 540px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--vayge-border);
  background: rgba(6, 10, 18, 0.85);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.9rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.12);
}

.form-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.form-status--success {
  color: var(--vayge-good);
}

.form-status--error {
  color: var(--vayge-critical);
}

.turnstile-wrap {
  margin: 0.25rem 0;
}

.cta-band--form {
  text-align: left;
}

.cta-band--form .section-lead {
  margin-bottom: 0;
}
