/* CastShare home — same ink/glass language as the live map (/s, /t) and the organizer panel. */
:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-2: #eef4f8;
  --ink: #0b2b45;
  --muted: #5d7287;
  --line: rgba(11, 43, 69, 0.09);
  --accent: #0a6aa1;
  --accent-2: #2a9d8f;
  --gold: #e9c46a;
  --live: #1f9d63;
  --deep: #071a2b;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 30px 70px rgba(11, 43, 69, 0.14), 0 2px 8px rgba(11, 43, 69, 0.05);
  --radius: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071521;
    --surface: #0d1f2e;
    --surface-2: #11283a;
    --ink: #eaf2f8;
    --muted: #97abbd;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #5cb8f0;
    --accent-2: #4fd1c0;
    --glass: rgba(13, 31, 46, 0.7);
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; overflow-wrap: break-word; }
p { margin: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: fixed; top: 12px; left: 16px; z-index: 50; padding: 10px 18px; border-radius: 999px; background: var(--surface); clip-path: inset(100%); }
.skip-link:focus { clip-path: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--gold); color: #10283a;
  font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 10px 30px rgba(233, 196, 106, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); background: #f2d488; box-shadow: 0 14px 34px rgba(233, 196, 106, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.1); color: inherit; box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); box-shadow: none; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; box-shadow: none; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 40; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 24px;
  width: min(1160px, 100%); padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(7, 26, 43, 0.42); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.nav.scrolled .nav-inner { background: var(--glass); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; opacity: .85; }
.nav-links a:hover { opacity: 1; background: rgba(127, 160, 190, 0.16); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(127, 160, 190, 0.18); }
.lang button { min-width: 40px; min-height: 34px; border: 0; border-radius: 999px; background: none; color: inherit; font: 700 12px/1 inherit; font-family: inherit; cursor: pointer; opacity: .75; }
.lang button[aria-pressed="true"] { background: #fff; color: #0b2b45; opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: url("/assets/castshare-hero-real.jpg") center 55% / cover no-repeat; transform: scale(1.04); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 600px at 80% 30%, rgba(42, 157, 143, 0.28), transparent 60%),
    linear-gradient(100deg, rgba(5, 20, 34, 0.92) 0%, rgba(5, 20, 34, 0.72) 45%, rgba(5, 20, 34, 0.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 18%);
}
.hero-inner { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 130px 0 90px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3fd08b; box-shadow: 0 0 0 0 rgba(63, 208, 139, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(63, 208, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 208, 139, 0); } }
.hero h1 { margin-top: 22px; font-size: clamp(44px, 6.4vw, 80px); font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #f3d27a, #7fd8c9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; max-width: 540px; font-size: 18px; color: rgba(234, 242, 248, 0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions.center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 14px; color: rgba(234, 242, 248, 0.78); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(127, 216, 201, 0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fd8c9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone {
  width: min(300px, 70vw); aspect-ratio: 540 / 1100; overflow: hidden;
  border-radius: 44px; padding: 10px; background: #0a1520;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 50px 100px rgba(0, 0, 0, 0.55);
  transform: rotate(-3deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.86); color: #0b2b45;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
}
.float-card small { display: block; font-size: 11px; font-weight: 600; color: #5d7287; line-height: 1.2; }
.float-card strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; }
.fc-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; }
.fc-icon svg { width: 20px; height: 20px; }
.fc-icon.live { background: #1f9d63; }
.fc-icon.fish { background: #0a6aa1; }
.fc-icon.gold { background: #d9a93a; }
.fc-live { top: 12%; left: 2%; }
.fc-catch { top: 46%; right: 0; animation-delay: -2s; }
.fc-rank { bottom: 10%; left: 6%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.section-head h2, .spot-copy h2, .privacy h2, .cta h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile h3 { margin-top: 18px; font-size: 20px; font-weight: 750; }
.tile p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.tile-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); color: var(--accent); }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 240px; gap: 24px; align-items: center; }
.tile-map { background: linear-gradient(135deg, #0a2a44, #0d3d5c 60%, #11545f); color: #fff; border: 0; }
.tile-map p { color: rgba(234, 242, 248, 0.78); }
.tile-map .tile-icon { background: rgba(255, 255, 255, 0.12); color: #7fd8c9; }
.tile-accent { background: linear-gradient(160deg, #fff6dc, var(--surface) 70%); }
.tile-accent .tile-icon { background: #f6e3ae; color: #8a6412; }
@media (prefers-color-scheme: dark) {
  .tile-accent { background: linear-gradient(160deg, #2a2615, var(--surface) 70%); }
  .tile-accent .tile-icon { background: rgba(233, 196, 106, 0.18); color: var(--gold); }
}

.radar-art { position: relative; width: 220px; aspect-ratio: 1; justify-self: end; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(127, 216, 201, 0.3); }
.r2 { inset: 18%; } .r3 { inset: 36%; }
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(127, 216, 201, 0.45), transparent 22%); animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.blip { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #f3d27a; box-shadow: 0 0 14px #f3d27a; }
.b1 { top: 24%; left: 62%; } .b2 { top: 60%; left: 28%; background: #7fd8c9; box-shadow: 0 0 14px #7fd8c9; } .b3 { top: 70%; left: 70%; }

/* Spotlight */
.spotlight { margin-top: 110px; padding: 100px 0; background: var(--deep); color: #fff; position: relative; overflow: hidden; }
.spotlight::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(42, 157, 143, 0.25), transparent 65%); }
.spotlight-inner { position: relative; width: min(1160px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spotlight .eyebrow { color: #7fd8c9; }
.spot-copy p { margin-top: 18px; color: rgba(234, 242, 248, 0.78); font-size: 17px; }
.checks { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: rgba(234, 242, 248, 0.9); }
.checks li::before { content: ""; flex: none; margin-top: 3px; width: 20px; height: 20px; border-radius: 7px; background: rgba(127, 216, 201, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fd8c9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }

.board { padding: 22px; border-radius: 28px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(14px); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35); }
.board-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 16px; }
.board-head strong { font-size: 17px; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: rgba(63, 208, 139, 0.16); color: #3fd08b; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
.board-list { margin: 0; padding: 0; list-style: none; }
.board-list li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; padding: 12px 6px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.place { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); font-size: 13px; font-weight: 800; }
.place.p1 { background: #e9c46a; color: #0b2b45; } .place.p2 { background: #c9d3db; color: #0b2b45; } .place.p3 { background: #f4a261; color: #0b2b45; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--h) 60% 55%), hsl(calc(var(--h) + 40) 60% 40%)); }
.who b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score { font-weight: 800; font-variant-numeric: tabular-nums; }
.board-foot { padding: 12px 6px 0; color: rgba(234, 242, 248, 0.5); font-size: 12px; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { display: grid; gap: 8px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps strong { font-size: 19px; }
.steps span:not(.step-n) { color: var(--muted); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; }

/* Privacy */
.privacy { width: min(1160px, calc(100% - 40px)); margin: 110px auto 0; }
.privacy-inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  padding: 44px; border-radius: 32px; color: #fff;
  background: linear-gradient(120deg, #0a3a5c, #0a6aa1 55%, #2a9d8f);
  box-shadow: var(--shadow);
}
.privacy .eyebrow { color: #cdeee8; }
.privacy p { margin-top: 12px; color: rgba(255, 255, 255, 0.85); max-width: 620px; }
.privacy-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: rgba(255, 255, 255, 0.14); }
.privacy-icon svg { width: 34px; height: 34px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.faq .section-head { margin: 0; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow .2s ease; }
.faq-list details[open] { box-shadow: var(--shadow); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 650; font-size: 17px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-size: 20px; font-weight: 500; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { padding: 0 22px 22px; color: var(--muted); }

/* CTA */
.cta { width: min(1160px, calc(100% - 40px)); margin: 110px auto 0; }
.cta-inner { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 64px 24px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); }
.cta-inner img { border-radius: 18px; box-shadow: var(--shadow); }
.cta p { color: var(--muted); max-width: 480px; }
.cta .btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface-2); }

/* Footer */
.footer { margin-top: 110px; border-top: 1px solid var(--line); }
.footer-inner { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 36px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 260px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols div { display: grid; gap: 10px; align-content: start; }
.footer-cols strong { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.footer-cols a { font-size: 14px; text-decoration: none; }
.footer-cols a:hover { color: var(--accent); }
.footer-base { padding: 18px max(20px, calc((100% - 1160px) / 2)) 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Reveal on scroll (only when JS marks the page ready) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .sweep, .dot { animation: none; }
}

section[id] { scroll-margin-top: 96px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 120px; gap: 24px; }
  .hero-visual { margin-top: 12px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .spotlight-inner { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 0; }
  .faq .section-head { margin-bottom: 28px; }
  .privacy-inner { grid-template-columns: 1fr; padding: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav { inset: 10px 0 auto; padding: 0 12px; }
  .nav-inner { gap: 10px; padding-left: 14px; }
  .brand { font-size: 16px; }
  .btn-small { display: none; }
  .hero-inner { width: calc(100% - 32px); padding: 108px 0 64px; }
  .lead { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .phone { width: min(250px, 66vw); }
  .float-card { padding: 9px 12px 9px 9px; border-radius: 14px; }
  .float-card strong { font-size: 13px; }
  .fc-icon { width: 30px; height: 30px; border-radius: 10px; }
  .fc-live { left: 0; } .fc-catch { right: -4px; } .fc-rank { left: 0; }
  .section, .privacy, .cta, .spotlight-inner, .footer-inner { width: calc(100% - 32px); }
  .footer-base { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 80px; }
  .spotlight { margin-top: 80px; padding: 72px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; grid-template-columns: 1fr; }
  .radar-art { width: 180px; justify-self: center; }
  .tile { padding: 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* Download */
.download-card {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  padding: 44px; border-radius: 32px;
  background: linear-gradient(140deg, #0a2a44, #0b3b57 55%, #0f4f58); color: #fff;
  box-shadow: var(--shadow);
}
.download-card .eyebrow { color: #7fd8c9; }
.download-main h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.download-main > p { margin-top: 14px; color: rgba(234, 242, 248, 0.8); font-size: 17px; max-width: 520px; }
.download-card .btn svg { width: 20px; height: 20px; stroke-width: 2.2; }
.apk-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.apk-meta div { padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); }
.apk-meta dt { font-size: 11px; font-weight: 600; color: rgba(234, 242, 248, 0.6); }
.apk-meta dd { margin: 2px 0 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.install-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.install-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.09); }
.install-steps .step-n { flex: none; margin: 0; }
.install-steps strong { display: block; font-size: 16px; }
.install-steps span:not(.step-n) { display: block; margin-top: 4px; color: rgba(234, 242, 248, 0.72); font-size: 14px; }
@media (max-width: 980px) { .download-card { grid-template-columns: 1fr; padding: 32px; } }
@media (max-width: 620px) { .download-card { padding: 24px; border-radius: 26px; } .download-card .hero-actions .btn { flex: 1 1 100%; } }
