@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=M+PLUS+Rounded+1c:wght@400;700;800&family=Noto+Serif+JP:wght@400;700&display=swap');

:root {
  --yolk: #FFD600;
  --yolk-dark: #E8A000;
  --shell: #FFF8E7;
  --ink: #1A1A2E;
  --red: #E8372A;
  --blue-corp: #1B3A6B;
  --cyan: #00C9C8;
  --white: #FFFFFF;
  --muted: #B0A890;
  --halftone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ccircle cx='2' cy='2' r='1' fill='%231A1A2E' opacity='0.07'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  background: var(--shell);
  color: var(--ink);
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cellipse cx='12' cy='14' rx='9' ry='10' fill='%23FFF8E7' stroke='%231A1A2E' stroke-width='2'/%3E%3Cellipse cx='12' cy='12' rx='5' ry='5' fill='%23FFD600'/%3E%3C/svg%3E"), auto;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: var(--ink);
  border-bottom: 3px solid var(--yolk);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--yolk);
  letter-spacing: 2px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--white); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--yolk); }

/* ===== NAV HAMBURGER (mobile) ===== */
.nav-hamburger {
  display: none;
  background: none;
  border: 2px solid var(--yolk);
  color: var(--yolk);
  font-size: 1.2rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  line-height: 1;
}

/* ===== NAV CTA BUTTON ===== */
.nav-cta {
  background: var(--yolk);
  color: var(--ink) !important;
  padding: 0.45rem 1.2rem;
  border: 2px solid var(--ink);
  font-weight: 800 !important;
  box-shadow: 3px 3px 0 var(--yolk-dark);
  display: inline-block;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--yolk-dark);
  color: var(--ink) !important;
}

/* ===== SHARED UTILITIES ===== */
.section { padding: 6rem 2.5rem; }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

/* ===== HERO PRIMARY BUTTON ===== */
.btn-primary {
  background: var(--yolk);
  color: var(--ink);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ===== SECONDARY BUTTON ===== */
.btn-secondary {
  background: transparent;
  color: var(--ink);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-secondary:hover { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); background: var(--ink); color: var(--yolk); }

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: #fff;
  padding: 3rem 2.5rem 2rem;
  border-top: 4px solid var(--yolk);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}
.foot-brand { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--yolk); }
.foot-tagline { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.6; }
.foot-heading { font-weight: 800; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--yolk); margin-bottom: 1rem; }
.foot-links { list-style: none; }
.foot-links li { margin-bottom: 0.5rem; }
.foot-links a { color: #aaa; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.foot-links a:hover { color: var(--yolk); }
.foot-copy {
  grid-column: 1/-1;
  border-top: 1px solid #2a2a50;
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}
.social-row { display: flex; gap: 0.8rem; margin-top: 0.8rem; }
.social-btn {
  width: 36px; height: 36px;
  background: #1a1a40;
  border: 1.5px solid #333;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: #aaa;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.social-btn:hover { background: var(--yolk); color: var(--ink); }

/* ===== HOME — HERO ===== */
.hero {
  min-height: 100svh;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.city-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
  padding: 4rem 2.5rem 3rem;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.2rem;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.92;
  color: var(--ink);
  margin-bottom: 0.6rem;
  text-shadow: 5px 5px 0 var(--yolk), 0 0 30px rgba(255,255,255,0.8);
}
.hero h1 .accent { color: var(--yolk); text-shadow: 4px 4px 0 var(--ink); }
.hero-tagline {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  color: #0d2040;
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 2rem;
  border-left: 4px solid var(--yolk);
  padding-left: 1rem;
}
.hero-stats { display: flex; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.stat {
  background: var(--ink);
  color: var(--yolk);
  padding: 0.7rem 1.2rem;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--yolk-dark);
}
.stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; line-height: 1; display: block; }
.stat-label { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); display: block; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.egg-float {
  position: absolute; z-index: 2;
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}

/* ===== MARQUEE ===== */
.marquee-wrap {
  background: var(--ink);
  border-top: 3px solid var(--yolk);
  border-bottom: 3px solid var(--yolk);
  padding: 0.8rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-block; animation: scroll 18s linear infinite; }
.marquee-track span { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 3px; color: var(--yolk); margin: 0 2.5rem; }
.marquee-track span.dot { color: var(--red); font-size: 1rem; margin: 0 1rem; }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-text p { font-size: 1rem; line-height: 1.8; color: #3a3a5c; margin-bottom: 1.2rem; }
.office-card {
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--yolk);
  border-radius: 4px;
  overflow: hidden;
  padding: 1.5rem;
}

/* ===== TRAITS ===== */
.traits-section { background: var(--ink); }
.traits-section .section-title { color: var(--yolk); }
.traits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.trait-card {
  background: #12122b;
  border: 2px solid #2a2a50;
  border-radius: 4px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.trait-card:hover { border-color: var(--yolk); transform: translateY(-4px); }
.trait-icon { font-size: 2.5rem; margin-bottom: 0.7rem; display: block; }
.trait-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; color: var(--yolk); letter-spacing: 1px; }
.trait-count { font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; }

/* ===== ROADMAP ===== */
.roadmap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.rm-card {
  border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 1.5rem;
  position: relative;
  background: var(--white);
}
.rm-phase { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; color: var(--yolk); line-height: 1; -webkit-text-stroke: 2px var(--ink); }
.rm-title { font-weight: 800; font-size: 1rem; margin-bottom: 0.7rem; margin-top: 0.2rem; }
.rm-items { list-style: none; }
.rm-items li { font-size: 0.85rem; line-height: 1.7; color: #444; padding-left: 1rem; position: relative; }
.rm-items li::before { content: '▸'; position: absolute; left: 0; color: var(--yolk); }
.rm-badge {
  position: absolute; top: -10px; right: 1rem;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.2rem 0.6rem;
  text-transform: uppercase;
}

/* ===== TEAM ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.team-card {
  text-align: center;
  padding: 2rem 1rem;
  border: 2.5px solid var(--ink);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--yolk);
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--yolk); }
.team-avatar { margin-bottom: 1rem; }
.team-name { font-weight: 800; font-size: 1rem; }
.team-role { font-size: 0.8rem; color: var(--blue-corp); margin-top: 0.2rem; }
.team-jp { font-family: 'Noto Serif JP', serif; font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }

/* ===== FAQ ===== */
.faq-list { margin-top: 2rem; }
.faq-item { border-bottom: 2px solid var(--ink); padding: 1.3rem 0; cursor: pointer; }
.faq-q { font-weight: 800; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--yolk); transition: transform 0.2s; flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; font-size: 0.9rem; color: #555; line-height: 1.8; margin-top: 0.8rem; }
.faq-item.open .faq-a { display: block; }

/* ===== FORM PAGE ===== */
.form-page-wrap {
  min-height: 100vh;
  padding-top: 64px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.form-page-bg {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,214,0,0.07) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,214,0,0.07) 40px);
}
.form-container { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 4rem 2rem 6rem; }
.form-header { margin-bottom: 3rem; }
.form-header .section-label { color: var(--yolk); border-color: var(--yolk); }
.form-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1;
  text-shadow: 4px 4px 0 var(--yolk);
  margin-bottom: 0.5rem;
}
.form-header p { color: #aaa; font-size: 0.95rem; line-height: 1.7; }
.form-card {
  background: var(--shell);
  border: 3px solid var(--yolk);
  box-shadow: 8px 8px 0 var(--yolk-dark);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.8rem; }
.form-label {
  display: block;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-label .req { color: var(--red); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2.5px solid var(--ink);
  background: var(--white);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--yolk);
  box-shadow: 4px 4px 0 var(--yolk);
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%231A1A2E'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.checkbox-group { display: flex; flex-direction: column; gap: 0.6rem; }
.checkbox-label {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.9rem; cursor: pointer;
  padding: 0.5rem 0.8rem;
  border: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.checkbox-label:hover { background: rgba(255,214,0,0.1); border-color: var(--yolk); }
.checkbox-label input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--yolk); cursor: pointer; }
.form-hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.4rem; }
.wallet-input-wrap { position: relative; }
.wallet-prefix {
  position: absolute; left: 0; top: 0; bottom: 0;
  display: flex; align-items: center;
  background: var(--ink);
  color: var(--yolk);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0 0.8rem;
  letter-spacing: 1px;
  pointer-events: none;
}
.wallet-input-wrap .form-input { padding-left: 4.5rem; }
.submit-btn {
  width: 100%;
  background: var(--yolk);
  color: var(--ink);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 1rem;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  cursor: pointer;
  letter-spacing: 1px;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 0.5rem;
}
.submit-btn:hover { transform: translate(4px,4px); box-shadow: 2px 2px 0 var(--ink); }
.form-divider { height: 2px; background: linear-gradient(to right, var(--yolk), transparent); margin: 2rem 0; }
.success-msg {
  display: none;
  background: #1a3a1a;
  border: 3px solid #4caf50;
  color: #90ee90;
  padding: 1.5rem;
  text-align: center;
  font-weight: 700;
  margin-top: 1rem;
  box-shadow: 4px 4px 0 #4caf50;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 900px) {
  .egg-float:last-of-type { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Nav */
  nav { padding: 0 1.2rem; }
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 3px solid var(--yolk);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid #2a2a50; }
  .nav-links li:last-child { border-bottom: none; padding-top: 0.8rem; }
  .nav-links a { display: block; padding: 0.9rem 0; font-size: 1rem; }
  .nav-cta { width: 100%; text-align: center; }

  /* Hero */
  .hero { align-items: flex-end; padding-bottom: 3rem; }
  .hero-content {
    padding: 2rem 1.2rem 2rem 1.5rem;
    max-width: 100%;
  }
  .hero h1 { font-size: clamp(3.5rem, 17vw, 5.5rem); }
  .hero-tagline { font-size: 0.88rem; }
  .hero-stats { gap: 1rem; }
  .stat { padding: 0.5rem 0.9rem; }
  .stat-val { font-size: 1.7rem; }

  /* Hide eggs on small screens */
  .egg-float { display: none; }

  /* Hero buttons */
  .hero-btns { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .btn-primary { width: 100%; text-align: center; }
  .btn-secondary { width: 100%; text-align: center; }

  /* Sections */
  .section { padding: 3.5rem 1.2rem; }
  .section-title { font-size: clamp(2rem, 9vw, 3rem); margin-bottom: 1.5rem; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .traits-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  footer { grid-template-columns: 1fr; padding: 2rem 1.2rem; gap: 1.5rem; }

  /* Form */
  .form-container { padding: 2.5rem 1.2rem 4rem; }
  .form-card { padding: 1.5rem 1rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* Small mobile */
@media (max-width: 420px) {
  .nav-logo { font-size: 1.4rem; }
  .hero h1 { font-size: 3.2rem; }
  .hero-stats { flex-wrap: wrap; }
  .traits-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .marquee-track span { font-size: 1rem; margin: 0 1.5rem; }
}

/* ===== FORM VALIDATION ===== */
.form-error {
  color: #ff4d4d;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  display: none;
}

.form-input.input-error {
  border-color: #ff4d4d;
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2);
}

.form-counter {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.3rem;
  text-align: right;
}

.form-counter.counter-full {
  color: #FFD600;
}


.success-msg {
  display: none;
  position: relative;
  background: #1a3a1a;
  border: 3px solid #4caf50;
  color: #90ee90;
  padding: 1.5rem;
  text-align: center;
  font-weight: 700;
  margin-top: 1rem;
  box-shadow: 4px 4px 0 #4caf50;
}