/* ═══════════════════════════════════════════════════
   Vervet Network — Marketing Landing Page
   ═══════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── keyframes ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.15); }
}
@keyframes glow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── page ── */
body {
  background: #030712;
  color: #e5e7eb;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ── navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(3,7,18,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: #fff;
  letter-spacing: -0.02em;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  color: rgba(255,255,255,0.45); font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: #fff; }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 8px 20px; border-radius: 10px;
  background: linear-gradient(135deg, #34d399, #06b6d4);
  color: #030712; font-size: 13px; font-weight: 700;
  letter-spacing: 0.01em; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(52,211,153,0.3);
}

/* ── hero ── */
.hero {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 100vh; padding: 120px 48px 80px;
  gap: 32px; max-width: 1400px; margin: 0 auto;
}
.hero-content {
  flex: 1; max-width: 600px;
  animation: fadeInUp 0.8s ease-out;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.15);
  border-radius: 100px;
  color: #99f6e4; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52,211,153,0.8);
  animation: glow 2s ease-in-out infinite;
}
.hero-title {
  font-size: 56px; font-weight: 800;
  line-height: 1.08; letter-spacing: -0.035em;
  background: linear-gradient(180deg, #fff 40%, rgba(255,255,255,0.55));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 24px;
}
.hero-sub {
  font-size: 18px; line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin: 0 0 40px; max-width: 520px;
}
.hero-ctas { display: flex; align-items: center; gap: 16px; }

.cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px;
  background: linear-gradient(135deg, #34d399, #06b6d4);
  color: #030712; font-size: 15px; font-weight: 700;
  border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(52,211,153,0.35);
}
.cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: #f0fdf4; font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.cta-secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
}

.hero-phone {
  flex-shrink: 0;
  animation: fadeIn 1.2s ease-out 0.3s both;
  transform: scale(1.15);
  transform-origin: center center;
  margin: 80px 40px 0;
}

/* ── ambient orbs ── */
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-orb--1 {
  top: 5%; left: 10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.10) 0%, transparent 70%);
  animation: float 12s ease-in-out infinite;
}
.hero-orb--2 {
  bottom: -5%; right: 5%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(52,211,153,0.08) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite 3s;
}

/* ── shared section ── */
.section {
  position: relative; padding: 120px 64px;
  max-width: 1400px; margin: 0 auto;
}
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  max-width: 1400px; margin: 0 auto;
}
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.15);
  border-radius: 100px;
  color: #99f6e4; font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: 40px; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.15;
  background: linear-gradient(180deg, #fff 40%, rgba(255,255,255,0.55));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 16px;
}
.section-sub {
  font-size: 16px; color: rgba(255,255,255,0.4);
  line-height: 1.7; max-width: 560px;
  margin: 0 0 56px;
}

/* ── resolution modes grid ── */
.modes-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.mode-card {
  position: relative; padding: 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px; overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
}
.mode-card:hover {
  border-color: rgba(52,211,153,0.15);
  background: rgba(255,255,255,0.035);
  transform: translateY(-2px);
}
.mode-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.mode-label {
  display: inline-flex; padding: 3px 9px;
  border-radius: 6px;
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.18);
  color: #67e8f9;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 500;
  margin-bottom: 12px;
}
.mode-title {
  color: #fff; font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; margin: 0 0 10px;
}
.mode-desc {
  color: rgba(255,255,255,0.4); font-size: 14px;
  line-height: 1.7; margin: 0;
}

/* ── trust features grid ── */
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.trust-card {
  padding: 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  transition: border-color 0.3s, transform 0.2s;
}
.trust-card:hover {
  border-color: rgba(52,211,153,0.12);
  transform: translateY(-2px);
}
.trust-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(52,211,153,0.06);
  border: 1px solid rgba(52,211,153,0.10);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.trust-title {
  color: #fff; font-size: 16px; font-weight: 700;
  letter-spacing: -0.01em; margin: 0 0 8px;
}
.trust-desc {
  color: rgba(255,255,255,0.38); font-size: 13px;
  line-height: 1.7; margin: 0;
}

/* ── code preview ── */
.code-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: start;
}
.code-block {
  position: relative;
  background: rgba(13,17,23,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; overflow: hidden;
}
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.code-dots { display: flex; gap: 6px; }
.code-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.code-label {
  color: rgba(255,255,255,0.3); font-size: 12px;
  font-weight: 500; font-family: 'IBM Plex Mono', monospace;
}
.code-body {
  padding: 20px; overflow-x: auto;
}
.code-body pre {
  margin: 0; font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; line-height: 1.7;
  color: rgba(255,255,255,0.7); white-space: pre; tab-size: 2;
}
.c-str  { color: #7ee787; }
.c-key  { color: #79c0ff; }
.c-punc { color: rgba(255,255,255,0.3); }
.c-cmd  { color: #d2a8ff; }
.c-flag { color: #ffa657; }
.c-bool { color: #ff7b72; }

.code-context {
  display: flex; flex-direction: column; justify-content: center;
}
.code-context-title {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 40%, rgba(255,255,255,0.55));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 16px;
}
.code-context-desc {
  color: rgba(255,255,255,0.4); font-size: 14px;
  line-height: 1.7; margin: 0 0 24px;
}
.code-feature {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
}
.code-feature-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399; margin-top: 7px; flex-shrink: 0;
}
.code-feature-text {
  color: rgba(255,255,255,0.5); font-size: 13px;
  line-height: 1.6;
}

/* ── stats ── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-card {
  text-align: center; padding: 40px 24px;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 18px;
}
.stat-value {
  font-size: 48px; font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #34d399, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.stat-label {
  color: rgba(255,255,255,0.35); font-size: 14px; font-weight: 500;
}

/* ── CTA banner ── */
.cta-banner {
  position: relative; text-align: center;
  padding: 100px 64px; max-width: 1400px;
  margin: 0 auto; overflow: hidden;
}
.cta-banner-glow {
  position: absolute; top: 50%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(52,211,153,0.08) 0%, transparent 70%);
  border-radius: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-banner-title {
  font-size: 44px; font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #fff 40%, rgba(255,255,255,0.55));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 16px; position: relative; z-index: 1;
}
.cta-banner-sub {
  color: rgba(255,255,255,0.4); font-size: 16px;
  margin: 0 0 40px; position: relative; z-index: 1;
}
.cta-banner-actions {
  display: flex; justify-content: center; gap: 16px;
  position: relative; z-index: 1;
}

/* ── footer ── */
.footer {
  padding: 32px 64px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1400px; margin: 0 auto;
}
.footer-copy {
  color: rgba(255,255,255,0.2); font-size: 13px;
}
.footer-links { display: flex; gap: 24px; }
.footer-link {
  color: rgba(255,255,255,0.25); font-size: 13px;
  transition: color 0.2s;
}
.footer-link:hover { color: rgba(255,255,255,0.5); }

/* ── responsive ── */
@media (max-width: 1100px) {
  .hero { flex-direction: column; text-align: center; padding: 120px 32px 60px; gap: 40px; }
  .hero-content { max-width: 100%; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-phone { transform: scale(0.75); }
  .modes-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .code-section { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 40px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas a, .hero-ctas button { width: 100%; justify-content: center; }
  .hero-phone { transform: scale(0.6); }
  .section { padding: 80px 20px; }
  .section-title { font-size: 28px; }
  .trust-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-value { font-size: 36px; }
  .cta-banner { padding: 80px 20px; }
  .cta-banner-title { font-size: 28px; }
  .cta-banner-actions { flex-direction: column; }
  .cta-banner-actions a, .cta-banner-actions button { width: 100%; justify-content: center; }
  .footer { flex-direction: column; gap: 16px; text-align: center; }
  .access-modal { max-width: 95vw; max-height: 90vh; margin: 20px; }
  .access-row { grid-template-columns: 1fr; }
  .access-chain-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Code Animation ── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.code-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #34d399;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  border-radius: 1px;
}

/* ── Access Modal ── */
.access-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.access-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.access-modal {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 0.98));
  border: 1px solid rgba(52, 211, 153, 0.12);
  border-radius: 20px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(52, 211, 153, 0.06);
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}
.access-overlay.is-open .access-modal {
  transform: translateY(0) scale(1);
}
.access-modal::-webkit-scrollbar {
  width: 6px;
}
.access-modal::-webkit-scrollbar-track {
  background: transparent;
}
.access-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.access-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: background 0.2s, color 0.2s;
}
.access-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}
.access-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.access-icon {
  width: 48px;
  height: 48px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.access-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f9fafb;
}
.access-sub {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
  max-width: 420px;
}
.access-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.access-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.access-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.access-field span {
  color: #d1d5db;
  font-size: 13px;
  font-weight: 500;
}
.access-field input,
.access-field select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f9fafb;
  font-family: inherit;
  font-size: 14px;
  min-height: 44px;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.access-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.access-field input::placeholder {
  color: #6b7280;
}
.access-field input:focus,
.access-field select:focus {
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.08);
}
.access-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.access-fieldset legend {
  color: #d1d5db;
  font-size: 13px;
  font-weight: 500;
  padding: 0 6px;
}
.access-chain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.access-chain {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  transition: background 0.15s, border-color 0.15s;
}
.access-chain:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.access-chain input {
  accent-color: #34d399;
  width: 14px;
  height: 14px;
}
.access-chain input:checked + span {
  color: #34d399;
}
.access-chain span {
  color: #d1d5db;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.access-submit {
  align-items: center;
  background: linear-gradient(135deg, #34d399, #06b6d4);
  border: 0;
  border-radius: 12px;
  color: #042f2e;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  margin-top: 4px;
  padding: 0 24px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.access-submit:hover {
  box-shadow: 0 8px 32px rgba(52, 211, 153, 0.25);
  transform: scale(1.02);
}
.access-submit:disabled {
  cursor: progress;
  opacity: 0.5;
}
.access-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px 0;
  animation: fadeInUp 0.4s ease;
}
.access-success-icon {
  margin-bottom: 8px;
}
.access-success .access-sub {
  max-width: 360px;
}
.access-success .access-submit {
  margin-top: 12px;
}
