:root {
  --bg: #031018;
  --bg-deep: #020b10;
  --surface: #0a1a24;
  --line: rgba(180, 220, 230, 0.12);
  --text: #e8f4f7;
  --muted: #8aa3ad;
  --sea: #3ec6c9;
  --sea-dim: #1f8a8d;
  --sand: #d4a84b;
  --ok: #4caf8a;
  --font: "Sora", system-ui, sans-serif;
  --display: "Fraunces", "Sora", Georgia, serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

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

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 45% 55%;
  background: linear-gradient(160deg, #5ee4e8, #147a7d);
}

.header-spacer { flex: 1; }

.online-pill {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.online-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.nav-desktop {
  display: none;
  gap: 0.15rem;
  align-items: center;
}

.nav-desktop a {
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
}

.nav-desktop a:hover { color: var(--text); }

.nav-desktop a.active {
  color: var(--text);
}

.nav-desktop a.active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--sea);
  transform-origin: left;
  animation: underline-in 0.35s var(--ease) both;
}

@keyframes underline-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--sand);
  color: #1a1205;
}

.btn-secondary {
  border: 1px solid var(--line);
  background: transparent;
}

.btn-ghost {
  color: var(--muted);
}

.btn-aqua {
  background: var(--sea-dim);
  color: #e8fffe;
}

.menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  gap: 4px;
}

.menu-btn span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.75rem 0 1rem;
}

.mobile-nav.open { display: block; }

.mobile-nav .container {
  display: grid;
  gap: 0.2rem;
}

.mobile-nav a {
  padding: 0.75rem 0.85rem;
  color: var(--muted);
  font-weight: 600;
  border-radius: 8px;
}

.mobile-nav a.active,
.mobile-nav a:hover {
  color: var(--text);
  background: rgba(62, 198, 201, 0.08);
}

@media (min-width: 980px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
  .online-pill { display: inline-flex; }
  .btn-hide-desktop { display: none !important; }
}

/* Hero — full bleed, brand first */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, transparent 0%, rgba(2, 11, 16, 0.35) 40%, var(--bg-deep) 100%),
    linear-gradient(115deg, #0a3a42 0%, #07303a 40%, #041820 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: -20% 0 0;
  background:
    radial-gradient(ellipse 50% 35% at 70% 25%, rgba(62, 198, 201, 0.22), transparent 70%);
  animation: swell 14s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 60 Q30 40 60 60 T120 60' fill='none' stroke='%233ec6c9' stroke-width='0.6' opacity='0.35'/%3E%3C/svg%3E");
  animation: wave-shift 22s linear infinite;
}

@keyframes swell {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(18px) scale(1.05); }
}

@keyframes wave-shift {
  from { background-position: 0 0; }
  to { background-position: 120px 40px; }
}

.hero-inner {
  padding: 6.5rem 0 3.5rem;
}

.eyebrow {
  color: var(--sea);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.hero h1 span {
  color: var(--sand);
  font-style: italic;
  font-weight: 600;
}

.hero-lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  background: rgba(10, 26, 36, 0.7);
  cursor: pointer;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.ip-box:hover { border-color: rgba(62, 198, 201, 0.4); }

.ip-box small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.ip-box strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.ip-box .copy {
  color: var(--sea);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

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

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.grid-3 {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 760px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .grid-2 { grid-template-columns: 1.25fr 0.75fr; }
}

.card {
  background: var(--surface);
  padding: 1.35rem 1.25rem;
}

.card-link {
  display: block;
  transition: background 0.2s ease;
}

.card-link:hover { background: #0d222e; }

.card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
}

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

.tag {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sea);
}

.tag.gold { color: var(--sand); }

/* no decorative feature-art blocks — content first */

.news-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }

.news-item {
  display: grid;
  gap: 0.3rem;
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  transition: background 0.2s ease;
}

.news-item:hover { background: #0d222e; }

.news-item time {
  color: var(--sea);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.news-item h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
}

.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero { padding: 3rem 0 1.25rem; }

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.banner {
  margin: 1.25rem 0 0;
  min-height: 120px;
  border: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(3, 16, 24, 0.2), rgba(3, 16, 24, 0.65)),
    linear-gradient(135deg, #0d4a52, #0a2f38);
  overflow: hidden;
  position: relative;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cpath d='M0 20 Q20 8 40 20 T80 20' fill='none' stroke='%233ec6c9' stroke-width='0.8' opacity='0.25'/%3E%3C/svg%3E");
  animation: wave-shift 18s linear infinite;
}

.price {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--sand);
}

.price small {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font);
}

.perk-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.perk-list li::before {
  content: "– ";
  color: var(--sea);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.1rem 0 1.25rem;
}

.tab {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
}

.tab.active {
  color: var(--text);
  border-color: rgba(62, 198, 201, 0.45);
  background: rgba(62, 198, 201, 0.08);
}

.top-list { display: grid; gap: 0.5rem; }

.top-row {
  display: grid;
  grid-template-columns: 40px 44px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}

.top-row:hover {
  border-color: rgba(62, 198, 201, 0.35);
  transform: translateX(3px);
}

.top-row .rank {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--sand);
  text-align: center;
}

.top-row img {
  width: 44px;
  height: 44px;
  background: #061820;
}

.top-row .meta strong {
  display: block;
  font-weight: 700;
}

.top-row .meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.top-row .stat {
  font-weight: 700;
  color: var(--sea);
  font-size: 0.9rem;
}

.profile-layout { display: grid; gap: 1rem; }

@media (min-width: 900px) {
  .profile-layout { grid-template-columns: 1.45fr 0.75fr; }
}

.profile-cover {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #0d4a52, #0a2f38 55%, #061820);
}

.profile-cover.deep { background: linear-gradient(135deg, #0a3a42, #073028, #061820); }
.profile-cover.storm { background: linear-gradient(135deg, #1a3a4a, #0c3540, #061820); }
.profile-cover.abyss { background: linear-gradient(160deg, #061820, #0a2a30, #030d12); }

.profile-identity {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  display: flex;
  align-items: end;
  gap: 0.9rem;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: #061820;
}

.profile-identity h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.65rem;
}

.profile-identity p {
  margin: 0.15rem 0 0;
  color: #c5dde3;
  font-size: 0.9rem;
}

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

@media (min-width: 600px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  padding: 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
}

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

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.form { display: grid; gap: 0.8rem; }

.field label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  border-radius: 6px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(62, 198, 201, 0.5);
}

.auth-shell {
  max-width: 420px;
  margin: 1.5rem auto 3.5rem;
}

.rod-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 700px) {
  .rod-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .rod-grid { grid-template-columns: repeat(3, 1fr); }
}

.rod-tier {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--sand);
}

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.75rem;
  background: #020b10;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.site-footer h4 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 0.95rem;
}

.site-footer a {
  display: block;
  color: var(--muted);
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

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

.footer-copy {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 80;
  padding: 0.75rem 1.1rem;
  background: var(--surface);
  border: 1px solid rgba(62, 198, 201, 0.35);
  transition: transform 0.3s var(--ease);
  border-radius: 6px;
}

.toast.show { transform: translateX(-50%) translateY(0); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
}

.modal.open { display: grid; }

.modal-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.2rem;
}

.modal-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
}

.hidden { display: none !important; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg::before,
  .hero-bg::after,
  .banner::after,
  .online-pill .dot { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
