/* PokiFish - Cardcha — Marketing site */
:root {
  --bg-deep: #050b1a;
  --bg-mid: #0a1a33;
  --bg-card: rgba(12, 28, 56, 0.72);
  --bg-card-solid: #0c1c38;
  --line: rgba(120, 180, 255, 0.18);
  --text: #e8f1ff;
  --text-muted: rgba(210, 225, 245, 0.68);
  --text-faint: rgba(190, 210, 235, 0.45);
  --gold: #f7b82a;
  --gold-hot: #ff7a1a;
  --cyan: #3ec7ff;
  --blue: #1f7dff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --font: "SF Pro Display", "Segoe UI", "PingFang TC", "Noto Sans TC", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(247, 184, 42, 0.16), transparent 60%),
    radial-gradient(800px 480px at 90% 8%, rgba(62, 199, 255, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 45%, #061528 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #8be4ff;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--gold);
  color: #111;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 11, 26, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--gold), var(--gold-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch a {
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.lang-switch a[aria-current="true"] {
  background: rgba(62, 199, 255, 0.18);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 11, 26, 0.92) 0%, rgba(5, 11, 26, 0.72) 45%, rgba(5, 11, 26, 0.45) 100%),
    url("../img/hero-ocean.jpg") center / cover no-repeat;
  z-index: -1;
  opacity: 0.95;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.6rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--gold), var(--gold-hot));
  color: #1a1000;
  box-shadow: 0 10px 30px rgba(247, 184, 42, 0.28);
}

.btn-primary:hover {
  color: #1a1000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
}

.phone-frame {
  margin: 0 auto;
  width: min(100%, 280px);
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.phone-frame img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 540 / 1174;
  object-fit: cover;
  background: #081427;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card,
.catalog-card,
.faq-item,
.stat-card,
.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.feature-card {
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background: #081427;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  padding: 1.2rem;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  background: linear-gradient(120deg, var(--gold), #ffe08a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.25rem;
}

.stat-card span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1200 / 896;
  object-fit: cover;
  background: #081427;
}

.gallery-card figcaption {
  padding: 0.85rem 1rem 1rem;
}

.gallery-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.gallery-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.badge-row img {
  width: 48px;
  height: 48px;
}

.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.screens figure {
  margin: 0;
}

.screens img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #081427;
}

.screens img[src$="card-back.jpg"] {
  object-fit: contain;
  padding: 0.5rem;
}

.screens figcaption {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.split-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 1;
  object-fit: cover;
  background: #081427;
}

.split-media img:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
  height: 100%;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item details {
  padding: 1rem 1.15rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--gold);
}

.faq-item details[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

.cta {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  padding: 2.4rem;
  background:
    linear-gradient(120deg, rgba(8, 20, 40, 0.9), rgba(10, 30, 60, 0.82)),
    url("../img/bg-deepsea.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
  text-align: center;
}

.cta h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta p {
  margin: 0 auto 1.3rem;
  max-width: 34rem;
  color: var(--text-muted);
}

/* Privacy */
.legal {
  padding: 3rem 0 4.5rem;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.3rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.legal-meta {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.legal-card h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.25rem;
  color: #fff;
}

.legal-card h3 {
  margin: 1.2rem 0 0.45rem;
  font-size: 1.05rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-muted);
}

.legal-card ul {
  padding-left: 1.2rem;
}

.toc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin: 1.2rem 0 1.6rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  gap: 1.5rem;
}

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--cyan);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h2 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
}

.site-footer p,
.site-footer a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-faint);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .features,
  .gallery,
  .screens,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features .feature-card:last-child {
    grid-column: 1 / -1;
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.4rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem;
    background: rgba(8, 16, 34, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.65rem 0.7rem;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .hero-grid,
  .split,
  .features,
  .gallery,
  .screens,
  .stats,
  .footer-grid,
  .split-media {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    width: min(100%, 240px);
  }

  .cta {
    padding: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
