@font-face {
  font-family: 'Fredoka';
  src: url('/assets/Fredoka.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #0b0d1a;
  --panel: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef0ff;
  --muted: #a8acc8;
  --ember: #ff5a3c;
  --aqua: #2ad4ff;
  --volt: #ffd23c;
  --flora: #3ce68a;
  --void: #b06bff;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--aqua); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.aurora {
  position: fixed; inset: -20%;
  background:
    radial-gradient(40% 35% at 20% 25%, rgba(176, 107, 255, 0.35), transparent 70%),
    radial-gradient(35% 30% at 80% 20%, rgba(42, 212, 255, 0.25), transparent 70%),
    radial-gradient(45% 40% at 60% 85%, rgba(255, 90, 60, 0.18), transparent 70%);
  filter: blur(20px);
  animation: drift 24s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes drift { to { transform: translate3d(3%, -2%, 0) rotate(4deg); } }

.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 18px 20px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font: 600 22px 'Fredoka', system-ui, sans-serif;
}

.brand img { border-radius: 10px; }

.lang select {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 12px; font: inherit; font-size: 15px;
}

.lang option { background: #15182b; }

.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  max-width: 1080px; margin: 0 auto; padding: 40px 20px 60px;
}

.logo {
  margin: 0 0 12px; font: 700 clamp(56px, 10vw, 96px)/1 'Fredoka', system-ui, sans-serif;
  letter-spacing: 0.02em; display: flex; gap: 0.02em;
}

.logo span { text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 0 28px currentColor; }
.logo span:nth-child(1) { color: var(--ember); }
.logo span:nth-child(2) { color: var(--volt); }
.logo span:nth-child(3) { color: var(--flora); }
.logo span:nth-child(4) { color: var(--aqua); }
.logo span:nth-child(5) { color: var(--void); }
.logo span:nth-child(6) { color: var(--ember); }

.tagline { font: 600 clamp(22px, 3vw, 30px)/1.25 'Fredoka', system-ui, sans-serif; margin: 0 0 12px; }

.sub { color: var(--muted); margin: 0 0 28px; max-width: 34em; }

.badge-soon {
  display: inline-block; padding: 14px 22px; border-radius: 16px;
  background: linear-gradient(135deg, var(--aqua), var(--void));
  color: #0b0d1a; font: 600 18px 'Fredoka', system-ui, sans-serif;
  box-shadow: 0 10px 30px rgba(42, 212, 255, 0.25);
}

.phones { position: relative; height: 560px; }

.phone {
  position: absolute; width: 260px; height: auto; border-radius: 32px;
  border: 6px solid #1c2036; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.phone.back { left: 0; top: 40px; transform: rotate(-7deg); opacity: 0.85; }
.phone.front { right: 10px; top: 0; transform: rotate(4deg); }

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 1080px; margin: 0 auto; padding: 0 20px 70px;
}

.features article {
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px;
}

.features h2 { font: 600 20px/1.3 'Fredoka', system-ui, sans-serif; margin: 12px 0 6px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

.ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-size: 22px; color: #0b0d1a; font-weight: 700;
}

.ico.ember { background: var(--ember); }
.ico.aqua { background: var(--aqua); }
.ico.volt { background: var(--volt); }
.ico.flora { background: var(--flora); }
.ico.void { background: var(--void); }

.foot {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  padding: 28px 20px 40px; color: var(--muted); font-size: 15px;
  border-top: 1px solid var(--line);
}

/* Privacy page */
.doc { max-width: 760px; margin: 0 auto; padding: 10px 20px 60px; }
.doc h1 { font: 600 34px/1.2 'Fredoka', system-ui, sans-serif; }
.doc h2 { font: 600 22px/1.3 'Fredoka', system-ui, sans-serif; margin-top: 32px; }
.doc p, .doc li { color: #d7daf0; }
.doc .muted { color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 10px; text-align: center; }
  .logo { justify-content: center; }
  .sub { margin-left: auto; margin-right: auto; }
  .phones { height: 470px; max-width: 380px; margin: 0 auto; width: 100%; }
  .phone { width: 210px; }
  .features { grid-template-columns: 1fr; }
}

@media (min-width: 861px) and (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none; }
}
