/* ══════════════════════════════════════════════════
   RAM SOFTWARE & DEVELOPMENT V2
   Professional Software Sales — Corporate Design
   Desktop-first. Responsive down to 320px.
   ══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─── DESIGN TOKENS (Light variant) ─── */
:root {
  --bg:          #f4f6fb;
  --bg-elevated: #ffffff;
  --bg-card:     #ffffff;
  --bg-card-hover: #f0f3fa;
  --surface:     #e8ecf5;
  --border:      rgba(15, 23, 42, 0.08);
  --border-hover:rgba(59, 130, 246, 0.32);

  --text:        #0f172a;
  --text-secondary: #475569;
  --text-muted:  #64748b;

  --accent:      #3b82f6;
  --accent-dark: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.18);
  --accent-soft: rgba(59, 130, 246, 0.06);

  --green:       #10b981;
  --green-glow:  rgba(16, 185, 129, 0.2);
  --gold:        #f59e0b;
  --red:         #ef4444;

  --shadow-sm:   0 1px 2px rgba(15,23,42,0.06);
  --shadow-md:   0 8px 24px rgba(15,23,42,0.08);
  --shadow-lg:   0 24px 48px rgba(15,23,42,0.12);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --nav-h:       72px;
  --max-w:       1280px;

  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-width: 320px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ─── LAYOUT SHELL ─── */
.site-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max-w), calc(100% - 64px));
  margin: 0 auto;
  padding-bottom: 100px;
}

/* ══════════════════════
   NAVIGATION
   ══════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  background: rgba(244, 246, 251, 0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 160ms;
}
.brand:hover { opacity: 0.85; }

.brand img {
  height: 40px;
  width: auto;
  filter: brightness(1.0) contrast(1.0);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.topnav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
  transition: color 180ms;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

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

.topnav a:hover::after,
.topnav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  height: 38px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 180ms, transform 140ms, box-shadow 180ms;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 220ms ease, opacity 220ms ease, width 220ms ease;
}

.topbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; width: 0; }
.topbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════
   TYPOGRAPHY
   ══════════════════════ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); }
h4 { font-size: 1.05rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 640px;
}

/* ══════════════════════
   BUTTONS
   ══════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 200ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-success {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 16px var(--green-glow);
}
.btn-success:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 38px;
  padding: 0 18px;
  font-size: 0.85rem;
}

.btn-lg {
  min-height: 56px;
  padding: 0 36px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-icon {
  font-size: 1.1em;
}

/* ══════════════════════
   SECTIONS
   ══════════════════════ */
section {
  margin-top: 80px;
}

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  margin-top: 8px;
}

/* ─── HERO ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0 40px;
  margin-top: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-text {
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-stat span {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.15), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(16, 185, 129, 0.1), transparent 50%),
    var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-graphic img {
  width: 80%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

/* ─── TRUST BAR ─── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 40px;
}

.trust-bar span {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  white-space: nowrap;
}

/* ─── PRODUCT CARDS ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.product-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.product-card.featured::before {
  content: "Featured";
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.product-icon.blue   { background: rgba(59, 130, 246, 0.12); color: var(--accent); }
.product-icon.green  { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.product-icon.gold   { background: rgba(245, 158, 11, 0.12); color: var(--gold); }

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.product-status.available {
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
}

.product-status.coming {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold);
}

.product-status.dev {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
}

.product-card h3 {
  margin-bottom: 10px;
}

.product-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.product-features {
  margin-bottom: 24px;
}

.product-features li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 2;
}

.product-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ─── FULL PRODUCT DETAIL (products page) ─── */
.product-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 40px;
}

.product-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.product-preview {
  background:
    radial-gradient(circle at center, rgba(59, 130, 246, 0.08), transparent 60%),
    var(--bg-elevated);
  display: grid;
  place-items: center;
  padding: 48px;
  min-height: 360px;
  border-right: 1px solid var(--border);
}

.product-preview img,
.product-preview video {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.product-preview .placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(16, 185, 129, 0.05)),
    var(--surface);
  border: 1px dashed var(--border-hover);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-info h2 {
  margin-bottom: 8px;
}

.product-info .product-tagline {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.product-info p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.product-info .product-features {
  margin-bottom: 32px;
}

.download-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.download-box .dl-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.download-box .dl-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.download-box .dl-file {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* ─── ABOUT / VALUE PROPS ─── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 200ms;
}

.value-card:hover {
  border-color: var(--border-hover);
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 18px;
  background: var(--accent-soft);
  color: var(--accent);
}

.value-card h3 {
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ─── SUPPORT / DONATE ─── */
.support-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.support-section h2 {
  margin-top: 8px;
  margin-bottom: 16px;
}

.support-section > div > p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.zelle-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  text-align: center;
}

.zelle-box .zelle-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 8px;
}

.zelle-box .zelle-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.zelle-box .zelle-method {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.zelle-box .zelle-email {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
  padding: 12px 16px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.zelle-box .zelle-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.5;
}

.support-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── CONTACT BAR ─── */
.contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-bar p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-bar strong {
  color: var(--text);
}

/* ─── FOOTER ─── */
.site-footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: color 160ms;
}

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

/* ══════════════════════════════════
   PAGE-SPECIFIC: PRODUCTS
   ══════════════════════════════════ */
.page-hero {
  padding: 60px 0 20px;
  margin-top: 0;
}

.page-hero h1 {
  margin-top: 8px;
  margin-bottom: 14px;
}

.page-hero .hero-text {
  margin-bottom: 0;
}

/* ══════════════════════════════════
   RESPONSIVE — TABLET (<=1024px)
   ══════════════════════════════════ */
@media (max-width: 1024px) {
  .site-shell { width: calc(100% - 48px); }

  .hero { gap: 40px; padding: 60px 0 20px; }

  .product-grid,
  .value-grid { grid-template-columns: repeat(2, 1fr); }

  .product-detail-inner { grid-template-columns: 1fr; }
  .product-preview { border-right: none; border-bottom: 1px solid var(--border); min-height: 280px; }

  .support-section { grid-template-columns: 1fr; padding: 40px; }

  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* ══════════════════════════════════
   RESPONSIVE — MOBILE (<=768px)
   ══════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  .site-shell { width: calc(100% - 28px); }

  .nav-toggle { display: flex; }

  .topnav {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(244, 246, 251, 0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 20px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
    z-index: 199;
    box-shadow: var(--shadow-lg);
  }

  .topbar.nav-open .topnav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .topnav a {
    padding: 14px 4px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .topnav a::after { bottom: -1px; }

  .nav-cta {
    justify-content: center;
    height: 46px;
    font-size: 0.95rem;
    margin-top: 10px;
    border-radius: var(--radius-sm);
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0 20px;
  }

  .hero-visual { order: -1; }
  .hero-graphic { max-width: 100%; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }

  .product-grid,
  .value-grid { grid-template-columns: 1fr; }

  .support-section {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
  }

  .contact-bar {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .trust-bar {
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
  }

  section { margin-top: 52px; }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .download-box {
    flex-direction: column;
    text-align: center;
  }

  .product-info { padding: 28px; }
  .product-preview { padding: 28px; }
}

/* ══════════════════════════════════
   RESPONSIVE — SMALL (<=460px)
   ══════════════════════════════════ */
@media (max-width: 460px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .brand-text { display: none; }
  .brand img { height: 34px; }
  .product-actions { flex-direction: column; }
  .product-actions .btn { width: 100%; }
}

/* ══════════════════════════════════════════════════
   RAMSND_Neo — VIDEO HERO, GATE STATES, CARD GRID
   ══════════════════════════════════════════════════ */

.hero-video {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: clamp(520px, 80vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  margin-bottom: 80px;
}

.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-video .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10,15,26,0.35) 0%, rgba(10,15,26,0.85) 70%),
    linear-gradient(180deg, rgba(10,15,26,0.55) 0%, rgba(10,15,26,0.92) 92%, #f4f6fb 100%);
  z-index: -1;
  pointer-events: none;
}

.hero-video .hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 134, 202, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 134, 202, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 48px 24px;
  text-align: center;
  color: #ffffff;
  animation: heroFadeUp 900ms cubic-bezier(.2,.7,.2,1) both;
}

.hero-content h1 {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-content h1 .accent {
  background: linear-gradient(135deg, #22d3ee 0%, #f0f9ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 2px 16px rgba(34, 211, 238, 0.35));
}

.hero-content .hero-kicker {
  color: #60a5fa;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-content .hero-lede {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

/* Hero CTA pair — override light-theme text color so both read on the dark video */
.hero-video .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-video .btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.85);
}

.hero-video .btn-primary {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-mark {
  width: clamp(120px, 18vw, 180px);
  height: auto;
  border-radius: 24px;
  filter: drop-shadow(0 0 60px rgba(59,130,246,0.45));
  margin-bottom: 24px;
}

.hero-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-content h1 .accent {
  background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.32);
  transform: translateY(-1px);
}

/* ─── Featured product grid (index.html) ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.product-card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-media img,
.product-card-media .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-media .placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  padding: 16px;
}

.placeholder-emoji {
  font-size: 2.4rem;
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.product-card-actions {
  margin-top: auto;
  padding-top: 12px;
}

.product-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ─── Gate states ─── */
.btn-locked {
  opacity: 0.5;
  cursor: not-allowed !important;
  filter: grayscale(0.5);
  position: relative;
}

.btn-locked::after {
  content: " 🔒";
  margin-left: 6px;
  font-size: 0.9em;
}

.gate-hint {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: background 200ms ease, border-color 200ms ease;
}

.gate-hint .gate-locked-msg[hidden],
.gate-hint .gate-unlocked-msg[hidden] {
  display: none !important;
}

.gate-hint .gate-unlocked-msg {
  color: var(--green);
}

.gate-check {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 700;
  margin-right: 8px;
}

.gate-hint.shake {
  animation: shake 420ms cubic-bezier(.36,.07,.19,.97);
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.4);
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.paypal-form-wrap {
  margin-top: 16px;
  padding: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.paypal-form-wrap.gate-unlocked {
  opacity: 0.7;
}

.btn-paypal {
  background: linear-gradient(135deg, #ffc439 0%, #f0a92c 100%);
  color: #0a0f1a;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease;
  font-family: inherit;
}

.btn-paypal:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 196, 57, 0.3);
}

.link-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  text-decoration: underline;
  font-size: 0.86rem;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
}

.link-btn:hover {
  color: var(--accent);
}

/* ─── Dual donate layout ─── */
.donate-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.donate-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.donate-card.primary {
  border-color: rgba(255, 196, 57, 0.35);
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(255, 196, 57, 0.04) 100%);
}

.donate-card h3 {
  font-size: 1.15rem;
}

.load-error {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video video { display: none; }
  .hero-content { animation: none; }
  .hero-video {
    background:
      linear-gradient(160deg, #0a0f1a 0%, #111827 100%),
      url("./assets/hero-poster.jpg") center / cover no-repeat;
  }
}

@media (max-width: 720px) {
  .hero-video { min-height: clamp(480px, 90vh, 680px); }
  .paypal-form-wrap { padding: 14px; }
}
