:root {
  --luma-light: #E5DDF9;
  --luma-dark: #020612;
  --luma-iris: #9B7FD4;
  --luma-glow: #FF6B4A;
  --luma-indigo: #4F46E5;
  --luma-purple: #7C3AED;
  --luma-teal: #0D9488;
  --luma-amber: #F59E0B;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--luma-dark);
  color: #e8e6f0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.serif-italic { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }

/* ── Hero (light) ── */
.hero {
  min-height: 100vh;
  background: var(--luma-light);
  color: var(--luma-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(155, 127, 212, 0.35), transparent),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(255, 107, 74, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(196, 181, 253, 0.4), transparent);
  animation: meshShift 24s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes meshShift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.05) translate(-2%, 1%); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--luma-dark);
  text-decoration: none;
}

.hero-headline {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 4rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.1s;
}

.hero-intro {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 32rem;
  margin-top: 1.5rem;
  color: rgba(2, 6, 18, 0.7);
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.25s;
}

.scroll-hint {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: rgba(2, 6, 18, 0.45);
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.4s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Products section ── */
.products {
  background: var(--luma-dark);
  padding: 5rem 1.5rem 6rem;
}

.products-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--luma-iris);
  margin-bottom: 3rem;
}

.product-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

.product-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(155, 127, 212, 0.4);
}

.product-card[data-accent="indigo"]:hover { border-color: rgba(79, 70, 229, 0.5); }
.product-card[data-accent="purple"]:hover { border-color: rgba(124, 58, 237, 0.5); }
.product-card[data-accent="teal"]:hover { border-color: rgba(13, 148, 136, 0.5); }
.product-card[data-accent="amber"]:hover { border-color: rgba(245, 158, 11, 0.5); }

.chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.chip-indigo { background: rgba(79, 70, 229, 0.2); color: #a5b4fc; }
.chip-purple { background: rgba(124, 58, 237, 0.2); color: #c4b5fd; }
.chip-teal { background: rgba(13, 148, 136, 0.2); color: #5eead4; }
.chip-amber { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }

.product-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.product-tagline {
  font-size: 1.05rem;
  color: rgba(232, 230, 240, 0.85);
  margin-bottom: 1rem;
}

.product-desc {
  font-size: 0.95rem;
  color: rgba(232, 230, 240, 0.6);
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.feature-list li {
  font-size: 0.875rem;
  color: rgba(232, 230, 240, 0.75);
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--luma-iris);
}

.product-card[data-accent="indigo"] .feature-list li::before { background: var(--luma-indigo); }
.product-card[data-accent="purple"] .feature-list li::before { background: var(--luma-purple); }
.product-card[data-accent="teal"] .feature-list li::before { background: var(--luma-teal); }
.product-card[data-accent="amber"] .feature-list li::before { background: var(--luma-amber); }

.feature-list strong { color: #fff; font-weight: 600; }

.insight {
  font-size: 0.85rem;
  color: rgba(232, 230, 240, 0.55);
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  border-left: 3px solid var(--luma-iris);
}

.product-card[data-accent="indigo"] .insight { border-left-color: var(--luma-indigo); }
.product-card[data-accent="purple"] .insight { border-left-color: var(--luma-purple); }
.product-card[data-accent="teal"] .insight { border-left-color: var(--luma-teal); }
.product-card[data-accent="amber"] .insight { border-left-color: var(--luma-amber); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--luma-glow);
  color: var(--luma-dark);
}

.btn-primary:hover { background: #ff8266; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: rgba(232, 230, 240, 0.8);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover { border-color: var(--luma-iris); color: #fff; }

/* ── Footer ── */
.site-footer {
  background: var(--luma-dark);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 1.5rem;
  text-align: center;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(232, 230, 240, 0.5);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--luma-iris);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}


.footer-contact {
  font-size: 0.85rem;
  color: rgba(232, 230, 240, 0.45);
}

.footer-tagline a,
.footer-contact a { color: var(--luma-iris); text-decoration: none; }

.footer-tagline a:hover,
.footer-contact a:hover { color: #fff; }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(232, 230, 240, 0.3);
  margin-top: 1rem;
}

/* ── Gate overlay ── */
.gate-overlay {
  position: fixed;
  inset: 0;
  background: var(--luma-dark);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gate-overlay.hidden { display: none; }

.gate-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 2.5rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(16px);
}

.gate-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.gate-card p {
  font-size: 0.9rem;
  color: rgba(232, 230, 240, 0.55);
  margin-bottom: 1.5rem;
}

.gate-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  outline: none;
}

.gate-input:focus { border-color: var(--luma-iris); }

.gate-error {
  color: #f87171;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.gate-error.visible { display: block; }

/* ── Sub-page content ── */
.sub-page { display: none; }
.sub-page.unlocked { display: block; }

.sub-hero {
  padding: 6rem 1.5rem 3rem;
  background: linear-gradient(180deg, var(--luma-light) 0%, var(--luma-dark) 100%);
}

.sub-hero-inner { max-width: 800px; margin: 0 auto; }

.sub-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--luma-dark);
  margin-bottom: 0.75rem;
}

.sub-hero .tagline {
  font-size: 1.15rem;
  color: rgba(2, 6, 18, 0.65);
}

.sub-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.sub-section {
  margin-bottom: 2.5rem;
}

.sub-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--luma-iris);
  margin-bottom: 1rem;
}

.sub-section p, .sub-section li {
  font-size: 1rem;
  color: rgba(232, 230, 240, 0.75);
  margin-bottom: 0.75rem;
}

.sub-section ul { list-style: none; padding: 0; }

.sub-section ul li {
  padding-left: 1.25rem;
  position: relative;
}

.sub-section ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--luma-glow);
}

.pitch-box {
  background: rgba(155, 127, 212, 0.1);
  border: 1px solid rgba(155, 127, 212, 0.25);
  border-radius: 0.75rem;
  padding: 1.25rem;
  font-size: 0.95rem;
  color: rgba(232, 230, 240, 0.85);
  font-style: italic;
  margin-top: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(2, 6, 18, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.back-link:hover { color: var(--luma-dark); }

.preview-badge,
.demo-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--luma-amber);
  color: var(--luma-dark);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.demo-badge { background: #22c55e; color: #fff; }

.credentials-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.credentials-table th,
.credentials-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.credentials-table th { color: var(--luma-iris); font-weight: 600; }

.credentials-table code {
  background: rgba(255,255,255,0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.demo-disabled {
  opacity: 0.5;
  pointer-events: none;
}
