/* Locallynk Community Manager — public home (no app JS). */

:root {
  --bg: #eef4fc;
  --ink: #0c1524;
  --muted: #52637a;
  --accent: #1d6fe8;
  --accent-deep: #1557c0;
  --cyan: #14c8de;
  --line: #d4e2f4;
  --foam: #f5f9ff;
  --font: "Assistant", "Rubik", "Segoe UI", "Noto Sans Hebrew", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 100% -8%, rgba(20, 200, 222, 0.2) 0%, transparent 58%),
    radial-gradient(900px 420px at -10% 40%, rgba(29, 111, 232, 0.14) 0%, transparent 50%),
    linear-gradient(165deg, #f3f8ff, #eaf2fd 42%, #e4effc);
  line-height: 1.55;
}

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

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--foam);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  z-index: 10;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus {
  transform: translateY(0);
}

.shell {
  width: min(52rem, calc(100% - 2rem));
  margin-inline: auto;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    0
    max(2.5rem, env(safe-area-inset-bottom));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lang {
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.lang:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero {
  min-height: min(78vh, 42rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding-block: 1rem 2.5rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #ffffff, #eef5ff);
  box-shadow: 0 4px 12px rgba(29, 111, 232, 0.14), inset 0 0 0 1px rgba(29, 111, 232, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 1.65rem;
  height: 1.65rem;
  display: block;
}

.brand {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  background: linear-gradient(135deg, #0c1524 15%, #1d6fe8 65%, #0e96ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand span {
  display: block;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 0.35rem;
  -webkit-text-fill-color: var(--ink);
}

.hero h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.35rem, 3.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lede {
  margin: 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  width: fit-content;
  max-width: 100%;
  border: 0;
  border-radius: 0.9rem;
  padding: 0.9rem 1.25rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, #1d6fe8 0%, #1557c0 60%, #0e7490 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(29, 111, 232, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.cta:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .cta {
    width: 100%;
  }
}

.scene {
  margin-top: 1.25rem;
  width: min(100%, 36rem);
  aspect-ratio: 800 / 520;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(29, 111, 232, 0.09);
  overflow: hidden;
}

.scene-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
}

@media (prefers-reduced-motion: no-preference) {
  .brand-row,
  .hero h1,
  .lede,
  .scene {
    animation: rise 0.7s var(--ease) both;
  }
  .hero h1 {
    animation-delay: 0.08s;
  }
  .lede {
    animation-delay: 0.14s;
  }
  .scene {
    animation-delay: 0.2s;
  }
}

.section {
  padding: 2.25rem 0 0.5rem;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  max-width: 42ch;
}

.section p:last-child {
  margin-bottom: 0;
}

.foot {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-bottom: 0.75rem;
}

.foot a {
  text-decoration: none;
  font-weight: 600;
}

.foot a:hover {
  text-decoration: underline;
}

.draft-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@keyframes rise {
  from {
    transform: translateY(0.55rem);
    opacity: 0.4;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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