/* Maré Player — project site. No external fonts, scripts or trackers. */

:root {
  --night: #070d22;
  --deep: #0b1430;
  --navy: #13214a;
  --sea: #61a2cb;
  --teal: #5fd4c4;
  --gold: #ddc371;
  --ink: #e8edf7;
  --muted: #9fb0cc;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.045);
  --radius: 18px;
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--ink);
  font: 17px/1.6 "Fira Sans", "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

code {
  font-family: "Fira Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.9em;
}

/* Night sky: moonlit gradient with a faint star field. */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(97, 162, 203, 0.22), transparent 60%),
    radial-gradient(900px 600px at 0% 20%, rgba(19, 33, 74, 0.9), transparent 70%),
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 32% 8%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 22%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 72% 34%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1px 1px at 88% 12%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 22% 42%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 38%, rgba(221, 195, 113, 0.5), transparent 60%),
    linear-gradient(180deg, var(--deep) 0%, var(--night) 55%, #050915 100%);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7, 13, 34, 0.85), rgba(7, 13, 34, 0.55));
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand small { font-size: 0.55em; letter-spacing: 0.2em; color: var(--muted); }
.brand img { border-radius: 50%; background: #fff; }

.nav nav { display: flex; gap: 1.4rem; align-items: center; font-size: 0.95rem; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.nav .nav-gh {
  color: var(--ink);
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav .nav-gh:hover { border-color: var(--gold); color: var(--gold); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.2rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(221, 195, 113, 0.35);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tide {
  background: linear-gradient(100deg, var(--sea) 0%, var(--teal) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  color: #06122b;
  background: linear-gradient(100deg, var(--sea), var(--teal));
  box-shadow: 0 10px 30px -10px rgba(95, 212, 196, 0.6);
}
.button.primary:hover { color: #06122b; box-shadow: 0 16px 40px -12px rgba(95, 212, 196, 0.75); }
.button.ghost { color: var(--ink); border: 1px solid var(--line); background: var(--glass); }
.button.ghost:hover { color: var(--gold); border-color: rgba(221, 195, 113, 0.5); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}
.facts li::before { content: "◆"; margin-right: 0.5rem; color: var(--gold); font-size: 0.7em; vertical-align: 0.15em; }

.hero-art { position: relative; min-height: 620px; }

.moon {
  position: absolute;
  top: 2%;
  right: 6%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 244, 214, 0.95), rgba(221, 195, 113, 0.55) 45%, rgba(221, 195, 113, 0) 70%);
  filter: blur(2px);
  opacity: 0.45;
}

.shot { margin: 0; }
.shot img { display: block; max-width: 100%; height: auto; }

.shot-window {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 72vw);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px -20px rgba(0, 0, 0, 0.85),
    0 0 140px -30px rgba(221, 195, 113, 0.35);
  transform: rotate(3deg);
  animation: float-window 11s ease-in-out infinite;
}

.shot-applet {
  position: absolute;
  top: 24px;
  left: 0;
  width: min(240px, 52vw);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 30px 80px -15px rgba(0, 0, 0, 0.9),
    0 0 120px -30px rgba(97, 162, 203, 0.7);
  transform: rotate(-4deg);
  animation: float-applet 9s ease-in-out infinite;
}

@keyframes float-window {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-10px); }
}

@keyframes float-applet {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-14px); }
}

/* The visualizer motif, after the app's own spectrum bars. */
.spectrum {
  position: absolute;
  bottom: -6px;
  right: 8%;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 64px;
  filter: drop-shadow(0 0 10px rgba(95, 212, 196, 0.45));
}
.spectrum span {
  width: 7px;
  height: 30%;
  border-radius: 4px;
  background: linear-gradient(180deg, #f2a7d8, var(--teal) 55%, #4ade80);
  animation: eq 1.4s ease-in-out infinite;
}
.spectrum span:nth-child(3n) { animation-duration: 1.1s; }
.spectrum span:nth-child(4n+1) { animation-duration: 1.7s; }
.spectrum span:nth-child(5n+2) { animation-duration: 0.9s; }
.spectrum span:nth-child(2) { animation-delay: -0.2s; }
.spectrum span:nth-child(3) { animation-delay: -0.5s; }
.spectrum span:nth-child(4) { animation-delay: -0.8s; }
.spectrum span:nth-child(5) { animation-delay: -0.3s; }
.spectrum span:nth-child(6) { animation-delay: -1.1s; }
.spectrum span:nth-child(7) { animation-delay: -0.6s; }
.spectrum span:nth-child(8) { animation-delay: -0.9s; }
.spectrum span:nth-child(9) { animation-delay: -0.4s; }
.spectrum span:nth-child(10) { animation-delay: -1.3s; }
.spectrum span:nth-child(11) { animation-delay: -0.7s; }
.spectrum span:nth-child(12) { animation-delay: -0.1s; }
.spectrum span:nth-child(13) { animation-delay: -1s; }
.spectrum span:nth-child(14) { animation-delay: -0.35s; }
.spectrum span:nth-child(15) { animation-delay: -0.85s; }
.spectrum span:nth-child(16) { animation-delay: -0.55s; }

@keyframes eq {
  0%, 100% { height: 18%; }
  25% { height: 85%; }
  50% { height: 40%; }
  75% { height: 100%; }
}

/* Tide line between the hero and the content. */
.waves { display: block; width: 100%; height: 90px; margin-top: -10px; }
.wave-back { fill: rgba(97, 162, 203, 0.12); animation: drift 14s ease-in-out infinite; }
.wave-front { fill: rgba(11, 20, 48, 0.95); animation: drift 10s ease-in-out infinite reverse; }
@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-40px); }
}

/* Sections */
section { scroll-margin-top: 80px; }
.band { background: linear-gradient(180deg, rgba(11, 20, 48, 0.95), rgba(11, 20, 48, 0.55)); }
.modes, .features, .install, .security { padding: 4.5rem 1.5rem; }
.modes > *, .features > *, .install > *, .security > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.section-head { margin-bottom: 2.5rem; text-align: center; }
.section-head h2 { margin: 0 0 0.6rem; font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 0.8rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sea), var(--gold));
}
.section-head p { margin: 0; color: var(--muted); }

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  max-width: 900px;
}
.mode h3 { margin-top: 0; }
.mode .pkg { margin-top: 1rem; }
.mode .pkg code { color: var(--gold); }

.card {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(97, 162, 203, 0.4); background: rgba(97, 162, 203, 0.07); }
.card h3 { margin: 0.9rem 0 0.4rem; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(97, 162, 203, 0.12);
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.install-grid > * { min-width: 0; }
.install-card h3 { margin-top: 0; }
.install-card > p { margin-bottom: 1rem; }
.install-card .note { margin-top: 1rem; font-size: 0.9rem; }
.install-card .note code, .install-card > p code { color: var(--ink); }

.code { position: relative; }
.code pre {
  margin: 0;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 7, 20, 0.8);
  color: #d5e3f5;
  line-height: 1.7;
  scrollbar-width: thin;
  scrollbar-color: rgba(97, 162, 203, 0.35) transparent;
}
.code:has(.copy:not([hidden])) pre { padding-top: 2.6rem; }
.copy {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.copy:hover { color: var(--gold); border-color: rgba(221, 195, 113, 0.5); }
.downloads { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(97, 162, 203, 0.35) transparent; }
.downloads table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.downloads th, .downloads td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.downloads thead th { color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.downloads tbody th { font-weight: 600; }
.downloads tbody th small { margin-left: 0.3rem; color: var(--muted); font-weight: 400; }
.downloads tbody tr:last-child th, .downloads tbody tr:last-child td { border-bottom: 0; }
.downloads td a {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(97, 162, 203, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
}
.downloads td a:hover { border-color: var(--gold); }
.fineprint { margin-top: 1.6rem; text-align: center; color: var(--muted); font-size: 0.9rem; }

.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.trust { padding: 1.4rem 1.4rem 1.4rem 1.6rem; border-left: 3px solid var(--gold); background: linear-gradient(90deg, rgba(221, 195, 113, 0.08), transparent); border-radius: 0 var(--radius) var(--radius) 0; }
.trust h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.trust p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.more { margin-top: 2rem; text-align: center; }

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}
.footer p { margin: 0.6rem 0 0; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-brand img { border-radius: 50%; background: #fff; }
.legal { font-size: 0.8rem; opacity: 0.75; }

/* Small screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta, .facts { justify-content: center; }
  .hero-art { min-height: 560px; max-width: 460px; width: 100%; margin: 0 auto; }
  .moon { width: 220px; height: 220px; right: 10%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .install-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 430px; }
  .spectrum { height: 48px; bottom: -14px; }
  .shot-window { width: 78%; }
  .shot-applet { width: 58%; }
  .nav nav a:not(.nav-gh) { display: none; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
