/* Homepage v2: the dashboard's pearl palette, one blue, the sliced isometric
   objects, the ribbon behind everything. Loaded only by home.blade.php. The
   shared public nav partial is restyled here under body.home-v2. Colors match
   home.css / app.css so the site and the dashboard read as one ground. */

:root {
  --bg: #eef2f7;
  --bg-deep: #e4e9f0;
  --paper: #ffffff;
  --surface: rgba(255,255,255,.96);
  --surface-2: #ffffff;
  --line: #e6edf5;
  --border: rgba(200,210,225,.55);
  --text: #0f172a;
  --muted: #475569;
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --blue-ink: #0284c7;
  --cyan: #0ea5e9;
  --blue-soft: rgba(59,130,246,.14);
  --shadow: 0 10px 30px rgba(15,23,42,.08);
  --shadow2: 0 16px 40px rgba(15,23,42,.10);
  --display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  /* ribbon colors, read by home-v2.js */
  --ribbon-from: 37,99,235;
  --ribbon-to: 14,165,233;
  --ribbon-alpha: .42;
  --ribbon-fade: 238,242,247;
  --ribbon-streaks: #1d4ed8 #0ea5e9 #f59e0b #0f172a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.home-v2 {
  margin: 0;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(59,130,246,.20), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(59,130,246,.20), transparent 50%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.home-v2 a { color: inherit; text-decoration: none; }
body.home-v2 h1, body.home-v2 h2, body.home-v2 h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -.02em; color: var(--text); }
body.home-v2 img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* The ribbon sits fixed behind the whole page; every section paints above it. */
.page-ribbon { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; }
.page-cloud { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; }
.hv-hero, .hv-section, .hv-footer { position: relative; z-index: 1; }

/* ---- nav (shared partial) ---- */
body.home-v2 .hp-nav {
  position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; padding: 0 5%;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
body.home-v2 .hp-nav-logo { display: flex; align-items: center; }
body.home-v2 .hp-nav-logo img { height: 48px; width: auto; }
body.home-v2 .hp-nav-links { display: flex; gap: 30px; }
body.home-v2 .hp-nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: .01em; transition: color .2s; }
body.home-v2 .hp-nav-links a:hover, body.home-v2 .hp-nav-links a.active { color: var(--text); }
body.home-v2 .hp-nav-cta {
  background: var(--blue); color: #fff; border: 0; padding: 9px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; font-family: var(--display);
  box-shadow: 0 6px 18px rgba(59,130,246,.28);
  transition: transform .15s, box-shadow .15s;
}
body.home-v2 .hp-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(59,130,246,.36); }
body.home-v2 .hp-nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-left: -11px; padding: 0; background: none; border: 0; border-radius: 8px; cursor: pointer; }
body.home-v2 .hp-nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s ease, opacity .2s ease; }
body.home-v2 .hp-nav.is-open .hp-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.home-v2 .hp-nav.is-open .hp-nav-toggle span:nth-child(2) { opacity: 0; }
body.home-v2 .hp-nav.is-open .hp-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.home-v2 .hp-nav-toggle:focus-visible, body.home-v2 a:focus-visible, body.home-v2 button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- hero ---- */
.hv-hero { overflow: hidden; padding: 128px 24px 64px; text-align: center; min-height: 640px; }
/* minmax(0, 1fr): the column can never grow past the hero, so a long feature name
   in the headline cannot push the whole stack off-centre on a phone */
.hv-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: center; max-width: 1120px; margin: 0 auto; width: 100%; }
.hv-hero h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.hv-hero h1 .rot { display: inline-grid; color: var(--blue-deep); text-align: center; }
.hv-hero h1 .rot span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(12px); transition: opacity .38s ease, transform .38s ease; }
.hv-hero h1 .rot span.on { opacity: 1; transform: none; }
.hv-stage { position: relative; width: min(100%, 900px); height: clamp(190px, 32vw, 320px); margin: 4px 0 2px; --dx: clamp(120px, 26vw, 270px); --dxo: calc(var(--dx) * 1.7); }
.hv-stage img {
  position: absolute; left: 50%; top: 50%; width: clamp(180px, 30vw, 300px); height: clamp(180px, 30vw, 300px); object-fit: contain;
  /* a frosted white tile under each object, so its baked shadow sits on a
     surface instead of floating over the clouds */
  padding: clamp(10px, 1.6vw, 16px); border-radius: clamp(20px, 3vw, 30px);
  background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 10px 30px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.05);
  transform: translate(-50%, -50%) translateX(var(--dxo)) scale(.3); opacity: 0; visibility: hidden;
  transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .5s ease, visibility 0s linear .7s;
  will-change: transform, opacity;
}
.hv-stage img.slot-r  { transform: translate(-50%, -50%) translateX(var(--dx)) scale(.5); opacity: .9; visibility: visible; transition-delay: 0s; }
.hv-stage img.slot-c  { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; transition-delay: 0s; z-index: 2; }
.hv-stage img.slot-l  { transform: translate(-50%, -50%) translateX(calc(var(--dx) * -1)) scale(.5); opacity: .9; visibility: visible; transition-delay: 0s; }
.hv-stage img.slot-in { transform: translate(-50%, -50%) translateX(var(--dxo)) scale(.3); opacity: 0; visibility: visible; transition-delay: 0s; }
.hv-stage img.slot-out { transform: translate(-50%, -50%) translateX(calc(var(--dxo) * -1)) scale(.3); opacity: 0; visibility: visible; }
.hv-tag { font-family: var(--display); font-size: clamp(26px, 4.2vw, 44px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; color: var(--text); }
.hv-made { font-family: var(--display); font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; color: var(--blue-ink); letter-spacing: -.01em; margin-top: -8px; }
.hv-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hv-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 12px; font-family: var(--display); font-weight: 600; font-size: 15px; transition: transform .15s, box-shadow .15s, border-color .15s, background .15s; }
.hv-btn.primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(59,130,246,.30); }
.hv-btn.primary:hover { background: #4f8ff7; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(59,130,246,.38); }
.hv-btn.ghost { background: rgba(255,255,255,.85); color: var(--text); border: 1px solid var(--border); backdrop-filter: blur(6px); }
.hv-btn.ghost:hover { border-color: var(--blue); background: #fff; }
.hv-call { color: var(--muted); font-size: 14px; }
.hv-call a { color: var(--blue-ink); font-weight: 700; white-space: nowrap; }
.hv-call small { display: block; font-size: 12.5px; margin-top: 2px; }

/* ---- sections ---- */
.hv-section { padding: 72px 0; }
.hv-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 10px; }
.hv-section h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 700; margin-bottom: 12px; }
.hv-lede { color: var(--muted); max-width: 62ch; margin: 0; font-size: 17px; }

/* the twelve groups */
/* The groups: one expandable row each. A row is a native <details>; the
   summary is the row you see, the body is the group's feature list. */
.hv-groups { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 34px; }
.hv-group { border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.72); backdrop-filter: blur(6px); transition: border-color .2s, background .2s, box-shadow .2s; }
.hv-group:hover, .hv-group[open] { background: var(--paper); box-shadow: var(--shadow); }
.hv-group summary { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 12px; cursor: pointer; list-style: none; border-radius: 14px; }
.hv-group summary::-webkit-details-marker { display: none; }
.hv-group summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hv-group img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.hv-group b { display: block; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--text); }
.hv-group summary span { color: var(--muted); font-size: 13px; }
.hv-group .chev { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s, border-color .2s; flex: none; margin-right: 4px; }
.hv-group[open] .chev { transform: rotate(-135deg); border-color: var(--blue); }
.hv-group-body { padding: 4px 18px 18px 90px; }
.hv-group-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px 24px; }
.hv-group-list li b { display: block; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.hv-group-list li span { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); }
.hv-group-more { display: inline-block; margin-top: 16px; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--blue-ink); }
.hv-group-more:hover { color: var(--blue); }
@media (max-width: 600px) {
  .hv-group-body { padding: 0 14px 16px; }
  .hv-group-list { grid-template-columns: 1fr; }
}

/* bands with an object on one side */
.hv-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 40px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.hv-band.flip { grid-template-columns: .9fr 1.1fr; }
.hv-band.flip .hv-band-art { order: -1; }
.hv-band h2 { font-size: clamp(24px, 3vw, 34px); }
.hv-band ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.hv-band li { display: flex; gap: 10px; align-items: flex-start; }
.hv-band li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; margin-top: 8px; }
.hv-band-art { display: grid; place-items: center; }
.hv-band-art img { width: min(100%, 360px); }
.hv-band-art.pair { grid-template-columns: 1fr 1fr; gap: 12px; }
.hv-band-art.pair img { width: 100%; }
.hv-band + .hv-band { margin-top: 20px; }

/* numbers */
.hv-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 34px; }
.hv-number { padding: 22px 24px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.hv-number b { display: block; font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--blue-deep); font-variant-numeric: tabular-nums; line-height: 1; }
.hv-number span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

/* FAQ + contact partials keep their own pearl styling; only the frame here */
.hv-narrow { max-width: 820px; margin: 0 auto; }
.hv-center { text-align: center; }
.hv-center .hv-lede { margin: 0 auto; }

/* footer */
.hv-footer { border-top: 1px solid var(--line); padding: 40px 24px 48px; margin-top: 30px; background: rgba(255,255,255,.5); }
.hv-footer-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hv-footer-brand { display: flex; align-items: center; gap: 12px; }
.hv-footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.hv-footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.hv-footer-links a:hover { color: var(--text); }

/* dashboard loader overlay (kept from the old page) */
#home-dash-loader { display: none; position: fixed; inset: 0; z-index: 99999; background: linear-gradient(135deg, #f0f5ff 0%, #e8eef8 50%, #f4f7fc 100%); align-items: center; justify-content: center; flex-direction: column; }
@keyframes homeLdPulse { 0%, 100% { opacity: .5 } 50% { opacity: 1 } }

@media (max-width: 860px) {
  .hv-band, .hv-band.flip { grid-template-columns: 1fr; padding: 28px 22px; }
  .hv-band.flip .hv-band-art { order: 0; }
}
@media (max-width: 768px) {
  body.home-v2 .hp-nav-toggle { display: flex; }
  body.home-v2 .hp-nav-logo img { height: 40px; }
  body.home-v2 .hp-nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); padding: 8px 0; }
  body.home-v2 .hp-nav.is-open .hp-nav-links { display: flex; }
  body.home-v2 .hp-nav-links a { padding: 14px 5%; font-size: 16px; }
  .hv-hero { padding-top: 104px; min-height: 0; }
  .hv-section { padding: 52px 0; }
}
@media (max-width: 600px) {
  body.home-v2 .hp-nav-logo img { height: 36px; }
  /* phones: the headline word may wrap, the whole stack stays inside the screen */
  .hv-hero { padding-left: 16px; padding-right: 16px; }
  .hv-hero h1 { font-size: clamp(30px, 9.5vw, 38px); max-width: 100%; }
  .hv-hero h1 .rot { width: 100%; }
  .hv-hero h1 .rot span { white-space: normal; text-wrap: balance; }
  .hv-stage { --dx: 34vw; --dxo: 60vw; }
  .hv-tag { font-size: clamp(22px, 7vw, 26px); }
  .hv-made { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-hero h1 .rot span, .hv-stage img, .hv-btn, .hv-group .chev { transition: none; }
}
