/* Red Point — neon on deep violet (palette taken from the app icon) */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

.page-home {
  --bg: #0a0420;
  --bg-mid: #0f0630;
  --bg-deep: #150845;
  --ink: #f4f0ff;
  --muted: #a99fcb;
  --violet: #8a3dff;
  --violet-soft: #b57cff;
  --red: #ff2a3d;
  --red-deep: #d10f25;
  --line: rgba(181, 124, 255, 0.18);
  --surface: rgba(28, 12, 74, 0.55);
  --glow-violet: rgba(138, 61, 255, 0.45);
  --glow-red: rgba(255, 42, 61, 0.4);
  --display: "Sora", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  color-scheme: dark;
}

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

.page-home a {
  color: var(--violet-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-home a:hover {
  color: #fff;
}

.page-home a.btn-store,
.page-home a.btn-store:hover {
  color: #fff;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

/* ---------- background ---------- */

.home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 78% 6%, rgba(138, 61, 255, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 10% 70%, rgba(255, 42, 61, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
}

.home-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(181, 124, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 124, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 0%, transparent 75%);
}

.home-shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* ---------- nav ---------- */

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

.home-logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

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

.home-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 22px var(--glow-violet);
}

.home-nav-end {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.home-nav-links {
  display: flex;
  gap: 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.home-nav-links a {
  text-decoration: none;
  color: var(--muted);
}

.home-nav-links a:hover {
  color: #fff;
}

.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  backdrop-filter: blur(12px);
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch button:hover {
  color: #fff;
}

.lang-switch button.lang-btn-active {
  background: linear-gradient(135deg, var(--violet), #5b21d6);
  color: #fff;
  box-shadow: 0 0 14px var(--glow-violet);
}

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

/* ---------- hero ---------- */

.home-hero {
  position: relative;
  min-height: min(86vh, 760px);
  padding: clamp(2rem, 6vw, 4rem) 0;
  display: grid;
  align-content: center;
  align-items: center;
  gap: 2rem;
  min-width: 0;
}

@media (min-width: 860px) {
  .home-hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.home-hero-stage {
  display: none;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: min(36rem, 100%);
  min-width: 0;
  animation: rise 0.9s ease-out both;
}

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

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 42, 61, 0.45);
  border-radius: 999px;
  background: rgba(255, 42, 61, 0.1);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff8a95;
}

.home-brand::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px 2px var(--glow-red);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.home-hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.4vw, 4.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  overflow-wrap: break-word;
  background: linear-gradient(120deg, #fff 30%, var(--violet-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-lead {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 34em;
  overflow-wrap: break-word;
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-items: center;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.7rem;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 10px 34px var(--glow-red);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 14px 44px rgba(255, 42, 61, 0.6);
}

.btn-store:focus-visible,
.home-hero .btn-text:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.home-hero .btn-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(181, 124, 255, 0.5);
  padding-bottom: 1px;
}

.home-hero .btn-text:hover {
  color: var(--violet-soft);
  border-bottom-color: var(--violet-soft);
}

.home-hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
  animation: rise 1.1s ease-out 0.12s both;
}

.home-hero-glow {
  position: absolute;
  width: min(460px, 90vw);
  height: min(460px, 90vw);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(138, 61, 255, 0.55) 0%,
    rgba(255, 42, 61, 0.14) 45%,
    transparent 70%
  );
  filter: blur(18px);
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.home-app-icon {
  position: relative;
  z-index: 1;
  width: min(340px, 68vw);
  height: auto;
  border-radius: 24%;
  box-shadow:
    0 30px 80px rgba(60, 10, 160, 0.6),
    0 0 0 1px rgba(181, 124, 255, 0.3);
  animation: float 7s ease-in-out infinite;
}

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

@media (max-width: 859px) {
  .home-hero {
    min-height: auto;
    padding-top: 1.5rem;
  }

  .home-hero-visual {
    order: -1;
    min-height: 200px;
  }

  .home-app-icon {
    width: min(200px, 50vw);
  }
}

/* ---------- features ---------- */

.home-section {
  margin-top: clamp(3rem, 8vw, 5rem);
}

.home-section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.home-section-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.home-section-title {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.home-section-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 38em;
}

.home-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .home-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .home-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.home-feature {
  margin: 0;
  padding: 1.5rem 1.4rem 1.6rem;
  background: linear-gradient(160deg, rgba(40, 18, 105, 0.6), rgba(18, 7, 52, 0.7));
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(181, 124, 255, 0.5);
  box-shadow: 0 16px 40px rgba(90, 30, 220, 0.3);
}

.home-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: rgba(138, 61, 255, 0.18);
  border: 1px solid rgba(181, 124, 255, 0.3);
  color: var(--violet-soft);
}

.home-feature-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-feature.home-feature-sos {
  border-color: rgba(255, 42, 61, 0.4);
  background: linear-gradient(160deg, rgba(110, 14, 40, 0.5), rgba(30, 7, 40, 0.75));
}

.home-feature.home-feature-sos:hover {
  border-color: rgba(255, 42, 61, 0.75);
  box-shadow: 0 16px 40px rgba(255, 42, 61, 0.25);
}

.home-feature.home-feature-sos .home-feature-icon {
  background: rgba(255, 42, 61, 0.16);
  border-color: rgba(255, 42, 61, 0.5);
  color: #ff5b6b;
}

.home-feature h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.home-feature p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- data + disclaimer + footer ---------- */

.home-data {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.home-data h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  font-weight: 700;
}

.home-data p {
  margin: 0;
  max-width: 46em;
  color: var(--muted);
  font-size: 1rem;
}

.home-disclaimer {
  margin: 2rem 0 0;
  padding: 1.1rem 1.2rem;
  border-left: 3px solid var(--red);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(255, 42, 61, 0.14), transparent);
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 48em;
}

.home-footer {
  margin-top: 3rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.home-footer p {
  margin: 0;
}

.home-footer nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.home-footer nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.home-footer nav a:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .home-nav-links {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-brand::before,
  .home-hero-glow,
  .home-app-icon,
  .home-hero-copy,
  .home-hero-visual {
    animation: none !important;
  }
}
