:root {
  --ink: #143d4a;
  --ink-soft: #3a5f6b;
  --teal: #0b6e6a;
  --teal-bright: #1a9b94;
  --mint: #7fd4c8;
  --foam: #f4fbf9;
  --paper: #eef7f4;
  --line: rgba(20, 61, 74, 0.12);
  --shadow-soft: 0 18px 50px rgba(20, 61, 74, 0.08);
  --radius: 18px;
  --max: 1080px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", 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.65;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(127, 212, 200, 0.35), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(11, 110, 106, 0.12), transparent 55%),
    linear-gradient(180deg, #f7fcfa 0%, var(--paper) 45%, #e8f3ef 100%);
  background-attachment: fixed;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 252, 250, 0.78);
  border-bottom: 1px solid var(--line);
}

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

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

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

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

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

.lang-select {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23143D4A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 2rem 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-select:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  padding: 4rem 0 3.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% auto auto 55%;
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  border-radius: 40% 60% 55% 45%;
  background:
    radial-gradient(circle at 35% 35%, rgba(127, 212, 200, 0.75), transparent 55%),
    linear-gradient(145deg, rgba(11, 110, 106, 0.55), rgba(20, 61, 74, 0.35));
  filter: blur(2px);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 8% 12% auto;
  width: min(28vw, 260px);
  height: min(28vw, 260px);
  border-radius: 50%;
  border: 1px solid rgba(11, 110, 106, 0.22);
  animation: pulse-ring 7s ease-in-out infinite;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1.25rem;
  max-width: 42rem;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.8s ease forwards 0.1s;
}

.hero-brand img {
  width: 3.4rem;
  height: 3.4rem;
}

.hero-brand span {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  opacity: 0;
  animation: rise 0.85s ease forwards 0.25s;
}

.hero-lead {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
  opacity: 0;
  animation: rise 0.85s ease forwards 0.4s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
  opacity: 0;
  animation: rise 0.85s ease forwards 0.55s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

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

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(20, 61, 74, 0.22);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.section {
  padding: 4.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}

.section p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 28rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
}

.contact-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--teal);
}

.privacy-page {
  padding: 3.5rem 0 5rem;
}

.apps-page {
  padding: 3.5rem 0 5rem;
}

.apps-page .section-inner {
  max-width: 42rem;
}

.apps-page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.apps-intro {
  margin: 0 0 2rem;
  color: var(--ink-soft);
}

.app-card {
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--line);
}

.app-name {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.03em;
}

.app-short {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--ink);
}

.app-card h3 {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.app-card ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.app-card li {
  margin: 0.4rem 0;
}

.app-card p {
  color: var(--ink-soft);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0.5rem;
}

.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.play-soon {
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 600;
}

.privacy-page .section-inner {
  max-width: 42rem;
}

.privacy-page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

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

.policy-updated {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: var(--teal);
  font-weight: 600;
}

.policy-section {
  margin: 0 0 2rem;
}

.policy-section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.policy-section p {
  margin: 0 0 0.85rem;
}

.policy-section ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.policy-section li {
  margin: 0.35rem 0;
}

.policy-app-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.policy-app-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.policy-app-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.policy-app-list a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.policy-app-list a:hover {
  color: var(--teal);
}

.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.note {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--teal-bright);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
  background: rgba(255, 255, 255, 0.35);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

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

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

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

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

@keyframes drift {
  from {
    transform: translate(-4%, 2%) rotate(-4deg) scale(1);
  }
  to {
    transform: translate(3%, -3%) rotate(5deg) scale(1.05);
  }
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

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

  .hero::before {
    inset: -5% -20% auto auto;
    width: 280px;
    height: 280px;
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero::before,
  .hero::after {
    animation: none;
    opacity: 1;
  }
}
