/* =========================================================================
   $HAALAND — haaland.land
   Self-contained styles, no build step, no external fonts (works on IPFS).
   Palette: Man City sky-blue + deep pitch navy + neon money-green + trophy gold.
   To swap in a display web font, add a <link> in index.html and set --font-display.
   ========================================================================= */

:root {
  --pitch:        #0a1424;
  --pitch-2:      #0f1d33;
  --pitch-3:      #14263f;
  --sky:          #6cabdd;   /* Haaland's sky blue */
  --sky-bright:   #9bd4ff;
  --money:        #ef2b2d;   /* flag red — primary action / brand accent */
  --money-dim:    #c81f22;
  --gold:         #ffd23f;   /* Ballon d'Or */
  --nor-red:      #ef2b2d;   /* Norway flag red */
  --nor-blue:     #002868;   /* Norway flag blue */
  --nor-white:    #ffffff;
  --white:        #eef6ff;
  --muted:        #8ea6c6;
  --line:         rgba(108, 171, 221, 0.18);

  --font-display: "Arial Black", "Helvetica Neue", Impact, system-ui, sans-serif;
  --font-body:    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: radial-gradient(1200px 700px at 50% -10%, #16305a 0%, var(--pitch) 55%) fixed;
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; line-height: 1.02; }

a { color: var(--sky-bright); text-decoration: none; }
em { color: var(--sky-bright); font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.25rem; border-radius: 999px;
  font-weight: 800; font-size: 0.98rem; letter-spacing: 0.01em;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--money {
  background: var(--money); color: #fff;
  box-shadow: 0 8px 24px rgba(239, 43, 45, 0.4);
}
.btn--money:hover { background: #ff3b3d; box-shadow: 0 12px 30px rgba(239, 43, 45, 0.55); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--sky); background: rgba(108,171,221,0.08); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.1rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(10, 20, 36, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand__word { font-family: var(--font-display); font-size: 1.35rem; color: var(--white); letter-spacing: 0.02em; }
.brand__mark { display: block; transition: transform 0.5s ease; }
.brand:hover .brand__mark { transform: rotate(360deg); }
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav__links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav__links a:hover { color: var(--white); }
.nav .btn { margin-left: 0.25rem; }
.nav__toggle {
  display: none; margin-left: auto;
  background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; place-items: center;
}
/* pure-CSS hamburger — no emoji */
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  content: ""; display: block; width: 24px; height: 3px;
  background: var(--white); border-radius: 3px; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before { position: absolute; top: -8px; left: 0; }
.nav__toggle-bars::after  { position: absolute; top: 8px;  left: 0; }

/* Inline icons that replace emojis in text/buttons */
.ico { height: 1em; width: auto; vertical-align: -0.15em; }
.ico--btn { height: 1.3em; vertical-align: -0.28em; margin-right: 0.15rem; }
.phase h3 .ico { height: 1.15em; vertical-align: -0.18em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3rem, 9vw, 6.5rem) clamp(1rem, 4vw, 2rem) 3rem;
}
.hero__glow {
  position: absolute; inset: -10% 20% auto; height: 340px; z-index: -1;
  background: radial-gradient(closest-side, rgba(239,43,45,0.22), transparent 70%);
  filter: blur(20px);
}
.hero__eyebrow { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.hero__eyebrow strong { color: var(--sky-bright); }
.hero__title {
  display: inline-block;              /* hug the text so the flag cross lands on the letters */
  font-size: clamp(3.5rem, 15vw, 9rem);
  letter-spacing: -0.01em;
  /* Letters filled with the Norwegian flag: red field + off-centre
     white-bordered blue cross. Layers stack top-first. */
  background:
    linear-gradient(to right,  transparent 29%, #1e4fc4 29%, #1e4fc4 37%, transparent 37%),
    linear-gradient(to bottom, transparent 44%, #1e4fc4 44%, #1e4fc4 54%, transparent 54%),
    linear-gradient(to right,  transparent 26%, #fff 26%, #fff 40%, transparent 40%),
    linear-gradient(to bottom, transparent 40%, #fff 40%, #fff 58%, transparent 58%),
    linear-gradient(180deg, #ff4a4c, #d81f22);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
}
.hero__tagline { font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2.4rem); color: var(--gold); margin-top: 0.4rem; }
.hero__sub { max-width: 620px; margin: 1.2rem auto 0; color: var(--muted); font-size: 1.1rem; }
.hero__cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0 1.6rem; }

/* Contract address pill */
.ca {
  display: inline-flex; align-items: center; gap: 0.6rem;
  max-width: 100%; margin: 0 auto;
  padding: 0.5rem 0.5rem 0.5rem 0.9rem;
  background: var(--pitch-2); border: 1px solid var(--line); border-radius: 999px;
}
.ca__label { font-weight: 800; color: var(--sky); font-size: 0.85rem; }
.ca__value {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ca__copy { border: 0; background: var(--sky); color: var(--pitch); font-weight: 800; padding: 0.4rem 0.9rem; border-radius: 999px; cursor: pointer; }
.ca__copy:hover { background: var(--sky-bright); }
.ca__copy.copied { background: var(--money); }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  list-style: none; max-width: 760px; margin: 2.4rem auto 0;
}
.hero__stats li {
  background: var(--pitch-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 0.75rem; display: flex; flex-direction: column; gap: 0.25rem;
}
.stat__num { font-family: var(--font-display); font-size: 1.25rem; color: var(--sky-bright); }
.stat__cap { color: var(--muted); font-size: 0.82rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--nor-blue); color: #fff; padding: 0.7rem 0; border-block: 3px solid var(--money); }
.marquee__track { display: flex; width: max-content; animation: scroll 22s linear infinite; font-family: var(--font-display); font-size: 1.1rem; }
.marquee__track span { padding-right: 1rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem); }
.section--alt { max-width: none; background: var(--pitch-2); border-block: 1px solid var(--line); }
.section--alt > * { max-width: var(--wrap); margin-inline: auto; }
.section__head { text-align: center; margin-bottom: 2.6rem; }
.section__head h2 { font-size: clamp(2rem, 6vw, 3.2rem); }
.section__lead { color: var(--muted); font-size: 1.15rem; margin-top: 0.5rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: center; }
.about__crest { display: grid; place-items: center; }
.about__crest img { max-width: 100%; height: auto; filter: drop-shadow(0 12px 40px rgba(108,171,221,0.4)); animation: float 6s ease-in-out infinite; }
.about__copy p { margin-bottom: 1rem; color: #cfe0f5; }
.about__chant { font-family: var(--font-display); color: var(--gold); font-size: 1.3rem; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step { position: relative; background: var(--pitch-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 1.4rem 1.4rem; }
.step__num { position: absolute; top: -18px; left: 1.2rem; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--money); color: #fff; font-family: var(--font-display); font-size: 1.3rem; }
.step h3 { color: var(--sky-bright); margin-bottom: 0.5rem; font-size: 1.2rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card { text-align: center; background: var(--pitch-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1rem; transition: transform 0.15s ease, border-color 0.2s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--sky); }
.card__icon { display: block; width: 56px; height: 56px; margin: 0 auto 0.2rem; object-fit: contain; }
.card:hover .card__icon { transform: translateY(-2px); transition: transform 0.15s ease; }
.card h3 { color: var(--white); margin: 0.6rem 0 0.3rem; font-size: 1.5rem; }
.card p { color: var(--muted); font-size: 0.9rem; }
.fineprint { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 1.8rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.phase { background: var(--pitch-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.3rem; border-top: 4px solid var(--sky); }
.phase__tag { display: inline-block; font-weight: 800; color: var(--money); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.phase h3 { margin: 0.4rem 0 0.6rem; font-size: 1.3rem; color: var(--white); }
.phase p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Community ---------- */
.social { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.social__btn { display: inline-flex; align-items: center; padding: 1rem 1.8rem; border-radius: 999px; background: var(--pitch-3); border: 1px solid var(--line); color: var(--white); font-weight: 700; font-size: 1.05rem; transition: transform 0.12s ease, border-color 0.2s ease; }
.social__btn:hover { transform: translateY(-2px); border-color: var(--sky); }
.social__btn--money { background: var(--money); color: #fff; border-color: transparent; }

/* ---------- Ecosystem / Partners ---------- */
.partners__label {
  font-family: var(--font-display); font-size: 1.05rem; color: var(--sky-bright);
  letter-spacing: 0.04em; margin: 0.4rem 0 1rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.partners__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.partners + .partners__label { margin-top: 2.2rem; }
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.partner {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(239, 43, 45, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(26, 44, 78, 0.55), rgba(11, 20, 37, 0.92));
  border: 1px solid rgba(108, 171, 221, 0.16);
  border-radius: 18px; padding: 1.6rem 1.5rem 1.4rem; color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.partner::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--money), rgba(239, 43, 45, 0.3));
}
.partner:hover {
  transform: translateY(-5px);
  border-color: rgba(108, 171, 221, 0.5);
  box-shadow: 0 22px 46px rgba(0, 40, 104, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.partner__tag {
  align-self: flex-start; margin-bottom: 0.6rem;
  padding: 0.28rem 0.66rem; border-radius: 999px;
  background: rgba(239, 43, 45, 0.14); border: 1px solid rgba(239, 43, 45, 0.4);
  color: #ff9a9b; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase;
}
.partner h3 { margin: 0.1rem 0 0.5rem; font-size: 1.4rem; }
.partner p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.1rem; flex: 1; }
.partner__go {
  font-weight: 800; color: var(--money); font-size: 0.9rem;
  transition: transform 0.16s ease;
}
.partner:hover .partner__go { transform: translateX(4px); }

/* PulseChain-core variant → sky-blue accents */
.partner--chain {
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(108, 171, 221, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(26, 44, 78, 0.55), rgba(11, 20, 37, 0.92));
}
.partner--chain::before { background: linear-gradient(90deg, var(--sky), rgba(108, 171, 221, 0.3)); }
.partner--chain .partner__tag { background: rgba(108, 171, 221, 0.14); border-color: rgba(108, 171, 221, 0.4); color: var(--sky-bright); }
.partner--chain .partner__go { color: var(--sky-bright); }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 3rem clamp(1rem, 4vw, 2rem) 2.5rem; border-top: 1px solid var(--line); }
.footer__name { font-family: var(--font-display); font-size: 1.2rem; margin: 0.6rem 0; }
.footer__disclaimer { max-width: 720px; margin: 0.6rem auto 1.2rem; color: var(--muted); font-size: 0.82rem; }
.footer__copy { color: var(--muted); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
/* Collapse the nav to a hamburger before the links get cramped */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--pitch);
    border-bottom: 1px solid var(--line); padding: 0.5rem 0;
  }
  .nav__links.open a { padding: 0.9rem clamp(1rem, 4vw, 2.5rem); }
  .nav__toggle { display: grid; }
}

@media (max-width: 860px) {
  .nav .btn { display: none; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; text-align: center; }
  .steps, .cards, .timeline, .partners { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .steps, .cards, .timeline, .partners { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .about__crest img, .hero__art, .ball { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Norwegian flag + soccer motifs
   ============================================================ */

/* National ribbon: red · white · blue · white · red (flag bands) */
.flag-strip {
  height: 7px; width: 100%;
  background: linear-gradient(90deg,
    var(--nor-red) 0 42%, var(--nor-white) 42% 46%,
    var(--nor-blue) 46% 54%, var(--nor-white) 54% 58%,
    var(--nor-red) 58% 100%);
}

/* Faint soccer pitch behind the hero */
.hero { overflow: hidden; }
.hero__pitch {
  position: absolute; inset: 0; z-index: -2;
  background: url("assets/pitch.svg") center 20% / min(1100px, 120%) auto no-repeat;
  opacity: 0.10; pointer-events: none;
}

/* The striker, centre stage — the star of the show */
.hero__art {
  display: block; margin: 2rem auto 0;
  height: clamp(340px, 62vw, 600px); width: auto; max-width: 100%;
  filter: drop-shadow(0 26px 70px rgba(0, 40, 104, 0.7));
  /* No float here — the run cycle is the only motion (avoids the walk+bob wobble). */
}

/* Floating soccer balls */
.ball {
  position: absolute; z-index: -1; width: 54px; height: 54px;
  background: url("assets/soccer-ball-cut.png") center / contain no-repeat;
  opacity: 0.85; animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}
.ball--1 { top: 14%;  left: 6%;  width: 46px; height: 46px; animation-delay: -1s; }
.ball--2 { top: 22%;  right: 8%; width: 62px; height: 62px; animation-delay: -3s; }
.ball--3 { bottom: 16%; left: 12%; width: 38px; height: 38px; animation-delay: -2s; opacity: 0.75; }
.ball--4 { bottom: 26%; right: 6%; width: 34px; height: 34px; animation-delay: -4.5s; opacity: 0.7; }

/* Flag-tinted stat cards */
.hero__stats li:nth-child(1) { border-top: 3px solid var(--nor-red); }
.hero__stats li:nth-child(2) { border-top: 3px solid var(--nor-white); }
.hero__stats li:nth-child(3) { border-top: 3px solid var(--nor-blue); }
.hero__stats li:nth-child(4) { border-top: 3px solid var(--gold); }

/* Section headings get a little flag underline */
.section__head h2 { position: relative; display: inline-block; }
.section__head h2::after {
  content: ""; display: block; height: 4px; width: 64px; margin: 0.6rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nor-red) 0 40%, var(--nor-white) 40% 60%, var(--nor-blue) 60% 100%);
}

/* Goal net flanking the footer crest */
.footer { position: relative; }
.footer::before {
  content: ""; position: absolute; top: 2.4rem; left: 50%; transform: translateX(-50%);
  width: 190px; height: 118px; z-index: -1;
  background: url("assets/goal.svg") center / contain no-repeat; opacity: 0.14;
}

@media (max-width: 520px) {
  .ball--1, .ball--4 { display: none; }
}

/* Interactive kick-about ball */
.kickball {
  position: fixed; top: 0; left: 0; z-index: 90;
  width: 68px; height: 68px; pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45));
  will-change: transform; user-select: none;
}
@media (max-width: 520px) { .kickball { width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .kickball { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__art, .ball { animation: none; }
}
