/* ===== DESIGN TOKENS ===== */
:root {
  --bg-primary: #070711;
  --bg-surface: #0f0f1c;
  --bg-surface-2: #16162b;
  --accent: #4f6ef7;
  --accent-glow: rgba(79, 110, 247, 0.15);
  --accent-hover: #6b85ff;
  --accent-secondary: #22d3ee;
  --success: #22c55e;
  --text-primary: #f0f0fa;
  --text-muted: #7070a0;
  --border: #1e1e35;
  --code-bg: #090915;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

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

/* ===== SCROLL ANIMATIONS ===== */
.section--hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.section--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 7, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
}

.nav__logo:hover {
  color: var(--text-primary);
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav__links a {
  color: var(--text-muted);
}

.nav__links a:hover {
  color: var(--text-primary);
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(79, 110, 247, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-primary) 0%, #0a0a18 100%);
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__headline {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, #b0b0d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subhead {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 30px rgba(79, 110, 247, 0.3);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ===== TRUST STRIP ===== */
.hero__trust {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.trust-item svg {
  display: inline-block;
  flex-shrink: 0;
}

/* ===== SECTIONS (shared) ===== */
.section {
  padding: 100px 0;
}

.section__headline {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
  text-align: center;
}

.section__subhead {
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

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

.problem-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color 0.3s;
}

.problem-card:hover {
  border-color: #2e2e50;
}

.problem-card__icon {
  margin-bottom: 20px;
}

.problem-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}

.step {
  text-align: center;
  flex: 0 1 220px;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto 16px;
}

.step__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0 8px;
}

.step__connector {
  width: 48px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 24px;
}

.steps__code {
  max-width: 500px;
  margin: 0 auto;
}

/* ===== CODE BLOCKS ===== */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.code-block__lang {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.code-block code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #c4c4e0;
  white-space: pre;
}

/* ===== COPY BUTTON ===== */
.copy-btn {
  background: var(--bg-surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.copy-btn--copied {
  color: var(--success);
  border-color: var(--success);
}

/* ===== INTEGRATION ===== */
.install-block {
  max-width: 400px;
  margin: 0 auto 32px;
}

.code-block--inline {
  display: flex;
  align-items: center;
}

.code-block--inline pre {
  flex: 1;
  padding: 14px 20px;
}

.code-block--inline .copy-btn {
  margin-right: 12px;
  flex-shrink: 0;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  padding: 12px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  margin-bottom: -1px;
}

.tab:hover {
  color: var(--text-primary);
}

.tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-panels {
  max-width: 700px;
  margin: 0 auto;
}

.tab-panel {
  display: none;
  padding-top: 16px;
}

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

.integration__cta {
  text-align: center;
  margin-top: 40px;
}

/* ===== COMPLIANCE ===== */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.compliance-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.3s;
}

.compliance-card:hover {
  border-color: #2e2e50;
}

.compliance-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.compliance-card__header svg {
  flex-shrink: 0;
  display: inline-block;
}

.compliance-card h3 {
  font-size: 17px;
  font-weight: 600;
}

.compliance-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.compliance__fine-print {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  opacity: 0.7;
}

/* ===== SECURITY ===== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.security-card {
  text-align: center;
  padding: 28px 16px;
}

.security-card svg {
  margin: 0 auto 16px;
  display: block;
}

.security-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.security-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat__value {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-secondary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}

.footer__brand svg {
  display: inline-block;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.footer__links {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
}

.footer__built {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1024px) {
  .hero__headline {
    font-size: 44px;
  }

  .security-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stats-bar {
    gap: 24px;
  }

  .stat__value {
    font-size: 28px;
  }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .nav__links {
    display: none;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero__headline {
    font-size: 36px;
  }

  .hero__subhead {
    font-size: 17px;
  }

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

  .btn {
    font-size: 15px;
    padding: 12px 24px;
    width: 100%;
    justify-content: center;
    max-width: 300px;
  }

  .hero__trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .section {
    padding: 64px 0;
  }

  .section__headline {
    font-size: 28px;
  }

  .section__subhead {
    margin-bottom: 36px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .step {
    flex: none;
    width: 100%;
    max-width: 280px;
    margin-bottom: 8px;
  }

  .step__connector {
    width: 2px;
    height: 24px;
    margin: 0 auto 8px;
  }

  .code-block code {
    font-size: 13px;
  }

  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .compliance-grid {
    grid-template-columns: 1fr;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat__value {
    font-size: 28px;
  }
}
