/* ============================================================
   topfishingappslist.com — shared stylesheet
   ============================================================ */

:root {
  --bg:        #0B1E2D;
  --panel:     #102A3D;
  --panel-2:   #14334A;
  --line:      #1F3F57;
  --snow:      #E8F4F8;
  --muted:     #8FA8B8;
  --ice:       #5FB8D9;
  --ice-dim:   #3E7C92;
  --amber:     #F2A65A;
  --amber-dim: #B97A3C;

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(95,184,217,0.10), transparent 60%),
    radial-gradient(ellipse 700px 400px at 100% 0%, rgba(242,166,90,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { color: var(--snow); }
.lede { color: var(--muted); font-size: 1.05rem; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 1px;
  transform: rotate(45deg);
  flex: none;
}

/* ---------- Header ---------- */
header.site {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(11,30,45,0.85);
  backdrop-filter: saturate(140%) blur(6px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--snow);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--ice) 0%, var(--ice-dim) 100%);
  display: grid;
  place-items: center;
  flex: none;
}
.brand .mark svg { width: 16px; height: 16px; }

.brand .dim { color: var(--muted); font-weight: 500; }

nav.links {
  display: flex;
  gap: 28px;
}
nav.links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
nav.links a:hover { color: var(--snow); text-decoration: none; }
nav.links a.active { color: var(--ice); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--snow);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 720px) {
  nav.links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    display: none;
  }
  nav.links.open { display: flex; }
  nav.links a {
    padding: 14px 24px;
    border-top: 1px solid var(--line);
    width: 100%;
  }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
}

.hero .wrap { position: relative; z-index: 2; }

.hero h1 { color: var(--snow); max-width: 760px; }
.hero h1 .accent { color: var(--ice); }
.hero .lede { max-width: 600px; margin-top: 14px; font-size: 1.1rem; }

.crackline {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1;
  pointer-events: none;
}
.crackline path {
  fill: none;
  stroke: rgba(95,184,217,0.55);
  stroke-width: 1.4;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: crack-draw 1.8s ease-out forwards;
  animation-delay: 0.2s;
}
.crackline path.secondary {
  stroke: rgba(242,166,90,0.35);
  stroke-width: 1;
  animation-delay: 0.5s;
}
@keyframes crack-draw {
  to { stroke-dashoffset: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--ice) 0%, var(--ice-dim) 100%);
  color: #06141e;
}
.btn-primary:hover { background: linear-gradient(135deg, #79c8e6 0%, var(--ice) 100%); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--snow);
}
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }

/* ---------- Sections ---------- */
section { padding: 56px 0; position: relative; z-index: 1; }
section.tight { padding: 36px 0; }
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.section-head { max-width: 640px; margin-bottom: 36px; }

/* ---------- App cards ---------- */
.app-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.app-card:hover {
  border-color: var(--ice-dim);
  transform: translateY(-2px);
}

.app-card .thumb {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #16384f 0%, #0c2335 100%);
  position: relative;
  flex: none;
}
.app-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card .info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.app-card .meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.app-card h3 { margin: 0; }

.stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.stat .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

.platform-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
}

.app-card .actions { flex: none; }
.app-card .actions .btn { white-space: nowrap; }

@media (max-width: 640px) {
  .app-card {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
  }
  .app-card .thumb { width: 64px; height: 64px; border-radius: 12px; }
  .app-card .actions {
    grid-column: 1 / -1;
  }
  .app-card .actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Feature list ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.feature .ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ice);
}
.feature .ico svg { width: 18px; height: 18px; }
.feature h4 { margin: 0 0 4px; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Prose / legal pages ---------- */
.prose {
  max-width: 720px;
}
.prose h2 {
  margin-top: 2.2em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--snow); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose .updated {
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 1.4em 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.callout strong { color: var(--snow); }

/* ---------- Disclosure box (footer-style legal notice) ---------- */
.disclosure {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 760px) {
  .disclosure { grid-template-columns: 1fr; }
}
.disclosure h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 8px;
}
.disclosure p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Contact form ---------- */
.form-grid {
  display: grid;
  gap: 16px;
  max-width: 540px;
}
label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}
input, textarea, select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
input::placeholder, textarea::placeholder { color: #5a7488; }
textarea { resize: vertical; min-height: 120px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-card .row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.contact-card .row:first-of-type { border-top: none; padding-top: 0; }
.contact-card .ico {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--panel-2);
  display: grid;
  place-items: center;
  color: var(--ice);
}
.contact-card .ico svg { width: 16px; height: 16px; }
.contact-card .row strong { display: block; font-size: 0.85rem; color: var(--snow); }
.contact-card .row span, .contact-card .row a { font-size: 0.9rem; color: var(--muted); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--snow); font-size: 0.92rem; }
.footer-col a:hover { color: var(--ice); }
.footer-col p { color: var(--muted); font-size: 0.88rem; max-width: 320px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  transform: translateY(140%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.86rem; color: var(--muted); margin: 0; }
.cookie-banner p a { color: var(--ice); }
.cookie-banner .actions { flex: none; display: flex; gap: 8px; }
.cookie-banner .btn { padding: 9px 16px; font-size: 0.85rem; }

@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner .actions { justify-content: flex-end; }
}

/* ---------- Breadcrumb-ish page header for inner pages ---------- */
.page-head {
  padding: 48px 0 8px;
}
.page-head h1 { margin-bottom: 6px; }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
