@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --black:    #000000;
  --bg:       #0a0a0a;
  --surface:  #111111;
  --border:   #1e1e1e;
  --red:      #9b0000;
  --red-dim:  #6b0000;
  --red-glow: #cc0000;
  --white:    #ff3333;
  --off-white:#ff3333;
  --gray:     #cc0000;
  --gray-dim: #444444;
  --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

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

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

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--red);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--red-glow);
  box-shadow: 0 0 16px rgba(204,0,0,0.35);
}

.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red-glow);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; }
.logo-img { height: 48px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--red-glow); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 60px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(155,0,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red-glow);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--red-glow);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 130px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-title .accent {
  background: linear-gradient(135deg, #cc0000 0%, #ff2222 60%, #ff6666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 44px;
  max-width: 400px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Game Boy ── */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.gameboy-wrap { position: relative; }

.gameboy {
  width: 230px;
  background: #1a1a2e;
  border-radius: 10px 10px 40px 10px;
  padding: 16px 16px 24px;
  box-shadow:
    0 0 0 1px #0d0d1a,
    0 4px 40px rgba(0,0,0,0.8),
    0 0 60px rgba(155,0,0,0.12);
  position: relative;
  user-select: none;
}

.gb-top-notch {
  width: 60px;
  height: 6px;
  background: #0d0d1a;
  border-radius: 0 0 4px 4px;
  margin: 0 auto 12px;
}

.gb-screen-bezel {
  background: #111122;
  border-radius: 6px;
  padding: 10px;
  border: 2px solid #0d0d1a;
  margin-bottom: 14px;
}

.gb-screen-label {
  font-family: var(--font-mono);
  font-size: 5px;
  letter-spacing: 1.5px;
  color: #555577;
  text-align: center;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.gb-screen-area {
  background: #0f1a0f;
  border: 2px solid #0a150a;
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
}

#gokuCanvas {
  display: block;
  width: 100%;
  image-rendering: pixelated;
  cursor: pointer;
}

.gb-battery-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.gb-battery-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--red);
  animation: batteryPulse 2s ease-in-out infinite;
}

@keyframes batteryPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.gb-battery-text {
  font-family: var(--font-mono);
  font-size: 5px;
  letter-spacing: 1px;
  color: #555577;
  text-transform: uppercase;
}

.gb-brand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 14px;
  padding: 0 2px;
}
.gb-brand-text {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  font-style: italic;
  color: #9b0000;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.gb-brand-sub { font-size: 7px; color: #555577; }

.gb-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  margin-bottom: 14px;
}

/* D-Pad */
.gb-dpad { position: relative; width: 52px; height: 52px; }
.dpad-h, .dpad-v {
  position: absolute;
  background: #0d0d1a;
  border-radius: 3px;
  border: 1px solid #000;
}
.dpad-h { width: 100%; height: 34%; top: 33%; left: 0; }
.dpad-v { width: 34%; height: 100%; top: 0; left: 33%; }
.dpad-center {
  position: absolute;
  width: 34%;
  height: 34%;
  top: 33%;
  left: 33%;
  background: #0d0d1a;
  z-index: 1;
}

/* Face Buttons */
.gb-face-buttons { display: flex; align-items: center; }
.gb-button-row { display: flex; gap: 10px; align-items: flex-end; }

.gb-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  border: 1px solid rgba(0,0,0,0.4);
}
.gb-btn:active { transform: scale(0.92); }

.gb-btn-a {
  background: var(--red);
  box-shadow: 0 2px 0 var(--red-dim), 0 0 8px rgba(155,0,0,0.4);
}
.gb-btn-b {
  background: #2a1a3a;
  box-shadow: 0 2px 0 #1a0a2a;
  margin-bottom: 10px;
}
.gb-btn-a:hover { box-shadow: 0 2px 0 var(--red-dim), 0 0 14px rgba(204,0,0,0.6); }

.gb-bottom-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
}

.gb-small-btn {
  padding: 4px 10px;
  background: #0d0d1a;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 1px;
  color: #555577;
  border: 1px solid #000;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.gb-small-btn:hover { color: var(--white); background: #1a1a3a; }

.gb-speaker {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding-right: 14px;
}
.gb-speaker-dot {
  width: 4px;
  height: 14px;
  background: #0d0d1a;
  border-radius: 2px;
  border: 1px solid #000;
}

.gameboy-shadow {
  width: 200px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(155,0,0,0.15) 0%, transparent 70%);
  margin: 8px auto 0;
}

/* Power Level */
.power-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.4s;
}
.power-indicator.visible { opacity: 1; }

.power-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
}
.power-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  transition: color 0.3s;
}
.power-value.over { color: var(--red-glow); text-shadow: 0 0 20px rgba(204,0,0,0.7); }

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-dim);
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--gray-dim);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--red);
  animation: scrollSlide 2s ease-in-out infinite;
}
@keyframes scrollSlide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ── Sections ── */
.demo-section, .contact-section {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-inner { width: 100%; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1;
}

.section-sub {
  color: var(--gray);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 56px;
}

/* Demo Cards */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.demo-card {
  background: var(--surface);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.demo-card:hover {
  border-color: var(--red-dim);
  background: #141414;
}

.demo-card-icon {
  margin-bottom: 20px;
  opacity: 0.8;
}
.demo-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.demo-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.75;
}

/* ── Work ── */
.work-section {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

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

.work-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 32px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: inherit;
}
.work-card:hover {
  border-color: var(--red-dim);
  background: #141414;
}
.work-card:hover .work-arrow { transform: translateX(4px); }

.work-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.work-kanji {
  font-size: 48px;
  line-height: 1;
  color: var(--red);
  opacity: 0.7;
  font-family: serif;
  text-shadow: 0 0 20px rgba(155,0,0,0.4);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.work-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red-dim);
  padding: 3px 8px;
  opacity: 0.7;
}

.work-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

.work-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.75;
  flex: 1;
}
.work-desc em { color: var(--red-glow); font-style: normal; }

.work-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red-glow);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.work-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Contact */
.contact-section {
  border-top: 1px solid var(--border);
  padding-bottom: 80px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.contact-left { padding-top: 8px; }
.contact-left .section-sub { margin-bottom: 32px; }

.upwork-btn { display: inline-flex; align-items: center; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  width: 100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-dim);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red-dim);
}

.form-submit {
  align-self: flex-start;
  border: none;
  font-size: 13px;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
  min-height: 18px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 60px;
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gray-dim);
}
.footer-sep { color: var(--red-dim); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav-links { gap: 16px; }
  .nav-link { display: none; }

  .hero { padding: 100px 24px 60px; }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-scroll-hint { left: 24px; }

  .demo-section, .contact-section, .work-section { padding: 60px 24px; }
  .demo-grid, .work-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer { padding: 24px; }
}
