/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
:root {
  --vf-size: 130px;
  --charcoal: #232427;
  --footer-text: #b9babe;
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--charcoal);
  color: #fff;
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Hero (full-screen video) ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  /* Still frame shows underneath until the video draws */
  background: #000 url("../assets/video/amulis-poster.jpg") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Blur layer and viewfinder are off by default (phones, touch screens) */
.blur-layer,
.viewfinder { display: none; }

/* ---------- Mouse / trackpad devices: blur + viewfinder ---------- */
@media (hover: hover) and (pointer: fine) {
  .hero { cursor: none; }

  .blur-layer {
    display: block;
    position: absolute;
    inset: 0;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    pointer-events: none;
  }

  .viewfinder {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: var(--vf-size);
    height: var(--vf-size);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: transform;
  }
  .viewfinder.is-visible { opacity: 1; }
}

/* ---------- Glass panel ---------- */
.panel {
  position: relative;
  z-index: 2;
  width: 400px;
  max-width: 100%;
  padding: 36px 32px 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  text-align: center;
  cursor: default;
  transition: border-color 0.25s ease;
}

@media (hover: hover) {
  .panel:hover { border-color: #fff; }
}

.panel-mark {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 22px;
}

.panel-message {
  margin: 0 0 18px;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: #fff;
}

.panel-small {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.panel-small a {
  color: #fff;
  text-underline-offset: 2px;
}

.panel-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 22px 0 18px;
}

.supporters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 14px;
}

.supporters a {
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.supporters a:hover { opacity: 1; }

.supporters img { display: block; width: auto; }
.logo-alloy { height: 22px; }
.logo-1842  { height: 34px; }

/* ---------- Phone layout ---------- */
@media (max-width: 600px) {
  .hero {
    align-items: flex-start;
    padding-top: max(40px, env(safe-area-inset-top));
  }

  .panel {
    width: 100%;
    padding: 30px 22px 26px;
    background: rgba(0, 0, 0, 0.08);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .panel-mark {
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
  }

  .panel-message { font-size: 22px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: var(--footer-text);
  font-size: 14px;
  line-height: 1.6;
  padding: 28px 24px max(28px, env(safe-area-inset-bottom));
}

.footer-row {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}

.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.privacy-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.privacy-toggle:hover { color: #fff; }

.caret {
  width: 10px;
  height: 6px;
  transition: transform 0.2s ease;
}
.privacy-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

.privacy-text {
  max-width: 640px;
  margin: 24px auto 4px;
}

.privacy-text h2 {
  margin: 0 0 8px;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #fff;
}

.privacy-text p { margin: 0 0 10px; }
.privacy-text .effective { font-size: 13px; opacity: 0.8; }

@media (max-width: 600px) {
  .footer-row {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .viewfinder,
  .caret,
  .panel,
  .supporters a { transition: none; }
}
