@font-face {
  font-family: "Molecular";
  src: url("fonts/molecular.ttf") format("truetype");
}
@font-face {
  font-family: "RenogareSoft-Regular";
  src: url("fonts/RenogareSoft-Regular.ttf") format("truetype");
}

:root {
  --bg: #000000;
  --bg-soft: #00303a;
  --text: #94ffe3;
  --muted: #cdd6cb;
  --green: #a4ff9d;
  --cyan: #135232;
  --bg-icon-tint-a: #34e785;
  --bg-icon-tint-b: #00fff2;
  --bg-tile-opacity: 0.06;
  --bg-tile-y-power: 2.1;
  --social-tint: var(--cyan);
  --line: rgba(255, 255, 255, 0.08);
  --max-width: 920px;
  --success: #00ff6e;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
svg,
canvas {
  max-width: 100%;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #010c08;
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  position: relative;
}

/* Base gradient layer (below icons + content) */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(0, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #01201f 0%, #010c08 100%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--bg-tile-composite, url("media/tile_1.png"));
  background-repeat: repeat;
  /* JS will set this when composing; fallback is intrinsic tile_1 size */
  background-size: var(--bg-tile-composite-size, auto);
  background-position: 0 0;
  opacity: var(--bg-tile-opacity);
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: var(--bg-tile-mask, linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%));
  mask-image: var(--bg-tile-mask, linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.page {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 72px;
  position: relative;
  z-index: 0;
}

.site-header {
  text-align: center;
  margin: 4px 0 18px;
}

.hero {
  position: relative;
  margin-bottom: 36px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  border-radius: 50px;
  /* Stacking context so overlay stays above <video> (video often paints on top otherwise). */
  isolation: isolate;
  /* Visible before deferred video source loads (avoids empty flash on slow links). */
  background: #031a18;
}

.hero video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.82) saturate(1.1) contrast(1.02);
  border-radius: 50px;
  border: 3px solid rgba(255,255,255,0.06);
  box-shadow: 0 20px 50px rgba(2, 20, 34, 0.28);
}

@media (max-width: 768px) {
  .hero video {
    /* Full CSS filter stack on decoded video is costly on many phones. */
    filter: none;
    box-shadow: 0 12px 28px rgba(2, 20, 34, 0.22);
  }
}

.hero-footage-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 22px 16px 16px;
  text-align: center;
  font-family: "RenogareSoft-Regular", Arial, sans-serif;
  font-size: clamp(12px, 3vw, 16px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f3974c;
  -webkit-text-fill-color: #f3974c;
  /* Readable strip over video */
  background: linear-gradient(
    to top,
    rgba(5, 10, 11, 0.82) 0%,
    rgba(5, 10, 11, 0.45) 55%,
    transparent 100%
  );
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 1);
  pointer-events: none;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0px;
  background:
    linear-gradient(
      to top,
      rgba(5, 10, 11, 0.58) 0%,
      rgba(5, 10, 11, 0.18) 32%,
      rgba(5, 10, 11, 0.02) 68%,
      rgba(5, 10, 11, 0) 100%
    );
  pointer-events: none;
}

.hero-title {
  display: inline-block;
  max-width: 100%;
  padding: 32px 18px 8px;
  border-radius: 14px;
  background: rgba(4, 15, 17, 0.34);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,0.08);
}

h1 {
  margin: 0;
  font-family: "Molecular", sans-serif;
  font-size: clamp(54px, 10vw, 108px);
  line-height: 0.95;
  letter-spacing: 0.08em;
  color: var(--green);
  text-shadow:
    0 0 5px rgba(0, 255, 255, 0.85),
    0 0 10px rgba(0, 255, 255, 0.7),
    0 0 18px rgba(0, 255, 255, 0.5);
}

main {
  display: block;
}

section {
  margin-bottom: 42px;
}

.intro {
  max-width: 760px;
}

.intro p {
  font-size: 16px;
  margin: 0 0 18px;
  color: #ffffff;
  font-family: "RenogareSoft-Regular", sans-serif;
}

.body-copy {
  max-width: 760px;
}

.body-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
}

h2 {
  margin: 0 0 14px;
  font-family: "Molecular", sans-serif;
  font-size: 38px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.title-image {
  display: block;
  margin: 0 auto;
  width: min(720px, 92vw);
  height: auto;
  filter:
    drop-shadow(0 0 5px rgba(0, 255, 255, 0.85))
    drop-shadow(0 0 10px rgba(0, 255, 255, 0.7))
    drop-shadow(0 0 18px rgba(0, 255, 255, 0.5));
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  max-width: 760px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.feature-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "RenogareSoft-Regular", sans-serif;
  margin-bottom: 4px;
  color: #f3974c;
  font-size: 16px;
}

.feature-icon {
  height: 1.1em;
  width: auto;
  flex: 0 0 auto;
  display: block;
}

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

.follow {
  max-width: 760px;
  padding-top: 18px;
  color: #30ac55;
  border-top: 1px solid var(--line);
  scroll-margin-top: 18px;
}

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

.mailing-kicker {
  margin: 14px 0 10px;
  font-family: "RenogareSoft-Regular", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: #f3974c;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mailing-kicker-icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  display: block;
}

.mailing-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.survey-cta {
  margin: 14px 0 16px;
  padding: 14px 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(243, 151, 76, 0.22);
  background:
    radial-gradient(circle at 20% 15%, rgba(243, 151, 76, 0.10), transparent 48%),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.15) inset;
}

.survey-cta-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.survey-cta-icon {
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
  display: block;
}

.survey-cta-kicker {
  font-family: "RenogareSoft-Regular", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: #f3974c;
}

.survey-cta-body {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 15px;
}

.survey-button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(243, 151, 76, 0.24);
  background: rgba(243, 151, 76, 0.12);
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
}

.signup-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}

input[type="email"] {
  flex: 1 1 280px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline: none;
  font-size: 16px;
}

input[type="email"]::placeholder {
  color: #7b908b;
}

input[type="email"]:focus {
  border-color: rgba(102, 247, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(102, 247, 255, 0.12);
}

button {
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: #30ac55;
  color: #042024;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
}

/* Shared hover/focus glow for clickable elements */
:is(button, .survey-button, .social-link) {
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease,
    border-color 160ms ease;
}

:is(button, .survey-button, .social-link):hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 12px rgba(102, 247, 255, 0.18))
    drop-shadow(0 0 24px rgba(69, 224, 146, 0.12));
}

:is(button, .survey-button, .social-link):focus-visible {
  outline: none;
  filter: drop-shadow(0 0 12px rgba(102, 247, 255, 0.22))
    drop-shadow(0 0 26px rgba(69, 224, 146, 0.14));
}

.small {
  margin-top: 12px;
  font-size: 14px;
  color: #7f9590;
}

.social-tray {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.social-header {
  flex-basis: 100%;
  text-align: center;
  font-family: "RenogareSoft-Regular", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: #f3974c;
  margin-bottom: 6px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

/* Footer icon slots: reset global <button> styles */
button.social-link {
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: default;
  appearance: none;
  -webkit-appearance: none;
}

.social-link--tooltip {
  position: relative;
}

.social-link--tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 32, 36, 0.96);
  color: #c8e8df;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.social-link--tooltip:is(:hover, :focus-visible)::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.social-link:hover {
  border-color: rgba(0, 255, 255, 0.22);
  background: rgba(0, 255, 255, 0.06);
}

.social-icon {
  height: 20px;
  width: auto;
  display: block;
  /* Recolor white PNGs */
  filter:
    brightness(0)
    saturate(100%)
    invert(67%)
    sepia(31%)
    saturate(520%)
    hue-rotate(108deg)
    brightness(92%)
    contrast(98%);
}

.social-link:hover .social-icon {
  filter:
    brightness(0)
    saturate(100%)
    invert(86%)
    sepia(27%)
    saturate(650%)
    hue-rotate(86deg)
    brightness(112%)
    contrast(102%);
}

.form-success {
  margin-top: 12px;
  font-size: 14px;
  color: var(--success);
  display: none;
}

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

  .hero-overlay {
    padding: 18px;
  }

  .intro p {
    font-size: 18px;
  }

  .body-copy p {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 14px;
  }

  .hero video {
    border-radius: 26px;
  }

  .hero {
    border-radius: 26px;
  }

  .signup-form {
    flex-direction: column;
  }

  button,
  input[type="email"] {
    width: 100%;
    max-height: 2em;
  }

  .hero-title {
    padding: 8px 10px 6px;
  }
}
