/* css/index.css */

:root {
  --hero-max: 1200px;
  --hero-pad: 22px;

  --panel: rgba(255, 255, 255, 0.72);
  --panel-border: rgba(15, 23, 42, 0.08);

  --btn-bg: var(--rz-brand);
  --btn-bg-hover: var(--rz-brand-hover);
  --btn-text: #fff;

  --ghost-bg: rgba(255, 255, 255, 0.08);
  --ghost-bg-hover: rgba(255, 255, 255, 0.14);

  --accent: var(--rz-brand);
}

[data-theme="dark"] {
  --panel: rgba(17, 26, 46, 0.68);
  --panel-border: rgba(226, 232, 240, 0.10);

  --ghost-bg: rgba(17, 26, 46, 0.35);
  --ghost-bg-hover: rgba(17, 26, 46, 0.55);
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--rz-text);
  background: var(--rz-bg);
}

/* HERO layout */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(700px 450px at 85% 25%, rgba(96, 165, 250, 0.16), transparent 55%),
    radial-gradient(900px 650px at 55% 90%, rgba(37, 99, 235, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.22));
}

[data-theme="dark"] .hero__bg {
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(700px 450px at 85% 25%, rgba(96, 165, 250, 0.14), transparent 55%),
    radial-gradient(900px 650px at 55% 90%, rgba(59, 130, 246, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
}

/* YouTube mount fills background */
.hero__yt {
  position: absolute;
  inset: 0;
  opacity: 0; /* becomes visible after user enables */
  transition: opacity 600ms ease;
}

.hero__yt.is-on {
  opacity: 1;
}

/* If YouTube is on, add blur/dim via overlay */
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 50% 35%, rgba(0,0,0,0.18), rgba(0,0,0,0.55));
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 380px at 50% 40%, rgba(255,255,255,0.10), transparent 60%);
  mix-blend-mode: overlay;
  opacity: 0.9;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--hero-max);
  padding: 46px var(--hero-pad);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--rz-text);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 10px 12px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero__badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.18);
}

.hero__title {
  margin: 16px 0 0 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.hero__subtitle {
  margin: 14px 0 0 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--rz-text-soft);
}

.accent {
  color: var(--accent);
  text-shadow: 0 12px 40px rgba(37, 99, 235, 0.18);
}

.hero__cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  user-select: none;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-text);
}

.btn--primary:hover {
  background: var(--btn-bg-hover);
}

.btn--ghost {
  background: var(--ghost-bg);
  border-color: rgba(255,255,255,0.14);
  color: #fff;
}

[data-theme="dark"] .btn--ghost {
  border-color: rgba(226, 232, 240, 0.18);
}

.btn--ghost:hover {
  background: var(--ghost-bg-hover);
}

.hero__cards {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 14px 14px;
  backdrop-filter: blur(10px);
  transform: translateY(0);
  transition: transform 240ms ease, border-color 240ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.30);
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.20);
}

.card__title {
  margin: 10px 0 0 0;
  font-size: 15px;
  font-weight: 900;
}

.card__text {
  margin: 8px 0 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rz-text-soft);
}

.hero__footer {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

[data-theme="light"] .hero__footer {
  color: var(--rz-text-soft);
  text-shadow: none;
}

.muted {
  opacity: 0.9;
  font-weight: 800;
}

/* Animation primitives */
[data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  transition-delay: var(--d, 0ms);
}

.is-visible [data-animate] {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rz-border);
  background: var(--rz-bg);
}

.site-footer__inner {
  max-width: var(--hero-max);
  margin: 0 auto;
  padding: 16px var(--hero-pad);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--rz-text-soft);
  font-size: 13px;
}

.site-footer__inner a {
  color: var(--rz-text-soft);
  text-decoration: none;
  font-weight: 700;
}

.site-footer__inner a:hover {
  color: var(--rz-text);
}

.sep {
  opacity: 0.55;
}

/* Responsive */
@media (max-width: 900px) {
  .hero__cards {
    grid-template-columns: 1fr;
  }

  .btn--ghost {
    color: var(--rz-text);
    background: var(--panel);
    border-color: var(--panel-border);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .card {
    transition: none;
  }
}
