/* Maretto – Landingpage
   Farben stammen aus der Münze: Waldgrün, Gold, Fuchsorange, Creme, Kohle. */

:root {
  --forest: #183A2A;
  --forest-deep: #10281D;
  --gold: #F2B632;
  --orange: #E07A2E;
  --cream: #FFF4DC;
  --ink: #1E1A16;

  --bg: #FCFBF7;
  --bg-alt: #F3F0E6;
  --text: #1D1D1F;
  --text-2: #5A5A54;
  --line: rgba(30, 26, 22, 0.14);
  --accent-text: #9A4A0C;
  --c-mining: #F2B632;
  --c-reserve: #45454C;
  --c-dev: #E07A2E;
  --c-community: #2F7D57;
  --c-empty: rgba(30, 26, 22, 0.08);
  --nav-bg: rgba(252, 251, 247, 0.8);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", monospace;

  --px: 8px; /* ein „Pixel“ der Marke */
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1511;
    --bg-alt: #131E18;
    --text: #F4F1E8;
    --text-2: #A7AEA6;
    --line: rgba(255, 244, 220, 0.16);
    --accent-text: #F2B632;
    --c-reserve: #8D8D97;
    --c-community: #4FA97B;
    --c-empty: rgba(255, 244, 220, 0.1);
    --nav-bg: rgba(13, 21, 17, 0.78);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 2.5rem, 61.25rem); margin-inline: auto; }
.narrow { max-width: 43rem; }
.narrow-left { max-width: 40rem; }
.mono { font-family: var(--mono); font-size: 0.94em; letter-spacing: -0.01em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: 0.5rem;
  background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Testnet-Hinweis ---------- */

.notice {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  background: var(--forest-deep); color: var(--cream);
  font-size: 0.8125rem; line-height: 1.35; text-align: center;
}
.notice-mark { flex: none; width: var(--px); height: var(--px); background: var(--gold); }

/* ---------- Navigation ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 3.25rem; }

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 2.75rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.75rem;
  font-size: 0.875rem; color: var(--text-2); text-decoration: none; border-radius: 0.5rem;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

@media (max-width: 43.75em) {
  .nav-links li:not(:nth-last-child(-n+2)) { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--forest);
  color: var(--cream);
  padding: clamp(3rem, 8vw, 6.5rem) 0 calc(clamp(3.5rem, 8vw, 7rem) + var(--px) * 2);
  overflow: hidden;
}
/* Pixelkante: der Seitenhintergrund wächst in Stufen in das Grün hinein */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--px) * 2);
  background:
    linear-gradient(var(--bg), var(--bg)) 0 100% / 100% var(--px) no-repeat,
    repeating-linear-gradient(90deg, var(--bg) 0 var(--px), transparent var(--px) calc(var(--px) * 2)) 0 0 / 100% var(--px) no-repeat;
}

.hero-inner {
  display: grid; align-items: center; gap: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.01em;
  color: var(--gold);
}
.status-dot { flex: none; width: var(--px); height: var(--px); background: var(--gold); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.6vw, 5rem);
  line-height: 1.04; letter-spacing: -0.028em; font-weight: 700;
  text-wrap: balance;
}
.lede {
  margin-top: 1.5rem; max-width: 33rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.42;
  color: rgba(255, 244, 220, 0.82);
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; margin-top: 2.25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0 1.4rem;
  font-size: 1.0625rem; font-weight: 500; text-decoration: none; border-radius: 62rem;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #FFC94A; }
.btn-primary:active { transform: scale(0.98); }
.btn-quiet { padding-inline: 0.25rem; color: var(--gold); }
.btn-quiet:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.coin {
  justify-self: center;
  width: min(100%, 26rem); padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
.coin img {
  width: 100%;
  filter: drop-shadow(calc(var(--px) * 1.5) calc(var(--px) * 1.5) 0 rgba(0, 0, 0, 0.32));
  animation: bob 2.4s steps(4) infinite alternate;
}
@keyframes bob { to { transform: translateY(calc(var(--px) * -1.5)); } }
.coin.is-flipping img { animation: flip 0.72s steps(12); }
@keyframes flip {
  0% { transform: scaleX(1); }
  25% { transform: scaleX(0.08) translateY(calc(var(--px) * -4)); }
  50% { transform: scaleX(-1) translateY(calc(var(--px) * -6)); }
  75% { transform: scaleX(0.08) translateY(calc(var(--px) * -4)); }
  100% { transform: scaleX(1); }
}

@media (max-width: 53.75em) {
  .hero-inner { grid-template-columns: 1fr; }
  .coin { order: -1; width: min(62vw, 17rem); justify-self: start; }
}

/* ---------- Abschnitte ---------- */

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  margin-bottom: 0.75rem;
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em;
  color: var(--accent-text);
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4.4vw, 3rem);
  line-height: 1.08; letter-spacing: -0.022em; font-weight: 700;
  text-wrap: balance;
}
h3 { font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.012em; font-weight: 600; }

.prose { margin-top: 1.25rem; font-size: 1.1875rem; line-height: 1.5; color: var(--text-2); }
.prose + .prose { margin-top: 1rem; }

/* Status-Marken: Form und Wort tragen die Bedeutung, nicht nur die Farbe */
.tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.8125rem; color: var(--text-2); white-space: nowrap;
}
.tag::before { content: ""; flex: none; width: var(--px); height: var(--px); border: 2px solid currentColor; }
.tag-set { color: var(--text); }
.tag-set::before { background: var(--c-community); border-color: var(--c-community); }
.tag-plan::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.tag-open::before { border-style: dotted; }

/* ---------- Datenblatt ---------- */

.sheet-title { margin-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: 0.9rem; border-bottom: 2px solid var(--text); }
.sheet > div {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto;
  gap: 0.25rem 1.5rem; align-items: baseline;
  padding: 0.95rem 0; border-bottom: 1px solid var(--line);
}
.sheet dt { color: var(--text-2); }
.sheet dd:not(.tag) { font-weight: 500; }

@media (max-width: 43.75em) {
  .sheet > div { grid-template-columns: 1fr auto; }
  .sheet dt { grid-column: 1 / -1; font-size: 0.875rem; }
}

/* ---------- Technik ---------- */

.features {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--line); border: 1px solid var(--line);
}
.feature { display: flex; flex-direction: column; padding: clamp(1.5rem, 3.4vw, 2.5rem); background: var(--bg-alt); }
.feature p:not(.tag) { margin-top: 0.75rem; color: var(--text-2); }
.feature .tag { margin-top: auto; padding-top: 1.5rem; }
@media (max-width: 43.75em) { .features { grid-template-columns: 1fr; } }

/* ---------- Coinomics ---------- */

.split {
  display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; aspect-ratio: 1; }
.grid span { background: var(--c-empty); transition: background-color 0.12s steps(1); }
.grid.is-filled .m { background: var(--c-mining); }
.grid.is-filled .r { background: var(--c-reserve); }
.grid.is-filled .d { background: var(--c-dev); }
.grid.is-filled .c { background: var(--c-community); }

.legend { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.legend th, .legend td { padding: 0.9rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.legend tbody th { font-weight: 600; }
.legend td { text-align: right; padding-left: 1rem; white-space: nowrap; }
.legend td:last-child { font-family: var(--mono); font-size: 0.94em; color: var(--text-2); }
.key { display: inline-block; width: 0.75rem; height: 0.75rem; margin-right: 0.7rem; }
.key-mining { background: var(--c-mining); }
.key-reserve { background: var(--c-reserve); }
.key-dev { background: var(--c-dev); }
.key-community { background: var(--c-community); }
.footnote { margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.5; color: var(--text-2); }

@media (max-width: 53.75em) {
  .split { grid-template-columns: 1fr; }
  .grid { max-width: 22rem; }
}
@media (max-width: 26em) {
  .legend, .legend tbody { display: block; }
  .legend tbody tr { display: grid; grid-template-columns: 1fr auto; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .legend tbody th, .legend td { padding: 0; border: 0; }
  .legend td:last-child { grid-column: 1; padding-left: 1.45rem; text-align: left; }
}

/* ---------- Roadmap ---------- */

.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem);
}
.step { position: relative; padding-top: 1.75rem; border-top: 2px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: calc(var(--px) * -0.5 - 1px); left: 0;
  width: var(--px); height: var(--px); background: var(--bg-alt); border: 2px solid var(--text-2);
}
.step.is-current { border-top-color: var(--accent-text); }
.step.is-current::before { background: var(--gold); border-color: var(--accent-text); }
.step-state { margin-bottom: 0.5rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--text-2); }
.step.is-current .step-state { color: var(--accent-text); }
.step p:last-child { margin-top: 0.6rem; font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); }

@media (max-width: 53.75em) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 2rem 2rem; border-top: 0; border-left: 2px solid var(--line); }
  .step:last-child { padding-bottom: 0; }
  .step::before { top: 0.35rem; left: calc(var(--px) * -0.5 - 1px); }
  .step.is-current { border-left-color: var(--accent-text); }
}

/* ---------- Klartext ---------- */

.plain {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.plain li { padding-top: 1.25rem; border-top: 2px solid var(--text); }
.plain p { margin-top: 0.6rem; color: var(--text-2); }
@media (max-width: 53.75em) { .plain { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.75rem; padding: 0.9rem 0;
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.75rem; height: 0.75rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--text-2); }

/* ---------- Footer ---------- */

.footer { padding: 3rem 0 3.5rem; background: var(--forest-deep); color: rgba(255, 244, 220, 0.72); }
.footer .wrap { display: grid; grid-template-columns: auto minmax(0, 34rem); justify-content: space-between; gap: 2rem; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; color: var(--cream); line-height: 1.3; }
.footer-brand .mono { color: var(--gold); }
.footer-note { font-size: 0.8125rem; line-height: 1.55; }
@media (max-width: 43.75em) { .footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coin img, .status-dot { animation: none !important; }
  .grid span, .btn, .faq summary::after { transition: none; }
}
