/* Smart Mushroomer — bioluminescent forest brand (icon-aligned) */

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

.page-home {
  --bg: #05070d;
  --bg-elevated: #0b1220;
  --ink: #eef7ff;
  --muted: #8fa3bb;
  --pink: #ff3d9a;
  --ember: #eb4128;
  --cyan: #2ad8ff;
  --glow-pink: rgba(255, 61, 154, 0.55);
  --glow-ember: rgba(235, 65, 40, 0.28);
  --glow-cyan: rgba(42, 216, 255, 0.45);
  --line: rgba(238, 247, 255, 0.1);
  --serif: "Syne", "Avenir Next", sans-serif;
  --sans: "Figtree", "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;
}

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

.page-home a:hover {
  color: var(--pink);
}

[hidden] {
  display: none !important;
}

/* Atmosphere */
.home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 70% 15%, rgba(255, 61, 154, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 48% 42%, rgba(235, 65, 40, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(42, 216, 255, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(8, 20, 40, 0.9) 0%, transparent 60%),
    #05070d;
}

.home-bg::before,
.home-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: drift 18s ease-in-out infinite;
}

.home-bg::before {
  width: 10px;
  height: 10px;
  top: 18%;
  left: 12%;
  background: var(--pink);
  box-shadow:
    22vw 12vh 0 1px rgba(42, 216, 255, 0.55),
    48vw 8vh 0 0 rgba(255, 61, 154, 0.4),
    58vw 30vh 0 0 rgba(235, 65, 40, 0.32),
    70vw 22vh 0 2px rgba(42, 216, 255, 0.35),
    35vw 40vh 0 0 rgba(255, 255, 255, 0.35),
    85vw 55vh 0 1px rgba(255, 61, 154, 0.3);
  opacity: 0.7;
}

.home-bg::after {
  width: 6px;
  height: 6px;
  top: 55%;
  right: 18%;
  background: var(--cyan);
  animation-delay: -7s;
  animation-duration: 22s;
  box-shadow:
    -15vw -10vh 0 1px rgba(255, 61, 154, 0.45),
    -28vw 2vh 0 0 rgba(235, 65, 40, 0.28),
    -40vw 8vh 0 0 rgba(42, 216, 255, 0.4),
    -60vw -20vh 0 2px rgba(255, 255, 255, 0.25);
  opacity: 0.55;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -18px, 0);
  }
}

.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.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  letter-spacing: -0.03em;
}

.home-logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 16px var(--glow-pink), 0 0 22px var(--glow-ember);
}

.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: var(--ink);
}

.lang-switch {
  display: inline-flex;
  background: rgba(11, 18, 32, 0.85);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--muted);
}

.lang-switch button.lang-btn-active {
  background: linear-gradient(
    120deg,
    var(--pink) 0%,
    color-mix(in srgb, var(--ember) 40%, var(--pink)) 45%,
    var(--cyan) 100%
  );
  color: #05070d;
}

/* Hero — full-bleed composition */
.home-hero {
  position: relative;
  min-height: min(88vh, 780px);
  margin: 0.5rem -1.25rem 0;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
  display: grid;
  align-content: end;
  align-items: end;
  gap: 1.5rem;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
}

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

.home-hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.2) 0%, rgba(5, 7, 13, 0.55) 45%, rgba(5, 7, 13, 0.92) 100%),
    radial-gradient(ellipse 70% 60% at 75% 40%, var(--glow-pink) 0%, transparent 55%),
    radial-gradient(ellipse 40% 38% at 52% 48%, var(--glow-ember) 0%, transparent 62%),
    radial-gradient(ellipse 55% 50% at 20% 70%, var(--glow-cyan) 0%, transparent 50%);
}

.home-hero-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.42;
  filter: saturate(1.15) contrast(1.05);
  animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1.02);
  }
  50% {
    transform: scale(1.06);
  }
}

.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(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-brand {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: linear-gradient(
    115deg,
    #fff 8%,
    var(--ember) 26%,
    var(--pink) 52%,
    var(--cyan) 92%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.home-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 100%;
  overflow-wrap: break-word;
}

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

/* EN: Latin brand is wider in Syne — scale down + keep within column */
html[lang="en"] .home-brand {
  font-size: clamp(2.05rem, 7.4vw, 3.55rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  overflow-wrap: normal;
}

html[lang="en"] .home-logo a {
  font-size: clamp(0.92rem, 2.1vw, 1.12rem);
  letter-spacing: -0.035em;
}

html[lang="en"] .home-hero h1 {
  font-size: clamp(1.2rem, 2.9vw, 1.7rem);
}

html[lang="en"] .home-section-title {
  max-width: 22ch;
}

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

.btn-store {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.55rem;
  background: linear-gradient(
    120deg,
    var(--pink) 0%,
    color-mix(in srgb, var(--ember) 42%, #ff6ec7) 40%,
    var(--cyan) 100%
  );
  color: #05070d;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 12px;
  box-shadow:
    0 0 24px var(--glow-pink),
    0 0 14px var(--glow-ember),
    0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-store:hover {
  color: #05070d;
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 0 36px var(--glow-cyan), 0 14px 32px rgba(0, 0, 0, 0.4);
}

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

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

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

.home-hero-glow {
  position: absolute;
  width: min(340px, 72vw);
  height: min(340px, 72vw);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--glow-pink) 0%,
    var(--glow-ember) 28%,
    var(--glow-cyan) 48%,
    transparent 70%
  );
  filter: blur(8px);
  opacity: 0.85;
  animation: pulse 5.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.home-app-icon {
  position: relative;
  z-index: 1;
  width: min(280px, 62vw);
  height: auto;
  border-radius: 24%;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 36px var(--glow-pink),
    0 0 28px var(--glow-ember),
    0 0 80px var(--glow-cyan);
}

@media (max-width: 859px) {
  .home-hero {
    align-content: start;
    min-height: auto;
    padding-top: 1.75rem;
    padding-bottom: 2.25rem;
  }

  .home-hero-stage img {
    opacity: 0.22;
    object-position: center 30%;
  }

  .home-hero-copy {
    order: 0;
  }

  .home-hero-visual {
    order: 1;
    min-height: 160px;
    margin-top: 0.25rem;
  }

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

  .home-brand {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  html[lang="en"] .home-brand {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
  }
}

/* Capabilities — manifesto list, not cards */
.home-section {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 0.5rem;
}

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

.home-section-title {
  margin: 0 0 1.75rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.home-capabilities {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.home-cap {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .home-cap {
    grid-template-columns: 5.5rem 12rem 1fr;
    align-items: baseline;
  }
}

.home-cap-index {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--ember) 58%, var(--pink));
  letter-spacing: 0.04em;
}

.home-cap h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-cap p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 48em;
}

@media (max-width: 699px) {
  .home-cap h3 {
    grid-column: 2;
  }

  .home-cap p {
    grid-column: 1 / -1;
  }
}

/* Data practice */
.home-data {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.25rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-data h2 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  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;
}

/* Disclaimer */
.home-disclaimer {
  margin: 2.25rem 0 0;
  padding: 1.15rem 0 1.15rem 1.15rem;
  border-left: 3px solid color-mix(in srgb, var(--ember) 70%, var(--pink));
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 48em;
}

/* Footer */
.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 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: var(--ink);
}

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

@media (prefers-reduced-motion: reduce) {
  .home-bg::before,
  .home-bg::after,
  .home-hero-stage img,
  .home-hero-glow,
  .home-hero-copy,
  .home-hero-visual {
    animation: none !important;
  }
}
