@import url('https://fonts.googleapis.com/css2?family=Varela+Round&family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,600;6..12,700&display=swap');

:root {
  --font-head: 'Varela Round', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;

  --c-void: #0F172A;
  --c-stage-1: #12211F;
  --c-stage-2: #16302A;
  --c-stage-3: #1B4034;
  --c-alive: #F0FDF4;

  --c-primary: #15803D;
  --c-secondary: #059669;
  --c-accent: #D97706;
  --c-accent-soft: #F59E0B;

  --c-card-dark: #192134;
  --c-card-light: #FFFFFF;

  --c-on-dark: #FFFFFF;
  --c-on-dark-muted: #94A3B8;
  --c-on-light: #0F172A;
  --c-on-light-muted: #64748B;

  --c-border-dark: rgba(255, 255, 255, 0.08);
  --c-border-light: #E2EFE7;

  --grad-cta: linear-gradient(135deg, #15803D 0%, #059669 55%, #D97706 100%);
  --grad-accent: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);

  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.28);
  --shadow-light: 0 14px 34px rgba(15, 23, 42, 0.10);

  --header-h: 84px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html.hide {
  overflow: visible;
}

body {
  font-family: var(--font-body);
  background: var(--c-void);
  color: var(--c-on-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.fixed {
  overflow: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

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

ul {
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 18px;
}

.section-lead {
  font-size: 17px;
  max-width: 720px;
}

.on-dark {
  color: var(--c-on-dark);
}

.on-dark .section-lead,
.on-dark p {
  color: var(--c-on-dark-muted);
}

.on-light {
  color: var(--c-on-light);
}

.on-light .section-lead,
.on-light p {
  color: var(--c-on-light-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent-soft);
  margin-bottom: 14px;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-void);
}

.preloader img {
  width: 84px;
  height: 84px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 900;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), height 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header.scrolled {
  height: 68px;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.32);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 34px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transition: width 0.3s var(--ease);
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

.burger-btn span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.burger-btn span:nth-child(1) { top: 15px; }
.burger-btn span:nth-child(2) { top: 21px; }
.burger-btn span:nth-child(3) { top: 27px; }

.burger-btn.act span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 890;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu .nav-link {
  font-family: var(--font-head);
  font-size: 24px;
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 38px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 17px;
  cursor: pointer;
  color: #fff;
  background: var(--grad-cta);
  background-size: 200% 100%;
  box-shadow: 0 14px 32px rgba(21, 128, 61, 0.38);
  transition: background-position 0.5s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(21, 128, 61, 0.5);
}

.btn-hero {
  animation: levitate 3s var(--ease) infinite;
}

.btn-hero:hover {
  animation-play-state: paused;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 90px;
  background: var(--c-void);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 45%, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.5) 45%, transparent 70%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.2) 45%, var(--c-stage-1) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-title {
  font-size: clamp(46px, 7vw, 82px);
  margin-bottom: 26px;
  background: linear-gradient(120deg, #FFFFFF 0%, #86EFAC 55%, #FBBF24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-q {
  font-size: clamp(18px, 2vw, 22px);
  color: #E2E8F0;
  margin-bottom: 14px;
  max-width: 560px;
}

.hero-q-soft {
  font-size: 17px;
  color: var(--c-on-dark-muted);
  margin-bottom: 38px;
  max-width: 560px;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: 100%;
  max-width: 460px;
  animation: float-slow 7s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.hero-art::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 108%;
  padding-bottom: 108%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.28) 0%, rgba(217, 119, 6, 0.10) 45%, transparent 68%);
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.about {
  background: var(--c-stage-1);
}

.about .wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 60px;
}

.about-art img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.about-text p + p {
  margin-top: 18px;
}

.how {
  background: var(--c-stage-2);
}

.how .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.how-art {
  order: 2;
}

.how-art img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.how-text p + p {
  margin-top: 18px;
}

.features {
  background: var(--c-stage-3);
}

.features-head {
  text-align: center;
  margin-bottom: 58px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.f-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-border-dark);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.f-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(134, 239, 172, 0.35);
}

.f-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--grad-cta);
  box-shadow: 0 10px 24px rgba(21, 128, 61, 0.35);
}

.f-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.f-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.f-card p {
  font-size: 15px;
  color: var(--c-on-dark-muted);
}

.planets {
  background: var(--c-alive);
  padding-top: 150px;
}

/* .planets::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background: linear-gradient(to bottom, var(--c-stage-3) 0%, rgba(27, 64, 52, 0.55) 40%, var(--c-alive) 100%);
} */

.planets .wrap {
  position: relative;
  z-index: 2;
}

.planets-head {
  text-align: center;
  margin-bottom: 56px;
}

.planets-head .section-title,
.planets-head .section-lead {
  color: var(--c-on-light);
}

.planets-head .section-lead {
  margin: 0 auto;
  color: var(--c-on-light-muted);
}

.planets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.p-card {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--c-card-light);
  border: 1px solid var(--c-border-light);
  box-shadow: var(--shadow-light);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.p-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.p-card:hover .p-art img {
  transform: rotate(8deg) scale(1.06);
}

.p-art {
  position: relative;
  flex-shrink: 0;
  width: 132px;
}

.p-art img {
  width: 100%;
  transition: transform 0.5s var(--ease);
}

.p-card h3 {
  font-size: 22px;
  color: var(--c-on-light);
  margin-bottom: 8px;
}

.p-card p {
  font-size: 15px;
  color: var(--c-on-light-muted);
}

.planets-note {
  margin-top: 50px;
  text-align: center;
  font-size: 17px;
  color: var(--c-on-light-muted);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.contact {
  background: var(--c-alive);
  padding-top: 40px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 70px 40px;
  border-radius: var(--radius-lg);
  background: var(--c-card-light);
  border: 1px solid var(--c-border-light);
  box-shadow: var(--shadow-light);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  width: 120%;
  padding-bottom: 90%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(21, 128, 61, 0.10) 0%, transparent 62%);
}

.contact-card > * {
  position: relative;
  z-index: 2;
}

.contact-card .section-title {
  color: var(--c-on-light);
}

.contact-card p {
  color: var(--c-on-light-muted);
  max-width: 620px;
  margin: 0 auto;
}

.contact-mail {
  display: inline-block;
  margin: 26px 0;
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.25s var(--ease);
}

.contact-mail:hover {
  opacity: 0.75;
}

.footer {
  position: relative;
  padding: 90px 0 34px;
  overflow: hidden;
  background: var(--c-void);
}

.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.5;
}

.footer-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75) 0%, var(--c-void) 100%);
}

.footer .wrap {
  position: relative;
  z-index: 2;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--c-border-dark);
}

.footer-tag {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.6vw, 27px);
  background: linear-gradient(120deg, #86EFAC 0%, #FBBF24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--c-on-dark-muted);
}

.footer-links a {
  transition: color 0.25s var(--ease);
}

.footer-links a:hover {
  color: #86EFAC;
}

.footer-bottom {
  padding-top: 26px;
  text-align: center;
  font-size: 14px;
  color: var(--c-on-dark-muted);
}

.legal-page {
  padding: calc(var(--header-h) + 80px) 0 100px;
  background: var(--c-void);
  min-height: 100vh;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 46px;
  border-radius: var(--radius-md);
  background: var(--c-card-dark);
  border: 1px solid var(--c-border-dark);
}

.legal-content h1 {
  font-size: clamp(32px, 5vw, 46px);
  margin-bottom: 34px;
  background: linear-gradient(120deg, #FFFFFF 0%, #86EFAC 60%, #FBBF24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-content section {
  margin-bottom: 34px;
}

.legal-content h2 {
  font-size: 24px;
  margin-bottom: 14px;
  color: #86EFAC;
}

.legal-content h3 {
  font-size: 19px;
  margin: 22px 0 12px;
  color: var(--c-accent-soft);
}

.legal-content p {
  font-size: 15px;
  color: var(--c-on-dark-muted);
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 16px 4px;
}

.legal-content ol {
  margin: 0 0 16px 22px;
}

.legal-content li {
  position: relative;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--c-on-dark-muted);
}

.legal-content ul li {
  padding-left: 24px;
}

.legal-content ol li {
  padding-left: 6px;
}

.legal-content ol li::marker {
  color: var(--c-accent-soft);
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-accent);
}

.legal-content a {
  color: #86EFAC;
  transition: opacity 0.25s var(--ease);
}

.legal-content a:hover {
  opacity: 0.75;
}

.app-domain {
  color: var(--c-accent-soft);
}

@media (max-width: 1024px) {
  .section { padding: 96px 0; }

  .hero .wrap,
  .about .wrap,
  .how .wrap {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero { text-align: center; }

  .hero-q,
  .hero-q-soft {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-art { order: -1; }
  .hero-art img { max-width: 330px; }

  .how-art { order: -1; }

  .about-text,
  .how-text { text-align: center; }

  .section-lead { margin-left: auto; margin-right: auto; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .burger-btn { display: block; }

  .section { padding: 80px 0; }

  .planets-grid { grid-template-columns: 1fr; }

  .legal-content { padding: 38px 26px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }

  .section { padding: 66px 0; }

  .features-grid { grid-template-columns: 1fr; }

  .p-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .p-art { width: 118px; }

  .contact-card { padding: 50px 22px; }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .btn {
    width: 100%;
    padding: 16px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
