@import url("assets/fonts/fonts.css");

:root {
  --navy: #0f2340;
  --navy-2: #132b4b;
  --navy-card: #172f50;
  --line: rgba(255, 255, 255, .09);
  --ink: #0f2340;
  --ink-soft: #3c4a5e;
  --paper: #f7f9fb;
  --teal: #2bb5b8;
  --teal-soft: #4fd1c5;
  --muted: #a9b7c9;
  --radius: 16px;
  --wrap: 1200px;
  --head: 'Manrope', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.dot { color: var(--teal); }

/* ---------- header ---------- */
.top { background: var(--paper); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 64px; height: 64px; }
.brand-text { font-family: var(--head); line-height: 1; color: var(--ink); }
.brand-text b { display: block; white-space: nowrap; font-weight: 600; font-size: 22px; letter-spacing: .28em; }
.brand-text span {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  margin-top: 8px; font-size: 13px; letter-spacing: .5em; font-weight: 600;
}
.brand-text span::before, .brand-text span::after { content: ""; height: 1.5px; flex: 1; background: var(--ink); }

.menu { display: flex; align-items: center; gap: 36px; }
.menu a { text-decoration: none; font-weight: 500; font-size: 17px; }
.menu a:not(.btn):hover { color: var(--teal); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px; border-radius: 8px;
  font-family: var(--body); font-weight: 500; font-size: 17px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(15, 35, 64, .2); }
.btn-dark:hover { background: #18345c; }
.btn-ghost { border: 1.5px solid #c8d1dc; color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px;
  padding: 8px 0 0;
}
.hero h1 {
  font-family: var(--head); font-weight: 800; font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05; letter-spacing: -.02em; margin: 0 0 24px;
}
.hero p { font-size: 19px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 32px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 20px; }
.hero-art { align-self: center; padding: 8px 0 24px; }
.hero-art img { width: 100%; height: auto; }

/* ---------- dark area ---------- */
.dark { color: #fff; padding: 40px 0 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-family: var(--head); font-weight: 700; font-size: 26px; margin: 0; display: flex; align-items: center; gap: 14px; }
.swim { width: 72px; height: auto; animation: swim 4s ease-in-out infinite; }
@keyframes swim { 0%, 100% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(6px, -4px) rotate(2deg); } }
.link { color: var(--teal-soft); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: var(--navy-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(79, 209, 197, .4); }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1a30; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(15, 35, 64, .85); color: #fff; backdrop-filter: blur(4px);
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 99px;
}
.card-body { display: grid; grid-template-columns: 64px 1fr; gap: 6px 18px; padding: 22px; flex: 1; }
.icon { width: 64px; height: 64px; border-radius: 14px; grid-row: span 2; }
.card h3 { font-family: var(--head); font-weight: 700; font-size: 22px; margin: 0; align-self: end; }
.tagline { color: var(--muted); font-size: 14px; margin: 0; }
.card .desc { grid-column: 1 / -1; color: #d6dee8; font-size: 15px; line-height: 1.6; margin: 10px 0 0; }
.card .meta { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.card .link { grid-column: 1 / -1; margin-top: 14px; align-self: end; }

/* features strip */
.strip { display: grid; grid-template-columns: 3.2fr 1.3fr .45fr; gap: 20px; margin-top: 28px; }
.features {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 0;
}
.feature { padding: 0 20px; border-left: 1px solid var(--line); }
.feature:first-child { border-left: 0; }
.feature h4 { display: flex; align-items: center; min-height: 40px; gap: 10px; margin: 0 0 10px; font-weight: 500; font-size: 16px; }
.feature h4 svg { width: 32px; height: 32px; flex: none; }
.feature p { margin: 0; color: #c9d3df; font-size: 15px; line-height: 1.5; }
.quote {
  margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #8fd19e;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.quote p { margin: 0; }
.quote footer { display: flex; justify-content: space-between; align-items: center; color: var(--teal-soft); }
.smile {
  border-radius: var(--radius); background: var(--navy-2); text-align: center;
  display: grid; place-items: center; padding: 14px 8px; font-size: 14px; color: #dbe3ec; gap: 8px;
}
.smile svg { width: 26px; height: 26px; }

/* about */
.about {
  display: grid; grid-template-columns: 220px 1fr 1fr; gap: 40px; align-items: center; margin-top: 64px;
  padding: 40px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid var(--line);
}
.about h2 { font-family: var(--head); font-size: 26px; margin: 0 0 14px; }
.about p { color: #d6dee8; line-height: 1.7; margin: 0 0 14px; }
.about ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.about li { display: flex; gap: 12px; color: #d6dee8; line-height: 1.5; }
.about li::before { content: "▸"; color: var(--teal-soft); }

@media (min-width: 901px) { .about-shark { margin: -90px 0 -20px; } }
.about-shark { width: 100%; height: auto; }

/* hello */
.hello {
  display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center;
  margin-top: 48px; padding: 32px 40px; border-radius: var(--radius);
  background: linear-gradient(120deg, #1a3b63, #12305a 60%, #0f2a4c); border: 1px solid var(--line);
}
.hello img { width: 100%; height: auto; }
.hello h2 { font-family: var(--head); font-size: 28px; margin: 0 0 10px; }
.hello p { color: #d6dee8; line-height: 1.7; margin: 0 0 20px; max-width: 38em; }
.btn-teal { background: var(--teal); color: #06222b; font-weight: 600; }
.btn-teal:hover { background: var(--teal-soft); }

/* footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 8px; color: var(--muted); font-size: 14px;
}
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .features { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .menu a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 640px; justify-self: center; }
  .games { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .feature:nth-child(3) { border-left: 0; }
  .about { grid-template-columns: 1fr; padding: 28px; }
  .about-shark { width: 180px; justify-self: center; }
  .hello { grid-template-columns: 1fr; text-align: center; padding: 28px; }
  .hello img { width: 180px; justify-self: center; }
  .hello p { margin-inline: auto; }
}
@media (max-width: 600px) {
  .brand img { width: 48px; height: 48px; }
  .brand-text b { font-size: 14px; letter-spacing: .16em; }
  .brand { gap: 10px; }
  .brand-text span { font-size: 11px; }
  .nav .btn { padding: 10px 14px; font-size: 15px; }
  .nav .btn svg { display: none; }
  .games, .strip { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature { border-left: 0; }
  .hero p { font-size: 17px; }
  .hero-cta .btn { white-space: normal; }
  .section-head > .link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .swim { animation: none; }
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- legal pages ---------- */
.legal { background: var(--paper); min-height: 100vh; }
.legal .wrap { position: relative; }
.legal main { padding: 16px 0 64px; max-width: 760px; }
.legal-shark { position: absolute; top: 110px; right: 0; width: 280px; height: auto; }
@media (max-width: 1100px) { .legal-shark { position: static; width: 160px; margin: 8px 0 0 auto; } }
.legal h1 { font-family: var(--head); font-size: clamp(28px, 8vw, 40px); hyphens: auto; overflow-wrap: break-word; margin: 8px 0 8px; }
.legal h2 { font-family: var(--head); font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { line-height: 1.7; color: var(--ink-soft); overflow-wrap: break-word; }
.legal .lead { color: var(--ink); }
.legal .back { display: inline-block; margin-top: 8px; color: var(--teal); font-weight: 500; text-decoration: none; }
.legal .foot { color: var(--ink-soft); border-top-color: #dbe2ea; }
.legal .foot a:hover { color: var(--ink); }
