/* Shared navigation and Tidal sky. */
:root {
  color-scheme:dark;
  --sky-base:#0a0b16; --surface:#111421; --surface-raised:#1c2033; --ink:#f4f2fc; --muted:#b9b7ce;
  --line:#37384c; --accent:#c7bcff; --accent-strong:#a89aff; --on-accent:#18142e; --accent-rgb:199,188,255;
}
html,body {background-color:var(--sky-base);color:var(--ink)}
html {scroll-padding-top:82px}
.tidal-sky {position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:var(--sky-base);isolation:isolate}
.tidal-sky::before,.tidal-sky::after {content:"";position:absolute;inset:-4%;pointer-events:none}
.tidal-sky::before {background:center 53% / cover no-repeat url('/assets/tidal/sky.webp');filter:saturate(.95);animation:tidal-drift 48s ease-in-out infinite alternate}
.tidal-sky::after {background:radial-gradient(ellipse at 70% 49%,rgba(125,102,208,.13),transparent 38%),linear-gradient(98deg,rgba(8,9,20,.78) 3%,rgba(16,16,36,.36) 53%,rgba(34,31,67,.18));animation:tidal-shimmer 18s ease-in-out infinite alternate}
@keyframes tidal-drift {to{transform:translate(1.05%,-.65%) scale(1.025)}}
@keyframes tidal-shimmer {from{opacity:.92}to{opacity:1}}
html:not([data-motion="on"]) .tidal-sky::before,html:not([data-motion="on"]) .tidal-sky::after,
.tidal-sky[data-resting]::before,.tidal-sky[data-resting]::after,html[data-page-hidden] .tidal-sky::before,html[data-page-hidden] .tidal-sky::after {animation-play-state:paused}

body > .tidal-header {
  position:relative;z-index:15;inset:auto;background:var(--sky-base);color:var(--ink);
  border:0;border-bottom:1px solid color-mix(in srgb,var(--line) 75%,transparent);backdrop-filter:none;
}
.tidal-nav {max-width:1392px;width:calc(100% - clamp(36px,8vw,130px));height:72px;margin:auto;display:flex;align-items:center;gap:clamp(12px,2.1vw,32px);font:500 .9rem/1.2 'DM Sans',sans-serif}
.tidal-nav *,.tidal-header *::before,.tidal-header *::after {box-sizing:border-box}
.tidal-header a,.tidal-header summary {text-decoration:none;color:inherit}
.tidal-brand {display:inline-flex;align-items:center;gap:9px;color:var(--ink);font-size:1.21rem;font-weight:650;letter-spacing:-.05em;white-space:nowrap}
.tidal-brand img,.tidal-footer-logo {display:block;object-fit:contain;border-radius:0}
.tidal-brand img {width:38px;height:38px;transition:transform .32s ease}
.tidal-navlinks {margin-left:auto;display:flex;align-items:center;gap:clamp(15px,2.2vw,36px)}
.tidal-navlinks a,.tidal-mobile-links a {color:var(--muted);transition:color .16s ease}
.tidal-navlinks a {position:relative;padding:9px 0}
.tidal-navlinks a::after {content:"";position:absolute;bottom:2px;left:0;right:0;height:1px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .18s ease}
.tidal-nav a:focus-visible,.tidal-nav summary:focus-visible {outline:2px solid var(--accent);outline-offset:4px}
.tidal-nav details {position:relative;border:0}
.tidal-nav details > summary {cursor:pointer;list-style:none}
.tidal-nav details > summary::-webkit-details-marker {display:none}
.tidal-nav summary::after {content:none}
.tidal-header .tidal-cta,.tidal-header .tidal-mobile > summary {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:999px;
  padding:0 14px;min-height:38px;font-size:.86rem;font-weight:600;white-space:nowrap;line-height:1;transition:transform .15s ease,background-color .18s ease,border-color .18s ease;
}
.tidal-header .tidal-cta {background:var(--accent);color:var(--on-accent);border-color:transparent;padding:0 18px}
.tidal-mobile {display:none}
.tidal-mobile-links {
  position:absolute;top:calc(100% + 10px);right:0;background:var(--surface);border:1px solid var(--line);
  color:var(--ink);border-radius:15px;box-shadow:0 15px 38px #0005;padding:8px;width:195px;z-index:2;
}
.tidal-mobile-links a {padding:10px 12px;display:block;border-radius:6px}
@media(hover:hover) {
  .tidal-navlinks a:hover,.tidal-mobile-links a:hover {color:var(--ink)}
  .tidal-navlinks a:hover::after,.tidal-navlinks a:focus-visible::after {transform:scaleX(1)}
  .tidal-mobile > summary:hover,.tidal-mobile-links a:hover {background:var(--surface-raised)}
  .tidal-header .tidal-cta:hover {background:color-mix(in srgb,var(--accent) 85%,white)}
}
body > footer.footer {color:var(--muted);background:var(--sky-base);border-color:var(--line);flex-wrap:wrap}
body > footer.footer .brand {color:var(--ink)}
body > footer.footer .brand img {object-fit:contain;border:0;border-radius:0;background:none}
body > footer.footer a {color:inherit}
body > footer.footer a:hover {color:var(--accent)}
.tidal-credit {font:400 .73rem/1.5 'DM Sans',sans-serif;letter-spacing:0;color:var(--muted)}
.tidal-credit a {text-underline-offset:2px}
body > .skip:focus,body > .skip-link:focus {z-index:30;background:var(--accent);color:var(--on-accent)}
@media(max-width:760px) {
  .tidal-nav {gap:8px;height:62px;width:calc(100% - 30px)}
  .tidal-navlinks {display:none}
  .tidal-brand {margin-right:auto;font-size:1.08rem;gap:5px}
  .tidal-brand img {width:32px;height:32px}
  .tidal-mobile {display:block}
  .tidal-header .tidal-mobile > summary {width:38px;padding:0}
  .tidal-header .tidal-cta {padding:0 12px}
}
@view-transition {navigation:auto}
@media(prefers-reduced-motion:no-preference) {
  html[data-motion="on"] .tidal-mobile[open] .tidal-mobile-links {animation:tidal-open .16s ease-out both;transform-origin:top right}
  html[data-motion="on"] .feature-card button {transition:transform .13s ease,color .18s ease,background-color .18s ease}
  html[data-motion="on"] :is(.hero-actions .primary,.feature-card button,.tidal-mobile summary,.tidal-header .tidal-cta):active {transform:scale(.97)}
  html[data-motion="on"]::view-transition-old(root) {animation:tidal-page-out .12s ease-in both}
  html[data-motion="on"]::view-transition-new(root) {animation:tidal-page-in .22s ease-out both}
}
@media(prefers-reduced-motion:no-preference) and (hover:hover) {
  html[data-motion="on"] .tidal-brand:hover img {transform:rotate(-8deg)}
  html[data-motion="on"] .tidal-header .tidal-cta:hover:not(:active) {transform:translateY(-1px)}
}
@keyframes tidal-open {from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}
@keyframes tidal-page-out {to{opacity:0}}
@keyframes tidal-page-in {from{opacity:0}}
html[data-motion="paused"],html[data-motion="paused"] *,html[data-motion="paused"] *::before,html[data-motion="paused"] *::after {transition-duration:0s!important;scroll-behavior:auto!important}
html[data-motion="paused"]::view-transition-group(*),html[data-motion="paused"]::view-transition-old(*),html[data-motion="paused"]::view-transition-new(*) {animation-duration:0s!important}
@media(prefers-reduced-motion:reduce) {
  html,body,*,*::before,*::after {scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:0s!important}
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*) {animation-duration:0s!important}
}
@media(forced-colors:active) {
  .tidal-header :is(.tidal-cta,summary) {border:1px solid ButtonText}
}
