/* Hanason demo 1 · Sonik: cool stone, cobalt signal, light geometric type, sound-wave motion */
:root {
  --bg: #efeeea; --surface: #f8f7f4; --ink: #111214; --soft: #66686d; --line: rgba(17,18,20,.1);
  --accent: #2d3fe0; --on-accent: #fff; --img-bg: #e2e1dc; --plinth: #e6e5e0;
  --radius: 18px; --radius-sm: 12px; --btn-radius: 999px;
  --head: 'Red Hat Display', system-ui, sans-serif; --body: 'Red Hat Text', system-ui, sans-serif; --head-weight: 400;
  --wrap: 1280px;
}
h1, h2, h3 { letter-spacing: -.035em; }
h1 i, h2 i, .foot-lead em { font-style: normal; color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); letter-spacing: .14em; font-size: 11.5px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(45,63,224,.15); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 7px rgba(45,63,224,0); } }
.t-btn { font-weight: 600; }
.t-btn:not(.t-btn-ghost):not(.t-btn-wa) { position: relative; overflow: hidden; }
.t-btn:not(.t-btn-ghost):not(.t-btn-wa)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.t-btn:not(.t-btn-ghost):not(.t-btn-wa):hover::after { transform: translateX(120%); }
.t-btn-ghost { background: var(--surface); border-color: transparent; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; transition: background .35s, box-shadow .35s; }
.site-head.is-scrolled { background: rgba(239,238,234,.86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.head-in { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 23px/1 var(--head); letter-spacing: -.04em; }
.logo-wave { width: 26px; height: 18px; fill: var(--accent); }
.logo-wave rect { transform-origin: center; transform-box: fill-box; animation: eq 1.1s ease-in-out infinite alternate; }
.logo-wave rect:nth-child(2) { animation-delay: -.3s; } .logo-wave rect:nth-child(3) { animation-delay: -.6s; } .logo-wave rect:nth-child(4) { animation-delay: -.15s; } .logo-wave rect:nth-child(5) { animation-delay: -.45s; }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.nav { display: flex; gap: 2px; padding: 5px; background: var(--surface); border-radius: 999px; box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 500; }
.nav a { position: relative; padding: 9px 18px; border-radius: 999px; text-decoration: none; color: var(--soft); transition: color .25s, background .25s; }
.nav a:hover { color: var(--ink); background: var(--bg); }
.nav a[aria-current] { color: #fff; background: var(--ink); }
.head-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); cursor: pointer; text-decoration: none; transition: transform .3s, background .3s; }
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-link { background: var(--ink); color: #fff; box-shadow: none; }
.cart-count { position: absolute; top: -2px; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.nav-btn { display: none; }

/* ---------- hero ---------- */
.s-hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 0; overflow: hidden; }
.s-hero-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 32px; align-items: end; }
.s-title { font-size: clamp(52px, 9vw, 136px); line-height: .9; font-weight: 300; letter-spacing: -.055em; }
.s-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.s-title .ln > span { display: inline-block; animation: line-up 1.1s cubic-bezier(.2,.8,.2,1) both; }
.s-title .ln:nth-child(2) > span { animation-delay: .12s; } .s-title .ln:nth-child(3) > span { animation-delay: .24s; }
.s-title b { font-weight: 600; }
@keyframes line-up { from { transform: translateY(105%); } }
.s-hero-side { display: grid; gap: 22px; padding-bottom: 12px; animation: fade-up 1s .45s cubic-bezier(.2,.8,.2,1) both; }
.s-hero-side p { color: var(--soft); font-size: 17px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } }

.s-stage { position: relative; display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: clamp(12px, 3vw, 40px); margin-top: clamp(36px, 6vw, 72px); }
.s-eq { position: absolute; left: 0; right: 0; bottom: 18%; height: 46%; display: flex; align-items: center; justify-content: space-between; gap: 6px; z-index: 0; opacity: .5; pointer-events: none; }
.s-eq i { flex: 1; height: 100%; border-radius: 99px; background: linear-gradient(var(--accent), rgba(45,63,224,.15)); transform: scaleY(.15); animation: eq 1.4s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -97ms); }
.s-pod { position: relative; z-index: 1; display: block; text-decoration: none; animation: rise 1.2s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.35s + var(--k) * .12s); }
.s-pod-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--plinth); box-shadow: 0 50px 80px -50px rgba(17,18,20,.55); animation: float 6s ease-in-out infinite; animation-delay: calc(var(--k) * -2s); }
.s-pod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.s-pod:hover .s-pod-img img { transform: scale(1.07); }
.s-pod-tag { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 20px 30px -20px rgba(0,0,0,.4); font-size: 13.5px; }
.s-pod-tag b { font-weight: 600; }
.s-pod-tag span { color: var(--accent); font-weight: 600; }
.s-pod.side { margin-bottom: 8%; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes rise { from { opacity: 0; transform: translateY(60px) scale(.94); } }

.s-marquee { margin-top: clamp(48px, 7vw, 88px); padding: 18px 0; border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.s-marquee-track { display: inline-flex; gap: 40px; animation: marquee 40s linear infinite; font: 300 clamp(22px, 2.6vw, 34px)/1 var(--head); letter-spacing: -.03em; }
.s-marquee-track span { display: inline-flex; align-items: center; gap: 40px; }
.s-marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.s-marquee:hover .s-marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec-head h2 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 300; }
.sec-tight { padding: clamp(32px, 5vw, 56px) 0; }

/* category list with hover preview */
.s-cats { border-top: 1px solid var(--ink); }
.s-cat { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr) 110px 48px; align-items: center; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .5s cubic-bezier(.2,.7,.2,1); }
.s-cat-n { font: 300 15px/1 var(--head); color: var(--soft); }
.s-cat-name { font: 300 clamp(30px, 4vw, 54px)/1 var(--head); letter-spacing: -.04em; transition: transform .5s cubic-bezier(.2,.7,.2,1), color .3s; }
.s-cat-ket { color: var(--soft); font-size: 15px; }
.s-cat-count { font-size: 14px; color: var(--soft); text-align: right; }
.s-cat-go { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); transition: background .3s, color .3s, transform .4s; }
.s-cat-go svg { width: 20px; height: 20px; }
.s-cat-pic { position: absolute; right: 22%; top: 50%; width: 180px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; opacity: 0; transform: translateY(-50%) scale(.6) rotate(-8deg); transition: opacity .4s, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; z-index: 2; box-shadow: 0 30px 50px -24px rgba(0,0,0,.45); }
.s-cat-pic img { width: 100%; height: 100%; object-fit: cover; }
.s-cat:hover { padding-left: 14px; }
.s-cat:hover .s-cat-name { color: var(--accent); transform: translateX(8px); }
.s-cat:hover .s-cat-go { background: var(--accent); color: #fff; transform: rotate(45deg); box-shadow: none; }
.s-cat:hover .s-cat-pic { opacity: 1; transform: translateY(-50%) scale(1) rotate(0); }

/* product cards: plinth tiles, index numbers, slide-up add */
.t-grid { gap: clamp(16px, 2.4vw, 30px) clamp(12px, 1.8vw, 22px); }
.t-card-img { border-radius: var(--radius); background: var(--plinth); }
.t-card-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(17,18,20,.05); pointer-events: none; }
.t-badge { left: 12px; top: 12px; background: var(--accent); color: #fff; border-radius: 999px; padding: 4px 10px; }
.t-card-cat { letter-spacing: .1em; font-size: 11px; }
.t-card-name { font: 500 16.5px/1.3 var(--head); letter-spacing: -.015em; }
.t-now { font-family: var(--head); font-size: 17px; }
.t-card-add { position: absolute; left: 12px; right: 12px; margin: 0; justify-content: center; background: var(--ink); color: #fff; border: 0; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.2,1), background .25s; }
.t-card:hover .t-card-add, .t-card:focus-within .t-card-add { opacity: 1; transform: none; }
.t-card-add:hover { background: var(--accent); color: #fff; }
/* the add button sits at the bottom of the photo: the photo is a square as wide as the card */
.t-card { container-type: inline-size; }
.t-card .t-card-add { top: calc(100cqw - 52px); bottom: auto; }
@media (hover: none) { .t-card .t-card-add { opacity: 1; transform: none; position: static; margin-top: 12px; } }

/* sticky story */
.s-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); }
.s-story-media { position: sticky; top: 110px; height: min(78vh, 640px); }
.s-frame { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: var(--plinth); opacity: 0; transform: scale(1.04); transition: opacity .8s, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.s-frame.is-on { opacity: 1; transform: none; }
.s-frame img { width: 100%; height: 100%; object-fit: cover; }
.s-frame-n { position: absolute; left: 20px; bottom: 20px; padding: 8px 14px; border-radius: 999px; background: rgba(17,18,20,.75); color: #fff; font-size: 13px; backdrop-filter: blur(8px); }
.s-steps { display: grid; }
.s-intro { padding-bottom: 8vh; }
.s-intro h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 300; margin: 14px 0 16px; }
.s-intro p { color: var(--soft); max-width: 460px; }
.s-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 24px 0; border-top: 1px solid var(--line); opacity: .28; transition: opacity .6s; }
.s-step.is-on { opacity: 1; }
.s-step small { font: 500 13px/1 var(--head); letter-spacing: .12em; color: var(--accent); }
.s-step h3 { font: 300 clamp(30px, 3.4vw, 46px)/1.05 var(--head); }
.s-step p { color: var(--soft); max-width: 440px; }
.s-step .t-price { margin: 4px 0 6px; }
.s-step .hero-cta { margin-top: 6px; }

/* number band */
.s-band { background: var(--accent); color: #fff; border-radius: 32px; padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; overflow: hidden; }
.s-band::before { content: ""; position: absolute; inset: -40% -10%; background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent); animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(30%, 10%); } }
.s-band div { position: relative; display: grid; gap: 8px; }
.s-band b { font: 300 clamp(48px, 6vw, 88px)/.9 var(--head); letter-spacing: -.05em; }
.s-band div > span { font-size: 14.5px; opacity: .8; }

/* horizontal rail */
.s-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 23%); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.s-rail > * { scroll-snap-align: start; }

.s-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; padding-top: 40px; border-top: 1px solid var(--ink); }
.s-cta h2 { font-size: clamp(36px, 5.6vw, 80px); font-weight: 300; line-height: .98; }

/* sub pages */
.page-head h1 { font-weight: 300; font-size: clamp(44px, 7vw, 96px); letter-spacing: -.05em; }
.t-chip { background: var(--surface); border-color: transparent; }
.t-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.toolbar { border-color: var(--ink) var(--line); }
.field { background: var(--surface); border-color: transparent; }
.t-detail-name { font-weight: 300; letter-spacing: -.04em; }
.t-detail-img { border-radius: 28px; background: var(--plinth); }
.t-summary, .c-form, .c-item, .stat { border-color: transparent; }
.stat b { color: var(--accent); }
.story-img { border-radius: 28px; }
.pillar { border-top-color: var(--ink); }
.pillar b { font-weight: 400; }
.t-feat svg, .t-rate svg, .t-new, .t-save, .pillar small { color: var(--accent); }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(56px, 8vw, 112px); padding: clamp(56px, 7vw, 88px) 0 28px; background: var(--ink); color: #e9e9ec; border-radius: 36px 36px 0 0; overflow: hidden; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-lead { font: 300 clamp(30px, 4vw, 52px)/1.05 var(--head); letter-spacing: -.04em; max-width: 640px; }
.foot-lead em { display: block; color: #8d9bff; }
.foot-cta { display: inline-flex; align-items: center; gap: 14px; padding: 16px 16px 16px 26px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; transition: gap .3s; }
.foot-cta svg { width: 22px; height: 22px; padding: 8px; box-sizing: content-box; border-radius: 50%; background: #fff; color: var(--accent); transition: transform .4s; }
.foot-cta:hover { gap: 22px; }
.foot-cta:hover svg { transform: rotate(45deg); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 44px 0; }
.foot-h { font: 500 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #8d9bff; margin-bottom: 18px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: rgba(233,233,236,.7); }
.site-foot ul a { text-decoration: none; transition: color .2s; }
.site-foot ul a:hover { color: #fff; }
.foot-mark { display: flex; justify-content: space-between; font: 200 clamp(90px, 21vw, 320px)/.78 var(--head); letter-spacing: -.07em; margin: 8px 0 28px; color: transparent; -webkit-text-stroke: 1px rgba(233,233,236,.35); }
.foot-mark span:last-child { color: #e9e9ec; -webkit-text-stroke: 0; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(233,233,236,.6); }

/* AI chat: graphite with cobalt */
body .vbot.vbot--hanason { --vbot-night: #141518; --vbot-night-2: #1b1c20; --vbot-night-3: #25272c; --vbot-line: rgba(255,255,255,.12); --vbot-ink: #f3f3f5; --vbot-accent: #5b6bff; --vbot-cyan: #8d9bff; --vbot-on: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-btn { display: grid; }
  .nav { position: fixed; left: 16px; right: 16px; top: 88px; flex-direction: column; gap: 2px; padding: 10px; border-radius: 24px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top; transition: opacity .3s, transform .4s cubic-bezier(.2,.8,.2,1), visibility .3s; }
  .nav a { padding: 15px 18px; font-size: 18px; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .s-hero-top { grid-template-columns: 1fr; }
  .s-cat { grid-template-columns: 48px minmax(0, 1fr) 80px 44px; }
  .s-cat-ket { display: none; }
  .s-story { grid-template-columns: 1fr; }
  .s-story-media { top: 90px; height: 46vh; z-index: 1; }
  .s-step { min-height: 46vh; background: var(--bg); }
  .s-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-rail { grid-auto-columns: minmax(220px, 40%); }
}
@media (max-width: 640px) {
  .head-in { height: 68px; }
  .icon-btn { width: 42px; height: 42px; }
  .s-stage { grid-template-columns: 1fr 1fr; }
  .s-pod.center { grid-column: 1 / -1; grid-row: 1; width: 78%; justify-self: center; }
  .s-pod.side { margin: 0; }
  .s-pod-tag { font-size: 12px; padding: 7px 12px; }
  .s-pod-tag span { display: none; }
  .s-cat { grid-template-columns: 36px minmax(0, 1fr) 40px; padding: 20px 0; }
  .s-cat-count, .s-cat-pic { display: none; }
  .s-cta { grid-template-columns: 1fr; }
  .s-rail { grid-auto-columns: 72%; }
  .foot-grid { grid-template-columns: 1fr; }
  .site-foot { border-radius: 26px 26px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-wave rect, .s-eq i, .s-pod-img, .s-marquee-track, .s-band::before, .eyebrow::before { animation: none !important; }
  .s-title .ln > span, .s-hero-side, .s-pod { animation: none !important; }
}
