@font-face {
  font-family: "MistralSingleLine";
  src: url("../fonts/MistralSingleLineOutline-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #062a2e;
  --bg-deep: #031014;
  --ink: #dff6f8;
  --muted: #b8e0e4;
  --brand: #ffb347;
  --accent: #44ffdd;
  --accent-ink: #062a2e;
  --line: rgba(255, 255, 255, 0.12);
  --font-body: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-brand: "MistralSingleLine", "Segoe UI", sans-serif;
  --max: 42rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Shared header —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
}

.site-header a {
  text-decoration: none;
}

.wordmark-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.wordmark-link img {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.55rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

/* —— Landing hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -6%;
  z-index: -2;
  background:
    url("../img/laser-bg.jpg") center / cover no-repeat;
  transform: scale(1.06);
  animation: drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(4, 14, 18, 0.78) 0%,
    rgba(6, 28, 32, 0.72) 45%,
    rgba(3, 10, 14, 0.9) 100%
  );
}

.hero-inner {
  width: min(100% - 2.5rem, 58rem);
  display: grid;
  gap: 2.25rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 5.5rem 0 4.5rem;
}

.hero-copy {
  width: min(100%, 28rem);
}

.brand {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--brand);
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.9s ease-out 0.15s forwards;
}

.tagline {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.85s ease-out 0.4s forwards;
}

.tagline em {
  font-style: italic;
  color: #dff6f8;
}

.cta-block {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.85s ease-out 0.65s forwards;
}

.cta-platforms {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.85s ease-out 0.75s forwards;
}

.cta-platforms a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cta-platforms a:hover,
.cta-platforms a:focus-visible,
.cta-platforms.is-open a {
  color: var(--brand);
}

.cta-soon {
  color: var(--muted);
  opacity: 0.85;
}

/* —— iPhone mockup —— */
.phone {
  margin: 0;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s ease-out 0.55s forwards;
}

.phone-shell {
  position: relative;
  width: min(72vw, 15.5rem);
  aspect-ratio: 472 / 914;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
}

.phone-bezel {
  position: absolute;
  inset: 0;
  border-radius: 2.35rem;
  background: linear-gradient(160deg, #2a2a2e 0%, #0a0a0c 45%, #1a1a1e 100%);
  padding: 0.55rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 0.35rem #050506;
}

.phone-side {
  position: absolute;
  width: 0.18rem;
  background: #3a3a3e;
  border-radius: 0.1rem;
  z-index: 2;
}

.phone-side-l {
  left: -0.12rem;
  top: 18%;
  height: 7%;
  box-shadow: 0 1.6rem 0 #3a3a3e, 0 3.4rem 0 #3a3a3e;
}

.phone-side-r {
  right: -0.12rem;
  top: 24%;
  height: 10%;
}

.phone-island {
  position: absolute;
  top: 1.05rem;
  left: 50%;
  z-index: 3;
  width: 28%;
  height: 1.35rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050506;
}

.phone-screen {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  border-radius: 1.85rem;
  overflow: hidden;
  background: #111;
  padding-top: 1.55rem;
}

.compose-shot {
  display: block;
  width: 92%;
  height: auto;
  max-height: calc(100% - 0.85rem);
  object-fit: contain;
  object-position: center top;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.85rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #6fffe6;
}

.btn-ghost {
  background: rgba(26, 51, 54, 0.9);
  color: var(--accent);
  border-color: var(--accent);
}

.btn-ghost:hover {
  background: rgba(26, 51, 54, 1);
}

.btn-disabled,
.btn-disabled:hover {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  pointer-events: none;
}

.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(184, 224, 228, 0.7);
}

.hero-foot a {
  color: inherit;
  text-decoration: none;
}

.hero-foot a:hover {
  color: var(--accent);
}

/* —— Document pages —— */
.page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(4, 14, 18, 0.88), rgba(6, 42, 46, 0.95)),
    url("../img/laser-bg.jpg") center top / cover no-repeat fixed;
}

.page-main {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 6.5rem 0 4rem;
}

.page-main h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 3.25rem);
  letter-spacing: 0.02em;
  color: var(--brand);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55);
}

.lede {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-main h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.15rem;
  color: var(--accent);
}

.page-main p,
.page-main li {
  color: var(--ink);
}

.page-main p {
  margin: 0 0 1rem;
}

.page-main ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.page-main li + li {
  margin-top: 0.35rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.22);
}

tr:last-child td {
  border-bottom: none;
}

.page-footer {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 0 0 2.5rem;
  font-size: 0.88rem;
  color: rgba(184, 224, 228, 0.75);
}

.page-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.page-footer a {
  text-decoration: none;
  color: var(--muted);
}

.page-footer a:hover {
  color: var(--accent);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1.06) translate3d(-1.2%, -0.6%, 0);
  }
  to {
    transform: scale(1.1) translate3d(1.2%, 0.8%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none;
  }

  .brand,
  .tagline,
  .cta-row,
  .cta-platforms,
  .phone {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 820px) {
  .hero-inner {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: stretch;
    text-align: left;
    gap: 2.75rem;
    padding: 6rem 0 4rem;
  }

  .phone {
    order: -1;
  }

  .hero-copy {
    justify-self: start;
  }

  .cta-block {
    margin-left: 0;
  }

  .phone-shell {
    width: 16.25rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 1rem;
  }

  .nav {
    gap: 0.85rem;
    font-size: 0.9rem;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-block {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .phone-shell {
    width: min(68vw, 14rem);
  }

  .hero-foot {
    bottom: 0.75rem;
  }
}
