/* WaterPoloCircle — app landing
   Direction: California pool water — deep teal, bright cyan, charcoal.
   Visual language preserved from the personal one-pager; content is app-first. */

:root {
  --ink: #0c1b24;
  --ink-soft: #2a4452;
  --muted: #5a7583;
  --paper: #f3f8fa;
  --foam: #ffffff;
  --deep: #063647;
  --pool: #0a6b7c;
  --cyan: #1db8c9;
  --cyan-bright: #5ee0ee;
  --gold-quiet: #c9b27a;
  --ripple: rgba(29, 184, 201, 0.18);
  --line: rgba(6, 54, 71, 0.12);
  --focus: #0a6b7c;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --max: 68rem;
  --measure: 38rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--pool);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--deep);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--foam);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Atmosphere ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  color: var(--foam);
  overflow: hidden;
  isolation: isolate;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 70% 10%, rgba(94, 224, 238, 0.35), transparent 55%),
    radial-gradient(90% 70% at 15% 80%, rgba(10, 107, 124, 0.55), transparent 50%),
    linear-gradient(165deg, #041e28 0%, #063647 38%, #0a6b7c 72%, #147e8f 100%);
}

.hero__atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.07) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.05) 0 1px, transparent 2px);
  background-size: 48px 48px, 72px 72px;
  opacity: 0.7;
  animation: drift 28s linear infinite;
}

.hero__atmosphere::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -20%;
  height: 55%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(94, 224, 238, 0.28), transparent 70%);
  animation: swell 9s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-48px, -24px, 0); }
}

@keyframes swell {
  from { transform: translateY(0) scale(1); opacity: 0.85; }
  to { transform: translateY(-18px) scale(1.04); opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 16rem);
  column-gap: var(--space-md);
  align-items: start;
  animation: rise 0.9s ease-out both;
}

.brand {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-md);
  max-width: 12ch;
}

.brand span {
  display: block;
  color: var(--cyan-bright);
}

.hero__slogan {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  margin: 0.35rem 0 0;
  max-width: 14ch;
  text-align: right;
  font-size: clamp(1.25rem, 2.1vw, 1.5rem);
  line-height: 1.3;
  font-style: italic;
  font-weight: 400;
  color: var(--gold-quiet);
  letter-spacing: 0.01em;
}

.hero__lead,
.hero__support,
.cta-row {
  grid-column: 1 / -1;
}

.hero__lead {
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  line-height: 1.45;
  max-width: 28ch;
  margin: 0 0 var(--space-sm);
  font-weight: 500;
}

.hero__support {
  margin: 0 0 var(--space-lg);
  max-width: var(--measure);
  color: rgba(243, 248, 250, 0.82);
  font-size: 1.05rem;
}

@media (max-width: 700px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__slogan {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    align-self: auto;
    margin: 0 0 var(--space-md);
    max-width: 18ch;
    text-align: center;
    font-size: clamp(1.2rem, 4.5vw, 1.35rem);
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--cyan-bright);
  color: var(--deep);
}

.btn--primary:hover {
  background: var(--foam);
  color: var(--deep);
}

.btn--ghost {
  background: transparent;
  color: var(--foam);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  border-color: var(--foam);
  color: var(--foam);
  background: rgba(255, 255, 255, 0.08);
}

.cta-row--ink {
  margin-top: var(--space-md);
}

.btn--ink.btn--primary {
  background: var(--pool);
  color: var(--foam);
}

.btn--ink.btn--primary:hover {
  background: var(--deep);
  color: var(--foam);
}

.btn--ink.btn--ghost {
  color: var(--deep);
  border-color: rgba(6, 54, 71, 0.28);
}

.btn--ink.btn--ghost:hover {
  border-color: var(--deep);
  color: var(--deep);
  background: rgba(6, 54, 71, 0.06);
}

.scroll-hint {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-md);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 248, 250, 0.55);
  animation: swell 3.5s ease-in-out infinite alternate;
}

/* ——— Sections ——— */
.section {
  padding: var(--space-xl) var(--space-md);
}

.section__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pool);
  margin: 0 0 var(--space-sm);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
  max-width: 18ch;
  color: var(--deep);
}

.section__lede {
  margin: 0 0 var(--space-lg);
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* App roles — one composition, not cards */
.app {
  background: var(--foam);
}

.arc {
  display: grid;
  gap: var(--space-md);
  max-width: 42rem;
  position: relative;
  padding-left: 1.25rem;
  border-left: 2px solid var(--cyan);
}

.arc__step {
  animation: rise 0.7s ease-out both;
}

.arc__step:nth-child(1) { animation-delay: 0.05s; }
.arc__step:nth-child(2) { animation-delay: 0.15s; }
.arc__step:nth-child(3) { animation-delay: 0.25s; }

.arc__when {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.arc__what {
  margin: 0;
  font-size: 1.125rem;
  color: var(--ink);
  font-weight: 500;
}

.arc__detail {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Screens */
.proof {
  background:
    linear-gradient(180deg, #e8f4f7 0%, var(--paper) 100%);
}

.shots {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .shots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shots--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: rgba(6, 54, 71, 0.04);
  border: 1px solid var(--line);
  min-height: 0;
}

.shot--phone {
  aspect-ratio: 9 / 19.5;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.shot__caption {
  margin: 0;
  padding: 0.55rem 0.65rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  background: var(--foam);
  border-top: 1px solid var(--line);
}

.shot--filled {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  background: var(--foam);
}

.shot--filled img {
  flex: 1 1 auto;
  aspect-ratio: 9 / 19.5;
  height: auto;
}

/* Launch */
.launch {
  background: var(--foam);
}

/* Footer — creator credit only */
.site-footer {
  background: var(--deep);
  color: rgba(243, 248, 250, 0.72);
  padding: var(--space-lg) var(--space-md);
}

.site-footer a {
  color: var(--cyan-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 224, 238, 0.35);
}

.site-footer a:hover {
  color: var(--foam);
  border-bottom-color: var(--foam);
}

.site-footer__built {
  margin: 0 0 var(--space-sm);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 42rem;
}

.site-footer__copy {
  margin: 0;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(243, 248, 250, 0.45);
}

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