:root {
  --ink: #0c1117;
  --ink-2: #151c26;
  --paper: #f3efe6;
  --paper-2: #e8e2d6;
  --muted: #6b7280;
  --text: #1a1f27;
  --accent: #0f766e;
  --accent-2: #115e59;
  --line: rgba(15, 23, 32, 0.1);
  --glow: rgba(15, 118, 110, 0.18);
  --font: "Public Sans", "Noto Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: rgba(12, 17, 23, 0.06);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 118, 110, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(180, 120, 60, 0.1), transparent 50%),
    linear-gradient(180deg, #f7f3eb 0%, var(--paper) 45%, #ebe5d8 100%);
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 17, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 17, 23, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 75%);
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
  animation: drift 14s ease-in-out infinite alternate;
}
.bg-glow-a {
  width: 380px; height: 380px;
  left: -80px; top: 120px;
  background: var(--glow);
}
.bg-glow-b {
  width: 280px; height: 280px;
  right: -40px; top: 40px;
  background: rgba(180, 120, 60, 0.16);
  animation-delay: -4s;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(24px, 18px); }
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand img {
  border-radius: 8px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 1.25rem;
  margin-left: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); }
.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: #f7f3eb;
}
.btn-primary:hover { background: #18202b; }
.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-secondary:hover { border-color: rgba(12,17,23,0.25); background: rgba(255,255,255,0.4); }
.btn-ghost {
  color: var(--muted);
  padding-inline: 0.75rem;
}
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 0.8rem 1.35rem; font-size: 1rem; }

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1.25rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 1.25rem 2rem;
}
.hero-copy { min-width: 0; }
.brand-mark {
  margin: 0 0 0.85rem;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  animation: rise 0.7s ease both;
}
.hero h1 {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  animation: rise 0.7s ease 0.08s both;
}
.lede {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  animation: rise 0.7s ease 0.16s both;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
  animation: rise 0.7s ease 0.24s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-visual {
  animation: rise 0.8s ease 0.32s both;
}
.code-panel {
  margin: 0;
  max-width: 36rem;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  background: var(--ink);
  color: #d7dde5;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(12, 17, 23, 0.18);
  border: 1px solid rgba(255,255,255,0.06);
}
.c-muted { color: #7d8795; }
.c-key { color: #5eead4; }
.c-str { color: #f0c674; }

/* —— Omnigate-style orbit hero (editable badge text in HTML) —— */
.hero-orbit {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rise 0.85s ease 0.28s both;
}
.orbit-stage {
  position: relative;
  width: min(100%, 30rem);
  aspect-ratio: 1;
}
.orbit-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 88%; height: 88%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, rgba(15, 118, 110, 0.28), transparent 66%);
  pointer-events: none;
}
.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(12, 17, 23, 0.14);
  pointer-events: none;
}
.orbit-ring-outer { width: 84%; height: 84%; opacity: 0.85; }
.orbit-ring-inner { width: 58%; height: 58%; opacity: 0.7; }
.orbit-spin {
  position: absolute;
  top: 50%; left: 50%;
  width: 84%; height: 84%;
  transform: translate(-50%, -50%);
  animation: orbit-spin 48s linear infinite;
  pointer-events: none;
}
.orbit-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.4);
}
.orbit-dot-t { top: 0; left: 50%; width: 6px; height: 6px; transform: translateX(-50%); }
.orbit-dot-b { bottom: 0; left: 50%; width: 4px; height: 4px; transform: translateX(-50%); background: rgba(180, 120, 60, 0.45); }
.orbit-dot-r { top: 50%; right: 0; width: 4px; height: 4px; transform: translateY(-50%); }
.orbit-dot-l { top: 50%; left: 0; width: 4px; height: 4px; transform: translateY(-50%); }

.orbit-badge {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 10;
  transform: rotate(var(--a)) translateY(-198px);
}
.orbit-badge-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 17, 23, 0.1);
  background: rgba(247, 243, 235, 0.92);
  color: rgba(26, 31, 39, 0.9);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 28px -14px rgba(15, 118, 110, 0.45);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%) rotate(calc(var(--a) * -1));
  animation: orbit-float 5.5s ease-in-out infinite;
  animation-delay: var(--delay);
}
.orbit-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem; height: 1.35rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
  flex: none;
}
.orbit-ico svg { width: 0.8rem; height: 0.8rem; }

.orbit-core {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 20;
  width: 8rem; height: 9.5rem;
  transform: translate(-50%, -50%);
  animation: orbit-card 6.5s ease-in-out infinite;
}
.db-glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(15, 118, 110, 0.4), transparent 65%);
  filter: blur(22px);
  pointer-events: none;
}
.db-stack { position: relative; width: 100%; height: 100%; }
.db-layer {
  position: absolute;
  left: 0; right: 0;
  height: 40%;
  animation: db-breathe 3.6s ease-in-out infinite;
}
.db-layer-1 { top: 54%; height: 44%; z-index: 1; animation-delay: 0.7s; }
.db-layer-2 { top: 27%; z-index: 2; animation-delay: 0.35s; }
.db-layer-3 { top: 0; z-index: 3; animation-delay: 0s; }
.db-body {
  position: absolute;
  left: 6%; right: 6%;
  top: 28%; bottom: 0;
  border-radius: 0 0 48% 48%;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.95), #0f3f4a 55%, #0a2a36);
}
.db-layer-1 .db-body { top: 26%; bottom: 2%; }
.db-top {
  position: absolute;
  left: 6%; right: 6%;
  top: 0; height: 56%;
  border-radius: 50%;
  background: linear-gradient(135deg, #5eead4, #0f766e 45%, #115e59);
  box-shadow: 0 8px 18px -6px rgba(15, 118, 110, 0.55);
}
.db-layer-1 .db-top { height: 52%; }
.db-shine {
  position: absolute;
  left: 16%; right: 16%;
  top: 10%; height: 28%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.db-dot {
  position: absolute;
  z-index: 5;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  animation: db-dot-rise 2.6s ease-in-out infinite;
}
.db-dot-a { left: 26%; width: 6px; height: 6px; animation-delay: 0s; }
.db-dot-b { left: 50%; width: 4px; height: 4px; background: #99f6e4; animation-delay: 0.75s; }
.db-dot-c { left: 66%; width: 6px; height: 6px; background: #ccfbf1; animation-delay: 1.4s; }

@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes orbit-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(calc(var(--a) * -1)) translateY(0); }
  50% { transform: translate(-50%, -50%) rotate(calc(var(--a) * -1)) translateY(-6px); }
}
@keyframes orbit-card {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-4px); }
}
@keyframes db-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}
@keyframes db-dot-rise {
  0% { opacity: 0; transform: translateY(4.2rem); }
  15% { opacity: 1; }
  85% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(0.35rem); }
}

/* —— Cobol-style provider logo strip —— */
.providers {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.25rem 1.25rem 2rem;
  text-align: center;
}
.providers-title {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.providers-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1rem;
}
.provider-card {
  width: 3.35rem;
  height: 3.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(12, 17, 23, 0.06);
  box-shadow: 0 6px 18px -10px rgba(12, 17, 23, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.provider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(12, 17, 23, 0.35);
}
.provider-card img {
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
}

.strip {
  max-width: 1100px;
  margin: 0 auto 1rem;
  padding: 0 1.25rem 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.strip-4 { grid-template-columns: repeat(4, 1fr); }
.strip-item {
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
}
.strip-item strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.strip-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}
.section h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  letter-spacing: -0.03em;
}
.section-lede {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--muted);
}
.section-why .section-lede { max-width: 46rem; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.step-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 0.2rem;
}
.steps h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.steps p {
  margin: 0;
  color: var(--muted);
}

.why-pillars {
  display: grid;
  gap: 0;
  margin-bottom: 2.75rem;
}
.why-pillar {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.75rem 1.25rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.why-pillar:last-child { border-bottom: 1px solid var(--line); }
.why-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 0.35rem;
}
.why-pillar h3 {
  grid-column: 2;
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: -0.03em;
}
.why-lead {
  grid-column: 2;
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
}
.why-pillar > p:last-child {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 46rem;
}
.why-pillar strong { color: var(--text); font-weight: 600; }

.why-risk {
  margin-top: 0.5rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}
.why-risk > h3 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  letter-spacing: -0.03em;
}
.why-risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem 2rem;
  margin-bottom: 1.5rem;
}
.why-risk-grid h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.why-risk-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.why-risk-foot {
  margin: 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 40rem;
}

.faq {
  display: grid;
  gap: 0.55rem;
  max-width: 44rem;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0 0.35rem;
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 500;
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0.7rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.section-end {
  padding-bottom: 5rem;
}
.section-end .cta { margin-bottom: 0; }

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-brand {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 0.9rem 0 0.6rem;
}
.footer-links a:hover { color: var(--text); }
.footer-exchangelink {
  margin: 1rem auto 0.5rem;
  max-width: 900px;
  padding: 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.copy { font-size: 0.85rem; }

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem 0.75rem;
    gap: 1rem;
  }
  /* Keep copy first — do not push orbit above (that felt like a 2nd page) */
  .hero-orbit { max-width: 18rem; margin: 0.25rem auto 0; }
  .orbit-badge { transform: rotate(var(--a)) translateY(-130px); }
  .orbit-badge-inner { font-size: 0.65rem; padding: 0.3rem 0.5rem; }
  .orbit-core { width: 5.5rem; height: 6.5rem; }
  .code-panel { max-width: none; }
}
@media (max-width: 560px) {
  .hero-orbit { max-width: 15rem; }
  .orbit-badge { transform: rotate(var(--a)) translateY(-110px); }
  .strip,
  .strip-4 { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .nav-links { display: none; }
  .strip,
  .strip-4 { grid-template-columns: 1fr 1fr; }
  .why-risk-grid { grid-template-columns: 1fr; }
  .why-pillar {
    grid-template-columns: 2.5rem 1fr;
  }
  .brand-mark { font-size: 2.4rem; }
  .providers-row { gap: 0.65rem; }
  .provider-card { width: 2.9rem; height: 2.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-spin, .orbit-badge-inner, .orbit-core, .db-dot, .db-layer,
  .brand-mark, .hero h1, .lede, .cta, .hero-visual, .hero-orbit {
    animation: none !important;
  }
}
