/* ============================================================
   Landing page — Nullrefdev root site styles
   Uses tokens from main.css
   ============================================================ */

/* ---- Nav ---- */
.lnav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.lnav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lnav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
}
.lnav__brand:hover { opacity: 0.8; color: var(--text); }

.lnav__gh {
  display: flex;
  align-items: center;
  color: var(--muted);
  transition: color 0.15s;
}
.lnav__gh:hover { color: var(--text); }

/* ---- Hero ---- */
.landing-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9rem);
  text-align: center;
}

.landing-hero__inner {
  position: relative;
  z-index: 1;
}

.landing-hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.landing-hero__headline {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.landing-hero__headline span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero__sub {
  font-size: 1.15rem;
  max-width: 50ch;
  margin-inline: auto;
  color: var(--muted);
  line-height: 1.7;
}

/* Ambient glow behind hero text */
.landing-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 60%, rgba(0, 122, 204, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Products section ---- */
.landing-products {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--border);
}

.landing-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.landing-section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-top: 0.5rem;
}

/* ---- Product grid ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 1.5rem;
  align-items: start;
}

/* ---- Product card ---- */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim), var(--shadow);
  transform: translateY(-2px);
}

.product-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.product-card__icon {
  width: 52px;
  height: 52px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.product-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.product-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.product-badge--platform {
  background: var(--surface-alt);
  color: var(--muted);
  border-color: var(--border);
}

.product-badge--soon {
  background: rgba(0, 122, 204, 0.15);
  color: var(--cyan);
  border-color: rgba(0, 122, 204, 0.35);
}

.product-card__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.product-card__desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.product-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.product-card__features li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.2rem;
  position: relative;
}

.product-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.product-card__ctas {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ---- Placeholder card ---- */
.product-card--placeholder {
  border-style: dashed;
  background: transparent;
  min-height: 200px;
  justify-content: center;
  align-items: center;
  cursor: default;
}

.product-card--placeholder:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}

.product-card__placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  color: var(--border);
}

.product-card__placeholder-inner p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--surface-alt);
  margin: 0;
}

.product-card__placeholder-inner span {
  font-size: 0.85rem;
  color: var(--border);
}

/* ---- Landing footer ---- */
.landing-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.landing-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.landing-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-footer__brand p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.landing-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.landing-footer__links a {
  font-size: 0.87rem;
  color: var(--muted);
  transition: color 0.15s;
}

.landing-footer__links a:hover {
  color: var(--text);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .landing-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .landing-footer__links {
    justify-content: center;
  }

  .product-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-card__badges {
    justify-content: flex-start;
  }
}
