:root {
  color-scheme: light;
  --ink: #10223c;
  --muted: #55677d;
  --soft: #eef4fb;
  --panel: #ffffff;
  --line: #d7e2f0;
  --blue: #1d6fd0;
  --blue-bright: #3f8fec;
  --blue-dark: #0f4a96;
  --sky: #d9eafb;
  --amber: #f0a04a;
  --amber-dark: #c87f26;
  --amber-soft: #fdf1e0;
  --shadow: 0 24px 60px rgba(16, 40, 82, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f5f8fc;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(61, 143, 236, .5);
  outline-offset: 2px;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(215, 226, 240, .9);
  background: rgba(245, 248, 252, .92);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  object-position: left center;
  box-shadow: 0 4px 12px rgba(16, 40, 82, .18);
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a {
  text-decoration: none;
  transition: color .15s ease;
}

nav a:hover {
  color: var(--blue);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  isolation: isolate;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 62% at 82% 30%, rgba(63, 143, 236, .16), transparent 70%),
    radial-gradient(40% 50% at 12% 80%, rgba(240, 160, 74, .12), transparent 70%);
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 5.5vw, 4.35rem);
  line-height: .98;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, var(--ink), var(--blue-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.15;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.25rem;
}

.beta-instruction {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 16px;
}

#group-join-help {
  max-width: 560px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
}

.hero-visual {
  margin-bottom: 44px;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(16, 40, 82, .22);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

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

.button.primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(29, 111, 208, .28);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  border-color: #b9cdec;
  background: #ffffff;
  color: var(--blue-dark);
}

.button.secondary:hover {
  border-color: var(--blue);
}

.button.dark {
  background: var(--ink);
  color: #ffffff;
}

.button.dark:hover {
  background: #0a1a30;
}

.important-note {
  max-width: 620px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 2px solid var(--amber);
  border-left-width: 7px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--ink);
}

.important-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--amber-dark);
  font-size: 15px;
  font-weight: 900;
}

.important-note p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.feature-grid,
.screenshots,
.trust-panel,
.final-cta {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

[hidden] {
  display: none !important;
}

.trust-panel p,
.final-cta p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading {
  grid-column: 1 / -1;
  max-width: 690px;
  margin-bottom: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 72px 0 62px;
}

.feature-grid article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.feature-grid article:hover {
  transform: translateY(-3px);
  border-color: #b9cdec;
  box-shadow: 0 18px 44px rgba(16, 40, 82, .1);
}

.feature-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 26px;
  border-radius: 10px;
  background: var(--sky);
  color: var(--blue);
  font-weight: 900;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.screenshots {
  padding: 72px 0;
}

.screen-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

figure {
  margin: 0;
}

figure img {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #e9eff5;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 12px 34px rgba(16, 40, 82, .1);
}

figcaption {
  padding: 12px 4px 0;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 800;
}

.trust-panel {
  display: grid;
  grid-template-columns: .9fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
}

.trust-panel a {
  justify-self: end;
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.trust-panel a:hover {
  text-decoration: underline;
}

.final-cta {
  display: grid;
  justify-items: center;
  padding: 84px 18px 92px;
  text-align: center;
}

.final-cta p {
  max-width: 680px;
  margin-bottom: 24px;
}

.admin-counter {
  position: fixed;
  top: 82px;
  right: 16px;
  z-index: 40;
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(29, 111, 208, .3);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 48px rgba(16, 40, 82, .2);
  backdrop-filter: blur(16px);
}

.admin-counter-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.admin-counter h2 {
  margin-bottom: 0;
  font-size: 1.3rem;
}

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

.counter-grid article {
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.counter-grid span {
  display: block;
  color: var(--blue-dark);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.counter-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.counter-reset {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #b9cdec;
  border-radius: 9px;
  background: #ffffff;
  color: var(--blue-dark);
  font: inherit;
  font-weight: 850;
}

.admin-counter-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.counter-toggle {
  min-height: 36px;
  min-width: 36px;
  padding: 0;
  border: 1px solid #b9cdec;
  border-radius: 9px;
  background: #ffffff;
  color: var(--blue-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-counter.is-collapsed .admin-counter-body {
  display: none;
}

.admin-counter.is-collapsed .admin-counter-header {
  margin-bottom: 0;
}

.counter-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 940px) {
  .hero {
    padding: 24px 0 56px;
  }

  .trust-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .screen-row,
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-panel a {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero {
    padding-top: 28px;
  }

  .admin-counter {
    top: 12px;
    right: 12px;
    width: min(300px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
  }

  h1 {
    font-size: 2.9rem;
  }

  .cta-row {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .feature-grid,
  .screen-row,
  .counter-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: auto;
  }

  .screenshots {
    padding-top: 42px;
  }

  footer {
    flex-direction: column;
  }
}
