:root {
  --ink: #102a33;
  --ink-soft: #3a5560;
  --sea: #0b3a4a;
  --mint: #3db8a0;
  --mint-deep: #2a8f7c;
  --fog: #e7f0f3;
  --paper: #f4f8f9;
  --line: rgba(16, 42, 51, 0.12);
  --shadow: 0 24px 60px rgba(11, 58, 74, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Syne", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(61, 184, 160, 0.22), transparent 60%),
    radial-gradient(700px 380px at 90% 8%, rgba(11, 58, 74, 0.16), transparent 55%),
    linear-gradient(180deg, #eef5f7 0%, var(--paper) 42%, #e8f2f4 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(16, 42, 51, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 51, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%);
  z-index: 0;
}

a {
  color: var(--sea);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.site-header,
.site-footer,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.98rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--sea);
  color: #f4fbfa;
  text-decoration: none;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.header-cta:hover,
.button:hover {
  background: #145064;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 58, 74, 0.2);
}

.button-secondary {
  background: transparent;
  color: var(--sea);
  border-color: rgba(11, 58, 74, 0.25);
}

.button-secondary:hover {
  background: rgba(11, 58, 74, 0.06);
  color: var(--sea);
  box-shadow: none;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5.5rem;
  min-height: calc(100svh - 88px);
  display: grid;
  align-content: center;
  gap: 1.5rem;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--sea);
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  animation: rise 800ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-text {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
  animation: rise 850ms 140ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
  animation: rise 900ms 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-glow {
  position: absolute;
  width: min(46vw, 420px);
  height: min(46vw, 420px);
  right: 4%;
  top: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(61, 184, 160, 0.45), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(11, 58, 74, 0.28), transparent 60%);
  filter: blur(8px);
  animation: drift 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-heading {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--mint-deep);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2,
.legal-card h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
}

.apps-list {
  display: grid;
  gap: 1rem;
}

.app-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.app-link:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 184, 160, 0.45);
  box-shadow: var(--shadow);
  color: inherit;
}

.app-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #f4fbfa;
  background: linear-gradient(145deg, #145064, #3db8a0);
}

.app-mark.postly {
  background: linear-gradient(145deg, #1f4b66, #5aa7c7);
}

.app-mark.breathe {
  background: linear-gradient(145deg, #2f6b5a, #78c2a8);
}

.app-link h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.app-link p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.app-cta {
  color: var(--sea);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

.store-urls {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--mint);
  background: rgba(255, 255, 255, 0.45);
}

.store-urls h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.store-urls code {
  display: block;
  margin: 0.15rem 0;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: rgba(11, 58, 74, 0.06);
  font-size: 0.92rem;
  word-break: break-all;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.legal-card {
  padding: 0.25rem 0 1rem;
}

.legal-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.legal-card h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal-card h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.05rem;
}

.legal-card ul {
  padding-left: 1.2rem;
}

.legal-card li + li {
  margin-top: 0.35rem;
}

.support-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.support-item {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.support-item:last-child {
  border-bottom: 1px solid var(--line);
}

.support-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}

.support-item p {
  margin: 0;
  color: var(--ink-soft);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-24px, 18px, 0) scale(1.06);
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .hero-glow {
    width: 280px;
    height: 280px;
    top: 8%;
    right: -40px;
    opacity: 0.8;
  }

  .app-link {
    grid-template-columns: auto 1fr;
  }

  .app-cta {
    grid-column: 2;
  }
}

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