/* ============================================================
   Verana Global Stylesheet
   ============================================================ */

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ----- CSS custom properties ----- */
:root, html, [data-theme="dark"] {
  --bg:#08090e; --bg-2:#0d1016; --bg-3:#12161f; --bg-hero:#070810;
  --line:rgba(255,255,255,.08); --line-2:#232a36;
  --text:#f7f3ea; --text-2:#aab0bb; --text-3:#7f8593;
  --accent:#9a8cff; --accent-2:#7b5cff; --accent-soft:rgba(154,140,255,.09);
  --accent-border:rgba(154,140,255,.32); --on-accent:#0a0b10;
  --signal:#5fd0a8; --warn:#ff6f8a; --chip:#14171f;
  --glow:rgba(123,92,255,.26); --glow-2:rgba(154,140,255,.12);
}
[data-theme="light"] {
  --bg:#f3efe6; --bg-2:#faf8f2; --bg-3:#ffffff; --bg-hero:#efeadf;
  --line:#e3dfd2; --line-2:#d8d3c5;
  --text:#15161b; --text-2:#54555d; --text-3:#8a8678;
  --accent:#6b54f0; --accent-2:#5a4bd0; --accent-soft:#ece8fb;
  --accent-border:#d3ccf2; --on-accent:#f7f3ea;
  --signal:#1f9d6e; --warn:#d23b58; --chip:#f1eee6;
  --glow:rgba(123,92,255,.18); --glow-2:rgba(154,140,255,.1);
}

/* ----- Animations ----- */
@keyframes vbeam { 0%,100%{opacity:.4;} 50%{opacity:.85;} }
@keyframes vfade { from{opacity:0;transform:translateY(14px);} to{opacity:1;transform:none;} }
@keyframes vpulse { 0%,100%{opacity:.35;} 50%{opacity:1;} }

/* ----- Root wrapper ----- */
.v-root {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  min-height: 100vh;
  transition: background .35s ease, color .35s ease;
}

/* ----- Nav ----- */
.v-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.v-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}
.v-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}
.v-logo-text {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .07em;
}
.v-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
}
.v-nav-link {
  color: inherit;
  text-decoration: none;
}
.v-nav-link.active {
  color: var(--text);
  font-weight: 500;
}
.v-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ----- Fixed theme toggle (corner) ----- */
.v-theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  transition: background .2s, box-shadow .2s;
}

/* ----- Container ----- */
.v-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ----- Page hero (inner pages) ----- */
.v-page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(100% 80% at 80% -20%, var(--glow), transparent 55%), var(--bg-hero);
  border-bottom: 1px solid var(--line);
}
.v-page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 64px;
}

/* ----- Homepage hero ----- */
.v-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(110% 80% at 82% -8%, var(--glow), transparent 56%),
              radial-gradient(70% 60% at 12% 116%, var(--glow-2), transparent 60%),
              var(--bg-hero);
}
.v-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 104px 32px 96px;
  position: relative;
}
.v-hero-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  padding: 7px 13px;
  border-radius: 999px;
  margin-bottom: 30px;
}
.v-hero-protocol-row {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  max-width: 760px;
}

/* ----- Kickers / labels ----- */
.v-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.v-section-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ----- Sections ----- */
.v-section {
  padding: 84px 0;
}
.v-section-border {
  border-top: 1px solid var(--line);
}
.v-section-header {
  max-width: 680px;
  margin-bottom: 40px;
}
.v-section-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.v-alt-bg {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ----- Cards ----- */
.v-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  padding: 24px;
}
.v-card-accent {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}
.v-diagram {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  padding: 26px 30px;
  box-shadow: 0 24px 50px -34px rgba(0,0,0,.5);
}

/* ----- Buttons ----- */
.v-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 11px;
  white-space: nowrap;
  transition: opacity .15s;
}
.v-btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15.5px;
  padding: 15px 30px;
}
.v-btn-secondary {
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 15.5px;
  font-weight: 500;
  padding: 15px 30px;
  background: transparent;
}
.v-btn-ghost {
  color: var(--text-2);
  font-size: 15.5px;
  font-weight: 500;
  padding: 15px 14px;
  align-self: center;
  background: transparent;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border-radius: 11px;
}
.v-btn-sm-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
}
.v-btn-group {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

/* ----- Feature tags ----- */
.v-tag {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 7px;
  padding: 6px 11px;
}
.v-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* ----- Pain points ----- */
.v-pain-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}
.v-pain-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.v-pain-arrow {
  color: var(--accent);
  font-size: 14px;
  line-height: 1.5;
  flex-shrink: 0;
}
.v-pain-text {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ----- Protocol chips ----- */
.v-proto-chip {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  color: var(--text-2);
  background: var(--chip);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 5px 9px;
}
.v-proto-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ----- Nav pills (features hero) ----- */
.v-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.v-nav-pill {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-2);
  text-decoration: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 14px;
}

/* ----- Step cards (commissioning) ----- */
.v-step-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.v-step {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-2);
  padding: 20px 16px;
}
.v-step.final {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}
.v-step-num {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ----- Use case cards (homepage teaser) ----- */
.v-uc-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
  display: block;
}
.v-uc-image {
  height: 188px;
  position: relative;
  background: linear-gradient(150deg, var(--bg-3), var(--bg-hero));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.v-uc-body {
  padding: 24px;
}
.v-uc-label {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 11px;
}

/* ----- Use case large image (usecases page) ----- */
.v-uc-img {
  position: relative;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--bg-3), var(--bg-hero));
  display: flex;
  align-items: center;
  justify-content: center;
}
.v-uc-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 50% 10%, var(--glow), transparent 60%);
}

/* ----- Placeholder text ----- */
.v-placeholder {
  position: relative;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 36%, transparent);
  border: 1px dashed color-mix(in srgb, var(--text) 24%, transparent);
  border-radius: 8px;
  padding: 9px 14px;
}

/* ----- CTA banner ----- */
.v-cta-wrap {
  padding: 20px 0 96px;
}
.v-cta-wrap-features {
  padding: 0 0 96px;
}
.v-cta {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--accent-border);
  background: radial-gradient(120% 140% at 85% -20%, var(--glow), transparent 55%), var(--bg-2);
  padding: 60px 52px;
  margin-top: 64px;
}
.v-cta-beam {
  position: absolute;
  right: 8%;
  top: -30px;
  bottom: -30px;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
  filter: blur(1px);
  opacity: .5;
  animation: vbeam 5s ease-in-out infinite;
}
.v-cta-inner {
  position: relative;
  max-width: 620px;
}

/* ----- Footer (inner page simple) ----- */
.v-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.v-footer-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.v-footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.v-footer-link {
  color: inherit;
  text-decoration: none;
}
.v-footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
}
.v-footer-compat {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 32px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ----- Homepage footer (4-column grid) ----- */
.v-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.v-footer-col-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.v-footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
  color: var(--text-2);
}
.v-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 32px 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-3);
}

/* ----- Beams (homepage hero decorative) ----- */
.v-beam,
.v-beam-2 {
  position: absolute;
  top: -40px;
  bottom: 0;
  width: 2px;
  filter: blur(1px);
  animation: vbeam 5s ease-in-out infinite;
}
.v-beam {
  right: 14%;
  background: linear-gradient(var(--accent), transparent);
  opacity: .5;
}
.v-beam-2 {
  right: 30%;
  background: linear-gradient(var(--accent-2), transparent);
  opacity: .4;
  animation-duration: 6.5s;
}

/* ----- Photo placeholder drop slot (homepage hero) ----- */
.v-hero-photo-slot {
  position: absolute;
  top: 26px;
  right: 32px;
  color: color-mix(in srgb, var(--text) 36%, transparent);
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px dashed color-mix(in srgb, var(--text) 26%, transparent);
  border-radius: 8px;
  padding: 8px 13px;
}

/* ----- Mono utility ----- */
.v-mono { font-family: 'DM Mono', monospace; }
.v-text-3 { color: var(--text-3); }
.v-text-2 { color: var(--text-2); }
.v-text-accent { color: var(--accent); }
.v-text-signal { color: var(--signal); }
.v-bg-chip { background: var(--chip); }

/* ----- Form elements (contact page) ----- */
.v-form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--text);
}
.v-form-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: border-color .2s;
  outline: none;
}
.v-form-input:focus {
  border-color: var(--accent-border);
}
.v-form-helper {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 6px;
  line-height: 1.5;
}
.v-form-select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: border-color .2s;
  outline: none;
  appearance: none;
  cursor: pointer;
}
.v-form-select:focus {
  border-color: var(--accent-border);
}
.v-form-textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: border-color .2s;
  outline: none;
  resize: vertical;
  min-height: 120px;
}
.v-form-textarea:focus {
  border-color: var(--accent-border);
}
.v-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.v-form-group {
  margin-bottom: 20px;
}

/* ----- Contact page specific ----- */
input, select, textarea { font-family: 'DM Sans', sans-serif; }
input::placeholder, textarea::placeholder { color: var(--text-3); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 991px) {
  /* nav collapses */
  .v-nav-links { display: none; }
  .v-nav-inner { padding: 14px 20px; }

  /* hero responsive */
  .v-hero-inner { padding: 72px 20px 64px; }
  .v-hero-inner h1 { font-size: 48px; }
  .v-page-hero-inner { padding: 60px 20px 48px; }
  .v-page-hero-inner h1 { font-size: 40px; }

  /* section padding */
  .v-section { padding: 60px 0; }
  .v-container { padding: 0 20px; }
  .v-footer-bar { padding: 32px 20px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .v-footer-links { flex-wrap: wrap; }

  /* step grid */
  .v-step-grid { grid-template-columns: repeat(3, 1fr); }

  /* CTA banner */
  .v-cta { padding: 40px 28px; }

  /* homepage footer grid */
  .v-footer-grid { grid-template-columns: 1fr 1fr; padding: 40px 20px; }

  /* form row */
  .v-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .v-hero-inner h1 { font-size: 38px; line-height: 1.1; }
  .v-page-hero-inner h1 { font-size: 32px; }
  .v-step-grid { grid-template-columns: 1fr 1fr; }
  .v-footer-grid { grid-template-columns: 1fr; }
  .v-btn-group { flex-direction: column; align-items: flex-start; }
  .v-btn-group .v-btn-ghost { padding-left: 0; }
  .v-nav-pill { font-size: 11px; padding: 6px 11px; }
  .v-uc-img { height: 240px; }
}
