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

:root {
  --bg: #0F2A22;
  --bg-deep: #0A1E18;
  --surface: #163B30;
  --surface-line: rgba(242, 239, 225, 0.1);
  --accent: #4FBE8B;
  --accent-bright: #8FE3B8;
  --gold: #FFD800;
  --navy-deep: #061A22;
  --sea-mid: #10362E;
  --ink: #F2EFE1;
  --ink-muted: #9FC2B3;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--navy-deep) 0%, var(--sea-mid) 38%, var(--bg) 68%, var(--bg-deep) 100%) fixed;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
  position: relative;
}

/* Faint water-line texture washing over the whole page, so no section
   ever reads as a flat block of colour. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='140' viewBox='0 0 220 140'%3E%3Cpath d='M0 20 Q 27 5 55 20 T 110 20 T 165 20 T 220 20' stroke='%238FE3B8' stroke-opacity='0.08' stroke-width='1.5' fill='none'/%3E%3Cpath d='M0 60 Q 27 45 55 60 T 110 60 T 165 60 T 220 60' stroke='%238FE3B8' stroke-opacity='0.06' stroke-width='1.5' fill='none'/%3E%3Cpath d='M0 100 Q 27 85 55 100 T 110 100 T 165 100 T 220 100' stroke='%238FE3B8' stroke-opacity='0.05' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 140px;
}

.site-header, .hero, .stat-strip, section.section, .page-hero, footer, .ticker {
  position: relative;
  z-index: 1;
}

h1, h2, h3, .display {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
}

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 42, 34, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 32px; width: 32px; display: block; border-radius: 4px; }

.brand-name {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active { color: var(--ink); }

nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
}

.nav-x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--surface-line);
  padding: 8px 16px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  font-weight: 600;
  color: var(--ink) !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-x:hover { border-color: var(--accent); background: rgba(79, 190, 139, 0.08); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 130px;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(10,30,24,0.8) 42%, rgba(10,30,24,0.4) 75%),
              linear-gradient(0deg, var(--bg) 0%, rgba(10,30,24,0) 30%);
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

.hero-sail {
  position: absolute;
  top: -10%;
  right: -6%;
  width: 620px;
  height: 620px;
  clip-path: polygon(0% 100%, 100% 100%, 0% 0%);
  background: linear-gradient(200deg, var(--surface) 0%, rgba(79,190,139,0.16) 100%);
  opacity: 0.9;
  animation: sail-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-sail-2 {
  position: absolute;
  top: 18%;
  right: 22%;
  width: 220px;
  height: 220px;
  clip-path: polygon(0% 100%, 100% 100%, 0% 0%);
  background: rgba(143, 227, 184, 0.14);
  animation: sail-in 1.3s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-sail-3 {
  position: absolute;
  top: 46%;
  right: 4%;
  width: 140px;
  height: 140px;
  clip-path: polygon(0% 100%, 100% 100%, 0% 0%);
  background: rgba(255, 216, 0, 0.1);
  animation: sail-in 1.5s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes sail-in {
  from { transform: translateX(60px) translateY(-30px) scale(0.92); opacity: 0; }
  to   { transform: translateX(0) translateY(0) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sail, .hero-sail-2, .hero-sail-3 { animation: none; }
}

.wave-divider {
  display: block;
  width: 100%;
  height: 40px;
  line-height: 0;
}
.wave-divider svg { display: block; width: 100%; height: 100%; }
.wave-divider path { fill: var(--navy-deep); }

.hero-content {
  position: relative;
  max-width: 640px;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-bright);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 22px;
}

.eyebrow-tag .tri {
  width: 0; height: 0;
  border-left: 6px solid var(--accent-bright);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.hero h1 {
  font-size: clamp(56px, 9vw, 108px);
  line-height: 0.92;
  text-transform: uppercase;
}

.hero p.lede {
  margin-top: 24px;
  font-size: 19px;
  color: var(--ink-muted);
  max-width: 480px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 28px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #08201A;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: background 0.2s ease;
}
.btn-primary:hover { background: var(--accent-bright); }

.btn-outline {
  border-color: var(--surface-line);
  color: var(--ink);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(79,190,139,0.08); }

/* ---------- Sections ---------- */
section.section {
  padding: 96px 0;
}

.section-head {
  max-width: 560px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 52px);
  text-transform: uppercase;
  line-height: 1;
}

.section-head p {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 16px;
}

/* ---------- Player / Founder cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.player-box, .founder-card {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  padding: 32px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.player-box:hover, .founder-card:hover {
  border-color: rgba(79,190,139,0.5);
  transform: translateY(-3px);
}

.monogram {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  border: 1px solid var(--surface-line);
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-bright);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--surface-line);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.card-name {
  margin-top: 20px;
  font-size: 30px;
  text-transform: uppercase;
}

.card-role {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.x-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--surface-line);
  padding: 8px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.x-link:hover { border-color: var(--accent); background: rgba(79,190,139,0.1); }

.x-link .x-glyph {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 15px;
}

.no-x {
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---------- Featured player teaser (home) ---------- */
.teaser {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 36px) 100%, 0 100%);
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.teaser .monogram { width: 84px; height: 84px; font-size: 34px; flex-shrink: 0; }
.teaser .avatar { width: 84px; height: 84px; flex-shrink: 0; }

.teaser-info h3 { font-size: 34px; text-transform: uppercase; }
.teaser-info p { color: var(--ink-muted); margin-top: 8px; font-size: 15px; }

.teaser-link {
  margin-left: auto;
  font-weight: 600;
  color: var(--accent-bright);
  white-space: nowrap;
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--surface-line);
  border-bottom: 1px solid var(--surface-line);
  background: var(--bg-deep);
  padding: 20px 0;
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 26s linear infinite;
  width: max-content;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
}

.ticker-item {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.ticker-item.gold { color: var(--gold); }

.ticker-item .tri {
  width: 0; height: 0;
  border-left: 6px solid var(--accent-bright);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* ---------- News ---------- */
.news-grid {
  display: grid;
  gap: 20px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-left: 3px solid var(--accent);
  padding: 26px 32px;
  overflow: hidden;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.news-card:hover {
  border-color: rgba(79,190,139,0.5);
  transform: translateY(-3px);
}

.news-image {
  display: block;
  width: calc(100% + 64px);
  height: auto;
  margin: -26px -32px 24px;
  border-bottom: 1px solid var(--surface-line);
}

.news-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-title {
  margin-top: 8px;
  font-size: 24px;
  text-transform: uppercase;
}

.news-body {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 15px;
  max-width: 640px;
}

.news-body a {
  color: var(--accent-bright);
  font-weight: 600;
}
.news-body a:hover { text-decoration: underline; }

.empty-state {
  border: 1px dashed var(--surface-line);
  padding: 56px 32px;
  text-align: center;
  color: var(--ink-muted);
}

.empty-state .display {
  display: block;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--surface-line);
  background: var(--navy-deep);
  padding: 48px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer .brand-name { font-size: 20px; }

footer .foot-links { display: flex; gap: 28px; }

footer .foot-links a { color: var(--ink-muted); font-size: 14px; }
footer .foot-links a:hover { color: var(--ink); }

.foot-meta { color: var(--ink-muted); font-size: 13px; }

.footer-legal {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 20px 32px 0;
  border-top: 1px solid var(--surface-line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-muted);
  opacity: 0.65;
}

/* ---------- About section ---------- */
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--surface-line);
  border-bottom: 1px solid var(--surface-line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.about-grid h2 {
  font-size: clamp(30px, 4vw, 44px);
  text-transform: uppercase;
  margin-top: 10px;
}

.about-text {
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 560px;
}
.about-text + .about-text { margin-top: 16px; }

.section-more {
  margin-top: 28px;
}

/* ---------- Story page ---------- */
.story-block {
  max-width: 720px;
}
.story-block h2 {
  font-size: clamp(28px, 4vw, 40px);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.story-block .about-text {
  margin-bottom: 16px;
}
.story-block .about-text.lead {
  color: var(--accent-bright);
  font-weight: 600;
}
.closing-lines {
  margin-top: 28px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(22px, 3.4vw, 32px);
  text-transform: uppercase;
  color: var(--accent-bright);
  line-height: 1.3;
}

/* ---------- Sponsor cards ---------- */
.site-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--surface-line);
  padding: 8px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-link:hover { border-color: var(--accent); background: rgba(79,190,139,0.1); }

.sponsor-card p {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 14px;
}
.sponsor-card .btn {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
}

.card-grid-narrow {
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
}

.sponsor-form {
  max-width: 560px;
}
.sponsor-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sponsor-form label {
  display: block;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sponsor-form input,
.sponsor-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--surface-line);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  padding: 12px 14px;
  resize: vertical;
}
.sponsor-form input:focus,
.sponsor-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.sponsor-form .btn { margin-top: 4px; }
@media (max-width: 560px) {
  .sponsor-form-grid { grid-template-columns: 1fr; }
}

/* ---------- Mini game widget ---------- */
.mini-game {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 230px;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-top: 3px solid var(--accent);
  z-index: 40;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
.mini-game-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--surface-line);
}
.mini-game-head button {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.mini-game-head button:hover { color: var(--ink); }
.mini-game-body { padding: 10px; }
.mini-game.collapsed .mini-game-body { display: none; }
#sailCanvas {
  width: 100%;
  display: block;
  background: linear-gradient(180deg, var(--bg-deep), var(--navy-deep));
  border: 1px solid var(--surface-line);
  cursor: pointer;
}
.mini-game-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-muted);
}
@media (max-width: 640px) {
  .mini-game { display: none; }
}

/* ---------- FAQ helper widget ---------- */
.faq-widget {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 41;
  font-family: 'Inter', sans-serif;
}
.faq-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #08201A;
  border: none;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
.faq-toggle:hover { background: var(--accent-bright); }

.faq-panel {
  position: absolute;
  left: 0;
  bottom: 58px;
  width: 280px;
  max-height: 380px;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-top: 3px solid var(--accent);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  display: none;
  flex-direction: column;
}
.faq-widget.open .faq-panel { display: flex; }

.faq-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--surface-line);
}
.faq-head button {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 18px;
  cursor: pointer;
}
.faq-head button:hover { color: var(--ink); }

.faq-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
}
.faq-msg {
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 10px;
  max-width: 88%;
}
.faq-msg.bot {
  background: var(--bg-deep);
  border: 1px solid var(--surface-line);
  color: var(--ink);
  align-self: flex-start;
}
.faq-msg.user {
  background: var(--accent);
  color: #08201A;
  align-self: flex-end;
  font-weight: 600;
}

.faq-form {
  display: flex;
  border-top: 1px solid var(--surface-line);
}
.faq-form input {
  flex: 1;
  background: var(--bg-deep);
  border: none;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 10px 12px;
}
.faq-form input:focus { outline: none; }
.faq-form button {
  background: var(--accent);
  color: #08201A;
  border: none;
  width: 40px;
  font-weight: 800;
  cursor: pointer;
}
.faq-form button:hover { background: var(--accent-bright); }

@media (max-width: 640px) {
  .faq-panel { width: calc(100vw - 40px); }
}

/* ---------- Follow CTA ---------- */
.follow-cta {
  padding: 96px 0;
  text-align: center;
}
.follow-cta h2 {
  font-size: clamp(32px, 5vw, 52px);
  text-transform: uppercase;
}
.follow-cta p {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 16px;
}
.follow-cta .btn { margin-top: 28px; }

/* ---------- Page header (roster/founders/news) ---------- */
.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--surface-line);
}
.page-hero h1 {
  font-size: clamp(44px, 7vw, 72px);
  text-transform: uppercase;
}
.page-hero p {
  margin-top: 12px;
  color: var(--ink-muted);
  max-width: 480px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: block; }

  nav.main-nav.open {
    display: flex;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--surface-line);
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 24px;
  }
  nav.main-nav.open a { padding: 14px 0; width: 100%; }
  .nav-x { align-self: flex-start; margin-top: 8px; }

  .stat-strip .wrap { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--surface-line); }
  .stat:first-child { border-top: none; }

  .teaser { padding: 32px; }
  .teaser-link { margin-left: 0; }

  .about-grid { grid-template-columns: 1fr; gap: 20px; }
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}
