/* XBrowser marketing site — ink navy + soft cyan */
:root {
  --bg-deep: #0a0e14;
  --bg-mid: #121a24;
  --bg-elevated: #1a2433;
  --ink: #e8eef6;
  --ink-muted: #9aabc0;
  --accent: #3ecfcf;
  --accent-dim: #2a9a9a;
  --accent-soft: rgba(62, 207, 207, 0.14);
  --line: rgba(232, 238, 246, 0.1);
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "DM Sans", "Helvetica Neue", sans-serif;
  --max: 1120px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(62, 207, 207, 0.12), transparent 55%),
    radial-gradient(900px 500px at 0% 30%, rgba(40, 90, 140, 0.18), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 45%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: #7eeaea;
}

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

.site-wrap {
  position: relative;
  z-index: 1;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand:hover {
  color: var(--ink);
  opacity: 0.9;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.brand__name {
  font-size: 1.125rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

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

.btn--primary:hover {
  color: #061016;
  background: #5fe0e0;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--accent-dim);
  background: var(--accent-soft);
}

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

/* —— Layout —— */
.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.section__lead {
  color: var(--ink-muted);
  max-width: 36rem;
  margin: 0;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.hero__plane {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__plane img {
  position: absolute;
  right: max(2%, calc(50% - 520px));
  top: 50%;
  transform: translateY(-48%);
  width: min(42vw, 380px);
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
  animation: hero-drift 18s var(--ease) alternate infinite;
}

.hero__plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg-deep) 0%, rgba(10, 14, 20, 0.88) 38%, rgba(10, 14, 20, 0.25) 62%, transparent 78%),
    linear-gradient(180deg, transparent 70%, var(--bg-deep) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 72px 0 96px;
  max-width: 560px;
  align-self: center;
  justify-self: start;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--ink);
}

.hero__support {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 28rem;
  margin: 0 0 32px;
}

.hero__content.is-ready .reveal {
  animation: rise-in 0.9s var(--ease) both;
}

.hero__content.is-ready .reveal-delay-1 { animation-delay: 0.08s; }
.hero__content.is-ready .reveal-delay-2 { animation-delay: 0.18s; }
.hero__content.is-ready .reveal-delay-3 { animation-delay: 0.28s; }
.hero__content.is-ready .reveal-delay-4 { animation-delay: 0.38s; }

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from { transform: translateY(-48%) translate3d(0, 0, 0); }
  to { transform: translateY(-48%) translate3d(0, -10px, 0); }
}

/* —— Features —— */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: 1px solid var(--line);
}

.feature--flip .feature__media {
  order: -1;
}

.feature__media {
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(62, 207, 207, 0.1), transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.feature__media img {
  width: min(100%, 320px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  object-position: center;
}

.feature__copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 400;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.feature__copy p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 32rem;
}

.feature.is-visible .feature__copy,
.feature.is-visible .feature__media {
  animation: rise-in 0.8s var(--ease) both;
}

.feature.is-visible .feature__media {
  animation-delay: 0.12s;
}

/* —— How it works —— */
.section--how {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 36, 51, 0.35) 0%, transparent 100%);
}

.steps {
  list-style: none;
  margin: 48px 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
  counter-reset: none;
}

.step {
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.step:nth-child(2).is-visible { transition-delay: 0.1s; }
.step:nth-child(3).is-visible { transition-delay: 0.2s; }

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.honest-note {
  margin: 0;
  max-width: 40rem;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.honest-note.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Download —— */
.section--download {
  padding-top: 48px;
}

.download {
  padding: 64px 0 24px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.download__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.download__lead {
  color: var(--ink-muted);
  max-width: 28rem;
  margin: 0 0 28px;
}

.download .reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.download .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Legal pages —— */
.legal-hero {
  padding: 64px 0 32px;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.legal-hero p {
  margin: 0;
  color: var(--ink-muted);
}

.legal {
  padding-bottom: 96px;
  max-width: 720px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  margin: 40px 0 12px;
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--ink);
}

.legal p,
.legal li {
  color: var(--ink-muted);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 6px;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal code {
  font-size: 0.9em;
  color: var(--accent);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  background: rgba(0, 0, 0, 0.25);
}

.site-footer__inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.site-footer__note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  max-width: 28rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.site-footer__links a:hover {
  color: var(--accent);
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero__plane {
    position: relative;
    order: 2;
    inset: auto;
    display: flex;
    justify-content: center;
    padding: 8px 0 48px;
  }

  .hero__plane img {
    position: relative;
    right: auto;
    top: auto;
    left: auto;
    transform: none;
    width: min(70vw, 260px);
    opacity: 1;
    margin: 0;
    animation: none;
  }

  .hero__plane::after {
    display: none;
  }

  .hero__content {
    order: 1;
    padding: 48px 0 24px;
    max-width: none;
    justify-self: stretch;
  }

  .feature,
  .feature--flip .feature__media {
    grid-template-columns: 1fr;
  }

  .feature--flip .feature__media {
    order: 0;
  }

  .feature__media img {
    width: min(100%, 260px);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links .nav-hide-sm {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero__plane img {
    transform: translateY(-48%);
  }

  .step,
  .honest-note,
  .download .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
