/* Eos Learning — marketing site */
:root {
  --bg: #f7f5f0;
  --bg-elevated: #fffefb;
  --ink: #1e2d2a;
  --ink-muted: #4a5c58;
  --mint: #7ec9a8;
  --mint-soft: #d4f0e3;
  --coral: #e89584;
  --border: rgba(30, 45, 42, 0.1);
  --shadow: 0 12px 40px rgba(30, 45, 42, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-cozy: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --anim-duration: 0.75s;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes card-glow-soft {
  0%,
  100% {
    box-shadow: 0 12px 40px rgba(30, 45, 42, 0.08);
  }
  50% {
    box-shadow: 0 18px 48px rgba(30, 45, 42, 0.11);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height:1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ─── Background: soft orbs + JS specks & parallax (#bg-orbs) ─── */
.bg-orbs {
  --bg-p-x: 0px;
  --bg-p-y: 0px;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(var(--bg-p-x), var(--bg-p-y), 0);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
}

.bg-orb--1 {
  width: min(52vw, 380px);
  height: min(52vw, 380px);
  top: -12%;
  right: -8%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(126, 201, 168, 0.55),
    rgba(74, 92, 88, 0.12) 62%,
    transparent 72%
  );
  animation: orb-drift-1 22s ease-in-out infinite;
}

.bg-orb--2 {
  width: min(48vw, 340px);
  height: min(48vw, 340px);
  bottom: 5%;
  left: -18%;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(30, 45, 42, 0.18),
    rgba(126, 201, 168, 0.22) 55%,
    transparent 70%
  );
  animation: orb-drift-2 26s ease-in-out infinite;
  animation-delay: -4s;
}

.bg-orb--3 {
  width: min(42vw, 300px);
  height: min(42vw, 300px);
  top: 38%;
  left: 8%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(232, 149, 132, 0.35),
    rgba(232, 149, 132, 0.06) 65%,
    transparent 75%
  );
  animation: orb-drift-3 19s ease-in-out infinite;
  animation-delay: -2s;
  opacity: 0.42;
}

.bg-orb--4 {
  width: min(36vw, 260px);
  height: min(36vw, 260px);
  top: 12%;
  left: 42%;
  background: radial-gradient(
    circle at 45% 55%,
    rgba(212, 240, 227, 0.85),
    rgba(126, 201, 168, 0.2) 58%,
    transparent 72%
  );
  animation: orb-drift-4 24s ease-in-out infinite;
  animation-delay: -7s;
  opacity: 0.38;
}

.bg-orb--5 {
  width: min(44vw, 320px);
  height: min(44vw, 320px);
  bottom: -10%;
  right: 15%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(139, 118, 90, 0.2),
    rgba(30, 45, 42, 0.1) 55%,
    rgba(126, 201, 168, 0.15) 68%,
    transparent 78%
  );
  animation: orb-drift-5 28s ease-in-out infinite;
  animation-delay: -11s;
  opacity: 0.35;
}

.bg-orb--6 {
  width: min(28vw, 200px);
  height: min(28vw, 200px);
  top: 55%;
  right: 3%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 254, 251, 0.9),
    rgba(212, 240, 227, 0.35) 50%,
    transparent 68%
  );
  animation: orb-drift-6 17s ease-in-out infinite;
  animation-delay: -5s;
  opacity: 0.32;
}

@keyframes orb-drift-1 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(-4vw, 6vh, 0) scale(1.08);
  }
  66% {
    transform: translate3d(3vw, -3vh, 0) scale(0.96);
  }
}

@keyframes orb-drift-2 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1.02);
  }
  50% {
    transform: translate3d(8vw, -5vh, 0) scale(1.1);
  }
}

@keyframes orb-drift-3 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  40% {
    transform: translate3d(10vw, 4vh, 0) scale(1.12);
  }
  70% {
    transform: translate3d(-5vw, -6vh, 0) scale(0.94);
  }
}

@keyframes orb-drift-4 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-12vw, 8vh, 0) scale(1.06);
  }
}

@keyframes orb-drift-5 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  30% {
    transform: translate3d(-6vw, -8vh, 0) scale(1.08);
  }
  60% {
    transform: translate3d(5vw, 5vh, 0) scale(0.98);
  }
}

@keyframes orb-drift-6 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-7vw, -10vh, 0) scale(1.15);
  }
}

/* Tiny specks — motion enhanced by bg-motion.js */
.bg-speck {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: speck-wander linear infinite;
  opacity: 0.35;
}

.bg-speck--mint {
  background: rgba(126, 201, 168, 0.55);
  box-shadow: 0 0 12px rgba(126, 201, 168, 0.35);
}

.bg-speck--ink {
  background: rgba(30, 45, 42, 0.18);
  box-shadow: 0 0 8px rgba(30, 45, 42, 0.12);
}

.bg-speck--coral {
  background: rgba(232, 149, 132, 0.45);
  box-shadow: 0 0 10px rgba(232, 149, 132, 0.25);
}

@keyframes speck-wander {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.12;
  }
  28% {
    transform: translate3d(14px, -20px, 0) scale(1.12);
    opacity: 0.4;
  }
  52% {
    transform: translate3d(-10px, 12px, 0) scale(0.92);
    opacity: 0.28;
  }
  76% {
    transform: translate3d(8px, -8px, 0) scale(1.06);
    opacity: 0.35;
  }
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink-muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
}

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

.wrap {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition:
    transform 0.5s var(--ease-cozy),
    box-shadow 0.5s var(--ease-cozy);
}

.brand:hover img {
  transform: scale(1.04);
  box-shadow: 0 14px 44px rgba(30, 45, 42, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.lang-switch button {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition:
    background 0.2s var(--ease-cozy),
    color 0.2s var(--ease-cozy),
    transform 0.2s var(--ease-cozy);
}

.lang-switch button:hover {
  transform: scale(1.03);
}

.lang-switch button:active {
  transform: scale(0.98);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.lang-switch button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease-cozy), opacity 0.2s var(--ease-cozy);
}

.nav-link:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

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

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  animation: fade-in-up var(--anim-duration) var(--ease-out-soft) backwards;
  animation-delay: 0.06s;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  animation: fade-in-up var(--anim-duration) var(--ease-out-soft) backwards;
  animation-delay: 0.12s;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 42ch;
  animation: fade-in-up var(--anim-duration) var(--ease-out-soft) backwards;
  animation-delay: 0.18s;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  align-items: center;
  animation: fade-in-up var(--anim-duration) var(--ease-out-soft) backwards;
  animation-delay: 0.26s;
}

/* Official App Store + Google Play badges — identical hit area; artwork scaled with object-fit */
.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 136px;
  height: 44px;
  line-height: 0;
  border-radius: 8px;
  transition:
    transform 0.35s var(--ease-cozy),
    opacity 0.35s var(--ease-cozy),
    filter 0.35s var(--ease-cozy);
}

.store-badge-link:hover {
  transform: translateY(-3px);
  opacity: 0.95;
  text-decoration: none;
}

.store-badge-link:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.store-badge-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  animation: fade-in-up var(--anim-duration) var(--ease-out-soft) backwards;
  animation-delay: 0.34s;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: dot-pulse 2.8s var(--ease-cozy) infinite;
}

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

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease-cozy);
  animation:
    fade-in-up 0.88s var(--ease-out-soft) backwards,
    card-glow-soft 12s var(--ease-cozy) infinite;
  animation-delay: 0.2s, 1.15s;
}

.hero-card:hover {
  transform: translateY(-3px);
}

.hero-card-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.hero-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink);
  font-size: 0.9375rem;
}

.hero-card li {
  margin-bottom: 0.35rem;
}

.hero-card-accent {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* Sections */
section {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2rem;
  max-width: 60ch;
  color: var(--ink-muted);
}

.features .section-title {
  animation: fade-in-up var(--anim-duration) var(--ease-out-soft) backwards;
  animation-delay: 0.08s;
}

.features .section-intro {
  animation: fade-in-up var(--anim-duration) var(--ease-out-soft) backwards;
  animation-delay: 0.14s;
}

section[aria-labelledby="shots-heading"] .section-title {
  animation: fade-in-up var(--anim-duration) var(--ease-out-soft) backwards;
  animation-delay: 0.06s;
}

section[aria-labelledby="shots-heading"] .section-intro {
  animation: fade-in-up var(--anim-duration) var(--ease-out-soft) backwards;
  animation-delay: 0.12s;
}

.features {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--mint-soft) 45%, var(--bg)) 40%, transparent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.25rem;
  box-shadow: 0 4px 20px rgba(30, 45, 42, 0.04);
  animation: fade-in-up 0.68s var(--ease-out-soft) backwards;
  transition:
    transform 0.4s var(--ease-cozy),
    box-shadow 0.4s var(--ease-cozy);
}

.feature-card:nth-child(1) {
  animation-delay: 0.22s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.28s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.34s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
  animation-delay: 0.46s;
}

.feature-card:nth-child(6) {
  animation-delay: 0.52s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(30, 45, 42, 0.09);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--mint-soft);
  transition: transform 0.35s var(--ease-cozy);
}

.feature-card:hover .feature-icon {
  transform: scale(1.06);
}

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

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

/* Screenshots */
.shots-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 700px) {
  .shots-head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}

.shot {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 4px 16px rgba(30, 45, 42, 0.06);
  animation: fade-in-up 0.62s var(--ease-out-soft) backwards;
  transition:
    transform 0.45s var(--ease-cozy),
    box-shadow 0.45s var(--ease-cozy);
}

.shot:nth-child(1) {
  animation-delay: 0.18s;
}

.shot:nth-child(2) {
  animation-delay: 0.22s;
}

.shot:nth-child(3) {
  animation-delay: 0.26s;
}

.shot:nth-child(4) {
  animation-delay: 0.3s;
}

.shot:nth-child(5) {
  animation-delay: 0.34s;
}

.shot:nth-child(6) {
  animation-delay: 0.38s;
}

.shot:nth-child(7) {
  animation-delay: 0.42s;
}

.shot:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(30, 45, 42, 0.12);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  transition: transform 0.55s var(--ease-cozy);
}

.shot:hover img {
  transform: scale(1.04);
}

/* CTA strip */
.cta {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.cta-inner {
  background: linear-gradient(135deg, var(--ink) 0%, #2a3d38 100%);
  color: var(--bg);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow);
  animation: fade-in-up 0.78s var(--ease-out-soft) backwards;
  animation-delay: 0.1s;
  transition: box-shadow 0.5s var(--ease-cozy);
}

.cta-inner:hover {
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.22);
}

@media (min-width: 700px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-inner h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-inner p {
  margin: 0.35rem 0 0;
  opacity: 0.88;
  font-size: 0.9375rem;
  max-width: 48ch;
}

.cta .store-row {
  margin-bottom: 0;
}

.cta .store-badge-link:hover {
  opacity: 1;
  filter: brightness(1.08);
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.site-footer .wrap {
  animation: fade-in 0.65s var(--ease-out-soft) backwards;
  animation-delay: 0.15s;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

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

.footer-links a {
  color: var(--ink-muted);
}

/* Legal / privacy page */
.legal {
  padding: clamp(2rem, 5vw, 3rem) 0 4rem;
  max-width: 720px;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2rem);
}

.legal .updated {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
}

.legal p,
.legal li {
  color: var(--ink-muted);
}

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

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

[hidden] {
  display: none !important;
}

/* Respect calm / accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bg-orbs {
    transform: none !important;
  }

  .bg-orb,
  .bg-speck {
    animation: none !important;
  }

  .hero-badge,
  .hero h1,
  .hero-lead,
  .store-row,
  .hero-meta,
  .hero-card,
  .features .section-title,
  .features .section-intro,
  section[aria-labelledby="shots-heading"] .section-title,
  section[aria-labelledby="shots-heading"] .section-intro,
  .feature-card,
  .shot,
  .cta-inner,
  .site-footer .wrap {
    animation: none !important;
    animation-delay: 0s !important;
  }

  .hero-card {
    box-shadow: var(--shadow);
  }

  .hero-meta .dot {
    animation: none !important;
  }

  .brand img,
  .lang-switch button,
  .feature-card,
  .feature-icon,
  .shot,
  .shot img,
  .store-badge-link,
  .cta-inner,
  .hero-card {
    transition-duration: 0.01ms !important;
  }

  .feature-card:hover,
  .shot:hover,
  .shot:hover img,
  .brand:hover img,
  .hero-card:hover,
  .cta-inner:hover {
    box-shadow: var(--shadow) !important;
  }

  .feature-card:hover .feature-icon {
    transform: none !important;
  }

  .lang-switch button:hover,
  .lang-switch button:active {
    transform: none !important;
  }

  .store-badge-link:hover {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .cta .store-badge-link:hover {
    filter: none !important;
  }
}
