/* Shared modern marketing styles — matches Rig Scene app theme (#1976d2, #2A2A3C, Roboto) */

:root {
  --color-bg: #f0f2f6;
  --color-hero-bg: #2A2A3C;
  --color-hero-deep: #1e1e2e;
  --color-surface: #ffffff;
  --color-border: #e2e4e9;
  --color-text: #212121;
  --color-text-muted: #616161;
  --color-primary: #1976d2;
  --color-primary-hover: #1565c0;
  --color-primary-light: rgba(25, 118, 210, 0.08);
  --color-primary-glow: rgba(25, 118, 210, 0.35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 4px 20px rgba(25, 118, 210, 0.06);
  --header-height: 4.25rem;
  --section-max: 72rem;
}

/* ── Header ── */
.marketing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.marketing-header.solid,
.marketing-header.scrolled {
  background: rgba(25, 118, 210, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

body.has-hero {
  padding-top: 0;
}

body:not(.has-hero) {
  padding-top: var(--header-height);
}

.marketing-header .header-logo {
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.marketing-header .header-logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.marketing-header .header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.marketing-header .header-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.marketing-header .header-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.marketing-header .header-link:hover,
.marketing-header .header-link.active {
  color: #ffffff;
  text-decoration: none;
}

.marketing-header .header-link:hover::after,
.marketing-header .header-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.marketing-header .btn-login {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  background: #ffffff;
  color: var(--color-primary) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}

.marketing-header .btn-login:hover {
  background: #f5f5f5;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* ── Hero with parallax ── */
.marketing-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-hero-deep) 0%, var(--color-hero-bg) 45%, #323248 100%);
  margin: 0 -0.75rem;
  width: calc(100% + 1.5rem);
}

@media (min-width: 640px) {
  .marketing-hero {
    margin: 0 -1rem;
    width: calc(100% + 2rem);
  }
}

.hero-parallax {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-layer {
  position: absolute;
  will-change: transform;
}

.hero-layer-grid {
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 15%, transparent 72%);
}

.hero-layer-glow {
  border-radius: 50%;
  filter: blur(90px);
}

.hero-layer-glow-1 {
  width: min(560px, 70vw);
  height: min(560px, 70vw);
  top: -15%;
  left: -8%;
  background: var(--color-primary-glow);
  opacity: 0.55;
}

.hero-layer-glow-2 {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  bottom: -10%;
  right: -5%;
  background: rgba(99, 102, 241, 0.25);
  opacity: 0.45;
}

.hero-layer-glow-3 {
  width: min(300px, 40vw);
  height: min(300px, 40vw);
  top: 35%;
  right: 20%;
  background: rgba(25, 118, 210, 0.2);
  opacity: 0.35;
}

.hero-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--color-bg), transparent);
  pointer-events: none;
  z-index: 1;
}

.marketing-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  width: 100%;
  padding: calc(var(--header-height) + 3rem) 1.5rem 4rem;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fcf97;
  box-shadow: 0 0 8px rgba(111, 207, 151, 0.6);
}

.marketing-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
}

.marketing-hero .hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin: 0 auto 2rem;
  max-width: 38rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9375rem 2rem;
  background: var(--color-primary);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(25, 118, 210, 0.4);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-hero-primary:hover {
  background: var(--color-primary-hover);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(25, 118, 210, 0.45);
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.hero-features li::before {
  content: '✓';
  color: #6fcf97;
  font-weight: 700;
}

/* ── Section utilities ── */
.section-label {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-heading {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.section-heading::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), rgba(25, 118, 210, 0.3));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.section-lead {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* ── Modern cards ── */
.modern-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(25, 118, 210, 0.2);
}

.modern-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary-light), rgba(25, 118, 210, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
  color: var(--color-primary);
}

/* ── Page hero (features / privacy) ── */
.page-hero-band {
  background: linear-gradient(160deg, var(--color-hero-deep) 0%, var(--color-hero-bg) 100%);
  color: #ffffff;
  padding: calc(var(--header-height) + 2.5rem) 1.5rem 3rem;
  margin: calc(-1 * var(--header-height)) -0.75rem 2.5rem;
  width: calc(100% + 1.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 30%, transparent);
}

.page-hero-band .page-title {
  position: relative;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.page-hero-band .page-title::after {
  display: none;
}

.page-hero-band .page-subtitle,
.page-hero-band .features-intro,
.page-hero-band .last-updated {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .page-hero-band {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  }
}

/* ── Sub-page content card ── */
.content-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

@media (prefers-reduced-motion: reduce) {
  .hero-layer,
  .reveal {
    transform: none !important;
    transition: opacity 0.3s ease !important;
  }
  .modern-card:hover,
  .about-card:hover,
  .feature:hover,
  .pricing-card:hover {
    transform: none;
  }
}
