/* ==========================================================================
   HOW TO FISH WIKI — "TROPICAL CHAOS" DESIGN SYSTEM
   A chaotic, vibrant, ocean-flavored aesthetic that matches the unhinged
   physics-based fishing simulator vibe.
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* 1. DESIGN TOKENS                                                           */
/* -------------------------------------------------------------------------- */
:root {
  /* Core palette — deep ocean + bioluminescent + tropical sunset */
  --abyss:        #02132a;   /* deepest navy/black */
  --deep:         #062a4d;   /* deep navy */
  --ocean:        #0a4a7a;   /* ocean blue */
  --reef:         #00b8d9;   /* reef teal */
  --glow:         #3df5e0;   /* bioluminescent cyan */
  --neon:         #6affc0;   /* neon mint */
  --tropic:       #00d97e;   /* tropical green */
  --coral:        #ff5d4e;   /* coral sunset */
  --sunset:       #ffa84a;   /* sunset orange */
  --gold:         #ffd56b;   /* treasure gold */
  --danger:       #ff3b6b;   /* shark-danger pink-red */
  --bone:         #eaf6ff;   /* near-white "bone" */
  --muted:        #7ea3c4;   /* dusty blue-gray */

  /* Semantic */
  --bg-base:      var(--abyss);
  --bg-elevated:  color-mix(in srgb, var(--deep) 80%, var(--abyss));
  --bg-card:      rgba(8, 36, 66, 0.55);
  --bg-card-hover:rgba(8, 42, 78, 0.85);
  --text-main:    var(--bone);
  --text-dim:     var(--muted);
  --accent:       var(--glow);
  --accent-2:     var(--coral);

  /* Fonts — distinctive, NOT Inter/Roboto/Arial */
  --font-display: 'Bungee', 'Russo One', 'Saira Condensed', system-ui, sans-serif;
  --font-heading: 'Saira Semi Condensed', 'Saira Condensed', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Shadows — colored glows, not gray */
  --shadow-card:  0 10px 40px -10px rgba(0, 0, 0, 0.6), 0 4px 12px -4px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 24px rgba(61, 245, 224, 0.25);
  --shadow-deep:  0 30px 80px -20px rgba(2, 19, 42, 0.9);

  /* Border */
  --border-subtle: rgba(126, 163, 196, 0.15);
  --border-glow:   rgba(61, 245, 224, 0.4);

  /* Layout */
  --max-w: 1180px;
  --header-h: 76px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* -------------------------------------------------------------------------- */
/* 2. RESET & BASE                                                            */
/* -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 1200px 600px at 50% -100px, rgba(0, 184, 217, 0.18), transparent 60%),
    radial-gradient(ellipse 800px 400px at 10% 30%, rgba(0, 217, 126, 0.08), transparent 60%),
    radial-gradient(ellipse 800px 400px at 90% 60%, rgba(255, 93, 78, 0.08), transparent 60%),
    linear-gradient(180deg, var(--abyss) 0%, var(--deep) 60%, var(--abyss) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Animated ambient light bubbles floating in body background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle 2px at 10% 20%, rgba(61, 245, 224, 0.6), transparent),
    radial-gradient(circle 3px at 80% 15%, rgba(106, 255, 192, 0.5), transparent),
    radial-gradient(circle 2px at 25% 70%, rgba(255, 213, 107, 0.4), transparent),
    radial-gradient(circle 4px at 60% 85%, rgba(255, 93, 78, 0.35), transparent),
    radial-gradient(circle 2px at 90% 50%, rgba(61, 245, 224, 0.4), transparent);
  animation: ambientFloat 30s linear infinite;
  opacity: 0.7;
}

@keyframes ambientFloat {
  0%   { transform: translateY(0) translateX(0); }
  25%  { transform: translateY(-30px) translateX(20px); }
  50%  { transform: translateY(20px) translateX(-15px); }
  75%  { transform: translateY(-10px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}

/* SVG noise texture overlay for depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  body::before { animation: none !important; }
}

/* -------------------------------------------------------------------------- */
/* 3. LAYOUT                                                                  */
/* -------------------------------------------------------------------------- */
.container {
  width: 92%;
  max-width: var(--max-w);
  margin: 0 auto;
}

main { padding: 4rem 0 5rem; }

.section-divider {
  width: 100%;
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, var(--abyss) 100%);
  margin-top: -80px;
  position: relative;
  z-index: 5;
}

/* -------------------------------------------------------------------------- */
/* 4. HEADER / NAVIGATION                                                     */
/* -------------------------------------------------------------------------- */
.site-header {
  background: linear-gradient(180deg, rgba(2, 19, 42, 0.92) 0%, rgba(6, 42, 77, 0.85) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(61, 245, 224, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s var(--ease-out);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  border-radius: var(--r-sm);
  box-shadow: 0 0 12px rgba(61, 245, 224, 0.4);
  filter: saturate(1.1);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  color: var(--bone);
  text-transform: uppercase;
}

.logo-text .tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--glow);
  text-transform: uppercase;
  margin-top: 2px;
}

.logo-text .legacy-span {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Primary nav */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
  position: relative;
}

.main-nav a:hover {
  color: var(--glow);
  background: rgba(61, 245, 224, 0.08);
}

.main-nav a.active {
  color: var(--glow);
  background: rgba(61, 245, 224, 0.12);
  box-shadow: inset 0 -2px 0 var(--glow);
}

.main-nav a:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 2px;
}

/* Nav search toggle */
.nav-search-btn {
  background: rgba(61, 245, 224, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--glow);
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.nav-search-btn:hover { background: rgba(61, 245, 224, 0.16); border-color: var(--border-glow); transform: translateY(-1px); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bone);
  margin: 4px 0;
  transition: 0.3s;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 19, 42, 0.92);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.search-overlay-inner {
  width: 90%;
  max-width: 640px;
}
.search-overlay input {
  width: 100%;
  background: rgba(8, 42, 78, 0.6);
  border: 1px solid var(--border-glow);
  border-radius: var(--r-md);
  padding: 1.1rem 1.5rem;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
  outline: none;
}
.search-overlay input::placeholder { color: var(--text-dim); }
.search-overlay .hint {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 1rem;
  text-align: center;
}
.search-overlay .hint kbd {
  background: rgba(126, 163, 196, 0.15);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
}
.search-overlay .close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--bone);
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  font-size: 1.4rem;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* 5. HERO                                                                    */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Hero background image with parallax scale */
.hero-bg {
  position: absolute;
  inset: -10%;
  z-index: -3;
  background-size: cover;
  background-position: center;
  filter: saturate(1.2) contrast(1.05);
  transform: scale(1.05);
  will-change: transform;
}

/* Hero gradient veil */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 80% at 50% 40%, rgba(0, 184, 217, 0.25), transparent 70%),
    linear-gradient(180deg,
      rgba(2, 19, 42, 0.55) 0%,
      rgba(2, 19, 42, 0.2) 35%,
      rgba(2, 19, 42, 0.6) 75%,
      var(--abyss) 100%);
}

/* Floating bubble particles */
.hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bubble {
  position: absolute;
  bottom: -50px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(61, 245, 224, 0.4), rgba(0, 184, 217, 0.05));
  border: 1px solid rgba(61, 245, 224, 0.25);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
  animation: rise linear infinite;
  opacity: 0;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-110vh) translateX(60px) scale(1.2); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 3rem 1.5rem 6rem;
  animation: heroFadeIn 1.4s var(--ease-out) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(61, 245, 224, 0.08);
  border: 1px solid var(--border-glow);
  color: var(--glow);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--glow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 1px;
  color: var(--bone);
  margin: 0 0 1.2rem;
  text-transform: uppercase;
  text-shadow:
    0 0 40px rgba(61, 245, 224, 0.5),
    0 4px 30px rgba(2, 19, 42, 0.9),
    0 0 80px rgba(0, 184, 217, 0.3);
  position: relative;
}

/* Layered gradient text for hero title accent variant */
.hero h1.is-gradient {
  background: linear-gradient(135deg, var(--bone) 0%, var(--glow) 50%, var(--neon) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(61, 245, 224, 0.45));
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--bone);
  text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 4px 12px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
  margin: 0 0 1.25rem;
  opacity: 0.92;
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: #f8fafc;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 4px 12px rgba(0,0,0,0.5);
  font-weight: 500;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Hero stats strip */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--glow);
  display: block;
  line-height: 1;
}
.hero-stat .label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero-bg { inset: -5%; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 19, 42, 0.7) 0%, rgba(2, 19, 42, 0.3) 50%, var(--abyss) 100%);
}
.page-hero .hero-content { padding: 4rem 1.5rem 3rem; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

/* -------------------------------------------------------------------------- */
/* 6. BUTTONS                                                                 */
/* -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--reef) 0%, var(--tropic) 100%);
  color: var(--abyss);
  padding: 0.95rem 1.8rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s, filter 0.25s;
  box-shadow: 0 8px 24px -6px rgba(0, 184, 217, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px -6px rgba(0, 184, 217, 0.65), inset 0 1px 0 rgba(255,255,255,0.4);
  filter: brightness(1.08);
}
.btn:hover::after { transform: translateX(100%); }
.btn:active { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }

.btn-ghost {
  background: rgba(234, 246, 255, 0.04);
  color: var(--bone);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(61, 245, 224, 0.1);
  border-color: var(--border-glow);
  filter: none;
}
.btn-ghost::after { display: none; }

.btn-coral {
  background: linear-gradient(135deg, var(--coral) 0%, var(--sunset) 100%);
  color: var(--abyss);
  box-shadow: 0 8px 24px -6px rgba(255, 93, 78, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-coral:hover {
  box-shadow: 0 14px 36px -6px rgba(255, 93, 78, 0.65), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* -------------------------------------------------------------------------- */
/* 7. TYPOGRAPHY                                                              */
/* -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--bone);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--bone) 0%, var(--glow) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
  position: relative;
  display: inline-block;
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 2.5rem;
}

h3.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--bone);
  font-weight: 700;
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

h3.card-title .icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(61, 245, 224, 0.15), rgba(0, 217, 126, 0.1));
  border: 1px solid var(--border-glow);
  font-size: 1rem;
}

p { margin: 0 0 1rem; }

a { color: var(--glow); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--neon); }

ul, ol { padding-left: 1.4rem; margin: 0 0 1rem; }
li { margin-bottom: 0.7rem; }

strong { color: var(--bone); font-weight: 700; }
em { color: var(--gold); font-style: italic; }

/* -------------------------------------------------------------------------- */
/* 8. CARDS                                                                   */
/* -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

/* Decorative corner accents */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--border-glow);
  border-left: 2px solid var(--border-glow);
  border-top-left-radius: var(--r-md);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  transform: translate(6px, 6px);
}
.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-bottom: 2px solid var(--border-glow);
  border-right: 2px solid var(--border-glow);
  border-bottom-right-radius: var(--r-md);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  transform: translate(6px, 6px);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), 0 0 30px rgba(61, 245, 224, 0.15);
}
.card:hover::before,
.card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* Guide card — with image */
.guide-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.guide-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-deep), 0 0 40px rgba(61, 245, 224, 0.2);
}
.guide-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--deep);
}
.guide-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out), filter 0.6s;
  filter: saturate(1.05);
}
.guide-card:hover .guide-card-img img {
  transform: scale(1.08);
  filter: saturate(1.2) brightness(1.05);
}
.guide-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 19, 42, 0.7) 100%);
  pointer-events: none;
}

/* Tag chip on card image */
.guide-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(2, 19, 42, 0.7);
  backdrop-filter: blur(8px);
  color: var(--glow);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-glow);
}

.guide-card-body {
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.guide-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--bone);
  margin: 0 0 0.6rem;
}
.guide-card-body p {
  color: var(--text-dim);
  font-size: 0.96rem;
  margin: 0 0 1.2rem;
  flex-grow: 1;
}
.guide-card-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Image inside plain card */
.card img.card-img {
  width: 100%;
  border-radius: var(--r-sm);
  margin-bottom: 1.2rem;
  border: 1px solid var(--border-subtle);
  display: block;
}

/* -------------------------------------------------------------------------- */
/* 9. GRIDS                                                                   */
/* -------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.8rem;
}

.grid-guides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

/* -------------------------------------------------------------------------- */
/* 10. ACHIEVEMENT LIST                                                       */
/* -------------------------------------------------------------------------- */
.achievement-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
}

.achievement {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--bg-card);
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.achievement::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--coral));
  opacity: 0;
  transition: opacity 0.25s;
}
.achievement:hover {
  transform: translateY(-3px) translateX(3px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5), 0 0 20px rgba(255, 213, 107, 0.15);
  background: var(--bg-card-hover);
}
.achievement:hover::before { opacity: 1; }

.achievement img {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: transform 0.3s var(--ease-out);
}
.achievement:hover img { transform: rotate(-4deg) scale(1.05); }

.achievement-info { flex-grow: 1; min-width: 0; }
.achievement-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
  color: var(--bone);
  font-weight: 700;
}
.achievement-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* -------------------------------------------------------------------------- */
/* 11. FOOTER                                                                 */
/* -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--abyss) 0%, #010a1c 100%);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  color: var(--text-dim);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--reef), var(--glow), var(--tropic), transparent);
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo img { height: 40px; }
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.92rem;
  max-width: 320px;
  line-height: 1.6;
}
.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bone);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: var(--text-dim);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover {
  color: var(--glow);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer-bottom .links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-bottom a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--glow); }

/* -------------------------------------------------------------------------- */
/* 12. UTILITY & ANIMATION                                                    */
/* -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* Feature strip on homepage */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}
.feature-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: rgba(8, 42, 78, 0.3);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}
.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  background: rgba(8, 42, 78, 0.5);
}
.feature-item .emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 0 8px rgba(61, 245, 224, 0.4));
}
.feature-item .label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--bone);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}
.feature-item .desc {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Content intro block */
.content-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.content-intro p {
  font-size: 1.08rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Warning / tip callout */
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--r-md);
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.callout-tip {
  background: rgba(0, 217, 126, 0.08);
  border: 1px solid rgba(0, 217, 126, 0.3);
  border-left: 4px solid var(--tropic);
}
.callout-warn {
  background: rgba(255, 93, 78, 0.08);
  border: 1px solid rgba(255, 93, 78, 0.3);
  border-left: 4px solid var(--coral);
}
.callout-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

/* -------------------------------------------------------------------------- */
/* 13. SECTION LAYOUT                                                         */
/* -------------------------------------------------------------------------- */
.section {
  padding: 4rem 0;
}
.section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(6, 42, 77, 0.3) 50%, transparent 100%);
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head .section-subtitle {
  margin: 0 auto 0;
}

/* CTA band */
.cta-band {
  position: relative;
  margin: 4rem 0;
  padding: 3.5rem 2rem;
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at 30% 30%, rgba(0, 184, 217, 0.2), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(255, 93, 78, 0.15), transparent 60%),
    linear-gradient(135deg, rgba(6, 42, 77, 0.9), rgba(10, 74, 122, 0.7));
  border: 1px solid var(--border-glow);
  text-align: center;
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(61, 245, 224, 0.05), transparent, rgba(255, 93, 78, 0.04), transparent);
  animation: slowSpin 30s linear infinite;
  pointer-events: none;
}
@keyframes slowSpin {
  to { transform: rotate(360deg); }
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.8rem;
  color: var(--bone);
}
.cta-band p {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 1.8rem;
}

/* -------------------------------------------------------------------------- */
/* 14. PROGRESS / LOADING                                                     */
/* -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--reef), var(--glow), var(--tropic));
  z-index: 3000;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--glow);
}

/* Page loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--abyss);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.2rem;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.page-loader .hook {
  font-size: 3rem;
  animation: hookBounce 1.2s var(--ease-bounce) infinite;
}
@keyframes hookBounce {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50%      { transform: translateY(-15px) rotate(10deg); }
}
.page-loader .label {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 3px;
  color: var(--glow);
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* 15. SIMPLE CONTENT PAGES (about/contact/privacy/terms)                     */
/* -------------------------------------------------------------------------- */
.simple-page main {
  padding: 4rem 0 5rem;
}
.simple-page .card {
  max-width: 760px;
  margin: 0 auto 1.5rem;
}

/* -------------------------------------------------------------------------- */
/* 16. RESPONSIVE                                                             */
/* -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  body { font-size: 16px; }

  /* Hide inline nav, show toggle */
  .main-nav ul {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(180deg, rgba(2, 19, 42, 0.98), rgba(6, 42, 77, 0.98));
    backdrop-filter: blur(18px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease-out);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open ul { transform: translateY(0); }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    padding: 1rem 1.5rem;
    border-radius: 0;
    font-size: 1rem;
  }
  .main-nav a.active {
    box-shadow: inset 4px 0 0 var(--glow);
  }

  .nav-toggle { display: inline-flex; }
  .nav-search-btn { display: none; }

  .hero { min-height: 70vh; }
  .hero-stats { gap: 1.5rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero { min-height: 65vh; }
  .hero-content { padding: 2rem 1rem 4rem; }
  .card { padding: 1.5rem; }
  .guide-card-body { padding: 1.3rem 1.3rem 1.5rem; }
  .achievement { padding: 1rem; gap: 0.8rem; }
  .achievement img { width: 56px; height: 56px; }
  .feature-strip { grid-template-columns: 1fr; }
  .cta-band { padding: 2.5rem 1.2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Print-safe */
@media print {
  .site-header, .site-footer, .hero-bg, .hero-bubbles, .scroll-progress, .page-loader, .nav-toggle, .nav-search-btn {
    display: none !important;
  }
  body { background: white; color: black; }
}
