/* RAVEN landing page — WhatsApp-inspired hero layout */

:root {
  --raven-lila: #ad83ff;
  --raven-lila-dark: #8b5cf6;
  --raven-text: #111;
  --raven-muted: rgba(255, 255, 255, 0.82);
  --raven-hero-overlay: rgba(0, 0, 0, 0.38);
  --raven-header-h: 80px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--raven-text);
  background: #0a0a0a;
}

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

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.landing-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--raven-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--raven-lila);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
}

.landing-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.landing-nav a:hover { color: var(--raven-lila); }

.landing-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--raven-lila);
  color: #111 !important;
  font-weight: 600;
  font-size: 0.88rem;
}

.landing-nav-cta:hover {
  background: #c4a0ff;
  color: #111 !important;
}

.landing-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ── Hero ── */
.landing-hero {
  position: relative;
  flex: 1;
  min-height: calc(100vh - var(--raven-header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media-wrap {
  position: absolute;
  inset: 0;
}

.hero-media-wrap video,
.hero-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-video {
  position: relative;
  z-index: 1;
  display: block;
}

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

.hero-video[data-ready="true"] + .hero-fallback {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 4rem) 4rem;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-title span {
  color: var(--raven-lila);
}

.hero-tagline {
  margin: 0 0 0.75rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: #fff;
  font-weight: 500;
  line-height: 1.45;
}

.hero-beta {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: var(--raven-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--raven-lila);
  color: #111;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(173, 131, 255, 0.35);
}

.btn-download:hover {
  background: #c4a0ff;
  transform: translateY(-1px);
}

.btn-download svg {
  width: 20px;
  height: 20px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Footer ── */
.landing-footer {
  position: relative;
  z-index: 2;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.landing-footer-links a {
  color: rgba(255, 255, 255, 0.65);
}

.landing-footer-links a:hover { color: var(--raven-lila); }

/* ── Mobile ── */
@media (max-width: 768px) {
  .landing-menu-toggle { display: block; }

  .landing-nav {
    display: none;
    position: absolute;
    top: var(--raven-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .landing-nav.is-open { display: flex; }

  .landing-nav a { padding: 0.65rem 0; }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.72) 100%
    );
  }
}
