/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* === LAYOUT === */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-white {
  background: #fff;
}

.section-gray {
  background: #f7f8fa;
}

.section-dark {
  background: #0d1117;
  color: #e6edf3;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
  color: #1a1a2e;
}

.section-title-light {
  color: #e6edf3;
}

/* === TYPOGRAPHY === */
.mono {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono',
    Menlo, Consolas, monospace;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: #8b949e;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #8b949e;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: #1a56db;
  color: #fff;
  border-color: #1a56db;
}

.btn-primary:hover {
  background: #1648c0;
  border-color: #1648c0;
}

.btn-outline {
  background: transparent;
  color: #e6edf3;
  border-color: #30363d;
}

.btn-outline:hover {
  border-color: #8b949e;
  color: #fff;
}

.section-white .btn-outline,
.section-gray .btn-outline {
  color: #1a1a2e;
  border-color: #d0d5dd;
}

.section-white .btn-outline:hover,
.section-gray .btn-outline:hover {
  border-color: #1a56db;
  color: #1a56db;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.8125rem;
}

.btn-block {
  width: 100%;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1117;
  overflow: hidden;
  padding: 120px 0 96px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(26, 86, 219, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(5, 150, 105, 0.08), transparent);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-headline {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1875rem;
  color: #8b949e;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === PROBLEM CARDS === */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 32px 28px;
}

.section-gray .card {
  background: #fff;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon-red {
  background: #fef2f2;
  color: #dc2626;
}

.card-icon-amber {
  background: #fffbeb;
  color: #d97706;
}

.card-icon-gray {
  background: #f3f4f6;
  color: #6b7280;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card-text {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.65;
}

/* === PIPELINE === */
.pipeline {
  max-width: 640px;
  margin: 0 auto;
}

.pipeline-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a56db;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content {
  padding-top: 4px;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-text {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.65;
}

.pipeline-connector {
  width: 2px;
  height: 32px;
  background: #d0d5dd;
  margin-left: 19px;
}

/* === CERTIFICATE === */
.cert-wrapper {
  max-width: 560px;
  margin: 0 auto;
}

.cert {
  border: 2px solid #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.cert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #e5e7eb;
  background: #fafbfc;
}

.cert-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1a2e;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 2px;
}

.cert-body {
  padding: 24px 28px;
}

.cert-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  gap: 16px;
}

.cert-field:last-child {
  border-bottom: none;
}

.cert-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  flex-shrink: 0;
}

.cert-value {
  font-size: 0.8125rem;
  color: #1a1a2e;
  text-align: right;
  word-break: break-all;
}

.cert-status-pass {
  color: #059669;
  font-weight: 600;
}

.cert-separator {
  height: 1px;
  background: #e5e7eb;
  margin: 12px 0;
}

.cert-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 28px;
  border-top: 1px solid #e5e7eb;
  background: #fafbfc;
}

.cert-qr {
  width: 56px;
  height: 56px;
  border: 2px solid #d0d5dd;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.04em;
}

.cert-caption {
  text-align: center;
  font-size: 0.9375rem;
  color: #6b7280;
  margin-top: 24px;
  font-style: italic;
}

/* === CODE TABS === */
.code-tabs {
  max-width: 640px;
  margin: 0 auto 32px;
}

.code-tab-buttons {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #30363d;
}

.code-tab-btn {
  background: none;
  border: none;
  color: #8b949e;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.code-tab-btn:hover {
  color: #e6edf3;
}

.code-tab-btn.active {
  color: #e6edf3;
  border-bottom-color: #1a56db;
}

.code-panel {
  display: none;
  background: #161b22;
  border: 1px solid #30363d;
  border-top: none;
  border-radius: 0 0 4px 4px;
  overflow-x: auto;
}

.code-panel.active {
  display: block;
}

.code-panel pre {
  padding: 24px;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.code-panel code {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono',
    Menlo, Consolas, monospace;
  color: #e6edf3;
}

/* Syntax highlighting */
.hl-keyword {
  color: #ff7b72;
}

.hl-string {
  color: #a5d6ff;
}

.hl-comment {
  color: #8b949e;
}

.hl-type {
  color: #ffa657;
}

.hl-func {
  color: #d2a8ff;
}

.hl-const {
  color: #79c0ff;
}

.install-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.install-badge {
  background: #161b22;
  border: 1px solid #30363d;
  color: #8b949e;
  padding: 8px 20px;
  font-size: 0.8125rem;
  border-radius: 4px;
}

/* === SUPPORTED SYSTEMS === */
.systems-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.system-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.system-icon {
  width: 64px;
  height: 64px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  background: #fafbfc;
}

.system-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
}

.systems-caption {
  text-align: center;
  font-size: 0.9375rem;
  color: #6b7280;
}

/* === TRUST GRID === */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.trust-item {
  padding: 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.trust-icon {
  margin-bottom: 16px;
}

.trust-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.trust-text {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.65;
}

/* === PRICING === */
.pricing-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 36px 28px;
  background: #fff;
  position: relative;
}

.pricing-featured {
  border-color: #1a56db;
  box-shadow: 0 0 0 1px #1a56db;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a56db;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.pricing-period {
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
}

.pricing-features {
  margin-bottom: 32px;
}

.pricing-features li {
  font-size: 0.9375rem;
  color: #4b5563;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  line-height: 1.5;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* === REGULATORY === */
.reg-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.reg-badge {
  padding: 12px 24px;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a2e;
  background: #fff;
}

.reg-caption {
  text-align: center;
  font-size: 0.9375rem;
  color: #6b7280;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

/* === CTA === */
.section-cta {
  text-align: center;
}

.cta-content {
  max-width: 520px;
  margin: 0 auto;
}

.cta-headline {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 1.0625rem;
  color: #8b949e;
  margin-bottom: 36px;
  line-height: 1.65;
}

.cta-form {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.cta-input {
  flex: 1;
  padding: 14px 16px;
  font-size: 0.9375rem;
  border: 1px solid #30363d;
  border-radius: 4px;
  background: #161b22;
  color: #e6edf3;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.cta-input::placeholder {
  color: #484f58;
}

.cta-input:focus {
  border-color: #1a56db;
}

.cta-demo-link {
  font-size: 0.875rem;
  color: #8b949e;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.cta-demo-link:hover {
  color: #e6edf3;
}

/* === FOOTER === */
.footer {
  background: #0d1117;
  border-top: 1px solid #21262d;
  padding: 56px 0 32px;
  color: #8b949e;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #e6edf3;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.footer-col a {
  font-size: 0.875rem;
  color: #8b949e;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #e6edf3;
}

.footer-bottom {
  font-size: 0.8125rem;
  padding-top: 24px;
  border-top: 1px solid #21262d;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.625rem;
    margin-bottom: 40px;
  }

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13, 17, 23, 0.98);
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid #21262d;
  }

  .nav-links.open {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Cards */
  .card-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Trust grid */
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Pricing */
  .pricing-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Code tabs */
  .code-panel pre {
    font-size: 0.75rem;
    padding: 16px;
  }

  /* CTA form */
  .cta-form {
    flex-direction: column;
  }

  .cta-headline {
    font-size: 1.75rem;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 32px;
  }

  /* Systems */
  .systems-row {
    gap: 24px;
  }

  /* Reg badges */
  .reg-row {
    flex-direction: column;
    align-items: center;
  }

  /* Certificate */
  .cert-field {
    flex-direction: column;
    gap: 4px;
  }

  .cert-value {
    text-align: left;
  }
}

/* ── What We See ── */
.wws-subtitle {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.6;
}

.wws-demo {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto 48px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.wws-panel {
  flex: 1;
  padding: 32px 28px;
  min-width: 0;
}

.wws-panel-left {
  background: #ffffff;
  flex: 0 0 340px;
}

.wws-panel-right {
  background: #0f172a;
  flex: 1 1 0;
  overflow: hidden;
}

.wws-panel h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.wws-panel-left h3 {
  color: #64748b;
}

.wws-panel-right h3 {
  color: #ffffff;
}

/* Shared field spacing */
.wws-field {
  margin-bottom: 14px;
}

/* Left panel header */
.wws-panel-left .wws-panel-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
}

/* Left panel labels */
.wws-panel-left .wws-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Left panel inputs */
.wws-panel-left input {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  color: #1e293b;
  font-family: inherit;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.wws-panel-left input:focus {
  outline: none;
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* Panel header dots */
.wws-panel-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.wws-dot-green {
  background: #22c55e;
}

.wws-dot-blue {
  background: #3b82f6;
}

/* Right panel header */
.wws-panel-right .wws-panel-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

/* Right panel labels */
.wws-panel-right .wws-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Right panel hash values */
.wws-hash {
  display: block;
  color: #00ff88;
  word-break: break-all;
  line-height: 1.5;
  min-height: 1.5em;
  font-size: 0.85rem;
  font-weight: 600;
  overflow-wrap: break-word;
}

.wws-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: #f1f5f9;
  gap: 8px;
  flex-shrink: 0;
}

.wws-arrow svg {
  width: 32px;
  height: 32px;
  color: #1a56db;
}

.wws-arrow-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a56db;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wws-facts {
  display: flex;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.wws-fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 280px;
}

.wws-fact svg {
  width: 20px;
  height: 20px;
  color: #059669;
  flex-shrink: 0;
  margin-top: 2px;
}

.wws-fact span {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .wws-demo {
    flex-direction: column;
  }

  .wws-panel-left {
    flex: 1 1 auto;
  }

  .wws-arrow {
    flex-direction: row;
    padding: 16px 0;
  }

  .wws-arrow svg {
    transform: rotate(90deg);
  }

  .wws-facts {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .card-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-row .card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

  .pricing-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-row .pricing-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}
