﻿:root {
  --bg-deep: #071324;
  --glass: rgba(255, 255, 255, 0.11);
  --glass-strong: rgba(255, 255, 255, 0.17);
  --glass-dark: rgba(8, 22, 42, 0.52);
  --glass-border: rgba(255, 255, 255, 0.24);
  --glass-border-soft: rgba(255, 255, 255, 0.14);
  --ink: #f8fafc;
  --ink-muted: rgba(241, 245, 249, 0.78);
  --ink-subtle: rgba(226, 232, 240, 0.58);
  --accent: #38bdf8;
  --accent-bright: #7dd3fc;
  --accent-deep: #0284c7;
  --accent-soft: rgba(56, 189, 248, 0.22);
  --online: #4ade80;
  --shadow-glass: 0 20px 50px rgba(2, 10, 24, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  --shadow-sm: 0 8px 24px rgba(2, 10, 24, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.bg-backdrop {
  position: fixed;
  inset: -14px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(160deg, rgba(7, 19, 36, 0.45) 0%, rgba(10, 28, 52, 0.55) 100%),
    url("./assets/SharkMcBanner.jpg") center / cover no-repeat;
  filter: blur(7px) saturate(1.2);
  transform: scale(1.03);
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, rgba(6, 16, 30, 0.22) 0%, rgba(6, 16, 30, 0.48) 100%);
}

#snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.35s ease;
}

#snow-canvas.is-hidden {
  opacity: 0;
}

.christmas-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  z-index: 25;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 8px;
}

.christmas-lights::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -2%;
  width: 104%;
  height: 14px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.bulb {
  position: relative;
  width: 9px;
  height: 14px;
  margin-top: 9px;
  border-radius: 50% 50% 45% 45%;
  flex-shrink: 0;
  animation: twinkle 2.4s ease-in-out infinite;
}

.bulb::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 2px;
  width: 5px;
  height: 4px;
  border-radius: 2px 2px 0 0;
  background: rgba(203, 213, 225, 0.65);
}

.bulb:nth-child(4n + 1) {
  background: #38bdf8;
  box-shadow: 0 0 12px 3px rgba(56, 189, 248, 0.75);
  animation-delay: 0s;
}

.bulb:nth-child(4n + 2) {
  background: #f87171;
  box-shadow: 0 0 12px 3px rgba(248, 113, 113, 0.72);
  animation-delay: 0.6s;
}

.bulb:nth-child(4n + 3) {
  background: #fde047;
  box-shadow: 0 0 12px 3px rgba(253, 224, 71, 0.7);
  animation-delay: 1.2s;
}

.bulb:nth-child(4n) {
  background: #4ade80;
  box-shadow: 0 0 12px 3px rgba(74, 222, 128, 0.72);
  animation-delay: 1.8s;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.9); }
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
  position: relative;
  z-index: 3;
}

.glass-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.topbar {
  width: 100%;
  padding: 34px 0 14px;
  position: relative;
  z-index: 10;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px 10px 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 3px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-nav {
  display: none;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border-soft);
}

.mobile-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mobile-nav a.active {
  color: var(--accent-bright);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 20px;
  min-height: 42px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sky {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-sky:hover {
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  color: var(--ink);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(125, 211, 252, 0.5);
}

.btn-sm {
  padding: 7px 14px;
  min-height: 34px;
  font-size: 12.5px;
}

.snow-toggle.is-off {
  opacity: 0.72;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--glass-border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  padding: 36px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  margin-top: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 7.2vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(2, 10, 24, 0.25);
}

.hero-title .line {
  display: block;
}

.hero-title .italic-accent {
  font-style: italic;
  color: var(--accent-bright);
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background-color: var(--accent);
  margin-left: 4px;
  vertical-align: -0.06em;
  animation: blinkCursor 1.05s steps(1) infinite;
}

@keyframes blinkCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 900px;
}

.squircle-card {
  width: 228px;
  height: 228px;
  border-radius: 40px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(56, 189, 248, 0.12) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.34);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-shadow: 0 24px 54px rgba(2, 10, 24, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
  cursor: pointer;
  user-select: none;
}

.squircle-card:hover {
  box-shadow: 0 28px 64px rgba(56, 189, 248, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.squircle-card img.logo-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(2, 10, 24, 0.32));
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateZ(24px);
}

.squircle-card:hover img.logo-main {
  transform: translateZ(40px) scale(1.07) rotate(-3deg);
}

.santa-hat {
  position: absolute;
  top: -24px;
  right: -18px;
  width: 60px;
  height: 60px;
  transform: rotate(16deg) translateZ(34px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(2, 10, 24, 0.3));
}

.squircle-card:hover .santa-hat {
  transform: rotate(24deg) translateY(-4px) translateZ(48px) scale(1.08);
}

.squircle-badge {
  position: absolute;
  bottom: -13px;
  background: rgba(12, 35, 64, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(125, 211, 252, 0.4);
  border-radius: 9999px;
  padding: 4px 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-bright);
  box-shadow: var(--shadow-sm);
  transform: translateZ(28px);
}

.hero-divider {
  border: none;
  border-top: 1px solid var(--glass-border-soft);
  margin: 40px 0 26px;
}

.hero-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-desc {
  max-width: 360px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  font-size: 12.5px;
  color: var(--ink-subtle);
}

.bottom-cards {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}

.banner-strip {
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
}

.banner-strip-media {
  min-height: 150px;
  overflow: hidden;
}

.banner-strip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.banner-strip:hover .banner-strip-media img {
  transform: scale(1.04);
}

.banner-strip-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-strip-body h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.banner-strip-body p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.discord-widget {
  border-radius: 24px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.dw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dw-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.dw-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: rgba(88, 101, 242, 0.25);
  border: 1px solid rgba(165, 180, 252, 0.35);
  color: #e0e7ff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dw-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  font-weight: 600;
}

.dw-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.dw-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dw-stat-box {
  background: rgba(7, 19, 36, 0.35);
  border: 1px solid var(--glass-border-soft);
  border-radius: 15px;
  padding: 10px 13px;
}

.dw-stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-subtle);
  margin-bottom: 2px;
}

.dot-online {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--online);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

.dot-total {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--accent);
}

.dw-stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.dw-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-subtle);
}

.dw-avatars {
  display: flex;
  align-items: center;
}

.dw-avatars img {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  object-fit: cover;
  margin-left: -6px;
  background: rgba(15, 23, 42, 0.6);
}

.dw-avatars img:first-child {
  margin-left: 0;
}

.doc-section {
  padding: 28px 0 64px;
}

.doc-header {
  max-width: 720px;
  margin-bottom: 30px;
}

.doc-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-top: 18px;
  margin-bottom: 12px;
}

.doc-subtitle {
  font-size: 15.5px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.doc-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-subtle);
}

.doc-card {
  border-radius: 26px;
  padding: 36px 40px;
  max-width: 840px;
}

.tos-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--glass-border-soft);
}

.tos-block:first-child {
  padding-top: 0;
}

.tos-block:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.tos-block h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tos-num {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 8px;
  border-radius: 9999px;
}

.tos-block p,
.tos-block li {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.tos-block ul {
  margin-top: 8px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.tos-note {
  margin-top: 26px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(7, 19, 36, 0.35);
  border: 1px solid rgba(125, 211, 252, 0.24);
  font-size: 13.5px;
  color: var(--ink-muted);
}

.tos-note strong {
  color: var(--ink);
}

.site-footer {
  padding: 22px 0 28px;
  border-top: 1px solid var(--glass-border-soft);
  position: relative;
  z-index: 3;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-subtle);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: var(--accent-bright);
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: rgba(8, 22, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #f8fafc;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-glass);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .bottom-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .squircle-card {
    width: 164px;
    height: 164px;
    border-radius: 28px;
    padding: 20px;
  }

  .santa-hat {
    width: 46px;
    height: 46px;
    top: -17px;
    right: -14px;
  }

  .banner-strip {
    grid-template-columns: 1fr;
  }

  .banner-strip-media {
    height: 150px;
  }

  .doc-card {
    padding: 26px 22px;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .topbar {
    padding-top: 30px;
  }

  .topbar-inner {
    padding: 8px 10px 8px 14px;
  }

  .hero {
    padding: 24px 0 32px;
  }

  .hero-footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bulb,
  .status-dot,
  .typing-cursor {
    animation: none;
  }
}
