:root {
  --ink: #12181c;
  --ink-soft: #2f3a42;
  --muted: #5c6b75;
  --paper: #eef3f1;
  --paper-2: #e4ece8;
  --foam: #f4f8f6;
  --coral: #ff3d6e;
  --coral-deep: #e02558;
  --mint: #3fae74;
  --sky: #3f8fb5;
  --line: rgba(18, 24, 28, 0.1);
  --shadow: 0 18px 40px rgba(18, 24, 28, 0.12);
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 61, 110, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(63, 174, 116, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 90%, rgba(63, 143, 181, 0.14), transparent 55%),
    linear-gradient(180deg, var(--foam) 0%, var(--paper) 45%, var(--paper-2) 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 248, 246, 0.78);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand-logo {
  height: 1.85rem;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1.85rem 0.45rem 0.7rem;
  border-radius: 0.7rem;
  cursor: pointer;
  max-width: 9.5rem;
}

.lang-switch select:focus {
  outline: 2px solid rgba(255, 61, 110, 0.35);
  border-color: var(--coral);
}

.lang-switch::after {
  content: "";
  position: absolute;
  right: 0.65rem;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  color: var(--ink);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0 1rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 0.75rem 0.25rem;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .lang-switch select {
    max-width: 11rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--ink);
  color: #fff;
}

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

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

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

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: auto;
  padding: 1.5rem 0 3rem;
  overflow: visible;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  order: 2;
}

.hero-brand-logo {
  display: block;
  width: min(100%, 18rem);
  height: auto;
  margin: 0 0 1.1rem;
  object-fit: contain;
  object-position: left center;
  animation: rise-in 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
  margin: 0 0 1.1rem;
  color: var(--ink);
  animation: rise-in 0.9s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: var(--ink);
  animation: rise-in 0.9s ease 0.12s both;
}

.hero-lead {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28rem;
  animation: rise-in 0.9s ease 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise-in 0.9s ease 0.32s both;
}

.hero-stage {
  position: relative;
  order: 1;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  z-index: 1;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 61, 110, 0.16), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(63, 174, 116, 0.1), transparent 55%);
}

.orbit-sun {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff7, transparent 45%),
    radial-gradient(circle at 50% 50%, #ff7a9a, #ff3d6e 55%, #e02558 100%);
  box-shadow:
    0 0 0 8px rgba(255, 61, 110, 0.12),
    0 0 40px rgba(255, 61, 110, 0.35);
  animation: sun-pulse 4s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.orbit-path {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(18, 24, 28, 0.12);
  pointer-events: none;
}

.orbit-path-outer {
  inset: 5%;
}

.orbit-path-mid {
  inset: 18%;
  border-style: dashed;
  border-color: rgba(18, 24, 28, 0.1);
}

.orbit-path-inner {
  inset: 32%;
  border-style: solid;
  border-color: rgba(18, 24, 28, 0.07);
}

.planet {
  --size: 3.6rem;
  --r: 40%;
  --dur: 48s;
  --n: 7;
  --dir: normal;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  animation: orbit-spin var(--dur) linear infinite;
  animation-delay: calc(var(--i) * var(--dur) / var(--n) * -1);
  animation-direction: var(--dir);
}

.planet-outer {
  --r: 42%;
  --n: 7;
}

.planet-mid {
  --r: 29%;
  --n: 6;
}

.planet-inner {
  --r: 16%;
  --n: 6;
}

.planet-rotor {
  position: absolute;
  top: calc(50% - var(--r));
  left: 50%;
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  animation: orbit-spin-rev var(--dur) linear infinite;
  animation-delay: inherit;
  animation-direction: inherit;
}

.planet-face {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.planet-face img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow:
    inset 0 -10px 18px rgba(0, 0, 0, 0.18),
    inset 0 8px 14px rgba(255, 255, 255, 0.35),
    0 10px 24px rgba(18, 24, 28, 0.18);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

.planet-face::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.45), transparent 42%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.planet-face::after {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  border: 2px solid rgba(255, 61, 110, 0.35);
  box-shadow: 0 0 24px rgba(255, 61, 110, 0.25);
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.planet:has(.planet-face:hover),
.planet:has(.planet-face:focus-visible),
.planet.is-active {
  animation-play-state: paused;
  z-index: 8;
}

.planet:has(.planet-face:hover) .planet-rotor,
.planet:has(.planet-face:focus-visible) .planet-rotor,
.planet.is-active .planet-rotor {
  animation-play-state: paused;
}

.planet-face:hover,
.planet-face:focus-visible,
.planet.is-active .planet-face {
  outline: none;
}

.planet-face:hover img,
.planet-face:focus-visible img,
.planet.is-active .planet-face img {
  transform: scale(1.28);
  filter: brightness(1.08) saturate(1.08);
  box-shadow:
    inset 0 -12px 20px rgba(0, 0, 0, 0.22),
    inset 0 10px 16px rgba(255, 255, 255, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.55),
    0 18px 36px rgba(18, 24, 28, 0.28);
}

.planet-face:hover::before,
.planet-face:focus-visible::before,
.planet.is-active .planet-face::before {
  opacity: 1;
}

.planet-face:hover::after,
.planet-face:focus-visible::after,
.planet.is-active .planet-face::after {
  opacity: 1;
  transform: scale(1.05);
  animation: ring-pulse 1.2s ease-out;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.5rem 2.5rem;
    min-height: min(78vh, 720px);
    padding: 2.5rem 0 4rem;
    align-items: center;
  }

  .hero-copy {
    order: 1;
  }

  .hero-stage {
    order: 2;
    max-width: none;
    width: 100%;
    justify-self: end;
  }

  .hero-brand-logo {
    width: min(100%, 22rem);
  }

  .planet-outer { --r: 43%; }
  .planet-mid { --r: 30%; }
  .planet-inner { --r: 17%; }
  .orbit-sun {
    width: 5rem;
    height: 5rem;
    margin: -2.5rem 0 0 -2.5rem;
  }
}

@media (max-width: 520px) {
  .hero-stage {
    max-width: 20rem;
  }

  .planet {
    --size: 2.85rem !important;
  }

  .planet-outer { --r: 40%; }
  .planet-mid { --r: 27%; }
  .planet-inner { --r: 14%; }

  .orbit-sun {
    width: 3.4rem;
    height: 3.4rem;
    margin: -1.7rem 0 0 -1.7rem;
  }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 0.7rem;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Apps */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .apps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

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

.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 0.75rem 1.1rem;
  border-radius: 1.25rem;
  background: transparent;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  text-align: center;
  cursor: pointer;
  appearance: none;
  font: inherit;
  color: inherit;
  text-decoration: none;
  width: 100%;
}

a.app-tile:hover,
button.app-tile:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.45);
  border-color: var(--line);
}

.app-icon {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  aspect-ratio: 1 / 1;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(18, 24, 28, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 0 auto;
  background: #fff;
}

.app-icon img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.app-tile:hover .app-icon {
  transform: scale(1.05);
  box-shadow: 0 16px 32px rgba(18, 24, 28, 0.18);
}

.app-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .app-icon {
    width: 5.75rem;
    height: 5.75rem;
  }
}

.app-tile:nth-child(3n) {
  transform: translateY(0.35rem);
}

.app-tile:nth-child(3n):hover {
  transform: translateY(-0.15rem);
}

.app-tile:nth-child(5n) {
  transform: translateY(-0.2rem);
}

.app-tile:nth-child(5n):hover {
  transform: translateY(-0.45rem);
}

/* CTA band */
.cta-band {
  margin: 1rem 0 3rem;
  padding: 2.5rem 1.5rem;
  border-radius: 1.75rem;
  background:
    linear-gradient(135deg, rgba(255, 61, 110, 0.12), rgba(63, 174, 116, 0.14) 50%, rgba(63, 143, 181, 0.12)),
    rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

.cta-band p {
  margin: 0 auto 1.35rem;
  max-width: 28rem;
  color: var(--muted);
}

/* Page content (inner pages) */
.page {
  padding: 3.5rem 0 4rem;
}

.page-panel {
  width: min(100%, 46rem);
  margin: 0 auto;
}

.page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
}

.page .effective,
.page .lede {
  color: var(--muted);
  margin-bottom: 2rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.85rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.55rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

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

.prose a {
  color: var(--coral-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Forms & FAQ */
.notice {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.faq-block {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.faq-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  padding: 0 1.1rem;
  color: var(--ink-soft);
}

.faq-panel.open {
  max-height: 1000px;
  opacity: 1;
  padding-bottom: 1rem;
}

.faq-icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-icon.rotated {
  transform: rotate(180deg);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.65);
  font: inherit;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(255, 61, 110, 0.35);
  border-color: var(--coral);
}

.contact-form .btn {
  width: 100%;
}

.help-list {
  display: grid;
  gap: 0.75rem;
}

.help-item {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

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

@media (min-width: 768px) {
  .footer-row {
    flex-direction: row;
  }
}

/* Motion */
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbit-spin-rev {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes sun-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 61, 110, 0.12), 0 0 40px rgba(255, 61, 110, 0.35); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(255, 61, 110, 0.16), 0 0 54px rgba(255, 61, 110, 0.45); }
}

@keyframes ring-pulse {
  0% { opacity: 0.9; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.35); }
}

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

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

  .hero-icon {
    opacity: 1;
  }

  .planet {
    animation: none !important;
  }

  .planet-rotor {
    animation: none !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 360deg / var(--n))) translateY(calc(-1 * var(--r))) rotate(calc(var(--i) * -360deg / var(--n)));
  }

  .planet-mid .planet-rotor {
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 360deg / var(--n) + 30deg)) translateY(calc(-1 * var(--r))) rotate(calc(var(--i) * -360deg / var(--n) - 30deg));
  }
}
