/* ================= TOKENS ================= */
:root {
  --bg: #fdfefe;
  --surface: #ffffff;
  --tint: #eaf6f5;
  --line: #d3ebe9;
  --teal: #3a9e9b;
  --teal-dark: #2a7f7c;
  --teal-light: #6cc3bf;
  --text: #141818;
  --muted: #5d6b6a;

  --f-display: "Jost", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 60, 60, 0.06), 0 10px 30px -12px rgba(30, 110, 108, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--text);
  line-height: 1.65;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 70% 40% at 0% 60%, rgba(108, 195, 191, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 90%, rgba(108, 195, 191, 0.12), transparent 70%),
    var(--bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.mono {
  font-family: var(--f-mono);
}

.accent {
  color: var(--teal);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-light), var(--teal) 55%, var(--teal-dark));
  box-shadow: 0 8px 22px -8px rgba(42, 127, 124, 0.6);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px -8px rgba(42, 127, 124, 0.7);
}

.btn-ghost {
  color: var(--teal-dark);
  background: var(--surface);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--tint);
  border-color: var(--teal-light);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.btn-icon:hover {
  background: var(--tint);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* ================= NAV ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(253, 254, 254, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.brand-name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= HERO ================= */
.hero {
  padding-bottom: clamp(48px, 7vw, 80px);
}

.hero-banner img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(820px, calc(100% - 32px));
  margin: clamp(-36px, -2.5vw, -12px) auto 0;
  padding: clamp(28px, 4vw, 44px) clamp(18px, 4vw, 44px);
  text-align: center;
}

.title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticker {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  letter-spacing: 0.16em;
  color: var(--teal);
}

.tagline {
  max-width: 520px;
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-top: 4px;
  padding: 0;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}

.ca-tag,
.ca-copy {
  flex: none;
  padding: 10px 16px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.ca-tag {
  color: var(--teal-dark);
}

.ca-code {
  min-width: 0;
  padding: 10px 6px;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-copy {
  color: #fff;
  background: var(--teal);
  transition: background 0.15s ease;
}

.ca-pill:hover .ca-copy {
  background: var(--teal-dark);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

/* ================= SECTIONS ================= */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) 16px;
}

.eyebrow {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  color: var(--teal);
}

.h2 {
  margin: 10px 0 18px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.2;
}

/* Story */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.story-copy p {
  margin: 0 0 14px;
  font-size: 1.08rem;
  color: var(--muted);
}

.story-copy strong {
  color: var(--text);
}

.story-logo {
  margin: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.story-logo img {
  width: 100%;
  border-radius: 16px;
}

/* Ribbon values */
.ribbon,
.buy {
  text-align: center;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 24px;
}

.value-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 6px;
  color: var(--teal-dark);
  background: var(--tint);
  border-radius: 50%;
}

.value-icon svg {
  width: 24px;
  height: 24px;
}

.value h3,
.step h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.3rem;
}

.value p,
.step p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
}

/* How to buy */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--teal-light);
}

.step-num {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--teal);
}

.mini-ca {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 0.76rem;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.mini-ca span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-ca b {
  flex: none;
  color: var(--teal-dark);
}

/* Join */
.join {
  padding: 0 16px clamp(72px, 10vw, 110px);
}

.join-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  background: linear-gradient(180deg, var(--surface), var(--tint));
}

.join-panel img {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.join-panel p {
  margin: 0 0 22px;
  color: var(--muted);
}

/* ================= FOOTER ================= */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 16px 34px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--tint);
}

.footer img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.footer-name {
  margin: 6px 0 0;
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.footer-name span {
  color: var(--teal);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 999px;
  box-shadow: 0 10px 30px -8px rgba(42, 127, 124, 0.6);
  opacity: 0;
  transform: translate(-50%, 140%);
  transition: opacity 0.2s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .story,
  .values {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-logo {
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .brand-name {
    display: none;
  }

  .hero-panel {
    margin-top: 12px;
  }

  .cta .btn {
    flex: 1 1 100%;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
