:root {
  --emerald-950: #022c22;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;

  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px -16px rgba(15, 23, 42, 0.22);
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--emerald-700);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--emerald-600);
  outline-offset: 2px;
}

.sr-only {
  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 {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--emerald-800);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--slate-900);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--slate-700);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--emerald-700);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-actions .btn {
  white-space: nowrap;
}

@media (max-width: 479px) {
  .header-actions .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.84rem;
    min-height: 38px;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--slate-800);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--slate-200);
  background: var(--white);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 0.5rem;
  color: var(--slate-800);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.mobile-nav a:hover {
  background: var(--slate-100);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--emerald-700);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--emerald-800);
}

.btn-secondary {
  background: var(--white);
  color: var(--slate-900);
  border-color: var(--slate-300);
}

.btn-secondary:hover {
  background: var(--slate-100);
  border-color: var(--slate-500);
}

.btn-light {
  background: var(--white);
  color: var(--emerald-900);
}

.btn-light:hover {
  background: var(--emerald-50);
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-muted {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-dark {
  background: var(--slate-900);
  color: var(--slate-100);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald-700);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-dark .eyebrow {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.3);
}

.section-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h1, h2, h3, h4 {
  color: var(--slate-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0;
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1.15rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--slate-600);
  margin: 0;
}

.section-dark .lead {
  color: var(--slate-300);
}

/* Hero */
.hero {
  padding: 3.5rem 0 4.5rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(16, 185, 129, 0.11), transparent 45%),
    linear-gradient(180deg, var(--slate-50) 0%, var(--white) 68%);
}

.hero-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.75rem 0 2rem;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate-700);
}

.trust-list svg {
  flex-shrink: 0;
  color: var(--emerald-700);
}

/* Browser mockup frame */
.browser-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-300);
}

.browser-url {
  margin-left: 0.6rem;
  font-size: 0.78rem;
  color: var(--slate-600);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 0.18rem 0.7rem;
  flex: 1;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-body img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

/* Metrics Strip */
.metrics-strip {
  padding: 2.25rem 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  background: var(--white);
}

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

.metric-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--emerald-800);
  letter-spacing: -0.02em;
}

.metric-item span {
  font-size: 0.9rem;
  color: var(--slate-600);
}

/* Pain vs Solution Comparison */
.compare-grid {
  display: grid;
  gap: 1.5rem;
}

.compare-card {
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--slate-200);
  background: var(--white);
}

.compare-card.is-venasuite {
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.12), var(--shadow-md);
}

.compare-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.96rem;
  color: var(--slate-700);
}

.check-list svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Modules Grid */
.modules-grid {
  display: grid;
  gap: 1.35rem;
}

.module-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.module-card:hover {
  border-color: var(--emerald-600);
  box-shadow: var(--shadow-md);
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  margin-bottom: 1rem;
}

.module-card p {
  margin: 0 0 1rem;
  color: var(--slate-600);
  font-size: 0.95rem;
}

.module-features {
  list-style: none;
  margin: auto 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--slate-100);
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--slate-700);
}

.module-features li {
  position: relative;
  padding-left: 1.15rem;
}

.module-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-600);
}

.roadmap-banner {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  display: grid;
  gap: 1rem;
  align-items: center;
}

.roadmap-banner h3 {
  color: var(--emerald-900);
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.roadmap-banner p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--slate-700);
}

.roadmap-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--white);
  color: var(--emerald-900);
  border: 1px solid var(--emerald-100);
}

/* Interactive System Showcase */
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.tab-btn {
  padding: 0.6rem 1.1rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  border-color: var(--emerald-600);
  color: var(--emerald-800);
}

.tab-btn[aria-selected="true"] {
  background: var(--emerald-700);
  border-color: var(--emerald-700);
  color: var(--white);
}

.showcase-stage {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.showcase-panel[hidden] {
  display: none;
}

.showcase-caption {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.93rem;
  color: var(--slate-600);
}

.mobile-highlight {
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  background: var(--white);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.phone-frame {
  width: 220px;
  margin: 0 auto 1.1rem;
  border-radius: 26px;
  border: 7px solid var(--slate-900);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
}

.mobile-highlight h3 {
  font-size: 1.05rem;
}

.mobile-highlight p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--slate-600);
}

/* Architecture / Security Dark Section */
.pillars-grid {
  display: grid;
  gap: 1.35rem;
}

.pillar-card {
  padding: 1.65rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pillar-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

.pillar-card p {
  margin: 0;
  color: var(--slate-300);
  font-size: 0.95rem;
}

/* Implementation Steps */
.steps-grid {
  display: grid;
  gap: 1.5rem;
}

.step-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  background: var(--white);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--emerald-700);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.step-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--emerald-700);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.35rem 1.2rem;
  color: var(--slate-600);
  font-size: 0.96rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.contact-benefits {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--slate-700);
  font-size: 0.96rem;
}

.contact-benefits svg {
  flex-shrink: 0;
  color: var(--emerald-700);
  margin-top: 0.2rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.35rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--slate-900);
  font: inherit;
  font-size: 0.96rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--emerald-600);
  outline: 2px solid rgba(5, 150, 105, 0.2);
  outline-offset: 0;
}

.checkbox-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.checkbox-group legend {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.5rem;
  padding: 0;
}

.checkbox-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--slate-300);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-700);
  cursor: pointer;
  user-select: none;
}

.checkbox-pill input {
  accent-color: var(--emerald-700);
  margin: 0;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--slate-600);
  cursor: pointer;
}

.consent-row input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--emerald-700);
  flex-shrink: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-wrap {
  min-height: 65px;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 500;
}

.form-status.is-success {
  background: var(--emerald-50);
  color: var(--emerald-900);
  border: 1px solid var(--emerald-100);
}

.form-status.is-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
}

/* Footer */
.site-footer {
  background: var(--slate-950);
  color: var(--slate-300);
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--slate-300);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.84rem;
  color: var(--slate-500);
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .roadmap-banner {
    grid-template-columns: 1.3fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }
  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }
  .hero-grid {
    grid-template-columns: 1.02fr 1.18fr;
    gap: 3rem;
  }
  .modules-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .showcase-stage {
    grid-template-columns: 1fr 290px;
  }
  .pillars-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .contact-grid {
    grid-template-columns: 1fr 1.25fr;
    gap: 3.25rem;
  }
}
