/* AJT Vault - public home page styles. Uses the app.css colour tokens; every class is prefixed hn- (demo.css builds on it). */
.hn { --ease: cubic-bezier(.2, .8, .2, 1); --night: #0b1219; --night-2: #111b25; overflow-x: hidden; }
.hn .in { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hn-section { padding: 88px 0; }
.hn .sub { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* ------------------------------------------------------------ buttons */
.hn-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .2s, border-color .2s, box-shadow .25s, transform .15s; }
@media (max-width: 380px) { .hn-btn { white-space: normal; text-align: center; padding: 8px 14px; } }
.hn-btn:active { transform: translateY(1px); }
.hn-btn .ic { width: 18px; height: 18px; }
.hn-btn-accent { color: #fff; background: linear-gradient(135deg, var(--accent), #c95a1a); box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--accent) 85%, transparent); }
.hn-btn-accent::before { content: ""; position: absolute; top: 0; bottom: 0; width: 55%; left: -75%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
.hn-btn-accent:hover::before { left: 130%; }
.hn-btn-accent:hover { box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--accent) 95%, transparent); }
.hn-btn-glass { color: #e6ebf1; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hn-btn-glass:hover { background: rgba(255, 255, 255, .13); }
.hn-btn-block { width: 100%; }
.hn-btn:focus-visible { outline: 3px solid #4f8fbf; outline-offset: 3px; }
.hn-mini-play { width: 22px; height: 22px; border-radius: 50%; background: #fff; position: relative; flex: none; }
.hn-mini-play::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid var(--accent); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* ------------------------------------------------------------ hero (always night) */
.hn-hero { position: relative; overflow: hidden; isolation: isolate; color: #e6ebf1; background: var(--night); padding: 110px 0 120px; min-height: min(92vh, 860px); display: flex; align-items: center; }
.hn-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 55% at 0% 100%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 70%), radial-gradient(55% 55% at 100% 0%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%), linear-gradient(180deg, var(--night-2), var(--night)); }
.hn-hero-bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 45%, #000, transparent); mask-image: radial-gradient(60% 60% at 50% 45%, #000, transparent); }
.hn-dial { position: absolute; left: 50%; top: 50%; width: max(820px, min(115vw, 1200px)); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .9; }
.hn-dial svg { width: 100%; height: 100%; overflow: visible; }
.hn-dial .g { transform-origin: 300px 300px; }
.hn-orb { position: absolute; width: 340px; height: 340px; border-radius: 50%; filter: blur(70px); opacity: .45; }
.hn-orb.a { background: var(--accent); left: -80px; bottom: -60px; }
.hn-orb.b { background: var(--brand); right: -60px; top: -40px; }
.hn-hero-in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hn-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #f4c3a1;
  background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.hn-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hn-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.1rem); line-height: 1.06; letter-spacing: -.03em; margin: 22px 0 18px; max-width: 900px; color: #fff; font-weight: 750; }
.hn-hero h1 em { font-style: normal; background: linear-gradient(90deg, #f4a46e, var(--accent), #f4a46e, #4f8fbf, #f4a46e); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.hn-hero p { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #b9c7d5; max-width: 640px; margin: 0 0 30px; }
.hn-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hn-chips { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hn-chips li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; color: #dbe5ee; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hn-chips .ic { width: 16px; height: 16px; color: var(--accent); }
.hn-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; }
.hn-scroll span { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; position: relative; }
.hn-scroll span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); }

/* ------------------------------------------------------------ section heads */
.hn-head { text-align: center; margin-bottom: 40px; }
.hn-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.02em; margin: 10px 0 12px; }
.hn-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hn-eyebrow::before, .hn-eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; }

/* ------------------------------------------------------------ video showcase */
.hn-watch { position: relative; }
.hn-watch::before { content: ""; position: absolute; left: 50%; top: 45%; width: min(900px, 90vw); height: 420px; transform: translate(-50%, -30%); border-radius: 50%; filter: blur(80px); opacity: .22;
  background: radial-gradient(closest-side, var(--brand), transparent), radial-gradient(closest-side at 70% 60%, var(--accent), transparent); pointer-events: none; }
.hn-frame { position: relative; max-width: 940px; margin: 0 auto; border-radius: 18px; background: #0f1821; padding: 0 0 0; box-shadow: 0 40px 80px -30px rgba(10, 20, 35, .55); }
.hn-frame::before { /* rotating glow edge */
  content: ""; position: absolute; inset: -2px; border-radius: 20px; padding: 2px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--hn-a, 0deg), transparent 0 60%, var(--accent) 75%, #4f8fbf 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@property --hn-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hn-frame-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #8fa0b2; font-size: 12.5px; }
.hn-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3a48; }
.hn-frame-bar i:first-child { background: #e8702a; }
.hn-frame-bar > span { margin: 0 auto; padding: 3px 14px; border-radius: 8px; background: rgba(255, 255, 255, .05); font-family: ui-monospace, Consolas, monospace; }
.hn-video { position: relative; aspect-ratio: 16 / 9; border-radius: 0 0 18px 18px; overflow: hidden; background: #000; }
.hn-video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.hn-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #c95a1a); box-shadow: 0 16px 40px -10px rgba(232, 112, 42, .8); transition: transform .3s var(--ease), opacity .3s; }
.hn-play svg { width: 32px; height: 32px; margin-left: 5px; }
.hn-play::before, .hn-play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(232, 112, 42, .7); }
.hn-play:hover { transform: scale(1.08); }
.hn-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.hn-video.playing .hn-play { opacity: 0; pointer-events: none; transform: scale(.8); }
.hn-sound { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 11px; border-radius: 8px; cursor: pointer;
  font: 600 12px var(--font); color: #c9d6e3; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s, color .2s; }
.hn-frame-bar > span + .hn-sound { margin-left: 0; }
.hn-sound { position: relative; }
.hn-sound::before { content: ""; position: absolute; inset: -8px -4px; } /* 44px tap area */
.hn-sound:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hn-sound:focus-visible { outline: 3px solid #4f8fbf; outline-offset: 2px; }
.hn-sound svg { width: 15px; height: 15px; }
.hn-sound .i-off, .hn-sound[aria-pressed="false"] .i-on { display: none; }
.hn-sound[aria-pressed="false"] .i-off { display: block; }
.hn-sound[aria-pressed="false"] { color: #8fa0b2; }
.hn-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.hn-eq i { width: 2px; height: 3px; border-radius: 1px; background: var(--accent); }

/* ------------------------------------------------------------ features */
.hn-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hn-feature { position: relative; overflow: hidden; padding: 26px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: border-color .25s, box-shadow .3s, transform .3s var(--ease); --mx: 50%; --my: 0%; }
.hn-feature::before { /* spotlight that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%); }
.hn-feature:nth-child(even)::before { background: radial-gradient(320px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%); }
.hn-feature:hover::before { opacity: 1; }
.hn-feature:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); box-shadow: var(--shadow-lg); }
.hn-feature h3 { position: relative; font-size: 1.08rem; margin: 0 0 8px; }
.hn-feature p { position: relative; color: var(--muted); margin: 0; }
.hn-ic { position: relative; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin: 6px 0 24px 6px; color: var(--brand); background: var(--brand-50); transition: background .3s, color .3s; }
.hn-feature:nth-child(even) .hn-ic { color: var(--accent); background: var(--accent-50); }
.hn-ic .ic { width: 26px; height: 26px; }
.hn-ic::after { content: ""; position: absolute; inset: -5px; border-radius: 19px; border: 1.5px dashed currentColor; opacity: 0; transition: opacity .3s; }
.hn-feature:hover .hn-ic { color: #fff; background: var(--brand); }
.hn-feature:nth-child(even):hover .hn-ic { background: var(--accent); }
.hn-feature:hover .hn-ic::after { opacity: .5; }

/* ------------------------------------------------------------ request form */
.hn-request { background: var(--surface); position: relative; overflow: hidden; }
.hn-form { position: relative; border-radius: 18px; padding: 24px; }
.hn-form::before { content: ""; position: absolute; inset: -1px; border-radius: 19px; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--hn-a, 0deg), transparent 0 70%, color-mix(in srgb, var(--accent) 80%, transparent) 82%, color-mix(in srgb, var(--brand) 80%, transparent) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hn-form input:focus, .hn-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.hn-send .ic { transition: transform .4s var(--ease); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) { .hn-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .hn-feature { text-align: center; padding: 28px 22px; }
  .hn-ic { margin: 8px auto 22px; }
}
@media (max-width: 640px) {
  .hn-hero { padding: 72px 0 96px; min-height: auto; }
  .hn-ctas { flex-direction: column; width: 100%; }
  .hn-ctas .hn-btn { width: 100%; }
  .hn-features { grid-template-columns: 1fr; }


  .hn-section { padding: 64px 0; }
  .hn-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .hn-frame-bar > span { display: none; }
}

/* ------------------------------------------------------------ motion (skipped entirely for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .hn-up { opacity: 0; animation: hn-up .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
  .hn-hero h1 em { animation: hn-shine 7s linear infinite; }
  .hn-badge i { animation: hn-pulse 2s infinite; }
  .hn-orb.a { animation: hn-drift 16s ease-in-out infinite; }
  .hn-orb.b { animation: hn-drift 20s ease-in-out infinite reverse; }
  .hn-dial .r1 { animation: hn-spin 140s linear infinite; }
  .hn-dial .r2 { animation: hn-spin 90s linear infinite reverse; }
  .hn-dial .r3 { animation: hn-spin 60s linear infinite; }
  .hn-chips li { animation: hn-float 6s ease-in-out infinite; }
  .hn-chips li:nth-child(2) { animation-delay: -2s; }
  .hn-chips li:nth-child(3) { animation-delay: -4s; }
  .hn-chips .ic { animation: hn-wiggle 4s ease-in-out infinite; }
  .hn-scroll span::after { animation: hn-wheel 1.8s var(--ease) infinite; }
  .hn-btn-glass:hover .ic { animation: hn-wiggle .6s ease-in-out; }
  .hn-btn-accent:hover .ic, .hn-send:hover .ic { transform: translate(3px, -3px) rotate(8deg); }
  .hn-btn-glass:hover .hn-mini-play { animation: hn-pulse 1.2s infinite; }

  .hn-frame::before, .hn-form::before { animation: hn-rim 6s linear infinite; }
  .hn-play::before { animation: hn-ring 2.4s ease-out infinite; }
  .hn-play::after { animation: hn-ring 2.4s 1.2s ease-out infinite; }
  .hn-sound.live[aria-pressed="true"] .hn-eq i { animation: hn-eq .9s ease-in-out infinite alternate; }
  .hn-sound.live .hn-eq i:nth-child(2) { animation-delay: -.3s; }
  .hn-sound.live .hn-eq i:nth-child(3) { animation-delay: -.6s; }

  /* scroll reveal (class added by home.js) */
  .hn-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .25s, box-shadow .3s; transition-delay: var(--rd, 0ms); }
  .hn-frame.hn-reveal { transform: translateY(40px) scale(.94) perspective(1200px) rotateX(10deg); transition-duration: 1.1s; }
  .hn-reveal.hn-in { opacity: 1; transform: none; }
  .hn-feature.hn-in:hover { transform: translateY(-6px); transition-delay: 0ms; }

  /* icons: strokes draw in when the card appears, then each icon has its own idle + hover motion */
  .hn-ic .ic * { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .hn-feature.hn-in .hn-ic .ic * { animation: hn-draw 1.2s var(--ease) forwards; animation-delay: calc(var(--rd, 0ms) + 250ms); }
  .hn-feature:hover .hn-ic .ic * { animation: hn-redraw .9s var(--ease) forwards; }
  .hn-feature.hn-in .hn-ic .ic { animation: hn-idle 5s ease-in-out 1.6s infinite; }
  .hn-feature.hn-in .hn-ic-cash .ic { animation-name: hn-flip; }
  .hn-feature.hn-in .hn-ic-tips .ic { animation-name: hn-bounce; }
  .hn-feature.hn-in .hn-ic-audit .ic { animation-name: hn-pulse-scale; }
  .hn-feature.hn-in .hn-ic-payments .ic { animation-name: hn-slide; }
  .hn-feature:hover .hn-ic::after { animation: hn-spin 6s linear infinite; }
}
@keyframes hn-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hn-shine { to { background-position: 300% 0; } }
@keyframes hn-pulse { 0% { box-shadow: 0 0 0 0 rgba(232, 112, 42, .7); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes hn-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(60px, -40px); } }
@keyframes hn-spin { to { transform: rotate(360deg); } }
@keyframes hn-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes hn-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes hn-wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes hn-rim { to { --hn-a: 360deg; } }
@keyframes hn-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes hn-draw { to { stroke-dashoffset: 0; } }
@keyframes hn-redraw { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes hn-idle { 0%, 80%, 100% { transform: none; } 88% { transform: rotate(-8deg) scale(1.06); } 94% { transform: rotate(6deg); } }
@keyframes hn-flip { 0%, 80%, 100% { transform: none; } 90% { transform: rotateY(180deg); } }
@keyframes hn-bounce { 0%, 80%, 100% { transform: none; } 86% { transform: translateY(-5px); } 92% { transform: translateY(1px); } }
@keyframes hn-pulse-scale { 0%, 80%, 100% { transform: none; } 88% { transform: scale(1.15); } }
@keyframes hn-slide { 0%, 80%, 100% { transform: none; } 88% { transform: translateX(4px); } 94% { transform: translateX(-2px); } }
@keyframes hn-eq { from { height: 3px; } to { height: 11px; } }
