/* Home page. Small on purpose: hero + chooser, one business/drive row, four
   questions, a compact footer. Navy and amber glass; light by default. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- hero */
.rh-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: min(760px, 100svh); display: grid; align-items: center;
  padding: 120px 0 64px;
}
.rh-hero__media { position: absolute; inset: 0; z-index: -3; background: #06142a; overflow: hidden; }
.hero-media-layer {
  position: absolute; inset: -2.5%; background-size: cover; background-position: center 46%;
  opacity: 0; transform: scale(1.035); transition: opacity 1800ms ease;
}
.hero-media-a { background-image: url("assets/hero/slide-1-1672.webp"); opacity: 1; }
.hero-media-b { background-image: url("assets/hero/slide-2-1672.webp"); }
.rh-hero.is-alt .hero-media-a { opacity: 0; }
.rh-hero.is-alt .hero-media-b { opacity: 1; }
.rh-hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px circle at 85% 20%, rgba(245, 163, 0, .14), transparent 60%),
    linear-gradient(90deg, rgba(5, 14, 30, .94) 0%, rgba(6, 20, 42, .8) 46%, rgba(6, 20, 42, .5) 100%),
    linear-gradient(0deg, rgba(5, 14, 30, .7), transparent 55%);
}
.rh-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 440px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.rh-kicker { margin: 0 0 14px; color: var(--ra-amber-2); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.rh-hero h1 {
  margin: 0; color: #fff; font-family: Poppins, "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(34px, 5vw, 62px); line-height: 1.05; letter-spacing: -.035em; max-width: 14ch;
}
.rh-lead { margin: 20px 0 0; max-width: 34ch; color: rgba(236, 243, 252, .86); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; }

/* The chooser: the one thing to do. */
.rh-choose {
  padding: 22px; border-radius: 32px; color: var(--ra-ink);
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(26px) saturate(1.7); backdrop-filter: blur(26px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 30px 80px rgba(2, 10, 24, .45), inset 0 1px 0 rgba(255, 255, 255, .9);
}
html[data-theme="dark"] .rh-choose {
  background: rgba(10, 26, 50, .62); border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.rh-choose h2 { margin: 0 0 14px; color: var(--ra-ink); font-family: Poppins, "Space Grotesk", sans-serif; font-size: 22px; letter-spacing: -.02em; }
.rh-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: rgba(10, 27, 51, .07); }
html[data-theme="dark"] .rh-tabs { background: rgba(255, 255, 255, .07); }
.rh-tab {
  min-height: 42px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: var(--ra-muted); font: 700 14px Inter, system-ui, sans-serif; transition: background .2s, color .2s, transform .15s;
}
.rh-tab:active { transform: scale(.97); }
.rh-tab[aria-selected="true"] { background: var(--ra-navy); color: #fff; box-shadow: 0 6px 16px rgba(6, 20, 42, .3); }
html[data-theme="dark"] .rh-tab[aria-selected="true"] { background: linear-gradient(180deg, var(--ra-amber-2), var(--ra-amber)); color: #1a1204; }
.rh-panel { display: grid; gap: 8px; padding-top: 14px; }
.rh-panel[hidden] { display: none; }

.rh-opt {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 14px 11px 11px; border-radius: 20px; text-decoration: none; color: var(--ra-ink);
  background: rgba(255, 255, 255, .72); border: 1px solid var(--ra-line);
  transition: transform .18s var(--ra-ease), box-shadow .18s, border-color .18s;
}
html[data-theme="dark"] .rh-opt:not(.is-primary) { background: rgba(255, 255, 255, .06); }
.rh-opt:hover { transform: translateY(-2px); box-shadow: var(--ra-shadow-sm); border-color: rgba(245, 163, 0, .55); }
.rh-opt:active { transform: scale(.992); }
.rh-opt__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(245, 163, 0, .16); color: var(--ra-amber-ink); }
html[data-theme="dark"] .rh-opt__icon { color: var(--ra-amber-2); }
.rh-opt__icon svg { width: 20px; height: 20px; fill: currentColor; }
.rh-opt__copy strong { display: block; font-size: 15px; line-height: 1.2; }
.rh-opt__copy small { display: block; margin-top: 2px; color: var(--ra-muted); font-size: 13px; line-height: 1.35; }
.rh-opt__go { color: var(--ra-muted); font-size: 18px; transition: transform .18s; }
.rh-opt:hover .rh-opt__go { transform: translateX(3px); color: var(--ra-ink); }
.rh-opt.is-primary { background: linear-gradient(180deg, var(--ra-amber-2), var(--ra-amber)); border-color: rgba(255, 255, 255, .5); color: #1a1204; box-shadow: 0 10px 26px rgba(245, 163, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .6); }
.rh-opt.is-primary .rh-opt__icon { background: rgba(10, 27, 51, .12); color: #1a1204; }
.rh-opt.is-primary small, .rh-opt.is-primary .rh-opt__go { color: rgba(26, 18, 4, .75); }

/* --------------------------------------------------------- business / drive */
.rh-duo { padding: clamp(40px, 6vw, 72px) 0; }
.rh-duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rh-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(24px, 3vw, 34px); border-radius: 30px; scroll-margin-top: 100px;
  color: #fff;
  background: linear-gradient(145deg, #12315a 0%, #0a1f3c 55%, #06142a 100%);
  border: 1px solid rgba(255, 194, 77, .22);
  box-shadow: 0 22px 50px rgba(6, 20, 42, .22), inset 0 1px 0 rgba(255, 255, 255, .14);
  position: relative; overflow: hidden;
}
.rh-card::after { content: ""; position: absolute; inset: auto -20% -60% 30%; height: 80%; background: radial-gradient(closest-side, rgba(245, 163, 0, .22), transparent); pointer-events: none; }
.rh-card h2 { margin: 0; color: #fff; font-family: Poppins, "Space Grotesk", sans-serif; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.025em; }
.rh-card p { margin: 0 0 10px; color: rgba(236, 243, 252, .78); font-size: 15.5px; line-height: 1.55; flex: 1; }
.rh-card .ra-btn--glass { color: #fff !important; background: rgba(255, 255, 255, .1) !important; border-color: rgba(255, 255, 255, .28) !important; }

/* ------------------------------------------------------------------ faq */
.rh-faq { padding: 0 0 clamp(48px, 7vw, 88px); }
.rh-faq__wrap { max-width: 760px; }
.rh-faq h2 { margin: 0 0 18px; font-family: Poppins, "Space Grotesk", sans-serif; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; color: var(--ra-ink); }
.rh-faq__list { display: grid; gap: 10px; }
.rh-faq details {
  border-radius: 22px; background: var(--ra-glass); border: 1px solid var(--ra-line); box-shadow: var(--ra-shine);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: border-color .2s;
}
.rh-faq details[open] { border-color: rgba(245, 163, 0, .6); }
.rh-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 20px;
  cursor: pointer; list-style: none; font-weight: 700; font-size: 16px; color: var(--ra-ink);
}
.rh-faq summary::-webkit-details-marker { display: none; }
.rh-faq summary::after { content: "+"; display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; background: rgba(245, 163, 0, .18); color: var(--ra-amber-ink); font-size: 18px; transition: transform .25s var(--ra-ease); }
html[data-theme="dark"] .rh-faq summary::after { color: var(--ra-amber-2); }
.rh-faq details[open] summary::after { transform: rotate(45deg); }
.rh-faq details p { margin: 0; padding: 0 20px 18px; color: var(--ra-muted); font-size: 15px; line-height: 1.6; }

/* --------------------------------------------------------------- footer */
.rf { background: linear-gradient(180deg, #0a1f3c, #06142a); color: #dbe6f5; padding: 40px 0 8px; border-top: 1px solid rgba(255, 194, 77, .2); }
.rf a { color: inherit; text-decoration: none; }
.rf__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px; }
.rf__brand { display: inline-flex; align-items: center; gap: 9px; }
.rf__brand img:first-child { border-radius: 7px; }
.rf__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; font-weight: 600; }
.rf__links a { padding: 6px 0; opacity: .9; }
.rf__links a:hover { color: var(--ra-amber-2); opacity: 1; }
.rf__social { display: flex; gap: 6px; }
.rf__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s, color .2s; }
.rf__social a:hover { background: rgba(245, 163, 0, .2); color: var(--ra-amber-2); }
.rf__social svg { width: 18px; height: 18px; }
.rf__contact { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 22px 0 0; font-size: 14px; color: rgba(219, 230, 245, .8); }
.rf__contact a:hover { color: var(--ra-amber-2); }
.rf__legal { margin: 10px 0 0; font-size: 12.5px; color: rgba(219, 230, 245, .6); }
.rf .parasyte-sig { padding-top: 18px; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 899px) {
  .rh-hero { padding: 104px 0 44px; min-height: 0; }
  .rh-hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .rh-hero h1 { max-width: 16ch; }
  .rh-hero__shade { background: linear-gradient(180deg, rgba(5, 14, 30, .9), rgba(6, 20, 42, .82) 60%, rgba(5, 14, 30, .92)); }
  .hero-media-a { background-image: url("assets/hero/slide-1-960.webp"); background-position: 62% 34%; }
  .rh-choose { padding: 16px; border-radius: 26px; }
}
@media (max-width: 700px) {
  .rh-duo__grid { grid-template-columns: 1fr; gap: 12px; }
  .rh-card { border-radius: 24px; }
  .rh-card .ra-btn { width: 100%; }
  .rf__top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .rh-choose { padding: 12px; }
  .rh-opt { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding-right: 10px; }
  .rh-opt__icon { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media-layer { transition: none; }
  .rh-opt, .rh-tab, .rh-faq summary::after { transition: none; }
}
