/* Home page. Tokens, buttons, footer and the tools-hub grid live in theme.css. */

main {
  display: block;
}

section {
  padding: 0 24px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 92px 24px 72px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  background: radial-gradient(
    ellipse at center,
    var(--accent-soft) 0%,
    rgba(62, 156, 147, 0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
}


.hero-title {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 700;
  margin: 0 0 18px;
}

.hero-lead {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-cta .btn {
  padding: 14px 26px;
  font-size: 15.5px;
}

/* two-column on desktop; the visual balances the empty right half */
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-content {
  max-width: 660px;
}

/* product shot */
.hero-visual { display: block; }
.hero-visual img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

/* ---------- market stats ---------- */
.market {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.stat-link { display: block; text-decoration: none; color: inherit; transition: border-color 0.18s ease, transform 0.18s ease; }
.stat-link:hover, .stat-link:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.stat-link .stat-meta { color: var(--accent-2); font-weight: 600; }
.nowrap { white-space: nowrap; }
.stat-main small { font-size: 0.55em; color: var(--ink-soft); font-weight: 500; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.stat-head {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 12px;
}

.stat-main {
  white-space: nowrap; /* a price must never break across lines */
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.stat-sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.stat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-dim);
}

.price-up { color: var(--pos); font-weight: 600; }
.price-down { color: var(--neg); font-weight: 600; }

/* ---------- section heads ---------- */
.section-head {
  max-width: 1080px;
  margin: 0 auto 26px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 8px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0;
}

.tools-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ---------- mission ---------- */
.mission-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}

.mission-inner {
  max-width: 760px; /* ~700px reading column + padding */
  margin: 0 auto;
}

.mission-section h2 {
  font-size: clamp(26px, 4vw, 32px);
  margin: 0 0 12px;
  text-align: center;
}

.mission-lead {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 auto 32px;
  max-width: 640px;
  text-align: center;
}

/* 3-item value-prop row */
.value-props {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.value-prop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.vp-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 12px;
}

.vp-icon svg { width: 20px; height: 20px; }

.value-prop h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.value-prop p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* collapsible full essay */
.mission-more {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.mission-more > summary {
  cursor: pointer;
  list-style: none;
  display: flex; /* full row so it can center; the essay below stays left-aligned for reading */
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-2);
}

.mission-more > summary::-webkit-details-marker { display: none; }

.mission-more > summary::after {
  content: "▾";
  font-size: 12px;
  transition: transform 0.18s ease;
}

.mission-more[open] > summary::after { transform: rotate(180deg); }

.mission-essay {
  line-height: 1.75;
  padding-bottom: 8px;
}

.mission-essay h3 {
  font-size: 19px;
  margin: 24px 0 10px;
  color: var(--ink);
}

.mission-essay p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 16px;
}

.mission-essay strong { color: var(--ink); font-weight: 600; }


/* ---------- scroll fade (content is visible by default; this only replays) ---------- */
.fade-in {
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .hero { padding: 60px 20px 48px; }
  .content-wrapper { padding: 26px 22px; }
  section { padding-left: 20px; padding-right: 20px; }
}
