/* ============================================================
   FISHING TRIBE - Premium Design System
   HTML5 + CSS3 + Vanilla JS (no frameworks, no libraries)
   ============================================================ */

:root {
  --navy: #08192D;
  --navy-2: #0A1E36;
  --card: #0E233E;
  --card-solid: #0E233E;
  --gold: #D4AF37;
  --gold-soft: rgba(212, 175, 55, 0.15);
  --gold-mid: rgba(212, 175, 55, 0.45);
  --green: #2ECC71;
  --white: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.70);
  --text-3: rgba(255, 255, 255, 0.50);
  --border: rgba(212, 175, 55, 0.15);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --maxw: 1280px;
  --pad: clamp(80px, 13vh, 150px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-h: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-b);
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--navy); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 60vw at 80% -10%, rgba(212,175,55,0.10), transparent 60%),
    radial-gradient(50vw 50vw at -10% 30%, rgba(46,204,113,0.07), transparent 60%),
    var(--navy);
  pointer-events: none;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; }
.h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2, .h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h3, .h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
h4, .h4 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p { color: var(--text-2); }

.overline {
  font-family: var(--font-b);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-block;
}
.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.serif-italic { font-style: italic; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 9999px; font-family: var(--font-b);
  font-weight: 600; font-size: 1rem; cursor: pointer; border: none;
  padding: 16px 32px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s ease, border-color .3s ease;
  will-change: transform;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 34px rgba(212,175,55,0.40); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--white); border: 1px solid var(--gold-mid); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(212,175,55,0.12); transform: translateY(-3px); }

/* Google Play badge button */
.gp-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: #000; border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px; padding: 12px 24px; color: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
}
.gp-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.5); border-color: var(--gold-mid); }
.gp-btn svg { width: 26px; height: 28px; flex-shrink: 0; }
.gp-btn .gp-txt { text-align: left; line-height: 1.1; }
.gp-btn .gp-small { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.gp-btn .gp-big { font-family: var(--font-b); font-size: 1.2rem; font-weight: 600; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color .4s ease, backdrop-filter .4s ease, border-color .4s ease, padding .4s ease;
  border-bottom: 1px solid transparent; padding: 18px 0;
}
.nav.scrolled {
  background: rgba(8, 25, 45, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-h); font-weight: 700; font-size: 1.5rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; color: var(--text-2); font-weight: 500; position: relative; transition: color .3s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--gold); transition: width .35s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 16px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 120; }
.burger span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .35s var(--ease), opacity .3s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(8,25,45,0.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 40px clamp(24px, 8vw, 60px);
  transform: translateX(100%); transition: transform .5s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: var(--font-h); font-size: 2rem; color: var(--text-2); padding: 10px 0; border-bottom: 1px solid var(--border); transition: color .3s ease, padding-left .3s ease; }
.mobile-menu a:hover { color: var(--gold); padding-left: 10px; }
.mobile-menu .gp-btn { margin-top: 24px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; top: -10%; left: 0; width: 100%; height: 120%; z-index: -1; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,25,45,0.94) 0%, rgba(8,25,45,0.72) 45%, rgba(8,25,45,0.35) 100%),
              linear-gradient(0deg, var(--navy) 2%, transparent 40%);
}
.hero-content { max-width: 760px; padding-top: 90px; }
.hero h1 { margin: 18px 0 10px; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--text-2); max-width: 540px; margin: 22px 0 8px; }
.hero .lead strong { color: var(--white); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-3); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-cue .mouse { width: 24px; height: 40px; border: 1.5px solid var(--gold-mid); border-radius: 14px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--gold); border-radius: 2px; animation: scrollDot 1.8s infinite; }

/* ---------- Section basics ---------- */
section { position: relative; }
.section-pad { padding: var(--pad) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { margin: 14px 0; }
.section-head p { font-size: 1.1rem; }

/* ---------- Feature grid ---------- */
.grid-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.card {
  background: rgba(14, 35, 62, 0.45); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px;
  transition: transform .5s var(--ease), border-color .4s ease, background-color .4s ease, box-shadow .4s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-8px); border-color: var(--gold-mid); background: rgba(14,35,62,0.78); box-shadow: var(--shadow-lg); }
.card .ico {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(212,175,55,0.10); border: 1px solid var(--gold-soft); color: var(--gold); margin-bottom: 22px;
  transition: transform .5s var(--ease), background-color .4s ease;
}
.card:hover .ico { transform: scale(1.08) rotate(-4deg); background: rgba(212,175,55,0.18); }
.card .ico svg { width: 28px; height: 28px; }
.card h4 { margin-bottom: 10px; font-size: 1.4rem; }
.card p { font-size: 0.96rem; }
.card.green .ico { color: var(--green); background: rgba(46,204,113,0.10); border-color: rgba(46,204,113,0.2); }
.card.green:hover .ico { background: rgba(46,204,113,0.2); }

/* ---------- Manifesto / Why ---------- */
.why { position: relative; }
.why-bg { position: absolute; inset: 0; z-index: -1; opacity: 0.22; }
.why-bg img { width: 100%; height: 100%; object-fit: cover; }
.why::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--navy), rgba(8,25,45,0.85), var(--navy)); }
.chapters { display: flex; flex-direction: column; gap: clamp(30px, 5vw, 56px); }
.chapter {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start;
  padding: 28px 0; border-top: 1px solid var(--border); position: relative;
}
.chapter .num { font-family: var(--font-h); font-size: clamp(3.5rem, 7vw, 6rem); font-weight: 700; color: var(--gold); opacity: 0.28; line-height: 0.8; }
.chapter h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: 8px; }
.chapter p { font-size: 1.05rem; max-width: 640px; }
.chapter .tag { color: var(--green); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 28px); }
.stat {
  background: rgba(14,35,62,0.45); backdrop-filter: blur(18px); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 38px 24px; text-align: center;
  transition: transform .5s var(--ease), border-color .4s ease;
}
.stat:hover { transform: translateY(-6px); border-color: var(--gold-mid); }
.stat .big { font-family: var(--font-h); font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 700; color: var(--white); line-height: 1; }
.stat .big.gold { color: var(--gold); }
.stat .big.green { color: var(--green); }
.stat .lbl { margin-top: 12px; color: var(--text-2); font-size: 0.92rem; letter-spacing: 0.02em; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; background: rgba(14,35,62,0.3); }
.marquee-inner { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-inner span { font-family: var(--font-h); font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--gold); opacity: 0.85; padding: 0 34px; white-space: nowrap; font-style: italic; }
.marquee-inner .dot { color: var(--green); opacity: 0.6; }

/* ---------- Download CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(50px, 8vw, 96px) clamp(28px, 6vw, 80px); margin: var(--pad) auto; max-width: var(--maxw); }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8,25,45,0.95), rgba(8,25,45,0.7)); }
.cta { border: 1px solid var(--border); }
.cta-flex { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-logo { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow); }
.cta h2 { margin: 18px 0 10px; }
.cta p { font-size: 1.1rem; max-width: 520px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: clamp(60px, 8vw, 90px) 0 40px; background: rgba(8,25,45,0.6); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand { margin-bottom: 18px; }
.footer .about { color: var(--text-2); max-width: 320px; font-size: 0.95rem; }
.footer h5 { font-family: var(--font-b); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; color: var(--gold); margin-bottom: 20px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; color: var(--text-2); font-size: 0.95rem; margin-bottom: 12px; transition: color .3s ease, padding-left .3s ease; }
.footer-col a:hover { color: var(--gold); padding-left: 5px; }
.footer .mail { color: var(--gold); }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-2); transition: transform .35s var(--ease), color .3s ease, border-color .3s ease, background-color .3s ease; }
.socials a:hover { color: var(--gold); border-color: var(--gold-mid); transform: translateY(-4px); background: rgba(212,175,55,0.1); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--border); text-align: center; color: var(--text-3); font-size: 0.85rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(140px, 20vh, 200px) 0 clamp(50px, 8vw, 90px); position: relative; overflow: hidden; }
.page-hero .overline { margin-bottom: 14px; }
.page-hero p { font-size: 1.15rem; max-width: 620px; margin-top: 16px; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; opacity: 0.28; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,25,45,0.7), var(--navy)); }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.contact-card {
  background: rgba(14,35,62,0.45); backdrop-filter: blur(18px); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px; display: flex; gap: 20px; align-items: flex-start;
  transition: transform .5s var(--ease), border-color .4s ease, background-color .4s ease;
}
.contact-card:hover { transform: translateY(-6px); border-color: var(--gold-mid); background: rgba(14,35,62,0.75); }
.contact-card .ico { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: rgba(212,175,55,0.1); border: 1px solid var(--gold-soft); color: var(--gold); }
.contact-card .ico svg { width: 24px; height: 24px; }
.contact-card h4 { margin-bottom: 6px; }
.contact-card p { font-size: 0.94rem; margin-bottom: 8px; }
.contact-card .mail { color: var(--gold); font-weight: 600; }

.info-box { background: rgba(46,204,113,0.06); border: 1px solid rgba(46,204,113,0.25); border-radius: var(--radius); padding: 30px 34px; margin-top: 40px; }
.info-box h4 { color: var(--green); margin-bottom: 8px; }

/* ---------- Delete account ---------- */
.warn-box { background: rgba(231,76,60,0.09); border: 1px solid rgba(231,76,60,0.4); border-left: 4px solid #E74C3C; border-radius: var(--radius); padding: 30px 34px; margin: 30px 0; }
.warn-box h3 { color: #ff6f61; font-family: var(--font-b); font-size: 1.25rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.warn-box p, .warn-box li { color: rgba(255,255,255,0.82); }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 34px 0; }
.step { background: rgba(14,35,62,0.5); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step .snum { font-family: var(--font-h); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.step h4 { margin: 10px 0 8px; }
.step p { font-size: 0.94rem; }
.timeline { border-left: 2px solid var(--gold-soft); padding-left: 28px; margin: 30px 0; display: flex; flex-direction: column; gap: 26px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -35px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,0.15); }
.timeline strong { color: var(--white); display: block; font-family: var(--font-h); font-size: 1.2rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(30px,5vw,60px) 0 var(--pad); }
.legal .meta { color: var(--text-3); font-size: 0.9rem; margin-top: 8px; }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--gold); margin: 46px 0 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.legal h3 { font-family: var(--font-b); font-size: 1.05rem; font-weight: 600; color: var(--white); margin: 22px 0 8px; }
.legal p { color: var(--text-2); margin-bottom: 14px; font-size: 1.02rem; }
.legal ul { margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.legal ul li { color: var(--text-2); padding-left: 26px; position: relative; font-size: 1.02rem; }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.legal a { color: var(--green); border-bottom: 1px solid rgba(46,204,113,0.3); transition: color .3s ease; }
.legal a:hover { color: var(--gold); }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.95rem; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.legal th { background: rgba(212,175,55,0.1); color: var(--gold); text-align: left; padding: 14px 16px; font-family: var(--font-b); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.legal td { padding: 13px 16px; color: var(--text-2); border-top: 1px solid var(--border); vertical-align: top; }
.legal tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.legal-footer { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 0.9rem; }

/* about page */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.about-grid img { border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
