/* OPHION Protocol — Data, Token, FAQ, CTA/Footer sections */

/* ============ DATA ============ */
.data-section { padding: 96px 0; }

.data-pill { margin-bottom: 28px; }
.data-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
}
.data-heading { max-width: 640px; margin: 0 0 56px; }

/* Copy pass 2026-08-12: amber "pre-launch simulation" pill, same pattern as
   the Machine's mach-badge-sim, marking the section's counters/tiles as
   illustrative until $OPH actually launches. One label for the whole
   section, not per-number. */
.sim-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 28px 10px;
  padding: 6px 13px;
  border: 1px solid rgba(217, 164, 65, .35);
  background: rgba(217, 164, 65, .12);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .02em;
  color: #d9a441;
  cursor: help;
}
.sim-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #d9a441;
  box-shadow: 0 0 8px rgba(217, 164, 65, .6);
}

.data-cards {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  margin-bottom: 64px;
}
.data-card {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px;
}
.data-card--dark {
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(122, 63, 242, 0.14), rgba(0,0,0,0) 55%),
    linear-gradient(165deg, #1c1c1c 0%, #0a0a0a 55%, #000 100%);
}
.data-card--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 38%, rgba(0,0,0,0.9) 100%);
  z-index: 1;
  pointer-events: none;
}
.data-card--photo { padding-bottom: 32px; }
.data-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
.data-card-bg--treasury {
  object-position: center bottom;
  opacity: 0.8;
}
.data-card--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 42%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}
.data-card-top {
  position: relative;
  z-index: 3;
}
.data-counter {
  display: block;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.data-card--photo .data-counter { color: #0d0d0d; }
.data-card-caption {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--ink-65);
}
.data-card--photo .data-card-caption { color: rgba(20,16,10,0.72); }
.data-card-label {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-80);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
}
.data-card--photo .data-card-label {
  color: #16130d;
  background: rgba(255,255,255,0.5);
}

.data-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.data-stat {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.data-stat:first-child { padding-left: 0; border-left: none; }
.data-stat-value {
  display: block;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.data-stat-value em {
  font-style: normal;
  color: var(--ink-65);
  font-size: 0.62em;
  margin-left: 1px;
}
.data-stat-label {
  display: block;
  font-size: 14px;
  color: var(--ink-65);
}

/* ============ TOKEN ============ */
.token-section { padding: 96px 0; }

.token-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
}
.token-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
}
.token-pill { margin-bottom: 28px; }
.token-heading { margin: 0; }
.token-sub { max-width: 300px; text-align: right; margin: 0; }

.token-card {
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 72px;
}

.token-donut-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.token-donut {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: conic-gradient(
    #FF007A 0% 60%,
    #FF4DA6 60% 75%,
    #9B6DFF 75% 85%,
    #7A3FF2 85% 95%,
    #cbb26a 95% 100%
  );
  box-shadow: 0 0 60px rgba(255, 0, 122, .25);
}
.token-donut::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  pointer-events: none;
}
.token-donut::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}
.token-donut-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62%; height: 62%;
  border-radius: 50%;
  background: var(--card-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.token-coin3d {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
}
.token-donut-caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 0;
  text-align: center;
}
.token-donut-value {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.token-donut-unit {
  font-size: 13px;
  color: var(--ink-65);
}

.token-rows {
  flex: 1;
  list-style: none;
}
.token-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  transition: background .2s ease;
}
.token-row:hover { background: rgba(255, 255, 255, .04); }
.token-row:last-child { border-bottom: none; padding-bottom: 0; }
.token-row:first-child { padding-top: 0; }
.token-row-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.token-row-dot--1 { background: #FF007A; }
.token-row-dot--2 { background: #FF4DA6; }
.token-row-dot--3 { background: #9B6DFF; }
.token-row-dot--4 { background: #7A3FF2; }
.token-row-dot--5 { background: #cbb26a; }
.token-row-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.token-row-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.token-row-note {
  font-size: 13px;
  color: var(--ink-65);
}
.token-row-note em { color: var(--ink-80); font-style: italic; }
.token-row-pct {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  min-width: 48px;
  text-align: right;
}

/* ============ FAQ ============ */
.faq-section { padding: 96px 0; }

.faq-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
}
.faq-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}
.faq-pill { margin-bottom: 28px; }
.faq-heading { margin: 0; max-width: 560px; }
.faq-sub { max-width: 300px; text-align: right; margin: 0; }

.faq-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.faq-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.faq-cat {
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink-65);
  transition: background .2s ease, color .2s ease;
}
.faq-cat:hover { color: var(--ink); }
.faq-cat.is-active {
  background: var(--card-solid);
  color: var(--ink);
  font-weight: 500;
}
.faq-contact { padding: 24px; }
.faq-contact-title { font-size: 20px; font-weight: 500; color: var(--ink); margin: 0 0 8px; }
.faq-contact-sub { font-size: 14px; color: var(--ink-65); margin: 0 0 20px; }
.faq-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s ease, gap .2s ease;
}
.faq-contact-link:hover { color: var(--accent-bright); gap: 10px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 22px 24px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
}
.faq-caret {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-65);
  transition: transform .25s ease;
}
.faq-item.is-open .faq-caret { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.is-open .faq-a { max-height: 260px; }
.faq-a p {
  margin: 0;
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-65);
}

/* ============ CTA ============ */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 140px 0 96px;
}
.cta-terminal-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 30%;
  opacity: 0.4;
  z-index: 0;
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 42%, rgba(0,0,0,1) 78%);
  mask-image: linear-gradient(100deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 42%, rgba(0,0,0,1) 78%);
}
.cta-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(55% 55% at 25% 30%, rgba(122, 63, 242, 0.14), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 75%, rgba(0,0,0,0.95) 100%);
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.cta-heading { margin: 0 0 16px; }
.cta-sub { max-width: 460px; margin: 0 0 32px; }
.cta-btn { display: inline-block; margin-bottom: 36px; color: #fff; }

.cta-ca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 8px 8px 18px;
  margin: 0 0 28px;
}
.cta-ca-text {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  color: var(--ink-80);
  letter-spacing: 0.01em;
}
.cta-ca-copy {
  background: var(--card-solid);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  transition: background .2s ease, border-color .2s ease;
}
.cta-ca-copy:hover { background: rgba(255,255,255,0.08); border-color: var(--ink-65); }

.cta-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-80);
  transition: color .2s ease;
}
.cta-link:hover { color: var(--ink); }
.cta-link-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  background: rgba(255,255,255,0.03);
  flex-shrink: 0;
}
.cta-link-icon--dots { border-style: dotted; }
.cta-link-icon--img {
  width: 40px; height: auto;
  border: none;
  background: none;
  border-radius: 0;
  object-fit: contain;
}

/* ============ FOOTER ============ */
.footer {
  position: relative;
  background: #000;
  overflow: hidden;
}
.footer-hills {
  line-height: 0;
  overflow: hidden;
  margin-bottom: -40px;
}
.footer-hills img {
  width: 100%;
  height: auto; /* natural aspect — no flat-line crop of the ridge */
  opacity: 1;
  display: block;
}
.footer-bar { padding-top: 56px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo { width: 26px; height: auto; }
.footer-tagline { font-size: 15px; color: var(--ink-65); }
.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.footer-col a {
  font-size: 14px;
  color: var(--ink-65);
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--ink); }
.footer-fine {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0 40px;
}
.footer-copyright { font-size: 13px; color: var(--ink-40); }
.footer-disclaimer { font-size: 13px; color: var(--ink-40); margin: 0; text-align: right; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .data-section { padding: 64px 0; }
  .data-heading { margin-bottom: 40px; }
  .data-cards { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
  .data-card { min-height: 420px; padding: 24px; }
  .data-stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .data-stat:nth-child(2) { border-left: 1px solid var(--line); }
  .data-stat:nth-child(3) { border-left: none; padding-left: 0; }

  .token-section { padding: 64px 0; }
  .token-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .token-sub { text-align: left; max-width: none; }
  .token-card { flex-direction: column; gap: 40px; padding: 32px 24px; }
  .token-donut { width: 230px; height: 230px; }

  .faq-section { padding: 64px 0; }
  .faq-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .faq-sub { text-align: left; max-width: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-categories { flex-direction: row; flex-wrap: wrap; }

  .cta-section { padding: 96px 0 72px; }
  .cta-inner { max-width: none; }
  .cta-terminal-img { object-position: 85% 30%; opacity: 0.28; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-cols { gap: 40px; }
  .footer-fine { flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { text-align: left; }

  /* Tap targets: bumped to ~44px via padding, text stays centered */
  .faq-contact-link {
    min-height: 44px;
    padding: 10px 4px;
  }

  .footer-col a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
  }
}

@media (max-width: 390px) {
  .data-stats { grid-template-columns: 1fr 1fr; }

  .token-card { padding: 24px 18px; }
  .token-donut { width: 200px; height: 200px; max-width: 100%; }
  .token-row-label { font-size: 15px; }

  .faq-q { padding: 18px 18px; font-size: 15px; }
  .faq-a p { padding: 0 18px 18px; }

  .cta-ca { flex-wrap: wrap; padding: 10px 12px; }
  .cta-links { gap: 20px; }

  .footer-cols { gap: 28px; flex-direction: column; }
}

/* mobile: CTA links were 28px tall — lift to a 44px tap target */
@media (max-width: 768px) {
  .cta-link { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 14px; }
  .cta-links { gap: 10px; flex-wrap: wrap; }
}
