/* === Variables === */
:root {
  --bg: #0D1B2E;
  --bg-card: #0F2035;
  --gold: #C4A84A;
  --gold-light: #D4B860;
  --white: #FFFFFF;
  --white-60: rgba(255, 255, 255, 0.6);
  --white-20: rgba(255, 255, 255, 0.2);
  --font-jp: 'Noto Serif JP', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* === Stars canvas === */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === Layout === */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 168, 74, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white-20);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.05);
}

/* === Hero === */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.9s ease both;
}

.logo-yori {
  font-family: var(--font-jp);
  font-size: clamp(96px, 18vw, 156px);
  color: var(--gold);
  line-height: 1;
  text-shadow:
    0 0 18px rgba(196, 168, 74, 0.75),
    0 0 48px rgba(196, 168, 74, 0.38),
    0 0 96px rgba(196, 168, 74, 0.16);
  margin-bottom: 20px;
  user-select: none;
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--white-60);
  font-weight: 300;
  margin-bottom: 6px;
}

.tagline {
  font-family: var(--font-jp);
  font-size: clamp(0.875rem, 2vw, 1.05rem);
  color: var(--gold);
  opacity: 0.82;
  letter-spacing: 0.06em;
  margin-bottom: 48px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* === How it works === */
.how-it-works {
  position: relative;
  z-index: 1;
  padding: 112px 0;
}

.how-it-works h2,
.feed-section h2 {
  font-size: clamp(1.3rem, 3vw, 1.875rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 64px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.step {
  text-align: center;
  padding: 0 8px;
}

.step-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 18px;
  line-height: 1;
}

.step h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--white);
  letter-spacing: 0.02em;
}

.step p {
  font-size: 0.875rem;
  color: var(--white-60);
  line-height: 1.55;
}

/* === Feed === */
.feed-section {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  padding: 112px 0;
}

.feed-subtitle {
  text-align: center;
  color: var(--white-60);
  font-size: 0.9rem;
  margin-top: -44px;
  margin-bottom: 52px;
}

.feed {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
}

.feed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 88px;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
  pointer-events: none;
  z-index: 2;
}

.feed-item {
  display: grid;
  grid-template-columns: 6rem 12rem 1fr 8rem;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.feed-item:nth-child(1) { transition-delay: 0.04s; }
.feed-item:nth-child(2) { transition-delay: 0.10s; }
.feed-item:nth-child(3) { transition-delay: 0.17s; }
.feed-item:nth-child(4) { transition-delay: 0.24s; }
.feed-item:nth-child(5) { transition-delay: 0.31s; }

.feed-time {
  font-size: 0.775rem;
  color: var(--white-60);
}

.feed-addrs {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 5px;
}

.addr {
  color: rgba(255, 255, 255, 0.72);
}

.arrow {
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.7rem;
}

.feed-msg {
  font-style: italic;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-private {
  color: var(--white-60);
  font-style: normal;
}

.feed-amount {
  font-size: 0.775rem;
  color: var(--gold);
  text-align: right;
  letter-spacing: 0.04em;
}

/* === CTA === */
.cta {
  position: relative;
  z-index: 1;
  padding: 128px 0;
  text-align: center;
}

.cta-quote {
  font-family: var(--font-jp);
  font-size: clamp(1.25rem, 4vw, 2.1rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 44px;
  letter-spacing: 0.02em;
}

.cta-soon {
  margin-top: 24px;
  font-size: 0.825rem;
  color: var(--white-60);
  letter-spacing: 0.06em;
}

/* === Footer === */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 52px 0 44px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-jp);
  font-size: 1.625rem;
  color: var(--gold);
  opacity: 0.65;
  user-select: none;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.85rem;
  list-style: none;
}

.footer-links a {
  color: var(--white-60);
  transition: color 0.18s;
}

.footer-links a:hover {
  color: var(--white);
}

.contract {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.28);
  cursor: default;
}

.footer-built {
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.24);
  letter-spacing: 0.04em;
}

.footer-copy {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.18);
}

/* === Animations === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Responsive — tablet === */
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 52px;
    max-width: 360px;
    margin: 0 auto;
  }

  .feed-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    padding: 16px 20px;
  }

  .feed-time {
    flex: 1;
    min-width: 0;
  }

  .feed-amount {
    flex-shrink: 0;
    text-align: right;
  }

  .feed-addrs,
  .feed-msg {
    width: 100%;
  }

  .feed-msg {
    white-space: normal;
  }

  .how-it-works,
  .feed-section,
  .cta {
    padding: 80px 0;
  }
}

/* === Responsive — mobile === */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .footer-links {
    gap: 20px;
  }
}
