/* ============================================================
   Homey website: product page styles
   Part 1 is unchanged from the design export.
   Part 2 replaces what the design tool's runtime did with
   JavaScript (layout switches by window width, hover styles).
   ============================================================ */

/* ---------- Part 1: from the design ---------- */
:root{
--hm-purple:#7C3AED;--hm-purple-700:#6D28D9;--hm-purple-900:#4C1D95;
--hm-purple-100:#EDE9FE;--hm-purple-200:#DDD6FE;--hm-purple-300:#C4B5FD;--hm-purple-400:#A78BFA;
--hm-indigo-950:#120E33;--hm-indigo-900:#1E1658;--hm-indigo-800:#3B1C8C;--hm-violet-800:#5B21B6;
--hm-midnight:#221F20;--hm-white:#FFFFFF;
--hm-slate-50:#F8FAFC;--hm-slate-100:#F1F5F9;--hm-slate-200:#E2E8F0;--hm-slate-500:#64748B;--hm-slate-600:#475569;--hm-slate-700:#334155;--hm-slate-900:#0F172A;
--hm-standin:#FDE047;
--hm-radius-section:clamp(24px,3vw,32px);
--hm-section-y:clamp(80px,9vw,128px);
--hm-gutter:clamp(20px,5vw,48px);
--hm-edge-shadow:0 -24px 48px -28px rgba(18,14,51,0.45);
--hm-ease:cubic-bezier(0.16,1,0.3,1);
}
html,body{margin:0;padding:0;background:#120E33;}
body{font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased;}
a{color:var(--hm-purple-700);text-decoration:none;}
a:hover{text-decoration:underline;}
@keyframes hmDriftL{0%{transform:translateX(0)}100%{transform:translateX(6px)}}
@keyframes hmDriftR{0%{transform:translateX(0)}100%{transform:translateX(-6px)}}
@keyframes hmBreathe{0%{opacity:.55}100%{opacity:.95}}
@keyframes hmSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes hmStreak{0%{opacity:.45}100%{opacity:.85}}
@keyframes hmMeetL{0%{transform:translateX(-10%)}45%{transform:translateX(0)}72%{transform:translateX(0)}100%{transform:translateX(-10%)}}
@keyframes hmMeetR{0%{transform:translateX(10%)}45%{transform:translateX(0)}72%{transform:translateX(0)}100%{transform:translateX(10%)}}
@keyframes hmDraw{0%{transform:scaleY(0);opacity:0}20%{transform:scaleY(0);opacity:0}48%{transform:scaleY(1);opacity:1}74%{transform:scaleY(1);opacity:1}96%{transform:scaleY(0);opacity:0}100%{transform:scaleY(0);opacity:0}}
@keyframes hmPass{0%{transform:translate(-50%,-160%);opacity:0}40%{transform:translate(-50%,-160%);opacity:0}48%{opacity:.9}70%{opacity:.9}78%{transform:translate(-50%,60%);opacity:0}100%{transform:translate(-50%,60%);opacity:0}}
@keyframes hmShared{0%{opacity:.35}45%{opacity:1}72%{opacity:1}100%{opacity:.35}}
@keyframes hmTrailA{0%{left:-64px;opacity:0}4%{opacity:1}34%{left:100%;opacity:1}38%{left:100%;opacity:0}100%{left:100%;opacity:0}}
@keyframes hmTrailB{0%{left:-64px;opacity:0}34%{left:-64px;opacity:0}38%{opacity:1}68%{left:100%;opacity:1}72%{left:100%;opacity:0}100%{left:100%;opacity:0}}
@keyframes hmGlow{0%{transform:translate(-14%,-10%)}100%{transform:translate(14%,10%)}}

/* ---------- Part 2: replaces the runtime ---------- */

/* Hover styles (the design's "style-hover"). They win over the inline
   base styles, so the changed properties use !important. */
.hm-hover-u:hover{text-decoration:underline !important;}
.hm-btn-header:hover{text-decoration:none !important;background:var(--hm-purple-100) !important;transform:translateY(-1px) !important;}
.hm-btn-cta:hover{text-decoration:none !important;transform:translateY(-1px) !important;background:var(--hm-purple-100) !important;box-shadow:0 10px 28px rgba(18,14,51,0.35) !important;}
.hm-card:hover{transform:translateY(-4px) !important;box-shadow:0 2px 4px rgba(15,23,42,0.04), 0 20px 40px rgba(76,29,149,0.12) !important;}
.hm-play:hover{background:rgba(255,255,255,0.22) !important;transform:scale(1.04) !important;}

/* Layout switches. The design switched at a window width of 900px
   ("narrow") and 768px (legal links). */
.hm-cols3{grid-template-columns:repeat(3, minmax(0,1fr));}
.hm-hero-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(40px,4.5vw,72px);}
.hm-ring-max{max-width:520px;}
.hm-step-line{display:block;}
.hm-step:last-child .hm-step-line{display:none;}
.hm-legal{flex-direction:row;}

/* Home hero heading: 72px from 1200px; scales with the window below. */
.hm-h1-home{font-size:72px;}
@media (max-width:1199.98px){
  .hm-h1-home{font-size:min(72px, calc((100vw - 144px) * 0.0645349));
              font-size:round(nearest, min(72px, calc((100vw - 144px) * 0.0645349)), 1px);}
}
@media (max-width:899.98px){
  .hm-cols3{grid-template-columns:minmax(0,1fr);}
  .hm-hero-grid{grid-template-columns:minmax(0,1fr);gap:40px;}
  .hm-ring-max{max-width:320px;}
  .hm-step-line{display:none;}
  .hm-h1-home{font-size:clamp(30px, calc((100vw - 40px) / 8.6), 64px);
              font-size:round(nearest, clamp(30px, calc((100vw - 40px) / 8.6), 64px), 1px);}
}
@media (max-width:767.98px){
  .hm-legal{flex-direction:column;}
}

/* Ambient glows and trails (only when motion is allowed). */
.hm-glow{position:absolute;inset:-30%;pointer-events:none;animation:hmGlow var(--dur,16s) ease-in-out infinite alternate;}
.hm-trail{position:absolute;top:0;left:-64px;width:64px;height:7px;border-radius:9999px;background:radial-gradient(ellipse at center, rgba(237,233,254,0.85), rgba(196,181,253,0.25) 45%, rgba(196,181,253,0) 70%);animation:hmTrailA 6s cubic-bezier(0.45,0,0.55,1) infinite;}
.hm-trail-b{animation-name:hmTrailB;}

/* Scroll reveal: set up by js, only when motion is allowed. */
.hm-reveal-ready [data-reveal]{opacity:0;transform:translateY(12px);transition:opacity 800ms cubic-bezier(0.16,1,0.3,1), transform 800ms cubic-bezier(0.16,1,0.3,1);}
.hm-reveal-ready [data-reveal].is-in{opacity:1;transform:none;}

@media (prefers-reduced-motion: reduce){
  .hm-glow{animation:none;}
  .hm-trail{display:none;}
}
