/* ============================================================
   remio aApp Challenge Vol.1 — Main Styles
   Design reference: web.png (pixel-art / code-editor aesthetic)
   ============================================================ */

/* ── Local Fonts ── */
@font-face {
  font-family: 'Jersey20';
  src: url('../fonts/Jersey20-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Micro5Charted';
  src: url('../fonts/Micro5Charted-subset.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Design Tokens ── */
:root {
  --bg:        #FDF9F1;
  --bg-alt:    #F2EEE5;
  --bg-dark:   #1A2332;
  --text:      #1A2332;
  --text-inv:  #FDF9F1;
  --green:     #3DFF7A;
  --yellow:    #F5D800;
  --orange:    #FF7B2E;
  --gray:      #8B95A8;
  --gray-lt:   #C8C0AA;
  --dark:      #0D1117;

  --font-heading: 'Jersey20', monospace;   /* H1 H2 H3 */
  --font-date:    'Micro5Charted', monospace; /* date badge + countdown digits */
  --font-mono:    'IBM Plex Mono', monospace; /* body / code / labels */
  --font-px:      'Jersey20', monospace;   /* alias kept for existing usages */

  --nav-h:     64px;
  --max-w:     960px;
  --pad-x:     40px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(100,110,160,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,110,160,.055) 1px, transparent 1px),
    linear-gradient(rgba(100,110,160,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,110,160,.03) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }


/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(253,249,241,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(100,110,160,.12);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .1em;
}
.nav-logo .bracket { color: var(--green); }

/* Nav section links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: .06em;
  transition: color .15s;
}
.nav-link:hover { color: var(--text); }

.lang-toggle { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  background: none;
  border: 1.5px solid transparent;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: .08em;
  transition: color .15s, border-color .15s;
}
.lang-btn.active,
.lang-btn:hover {
  color: var(--text);
  border-color: var(--text);
}
.lang-sep { color: var(--gray); font-size: 14px; }

/* ════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 520px;
  padding-top: var(--nav-h);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* ── Decorative Elements (image-based) ── */
.deco { position: absolute; pointer-events: none; z-index: 2; }

/* Header strip: triangle + robot + symbols @2x PNG */
.deco-header {
  top: var(--nav-h);
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: auto;
  display: block;
}

/* Orange cone — bottom right @2x PNG */
.deco-cone {
  bottom: 56px;
  right: -44px;
  width: 149px;
  height: auto;
}

/* ── Hero Content ── */
.hero-container {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 70px var(--pad-x) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Tagline */
.hero-tagline {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  align-self: flex-start;
  text-align: left;
}
.c-brace { color: var(--text); font-weight: 600; }
.c-str   { color: var(--text); }
.c-op    { color: var(--gray); }

/* Main Headline */
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.title-l1,
.title-l2 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.1;
  color: var(--text);
  display: block;
}
.title-l2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Vol.1 — green pixel box */
.vol1 {
  font-family: var(--font-px);
  font-size: inherit;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 3px 10px 6px;
  line-height: 1;
  display: inline-block;
  letter-spacing: .04em;
}

/* Hero subtitle */
.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--text);
  opacity: .72;
  margin-bottom: 20px;
  letter-spacing: .01em;
}

/* Hero countdown wrapper */
.hero-countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.hero-cd-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: .1em;
  text-transform: uppercase;
}
/* Hero countdown visual container */
.hero-cd-box {
  padding: 14px 28px;
}
/* Hero countdown on light bg — digits in dark blue */
.hero-countdown .cd-val {
  color: var(--text);
}
.hero-countdown .cd-unit {
  color: rgba(26,35,50,.4);
}
.hero-countdown .cd-sep {
  color: var(--gray);
}
/* Hero actions — stacked column (button above, credits link below) */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ── Join Now Button (image-based) ── */
.btn-join {
  display: inline-block;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform .1s, filter .1s;
}
.btn-join:hover  { transform: translate(2px, 2px); filter: brightness(1.05); }
.btn-join:active { transform: translate(4px, 4px); filter: brightness(.98); }

.btn-img {
  display: block;
  width: 324px;
  max-width: 100%;
  height: auto;
}

/* Credits link */
.credits-link {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  opacity: .65;
  transition: opacity .15s;
  border-bottom: 1px dashed transparent;
}
.credits-link:hover {
  opacity: 1;
  border-bottom-color: var(--text);
}

/* ════════════════════════════════════════════
   SHARED SECTION STYLES
   ════════════════════════════════════════════ */
.section {
  padding: 72px 0;
}
.s-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Section tag — small code-comment label */
.s-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gray);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.s-tag--light { color: rgba(253,249,241,.55); }

/* Section title */
.s-title {
  font-family: var(--font-px);
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 40px;
}
.s-title--light { color: var(--text-inv); }

/* ════════════════════════════════════════════
   2. ABOUT
   ════════════════════════════════════════════ */
.about-text {
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: var(--text);
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.about-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 2px solid var(--text);
  text-decoration: none;
  color: var(--text);
  background: transparent;
  transition: background .15s, box-shadow .15s;
}
.about-card:hover {
  background: rgba(26,35,50,.06);
  box-shadow: 0 0 0 1px var(--text);
}
.acard-num {
  font-family: var(--font-px);
  font-size: 15px;
  color: var(--gray);
}
.about-card h3 {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
}
.acard-cta {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .08em;
  margin-top: auto;
}

/* ════════════════════════════════════════════
   3. TIMELINE
   ════════════════════════════════════════════ */
.timeline {
  background: var(--bg-alt);
}
.tl-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 8px 0 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 120px;
}
.tl-dot {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--gray);
  background: var(--bg-alt);
  flex-shrink: 0;
  /* square dot = pixel aesthetic */
}
.tl-item--active .tl-dot {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(61,255,122,.2);
}
/* Past milestone: muted */
.tl-item--past .tl-dot {
  background: var(--gray-lt);
  border-color: var(--gray-lt);
}
.tl-item--past .tl-date,
.tl-item--past .tl-label {
  opacity: .4;
}
.tl-item--past .tl-icon { opacity: .35; }

.tl-line {
  flex: 1;
  height: 2px;
  background: var(--gray-lt);
  margin-top: 8px; /* align with dot center */
  min-width: 40px;
  align-self: flex-start;
}
.tl-line--past {
  background: var(--gray-lt);
  opacity: .5;
}
.tl-date {
  font-family: var(--font-px);
  font-size: 20px;
  color: var(--text);
  letter-spacing: .04em;
}
.tl-icon { font-size: 23px; }
.tl-label {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text);
  text-align: center;
  line-height: 1.4;
}

/* ════════════════════════════════════════════
   4. HOW TO JOIN
   ════════════════════════════════════════════ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0;
  border: 2px solid var(--text);
  background: transparent;
  overflow: hidden;
  transition: background .15s, box-shadow .15s;
}
.step-card:hover {
  background: rgba(26,35,50,.06);
  box-shadow: 0 0 0 1px var(--text);
}
.step-num {
  font-family: var(--font-px);
  font-size: 25px;
  color: var(--gray-lt);
  background: rgba(26,35,50,.04);
  border-right: 2px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  line-height: 1;
  letter-spacing: .04em;
}
.step-body {
  padding: 16px 24px;
}
.step-body h3 {
  font-family: var(--font-px);
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}
.step-body p {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text);
}
.step-list {
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.step-list li { padding-left: 16px; position: relative; }
.step-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green);
}
.step-list a { color: var(--text); font-weight: 600; }
.step-list a:hover { text-decoration: underline; }
.step-btn {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  border: 2px solid var(--text);
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  transition: background .15s;
  margin-top: 4px;
}
.step-btn:hover { background: #283347; }
.step-notice {
  font-size: 16px;
  color: var(--orange);
  font-weight: 600;
}
.join-tip {
  margin-top: 32px;
  padding: 14px 20px;
  border-left: 3px solid var(--green);
  background: rgba(61,255,122,.07);
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text);
}

/* ════════════════════════════════════════════
   5. PRIZES
   ════════════════════════════════════════════ */
.prizes {
  background: var(--bg-dark);
}
.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 860px;
  margin-bottom: 28px;
}
.prize-card {
  padding: 28px 24px;
  border: 2px solid;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(253,249,241,.04);
}
.prize--gold   { border-color: #F5D800; }
.prize--silver { border-color: #B0B8C8; }
.prize--bronze { border-color: #CD7F32; }
.prize--default { border-color: rgba(253,249,241,.25); }

.prize-rank {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.prize-amount {
  font-family: var(--font-px);
  font-size: 32px;
  color: var(--text-inv);
  line-height: 1;
}
.prize--gold   .prize-amount { color: #F5D800; }
.prize--silver .prize-amount { color: #B0B8C8; }
.prize--bronze .prize-amount { color: #CD7F32; }

/* 1st place featured: visually dominant */
.prize--featured {
  background: rgba(245,216,0,.07);
}
.prize--featured .prize-amount {
  font-size: 52px;
}

.prize-sub {
  font-family: var(--font-mono);
  font-size: 16px;
  color: rgba(253,249,241,.55);
}
.prize-note {
  font-family: var(--font-mono);
  font-size: 16px;
  color: rgba(253,249,241,.7);
}

/* ════════════════════════════════════════════
   6. SOCIAL BONUS
   ════════════════════════════════════════════ */
.social-intro {
  font-family: var(--font-mono);
  font-size: 18px;
  max-width: 800px;
  margin-bottom: 28px;
  color: var(--text);
  line-height: 1.7;
}
.social-intro strong {
  color: var(--orange);
  font-weight: 700;
}
.social-submit-btn {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  border: 2px solid var(--text);
  padding: 10px 24px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  transition: background .15s;
}
.social-submit-btn:hover { background: #283347; }

/* ════════════════════════════════════════════
   7. RESOURCES
   ════════════════════════════════════════════ */
.resources {
  background: var(--bg-alt);
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 860px;
}
.resource-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 2px solid var(--text);
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  transition: background .15s, box-shadow .15s;
}
.resource-card:hover {
  background: rgba(26,35,50,.06);
  box-shadow: 0 0 0 1px var(--text);
}
.resource-ico { font-size: 23px; flex-shrink: 0; }
.resource-name { flex: 1; }
.resource-arrow {
  font-size: 18px;
  color: var(--gray);
  transition: color .15s;
}
.resource-card:hover .resource-arrow { color: var(--text); }

.resource-card--soon {
  cursor: default;
  opacity: .6;
}
.resource-card--soon:hover {
  background: transparent;
  box-shadow: none;
}
.resource-soon {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--gray-lt);
  padding: 2px 8px;
}

/* ════════════════════════════════════════════
   8. FAQ
   ════════════════════════════════════════════ */
.faq-list {
  border-top: 2px solid var(--text);
}
.faq-item {
  border-bottom: 2px solid var(--text);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 4px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color .15s;
}
.faq-q:hover { color: var(--text); opacity: .8; }
.faq-arr {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gray);
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  transition: border-color .2s, color .2s;
}
.faq-arr::before { content: '+'; }
.faq-item.open .faq-arr::before { content: '×'; }
.faq-item.open .faq-arr {
  border-color: var(--text);
  color: var(--text);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-a p {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text);
  opacity: .8;
  padding: 0 4px 20px;
  line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 300px; }

/* ════════════════════════════════════════════
   9. FOOTER
   ════════════════════════════════════════════ */

.footer {
  background: var(--bg-dark);
  padding: 80px 0 48px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Footer CTA block */
.footer-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}
.footer-cta-title {
  font-family: var(--font-px);
  font-size: clamp(20px, 1.6vw, 26px);
  color: var(--text-inv);
  line-height: 1.45;
}
.footer-cta-sub {
  font-family: var(--font-mono);
  font-size: 16px;
  color: rgba(253,249,241,.5);
}

/* Countdown */
.countdown {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.cd-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cd-val {
  font-family: var(--font-date);
  font-size: clamp(29px, 3.5vw, 54px);
  color: var(--green);
  line-height: 1;
  min-width: 2.2ch;
  text-align: center;
}
.cd-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(253,249,241,.4);
  letter-spacing: .12em;
}
.cd-sep {
  font-family: var(--font-px);
  font-size: 25px;
  color: var(--gray);
  padding-bottom: 20px;
  line-height: 1;
}

/* Footer CTA button group */
.footer-cta-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Footer CTA button */
.btn-footer {
  display: inline-block;
  background: var(--green);
  color: var(--dark);
  border: 3px solid var(--green);
  padding: 14px 36px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .15s, transform .1s;
  box-shadow: 4px 4px 0 rgba(61,255,122,.4);
}
.btn-footer:hover {
  background: #25ee60;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(61,255,122,.4);
}
/* Outline variant */
.btn-footer--outline {
  background: transparent;
  color: var(--text-inv);
  border-color: rgba(253,249,241,.4);
  box-shadow: 4px 4px 0 rgba(253,249,241,.1);
}
.btn-footer--outline:hover {
  background: rgba(253,249,241,.08);
  border-color: var(--text-inv);
  box-shadow: 2px 2px 0 rgba(253,249,241,.1);
}

.footer-divider {
  width: 100%;
  max-width: var(--max-w);
  height: 1px;
  background: rgba(253,249,241,.12);
  margin-bottom: 36px;
}
.footer-bottom {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 var(--pad-x);
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-inv);
  letter-spacing: .12em;
  text-decoration: none;
  transition: opacity .15s;
}
.footer-logo:hover { opacity: .75; }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(253,249,241,.4);
  letter-spacing: .02em;
}

/* ════════════════════════════════════════════
   MODAL
   ════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s, visibility .2s;
}
.modal.open {
  visibility: visible;
  opacity: 1;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13,17,23,.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.modal-box {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 3px solid var(--text);
  padding: 40px 48px;
  max-width: 480px;
  width: 90%;
}
.modal-box h3 {
  font-family: var(--font-px);
  font-size: 20px;
  margin-bottom: 16px;
}
.modal-box p {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.7;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 1.5px solid var(--gray);
  width: 32px;
  height: 32px;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}
.modal-close:hover { border-color: var(--text); }

/* ════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
