:root {
  --ink: #1b1f2a;
  --ink-soft: #364055;
  --muted: #5b677d;
  --paper: #f6f1e8;
  --paper-soft: #f1f5ff;
  --accent: #0b6f6b;
  --accent-strong: #0aa39a;
  --accent-warm: #f7b267;
  --border: rgba(17, 26, 41, 0.12);
  --shadow: 0 20px 40px rgba(15, 20, 32, 0.12);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Rubik", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 620px at 10% -10%, rgba(69, 160, 255, 0.18), transparent 70%),
    radial-gradient(900px 520px at 90% 10%, rgba(255, 196, 122, 0.24), transparent 70%),
    var(--paper);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
}

code,
pre {
  font-family: "Azeret Mono", "Cascadia Mono", "Consolas", monospace;
}

.glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.glow-left {
  left: -220px;
  top: -200px;
  background: radial-gradient(circle, rgba(90, 200, 190, 0.4), transparent 70%);
}

.glow-right {
  right: -200px;
  top: -160px;
  background: radial-gradient(circle, rgba(255, 196, 122, 0.4), transparent 70%);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(23, 34, 54, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 34, 54, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  z-index: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 7%;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: conic-gradient(from 120deg, var(--accent), var(--accent-strong), var(--accent-warm));
  display: grid;
  place-items: center;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(12, 100, 95, 0.25);
}

.brand-title {
  font-family: "Bricolage Grotesque", "Rubik", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 80%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(240px, 0.8fr);
  gap: 36px;
  padding: 32px 7% 12px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.hero-title {
  font-family: "Bricolage Grotesque", "Rubik", sans-serif;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.05;
  margin: 12px 0 16px;
}

.hero-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.hero-actions {
  margin: 24px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-foot {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(11, 111, 107, 0.25);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--border);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-1px);
}

.hero-panels {
  display: grid;
  gap: 18px;
}

.panel {
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

.panel-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.ledger {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
}

.ledger li {
  padding-left: 18px;
  position: relative;
}

.ledger li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-warm);
}

.hash-panel code {
  display: block;
  font-size: 12px;
  color: #0f172a;
  background: rgba(11, 111, 107, 0.08);
  padding: 10px 12px;
  border-radius: 12px;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.hash-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.section {
  padding: 44px 7% 20px;
}

.section-head h2 {
  font-family: "Bricolage Grotesque", "Rubik", sans-serif;
  font-size: clamp(24px, 2.8vw, 34px);
  margin-bottom: 8px;
}

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

.feature-grid,
.security-grid {
  margin-top: 24px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card,
.security-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(12, 18, 32, 0.08);
  min-width: 0;
}

.feature-card h3,
.security-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
}

.feature-card p,
.security-card p {
  margin: 0;
  color: var(--ink-soft);
}

.hash-callout {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.85);
  min-width: 0;
}

.hash-callout pre {
  margin: 0;
  background: #141a28;
  color: #d9e2ff;
  padding: 12px 14px;
  border-radius: 12px;
  overflow-x: auto;
  max-width: 100%;
}

.hash-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 600;
}

.download {
  margin: 32px 7% 48px;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.9));
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 0.8fr);
  gap: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.download-copy p {
  color: var(--ink-soft);
  margin: 0;
}

.download-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #ffffff;
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.download-card code {
  display: block;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.site-footer {
  padding: 20px 7% 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid rgba(20, 26, 40, 0.1);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.8s ease-out forwards;
}

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

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .download {
    grid-template-columns: 1fr;
  }

  .hash-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .site-header {
    padding: 20px 6%;
  }

  .hero,
  .section {
    padding-left: 6%;
    padding-right: 6%;
  }

  .download {
    margin-left: 6%;
    margin-right: 6%;
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .hash-callout {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }

  .hash-callout pre {
    width: 100%;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .hash-panel code,
  .download-card code {
    white-space: normal;
    font-size: 11px;
  }

  .download {
    padding: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
