/* ==========================================================================
   Beacon website: colors follow the app's "Beacon Night" palette
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./assets/fonts/jakarta-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./assets/fonts/jakarta-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: 22 26 36;        /* #161a24 */
  --surface: 31 36 49;   /* #1f2431 */
  --raised: 42 49 65;    /* #2a3141 */
  --line: 58 66 85;      /* #3a4255 */
  --ink: 238 243 247;    /* #eef3f7 */
  --soft: 169 180 196;   /* #a9b4c4 */
  --faint: 122 133 151;  /* #7a8597 */
  --brand: 61 219 217;   /* #3ddbd9 */
  --brand-ink: 6 42 44;  /* #062a2c */

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", Consolas, ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: rgb(var(--bg));
  color: rgb(var(--ink));
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint isometric block pattern behind the whole page, dimmer in the middle
   so text stays easy to read */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34.64' height='60' viewBox='0 0 34.64 60'%3E%3Cg fill='%233ddbd9' fill-opacity='0.035'%3E%3Cpath d='M17.32 0L34.64 10L17.32 20L0 10Z'/%3E%3Cpath d='M0 30L17.32 40L0 50Z'/%3E%3Cpath d='M34.64 30L34.64 50L17.32 40Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%233ddbd9' stroke-opacity='0.09' stroke-width='0.7'%3E%3Cpath d='M0 10L17.32 0L34.64 10L34.64 30L17.32 40L0 30Z'/%3E%3Cpath d='M17.32 20L0 10M17.32 20L34.64 10M17.32 20V60'/%3E%3Cpath d='M0 50L17.32 40L34.64 50M0 50V60M34.64 50V60M0 0V10M34.64 0V10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 52px 90px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 45%, rgb(0 0 0 / 0.25), #000 100%);
  mask-image: radial-gradient(ellipse 55% 60% at 50% 45%, rgb(0 0 0 / 0.25), #000 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid rgb(var(--brand));
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: rgb(var(--brand));
  background: rgb(var(--brand) / 0.1);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 720px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  width: 19px;
  height: 19px;
}

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

.btn--sm {
  padding: 8px 18px;
  font-size: 0.92rem;
}

.btn--lg {
  padding: 15px 28px;
  font-size: 1.02rem;
}

.btn--primary {
  background: rgb(var(--brand));
  color: rgb(var(--brand-ink));
  box-shadow: 0 8px 28px -10px rgb(var(--brand) / 0.7);
}

.btn--primary:hover {
  box-shadow: 0 12px 34px -10px rgb(var(--brand) / 0.85);
}

.btn--ghost {
  color: rgb(var(--ink));
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line) / 0.7);
}

.btn--ghost:hover {
  background: rgb(var(--raised));
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(var(--bg) / 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(var(--line) / 0.35);
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgb(var(--soft));
}

.nav-links a:hover {
  color: rgb(var(--ink));
}

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

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 40px;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgb(var(--brand) / 0.12), transparent 70%);
}

.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line) / 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgb(var(--soft));
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(var(--brand));
  box-shadow: 0 0 0 4px rgb(var(--brand) / 0.18);
}

h1 {
  margin-top: 26px;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.accent {
  color: rgb(var(--brand));
}

.lead {
  margin-top: 22px;
  max-width: 580px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgb(var(--soft));
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.fineprint {
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgb(var(--faint));
}

.hero-shot {
  position: relative;
  margin: 64px auto 0;
  max-width: 980px;
}

.hero-shot img {
  border-radius: 20px;
  border: 1px solid rgb(var(--line) / 0.6);
  box-shadow:
    0 40px 90px -30px rgb(0 0 0 / 0.7),
    0 0 120px -40px rgb(var(--brand) / 0.35);
}

.code-chip {
  position: absolute;
  right: -18px;
  bottom: 38px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgb(var(--raised));
  border: 1px solid rgb(var(--brand) / 0.35);
  box-shadow: 0 20px 40px -14px rgb(0 0 0 / 0.6);
  animation: float 5s ease-in-out infinite;
}

.code-chip__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(var(--faint));
}

.code-chip__value {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: rgb(var(--brand));
}

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

@media (max-width: 720px) {
  .hero {
    padding-top: 56px;
  }
  .hero-shot {
    margin-top: 44px;
  }
  .hero-shot img {
    border-radius: 12px;
  }
  .code-chip {
    position: static;
    margin: 16px auto 0;
    width: fit-content;
    align-items: center;
    animation: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 12px;
  color: rgb(var(--soft));
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  padding: 30px 28px;
  border-radius: 22px;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line) / 0.45);
}

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgb(var(--brand) / 0.14);
  color: rgb(var(--brand));
  font-weight: 800;
}

.step p {
  margin-top: 8px;
  color: rgb(var(--soft));
  font-size: 0.98rem;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Features ---------- */

.features {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.feature {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 56px;
}

.feature--flip .feature-text {
  order: 2;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(var(--brand));
}

.feature h3 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feature p {
  margin-top: 14px;
  color: rgb(var(--soft));
  font-size: 1.05rem;
}

.feature-shot img {
  border-radius: 16px;
  border: 1px solid rgb(var(--line) / 0.6);
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / 0.75);
  transition: transform 0.25s ease;
}

.feature-shot:hover img {
  transform: scale(1.015);
}

@media (max-width: 860px) {
  .features {
    gap: 72px;
  }
  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature--flip .feature-text {
    order: 0;
  }
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  border-radius: 16px;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line) / 0.45);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  color: rgb(var(--brand));
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 22px 20px;
  color: rgb(var(--soft));
}

/* ---------- Call to action ---------- */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgb(var(--brand) / 0.14), transparent 70%),
    rgb(var(--surface));
  border: 1px solid rgb(var(--line) / 0.45);
}

.cta p {
  margin: 10px 0 30px;
  color: rgb(var(--soft));
}

/* Beacon block artwork with a glowing core */
.beacon-art {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
}

.beacon-art img,
.beacon-art__light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.beacon-art img {
  object-fit: contain;
}

.beacon-art__light {
  -webkit-mask-image: radial-gradient(ellipse 38% 34% at 50% 38%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 38% 34% at 50% 38%, #000 45%, transparent 100%);
}

.beacon-art__halo {
  position: absolute;
  inset: 0 -6% 22%;
  opacity: 0.55;
  background: radial-gradient(ellipse, rgb(var(--brand) / 0.55), rgb(var(--brand) / 0.16) 36%, transparent 70%);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgb(var(--line) / 0.35);
  padding: 28px 0;
  font-size: 0.92rem;
  color: rgb(var(--faint));
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.82rem;
}

.brand--small {
  font-size: 0.95rem;
  color: rgb(var(--soft));
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: rgb(var(--ink));
}

/* ---------- Screenshot viewer ---------- */

.hero-shot img,
.feature-shot {
  cursor: zoom-in;
}

.viewer {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: rgb(var(--bg) / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: inherit;
  place-items: center;
}

.viewer[open] {
  display: grid;
  animation: viewer-in 0.18s ease;
}

.viewer img {
  max-width: min(100%, 1500px);
  max-height: 100%;
  border-radius: 14px;
  border: 1px solid rgb(var(--line) / 0.6);
  box-shadow: 0 40px 100px -20px rgb(0 0 0 / 0.8);
  cursor: default;
}

.viewer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(var(--surface));
  color: rgb(var(--ink));
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.viewer-close:hover {
  background: rgb(var(--raised));
}

.viewer-close svg {
  width: 20px;
  height: 20px;
}

@keyframes viewer-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .code-chip {
    animation: none;
  }
  .btn,
  .feature-shot img {
    transition: none;
  }
}
