/* ============================================================
   Naruto Uzumaki Tribute — styles
   Palette: orange #ff6b1a / #ff8a3d, ink #0d0d10 / #1a1a1e, crimson #e63946
   ============================================================ */

:root {
  --orange: #ff6b1a;
  --orange-bright: #ff8a3d;
  --orange-soft: #ffb066;
  --crimson: #e63946;
  --ink: #0d0d10;
  --ink-2: #14141a;
  --ink-3: #1b1b22;
  --surface: #191920;
  --line: rgba(255, 138, 61, 0.16);
  --text: #f4f2ee;
  --muted: #b8b4ad;
  --muted-dim: #8a867f;

  --font-display: "Russo One", "Bebas Neue", system-ui, sans-serif;
  --font-heavy: "Bebas Neue", "Russo One", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-glow: 0 0 40px rgba(255, 107, 26, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden, .viswrap {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.25s;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--crimson));
  color: #fff;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.28);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(255, 107, 26, 0.5), var(--shadow-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--orange);
  color: var(--orange-bright);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(255, 107, 26, 0.12);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}
.brand-mark { display: inline-flex; }
.brand-dot { color: var(--orange); }
.main-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  transition: color 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.nav-cta {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--crimson));
  color: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--orange-bright);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 22px;
  background: rgba(10, 10, 13, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a {
  padding: 12px 0;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-cta {
  margin-top: 10px;
  text-align: center;
  color: #fff !important;
  background: linear-gradient(135deg, var(--orange), var(--crimson));
  border-radius: 999px;
  padding: 14px 0 !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -8% 0 0 0;
  z-index: -3;
  will-change: transform;
}
.hero-img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 60% 40%;
  filter: saturate(1.05) contrast(1.05);
}
.hero-overlay-img {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: min(44vw, 460px);
  opacity: 0.55;
  mix-blend-mode: screen;
  z-index: -2;
  pointer-events: none;
  will-change: transform;
}
.hero-overlay-img img { width: 100%; filter: drop-shadow(0 0 30px rgba(255,107,26,0.6)); }

.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(9,9,12,0.94) 0%, rgba(9,9,12,0.7) 42%, rgba(9,9,12,0.15) 75%, rgba(9,9,12,0.4) 100%),
    linear-gradient(0deg, var(--ink) 2%, rgba(9,9,12,0) 40%);
}

.hero-content { position: relative; padding-top: 90px; padding-bottom: 60px; max-width: 720px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-bright);
  margin-bottom: 22px;
}
.spark {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px 2px var(--orange);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ transform: scale(1); opacity:1;} 50%{ transform: scale(1.5); opacity:0.6;} }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #fff 20%, var(--orange-soft) 60%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 40px rgba(255,107,26,0.2);
}
.hero-title-sub {
  display: block;
  font-family: var(--font-heavy);
  font-size: clamp(1.1rem, 3.4vw, 2rem);
  letter-spacing: 0.16em;
  margin-top: 10px;
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}
.hero-lede {
  margin: 24px 0 34px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--orange-bright);
  text-shadow: 0 0 24px rgba(255,138,61,0.4);
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: 6px;
}

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,138,61,0.5);
  border-radius: 14px;
  display: flex; justify-content: center;
  padding-top: 8px;
}
.scroll-hint span {
  width: 4px; height: 8px;
  background: var(--orange-bright);
  border-radius: 2px;
  animation: scrolldot 1.6s var(--ease) infinite;
}
@keyframes scrolldot { 0%{ transform: translateY(0); opacity:1;} 70%{ transform: translateY(14px); opacity:0;} 100%{opacity:0;} }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 26px; height: 2px;
  background: var(--orange);
  vertical-align: middle;
  margin-right: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.section-sub { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Journey / Evolution ---------- */
.journey { background:
  radial-gradient(1000px 500px at 100% -10%, rgba(255,107,26,0.08), transparent 60%),
  var(--ink);
}
.evolution-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.evo-card {
  grid-column: span 2;
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
  position: relative;
}
.evo-card--wide { grid-column: span 3; }
.evo-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,107,26,0.5);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,107,26,0.25);
}
.evo-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.evo-card--wide .evo-media { aspect-ratio: 16/11; }
.evo-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.evo-card:hover .evo-media img { transform: scale(1.07); }
.evo-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,13,16,0.85) 0%, transparent 45%);
}
.evo-index {
  position: absolute; top: 14px; left: 16px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--orange-bright);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  z-index: 2;
}
.evo-body { padding: 20px 22px 26px; }
.evo-body h3 {
  font-family: var(--font-heavy);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.evo-tag {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 4px 0 10px;
}
.evo-body p:last-child { color: var(--muted); font-size: 0.94rem; }

/* ---------- Moments / Timeline ---------- */
.moments { background: var(--ink-2); }
.timeline {
  list-style: none;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 20px;
}
.timeline::before {
  content: ""; position: absolute;
  left: 27px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--orange), rgba(255,107,26,0.1));
}
.tl-item {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 0 0 40px 0;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-icon {
  position: relative;
  z-index: 2;
  flex: none;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--ink-2);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.tl-item:hover .tl-icon { transform: scale(1.08) rotate(-6deg); border-color: var(--orange); }
.tl-body {
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  flex: 1;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.tl-item:hover .tl-body { transform: translateX(6px); border-color: rgba(255,107,26,0.4); }
.tl-arc {
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); font-weight: 700;
}
.tl-body h3 { font-family: var(--font-heavy); font-size: 1.5rem; letter-spacing: 0.04em; margin: 4px 0 6px; }
.tl-body p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Abilities / Jutsu ---------- */
.abilities { background:
  radial-gradient(900px 480px at 0% 0%, rgba(230,57,70,0.08), transparent 60%),
  var(--ink);
}
.jutsu-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.jutsu-card {
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.jutsu-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(255,107,26,0.12), transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.jutsu-card:hover { transform: translateY(-8px); border-color: rgba(255,107,26,0.5); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.jutsu-card:hover::before { opacity: 1; }
.jutsu-card--lead {
  border-color: rgba(255,107,26,0.35);
  background:
    radial-gradient(500px 260px at 20% 10%, rgba(230,57,70,0.14), transparent 60%),
    linear-gradient(160deg, var(--surface), var(--ink-2));
}
.jutsu-icon { margin-bottom: 22px; }
.jutsu-card h3 { font-family: var(--font-heavy); font-size: 1.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.jutsu-card--lead h3 { font-size: 2.3rem; }
.jutsu-card p { color: var(--muted); margin: 12px 0 20px; font-size: 0.96rem; }
.jutsu-rank {
  display: inline-block;
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700;
  color: var(--orange-bright);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.spin-slow { animation: spin 14s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Community ---------- */
.community { background: var(--ink-2); }
.community-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  background:
    radial-gradient(700px 400px at 100% 100%, rgba(255,107,26,0.1), transparent 60%),
    linear-gradient(160deg, var(--ink-3), var(--ink));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(30px, 5vw, 60px);
}
.community-links { list-style: none; margin-top: 28px; display: grid; gap: 18px; }
.community-links li { display: flex; gap: 14px; align-items: flex-start; }
.cl-icon {
  flex: none; width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.community-links strong { display: block; font-size: 1rem; }
.community-links span { color: var(--muted); font-size: 0.9rem; }

.community-form {
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 30px;
  text-align: center;
}
.cf-badge { display: inline-flex; margin-bottom: 12px; }
.community-form h3 { font-family: var(--font-heavy); font-size: 1.9rem; letter-spacing: 0.06em; }
.community-form > p { color: var(--muted); font-size: 0.93rem; margin: 8px 0 22px; }
.cf-row { display: flex; gap: 10px; }
.cf-row input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.cf-row input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,26,0.18); }
.cf-note { min-height: 20px; margin-top: 12px; font-size: 0.85rem; font-weight: 600; }
.cf-note.ok { color: var(--orange-bright); }
.cf-note.err { color: var(--crimson); }
.cf-discord {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-weight: 700; font-size: 0.88rem;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--orange-bright);
  color: #1a1a1e;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.cf-discord:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 54px 0 34px; }
.footer-inner {
  display: flex; align-items: center; gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-tagline { font-family: var(--font-heavy); font-size: 1.3rem; letter-spacing: 0.1em; color: var(--orange-bright); }
.footer-nav { display: flex; gap: 26px; margin-left: auto; }
.footer-nav a { color: var(--muted); font-weight: 600; font-size: 0.92rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--orange-bright); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.footer-social a:hover { transform: translateY(-3px); border-color: var(--orange); }
.footer-legal { padding-top: 22px; }
.footer-legal p { color: var(--muted-dim); font-size: 0.8rem; max-width: 780px; }
.footer-copy { margin-top: 10px; color: var(--muted); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .jutsu-grid { grid-template-columns: 1fr 1fr; }
  .jutsu-card--lead { grid-column: span 2; }
  .community-inner { grid-template-columns: 1fr; gap: 34px; }
  .evo-card, .evo-card--wide { grid-column: span 3; }
}

@media (max-width: 780px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-overlay-img { opacity: 0.4; width: 60vw; }
  .evolution-grid { grid-template-columns: 1fr 1fr; }
  .evo-card, .evo-card--wide { grid-column: span 1; }
  .hero-stats { gap: 26px; }
  .stat-num { font-size: 2.1rem; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .jutsu-grid { grid-template-columns: 1fr; }
  .jutsu-card--lead { grid-column: span 1; }
  .evolution-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { margin-left: 0; flex-wrap: wrap; gap: 16px; }
  .cf-row { flex-direction: column; }
  .cf-row .btn { width: 100%; }
  .hero-content { padding-top: 100px; }
  .tl-body h3 { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
