/* Hydra Run — shared styles (aligned with in-app palette) */
:root {
  --bg-deep: #0b1019;
  --bg-navy: #121a2e;
  --app-navy: #1c253b;
  --app-navy-mid: #1a2536;
  --app-surface: #e8ecf3;
  --app-surface-soft: #f0f4f8;
  --bg-card: rgba(28, 37, 59, 0.72);
  --accent: #86bc42;
  --accent-dim: #6a9634;
  --accent-glow: rgba(134, 188, 66, 0.35);
  --cyan: #60c5f1;
  --cyan-dim: rgba(96, 197, 241, 0.2);
  --text: #e8edf5;
  --text-muted: #94a3b8;
  --border: rgba(96, 197, 241, 0.12);
  --border-green: rgba(134, 188, 66, 0.18);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 55% at 50% -15%, rgba(96, 197, 241, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(28, 37, 59, 0.9), transparent),
    radial-gradient(ellipse 45% 35% at 0% 90%, rgba(134, 188, 66, 0.06), transparent),
    linear-gradient(180deg, #0b1019 0%, #06090f 100%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s;
}

a:hover {
  color: #9ed04f;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(11, 16, 25, 0.82);
  border-bottom: 1px solid rgba(96, 197, 241, 0.1);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo:hover {
  color: var(--text);
}

.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--app-navy) 0%, #141c2e 100%);
  border: 1px solid rgba(96, 197, 241, 0.25);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(134, 188, 66, 0.25), 0 8px 28px rgba(0, 0, 0, 0.35);
}

.logo__mark svg {
  width: 20px;
  height: 20px;
}

.logo__mark svg path {
  stroke: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

@media (max-width: 640px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a span {
    display: none;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
  margin-top: auto;
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-domain {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-domain a {
  color: var(--cyan);
}

.footer-domain a:hover {
  color: #8ed4f5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.social-row {
  display: flex;
  gap: 0.75rem;
}

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease), border-color 0.2s, color 0.2s, box-shadow 0.25s;
}

.social-row a:hover {
  color: var(--accent);
  border-color: rgba(134, 188, 66, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.social-row svg {
  width: 20px;
  height: 20px;
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Legal / support pages */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  width: 100%;
}

.legal-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.legal-main .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-main h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.legal-main p,
.legal-main ul {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.legal-main ul {
  padding-left: 1.25rem;
}

.legal-main li {
  margin-bottom: 0.5rem;
}

.support-card {
  background: linear-gradient(165deg, rgba(36, 48, 72, 0.45) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.25s var(--ease);
}

.support-card:hover {
  border-color: rgba(96, 197, 241, 0.28);
}

.support-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text);
}

.support-card p {
  margin: 0;
  font-size: 0.95rem;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* ——— Landing (index) ——— */
.landing-main {
  overflow-x: clip;
}

/* Hero */
.hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem clamp(4rem, 10vw, 6rem);
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(96, 197, 241, 0.45);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1rem;
  background: linear-gradient(180deg, #fff 0%, #b8c4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--accent);
  margin: 0 0 0.75rem;
  max-width: 420px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 440px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--app-navy);
  color: var(--text);
  transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.25s, background 0.2s;
}

.btn-store:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 197, 241, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(96, 197, 241, 0.12);
  color: var(--text);
}

.btn-store--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  border-color: transparent;
  color: #0a0f14;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-store--primary:hover {
  color: #0a0f14;
  box-shadow: 0 14px 48px var(--accent-glow);
}

.btn-store svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.btn-store small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.02em;
}

.btn-store span {
  line-height: 1.2;
}

/* Hero visual */
.hero__visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone-stack {
  position: relative;
  width: min(280px, 85vw);
  aspect-ratio: 9 / 19;
  transform-style: preserve-3d;
  animation: float-phone 6s ease-in-out infinite;
}

@keyframes float-phone {
  0%,
  100% {
    transform: rotateY(-8deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: rotateY(-8deg) rotateX(4deg) translateY(-12px);
  }
}

.phone-frame {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background: linear-gradient(145deg, var(--app-navy) 0%, #141b2c 100%);
  border: 3px solid rgba(96, 197, 241, 0.15);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 22px;
  background: #0a0e14;
  border-radius: 14px;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  inset: 10px;
  border-radius: 28px;
  background: #0e1522;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(96, 197, 241, 0.06) 0%, transparent 35%, transparent 70%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

/* Section shell */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section__head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.section__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Features */
.features-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

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

.feature-card {
  background: linear-gradient(165deg, rgba(36, 48, 72, 0.55) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 197, 241, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(134, 188, 66, 0.12);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(96, 197, 241, 0.12) 0%, rgba(134, 188, 66, 0.14) 100%);
  border: 1px solid rgba(96, 197, 241, 0.15);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

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

/* Screenshots — real app captures */
.shots {
  background: linear-gradient(180deg, transparent, rgba(28, 37, 59, 0.25));
}

.shot-gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

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

@media (min-width: 1080px) {
  .shot-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.shot-real {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(96, 197, 241, 0.14);
  background: var(--app-navy);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}

.shot-real:hover {
  transform: translateY(-6px);
  border-color: rgba(134, 188, 66, 0.35);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(96, 197, 241, 0.1);
}

.shot-real__img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.shot-real .shot-caption {
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  border-top: 1px solid rgba(96, 197, 241, 0.1);
  background: rgba(8, 12, 20, 0.45);
}

/* Community */
.community {
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
}

.community__box {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: 24px;
  border: 1px solid rgba(96, 197, 241, 0.18);
  background: linear-gradient(145deg, rgba(28, 37, 59, 0.95) 0%, rgba(11, 16, 25, 0.92) 50%, rgba(18, 26, 42, 0.95) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.community__box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(96, 197, 241, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(134, 188, 66, 0.1) 0%, transparent 40%);
  animation: drift 15s linear infinite;
}

@keyframes drift {
  to {
    transform: rotate(360deg);
  }
}

.community__box > * {
  position: relative;
  z-index: 1;
}

.community h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.community p {
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
}

.community__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.community__stat {
  text-align: center;
}

.community__stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.community__stat:nth-child(2) strong {
  color: var(--cyan);
}

.community__stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

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