/* Retirement plan ($401K) — Official Unofficial Market Memo */

:root {
  --green: #00c805;
  --green-dark: #00a004;
  --green-soft: rgba(0, 200, 5, 0.12);
  --paper: #f6f3ec;
  --paper-dark: #ebe6db;
  --ink: #1a1a18;
  --ink-muted: #5c5a54;
  --ink-faint: #8a877f;
  --border: rgba(26, 26, 24, 0.12);
  --shadow: 0 24px 64px rgba(26, 26, 24, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max-width: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(246, 243, 236, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.logo-text-nav {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 0.9rem;
  color: var(--ink-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  border-color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Banner */

.banner {
  position: relative;
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--paper-dark);
}

.banner-img {
  width: 100%;
  height: clamp(180px, 28vw, 320px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.banner-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px clamp(20px, 4vw, 48px);
  background: linear-gradient(transparent, rgba(26, 26, 24, 0.45));
  pointer-events: none;
}

.banner-badge {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

/* Hero */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px) 64px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.form-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.form-badge.muted {
  color: var(--ink-muted);
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 600;
  font-style: normal;
  margin: 0 0 24px;
  color: var(--green-dark);
  letter-spacing: -0.01em;
}

.hero-desc {
  max-width: 560px;
  margin: 0 0 32px;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 200, 5, 0.28);
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 12px 32px rgba(0, 200, 5, 0.35);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.logo-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.logo-mark-img {
  width: 88px;
  height: 88px;
  display: block;
  border-radius: 18px;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
}

.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--green);
}

.exhibit-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 0;
}

/* Ticker */

.ticker-wrap {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: #fff;
  padding: 14px 0;
}

.ticker {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.ticker span.sep {
  margin: 0 20px;
  color: var(--ink-faint);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */

.section {
  padding: clamp(64px, 10vw, 112px) clamp(20px, 4vw, 48px);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 720px;
}

.section-lead {
  max-width: 620px;
  margin: 0 0 40px;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.section-lead code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--paper-dark);
  border-radius: 4px;
}

/* Dexscreener */

.chart-section {
  background: #fff;
  border-top: 1px solid var(--border);
}

.dexscreener-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 72%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .dexscreener-wrap {
    padding-bottom: 56%;
  }
}

.dexscreener-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.chart-external-link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green-dark);
  transition: opacity 0.2s;
}

.chart-external-link:hover {
  opacity: 0.75;
}

/* Memo */

.memo {
  background: #fff;
  border-top: 1px solid var(--border);
}

.memo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.memo-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.memo-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 12px;
}

.memo-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.memo-card p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.receipt {
  max-width: 380px;
  padding: 28px 32px;
  background: var(--paper);
  border: 1px dashed var(--ink-faint);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.receipt-header {
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--ink-faint);
}

.receipt-rows {
  margin: 0;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dotted rgba(26, 26, 24, 0.15);
}

.receipt-row:last-child {
  border-bottom: none;
}

.receipt-row dt {
  color: var(--ink-muted);
  margin: 0;
}

.receipt-row dd {
  margin: 0;
  text-align: right;
}

/* Gallery */

.gallery {
  background: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
}

/* Social */

.social {
  background: #fff;
  border-top: 1px solid var(--border);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.social-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 200, 5, 0.12);
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

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

.social-icon-dex,
.social-icon-uni {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 8px;
}

.social-icon-dex {
  background: var(--green);
  color: #fff;
}

.social-icon-uni {
  background: #ff007a;
  color: #fff;
}

.social-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.social-handle {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.social-cta {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green-dark);
}

/* Allocation */

.allocation {
  background: #fff;
  border-top: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
}

.alloc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.alloc-table th,
.alloc-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.alloc-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.6);
}

.alloc-table tbody tr:last-child td {
  border-bottom: none;
}

.alloc-table tbody tr:hover {
  background: rgba(0, 200, 5, 0.04);
}

.alloc-table td.mono {
  font-weight: 600;
  color: var(--green-dark);
}

/* Contract */

.contract {
  background: var(--ink);
  color: #fff;
}

.contract-inner {
  text-align: center;
}

.contract .section-num {
  color: rgba(255, 255, 255, 0.5);
}

.contract-address {
  font-size: clamp(0.85rem, 2.5vw, 1.15rem);
  font-weight: 500;
  word-break: break-all;
  margin: 0 0 32px;
  line-height: 1.5;
  color: var(--green);
}

.contract-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn-on-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-on-dark:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.filed-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
}

.contract-logo {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  opacity: 0.08;
  user-select: none;
}

/* Footer */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 24px 56px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
}

.footer-logo {
  border-radius: 8px;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.site-footer a {
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--green-dark);
}

/* Toast */

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 12px 24px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 200;
}

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

/* Responsive */

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

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

  .gallery-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .logo-card {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .receipt {
    max-width: 100%;
  }

  .gallery-grid-3 {
    grid-template-columns: 1fr;
  }

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

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

  .ticker {
    animation: none;
  }
}
