:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #dbe5ee;
  --surface: #ffffff;
  --surface-soft: #f7fbfc;
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --rose: #ef4565;
  --shadow-sm: 0 12px 30px rgba(37, 51, 82, 0.08);
  --shadow-md: 0 24px 70px rgba(37, 51, 82, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f9fb;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    radial-gradient(circle at 12% 16%, rgba(20, 184, 166, 0.16), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(37, 99, 235, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f4f9fb 45%, #edf5f8 100%);
}

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

#flow-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.console-topbar,
.code-bar,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

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

.nav-links {
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 12px;
}

.nav-links a:hover {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

.nav-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 850;
}

.nav-action,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #4f74ff);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.secondary-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 42px;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 100px);
  margin: 0 auto;
  padding: 80px 0 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.07);
}

.hero-copy h1,
.section-heading h2,
.flow-copy h2,
.security-section h2,
.cta-section h2 {
  margin: 18px 0 0;
  color: var(--ink);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(44px, 7vw, 86px);
}

.hero-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  gap: 12px;
  margin-top: 32px;
}

.hero-console,
.feature-card,
.code-panel,
.security-grid article,
.cta-section,
.flow-steps article {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.hero-console {
  padding: 18px;
  border-radius: 28px;
}

.console-topbar,
.code-bar {
  gap: 8px;
  padding: 8px 8px 16px;
}

.console-topbar span,
.code-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.console-topbar span:nth-child(1),
.code-bar span:nth-child(1) {
  background: #ff6b6b;
}

.console-topbar span:nth-child(2),
.code-bar span:nth-child(2) {
  background: #f59e0b;
}

.console-topbar span:nth-child(3),
.code-bar span:nth-child(3) {
  background: #14b8a6;
}

.console-topbar strong,
.code-bar strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.console-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.metric-primary {
  grid-row: span 2;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.metric-card small,
.metric-card span {
  display: block;
  color: currentColor;
  opacity: 0.74;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.console-chart {
  position: relative;
  height: 190px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.05) 1px, transparent 1px),
    #ffffff;
  background-size: 34px 34px;
}

.chart-line {
  position: absolute;
  inset: 32px 20px 54px;
  border-bottom: 5px solid transparent;
  border-image: linear-gradient(90deg, var(--teal), var(--blue), var(--amber)) 1;
  transform: skewY(-7deg);
}

.chart-bars {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  height: 126px;
}

.chart-bars span {
  height: var(--h);
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.75), rgba(20, 184, 166, 0.22));
}

.activity-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.activity-list div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  background: #ffffff;
}

.activity-list strong {
  color: var(--ink);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.success {
  background: var(--teal);
}

.info {
  background: var(--blue);
}

.warning {
  background: var(--amber);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 80px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.trust-strip div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.84);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.trust-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section-block,
.flow-section,
.api-section,
.security-section,
.faq-section,
.cta-section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-block,
.flow-section,
.api-section,
.security-section,
.faq-section {
  padding: 76px 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading.compact {
  max-width: 620px;
}

.section-heading h2,
.flow-copy h2,
.security-section h2,
.cta-section h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.section-heading p,
.flow-copy p,
.cta-section p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.feature-card {
  min-height: 260px;
  padding: 24px;
  border-radius: 24px;
}

.feature-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.feature-card h3,
.flow-steps h3 {
  margin: 22px 0 10px;
  font-size: 20px;
}

.feature-card p,
.flow-steps p,
.security-grid span {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.flow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}

.flow-steps {
  display: grid;
  gap: 14px;
}

.flow-steps article {
  padding: 24px;
  border-radius: 22px;
}

.flow-steps span {
  display: inline-flex;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.api-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 30px;
  align-items: center;
}

.code-panel {
  overflow: hidden;
  border-radius: 24px;
}

pre {
  margin: 0;
  padding: 0 24px 24px;
  overflow: auto;
}

code {
  color: #dbeafe;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.8;
}

.code-panel {
  background: #0f172a;
}

.security-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
}

.security-grid {
  display: grid;
  gap: 14px;
}

.security-grid article {
  padding: 20px;
  border-radius: 20px;
}

.security-grid strong {
  display: block;
  margin-bottom: 8px;
}

.page-hero {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 34px;
}

.page-hero h1 {
  max-width: 920px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1;
}

.page-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.contact-layout,
.policy-card {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto 44px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

.contact-card,
.policy-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.contact-card {
  padding: 28px;
}

.contact-card h2,
.policy-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.contact-card p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hours-list,
.contact-info-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.hours-list div,
.contact-info-list div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.hours-list strong,
.hours-list span,
.contact-info-list strong,
.contact-info-list span,
.contact-info-list p {
  display: block;
}

.hours-list strong,
.contact-info-list strong {
  color: var(--ink);
  font-size: 15px;
}

.hours-list span,
.contact-info-list span {
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-info-list p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-info-list a,
.policy-card a {
  color: var(--blue);
  font-weight: 850;
}

.policy-card {
  padding: 34px;
}

.policy-card h2:not(:first-child) {
  margin-top: 30px;
}

.policy-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 32px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 18px 54px 18px 20px;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 850;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  right: 20px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  content: "+";
  border-radius: 50%;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding: 36px;
  border-radius: 28px;
}

.cta-section p {
  max-width: 640px;
}

.site-footer {
  display: block;
  padding: 52px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.footer-brand,
.footer-column {
  min-width: 0;
}

.footer-brand .brand {
  width: fit-content;
}

.footer-brand p,
.footer-column p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-column h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.footer-column a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 6px 0;
}

.simple-footer {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-bottom span {
  color: var(--muted);
}

.footer-bottom div {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: var(--ink-soft);
  font-weight: 750;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero-section,
  .flow-section,
  .api-section,
  .security-section,
  .faq-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 54px;
  }

  .hero-console {
    max-width: 560px;
  }

  .feature-grid,
  .trust-strip,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 8px;
    width: min(100% - 20px, 1180px);
  }

  .nav-action {
    display: none;
  }

  .hero-section,
  .section-block,
  .flow-section,
  .api-section,
  .security-section,
  .faq-section,
  .page-hero,
  .contact-layout,
  .policy-card,
  .cta-section,
  .site-footer,
  .trust-strip {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-actions,
  .cta-section,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-grid,
  .trust-strip,
  .console-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metric-primary {
    grid-row: auto;
  }

  .cta-section {
    padding: 24px;
  }
}
