/* ==========================================================================
   AIHut — design system
   Dark premium surface, aurora accents, disciplined motion.
   No build step: plain CSS, custom properties, loaded directly.
   ========================================================================== */

:root {
    /* Core surfaces */
    --bg:            #06070d;
    --bg-elev:       #0b0d18;
    --bg-elev-2:     #11142330;
    --surface:       rgba(255, 255, 255, 0.035);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border:        rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    /* Type */
    --text:          #eef1f8;
    --text-muted:    #9aa3bd;
    --text-dim:      #6b738f;

    /* Brand — violet→cyan aurora */
    --brand:         #7c5cff;
    --brand-2:       #22d3ee;
    --brand-3:       #f472b6;
    --brand-glow:    rgba(124, 92, 255, 0.45);

    --success:       #34d399;
    --warning:       #fbbf24;
    --danger:        #fb7185;

    /* bKash / Nagad brand colours for payment chips */
    --bkash:         #e2136e;
    --nagad:         #ed1c24;

    --radius:        18px;
    --radius-sm:     12px;
    --radius-lg:     28px;

    --shadow-lg:     0 30px 80px -20px rgba(0, 0, 0, 0.75);
    --shadow-glow:   0 0 60px -12px var(--brand-glow);

    --maxw:          1240px;
    --gutter:        16px;

    --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Bangla needs more leading than Latin. Set once on body so it is inherited —
   a :lang(bn) selector would match every element on a lang="bn" page and
   override the tighter line-height headings set for themselves. Inter stays
   first in the stack for Latin; Bangla glyphs fall through to Hind Siliguri. */
html:lang(bn) body { line-height: 1.8; }
.bn { font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ── Layout ──────────────────────────────────────────────────────────────── */

.ah-wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.ah-section { position: relative; padding: clamp(56px, 9vw, 120px) 0; }
.ah-section--tight { padding: clamp(40px, 6vw, 72px) 0; }

/* ── Typography ──────────────────────────────────────────────────────────── */

.ah-display {
    font-size: clamp(2.1rem, 6.2vw, 4.4rem);
    line-height: 1.22;
    letter-spacing: -0.033em;
    font-weight: 800;
    margin: 0 0 20px;
}

.ah-h2 {
    font-size: clamp(1.6rem, 3.9vw, 2.7rem);
    line-height: 1.18;
    letter-spacing: -0.024em;
    font-weight: 750;
    margin: 0 0 14px;
}

.ah-h3 {
    font-size: clamp(1.1rem, 2.1vw, 1.35rem);
    line-height: 1.35;
    font-weight: 680;
    margin: 0 0 8px;
}

.ah-lead  { font-size: clamp(1rem, 1.9vw, 1.16rem); color: var(--text-muted); max-width: 62ch; margin: 0 0 24px; }
.ah-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.72rem; font-weight: 640; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--brand-2); margin-bottom: 18px;
}
.ah-eyebrow::before {
    content: ''; width: 22px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-2));
}

.ah-gradient-text {
    background: linear-gradient(105deg, var(--brand) 0%, var(--brand-2) 48%, var(--brand-3) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

.ah-center { text-align: center; }
.ah-center .ah-lead { margin-inline: auto; }

/* ── Aurora background ───────────────────────────────────────────────────── */

.ah-aurora {
    position: absolute; inset: 0;
    overflow: hidden; pointer-events: none; z-index: 0;
}
.ah-aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    will-change: transform;
}
.ah-aurora span:nth-child(1) {
    width: 46vw; height: 46vw; left: -12vw; top: -14vw;
    background: radial-gradient(circle, rgba(124,92,255,0.75), transparent 68%);
    animation: ah-drift-a 22s var(--ease-in-out) infinite alternate;
}
.ah-aurora span:nth-child(2) {
    width: 38vw; height: 38vw; right: -10vw; top: 4vw;
    background: radial-gradient(circle, rgba(34,211,238,0.6), transparent 68%);
    animation: ah-drift-b 27s var(--ease-in-out) infinite alternate;
}
.ah-aurora span:nth-child(3) {
    width: 34vw; height: 34vw; left: 32vw; bottom: -16vw;
    background: radial-gradient(circle, rgba(244,114,182,0.45), transparent 68%);
    animation: ah-drift-c 31s var(--ease-in-out) infinite alternate;
}

@keyframes ah-drift-a { to { transform: translate3d(9vw, 6vw, 0) scale(1.18); } }
@keyframes ah-drift-b { to { transform: translate3d(-8vw, 9vw, 0) scale(1.12); } }
@keyframes ah-drift-c { to { transform: translate3d(6vw, -7vw, 0) scale(1.22); } }

/* Fine grid overlay — adds the "engineered" texture. */
.ah-grid-overlay {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
}

.ah-noise {
    position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.16;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.ah-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 640; font-size: 0.96rem; letter-spacing: -0.005em;
    white-space: nowrap;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
                background 0.3s ease, border-color 0.3s ease;
    overflow: hidden; isolation: isolate;
}

.ah-btn--primary {
    background: linear-gradient(100deg, var(--brand), var(--brand-2));
    color: #04060f;
    box-shadow: 0 10px 34px -10px var(--brand-glow);
}
.ah-btn--primary::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, var(--brand-2), var(--brand-3));
    opacity: 0; transition: opacity 0.4s ease;
}
.ah-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 46px -12px var(--brand-glow); }
.ah-btn--primary:hover::after { opacity: 1; }

.ah-btn--ghost {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
    backdrop-filter: blur(12px);
}
.ah-btn--ghost:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-2px); }

.ah-btn--wa { background: #25d366; color: #04120a; }
.ah-btn--wa:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(37,211,102,0.6); }

.ah-btn--lg { padding: 17px 36px; font-size: 1.03rem; }
.ah-btn--block { display: flex; width: 100%; }

/* Shine sweep on hover */
.ah-btn--primary::before {
    content: ''; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-22deg); transition: left 0.75s var(--ease-out);
}
.ah-btn--primary:hover::before { left: 150%; }

/* ── Cards ───────────────────────────────────────────────────────────────── */

.ah-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    backdrop-filter: blur(14px);
    transition: transform 0.45s var(--ease-out), border-color 0.4s ease, background 0.4s ease;
    overflow: hidden;
}
.ah-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(140deg, rgba(124,92,255,0.5), transparent 42%, transparent 62%, rgba(34,211,238,0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.45s ease; pointer-events: none;
}
.ah-card:hover { transform: translateY(-5px); background: var(--surface-hover); border-color: transparent; }
.ah-card:hover::before { opacity: 1; }

/* Cursor-tracked sheen, driven by --mx/--my from JS. */
.ah-card--glow::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(124,92,255,0.16), transparent 62%);
    opacity: 0; transition: opacity 0.4s ease;
}
.ah-card--glow:hover::after { opacity: 1; }

/* ── Product card ────────────────────────────────────────────────────────── */

.ah-grid { display: grid; gap: 20px; }
.ah-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ah-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ah-grid--4 { grid-template-columns: repeat(4, 1fr); }

.ah-product {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform 0.45s var(--ease-out), border-color 0.4s ease, background 0.4s ease, box-shadow 0.45s var(--ease-out);
    position: relative; overflow: hidden;
}
.ah-product:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    background: var(--surface-hover);
    box-shadow: var(--shadow-lg);
}

.ah-product__badge {
    position: absolute; top: 16px; right: 16px;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 5px 11px; border-radius: 999px;
    background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #04060f;
}

.ah-product__title { font-size: 1.08rem; font-weight: 680; margin: 0 0 8px; line-height: 1.3; }
.ah-product__desc  { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 16px; flex: 1; }

.ah-product__tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ah-chip {
    font-size: 0.71rem; padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-muted);
}

.ah-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.ah-price__now  { font-size: 1.6rem; font-weight: 780; letter-spacing: -0.02em; }
.ah-price__was  { font-size: 0.92rem; color: var(--text-dim); text-decoration: line-through; }
.ah-price__unit { font-size: 0.8rem; color: var(--text-muted); }
.ah-price__off  {
    font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
    background: rgba(52,211,153,0.14); color: var(--success); border: 1px solid rgba(52,211,153,0.28);
}

/* ── Scroll reveal ───────────────────────────────────────────────────────── */

[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
    will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Per-item stagger set inline as --d */
[data-reveal] { transition-delay: var(--d, 0ms); }

/* Split-text hero words */
.ah-word {
    display: inline-block; overflow: hidden; vertical-align: top;
    /* Room for Bangla vowel signs above/below the line, which overflow:hidden
       would otherwise clip, without changing the line spacing. */
    padding: 0.16em 0.02em; margin: -0.16em -0.02em;
}
/* background-clip:text on the parent doesn't paint through the inline-block
   word wrappers, so each animated word carries the gradient itself. */
.ah-gradient-text .ah-word > span {
    background: linear-gradient(105deg, var(--brand) 0%, var(--brand-2) 48%, var(--brand-3) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.ah-word > span {
    display: inline-block;
    transform: translate3d(0, 108%, 0);
    transition: transform 1s var(--ease-out);
    transition-delay: var(--d, 0ms);
}
.is-ready .ah-word > span { transform: none; }

/* ── Marquee ─────────────────────────────────────────────────────────────── */

.ah-marquee {
    position: relative; overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.ah-marquee__track {
    display: flex; gap: 14px; width: max-content;
    animation: ah-scroll 42s linear infinite;
}
.ah-marquee:hover .ah-marquee__track { animation-play-state: paused; }
.ah-marquee--rev .ah-marquee__track { animation-direction: reverse; }
@keyframes ah-scroll { to { transform: translate3d(-50%, 0, 0); } }

.ah-logo-pill {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 20px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    font-weight: 620; font-size: 0.9rem; white-space: nowrap; color: var(--text-muted);
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.ah-logo-pill:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-hover); }
.ah-logo-pill i { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(120deg, var(--brand), var(--brand-2)); }

/* ── Stats ───────────────────────────────────────────────────────────────── */

.ah-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ah-stat { text-align: center; padding: 22px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.ah-stat__num { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.025em; }
.ah-stat__lbl { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }

/* ── Steps ───────────────────────────────────────────────────────────────── */

.ah-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ah-steps::before {
    content: ''; position: absolute; top: 30px; left: 9%; right: 9%; height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
    transform: scaleX(var(--p, 0)); transform-origin: left;
    transition: transform 1.3s var(--ease-out);
}
.ah-step { position: relative; text-align: center; }
.ah-step__n {
    width: 60px; height: 60px; margin: 0 auto 16px;
    display: grid; place-items: center;
    border-radius: 50%; background: var(--bg-elev); border: 1px solid var(--border-strong);
    font-weight: 780; font-size: 1.2rem; position: relative; z-index: 1;
}

/* ── Comparison table ────────────────────────────────────────────────────── */

.ah-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.ah-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.ah-table th, .ah-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.ah-table thead th { background: rgba(255,255,255,0.035); font-weight: 680; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.ah-table tbody tr:last-child td { border-bottom: none; }
.ah-table tbody tr.is-us { background: linear-gradient(90deg, rgba(124,92,255,0.11), rgba(34,211,238,0.05)); }
.ah-table tbody tr.is-us td { font-weight: 660; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.ah-faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.ah-faq__item + .ah-faq__item { border-top: 1px solid var(--border); }
.ah-faq__q {
    width: 100%; background: none; border: 0; text-align: left;
    padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-weight: 620; font-size: 1rem; transition: color 0.25s ease;
}
.ah-faq__q:hover { color: var(--brand-2); }
.ah-faq__q span:last-child { flex: none; width: 22px; height: 22px; position: relative; }
.ah-faq__q span:last-child::before,
.ah-faq__q span:last-child::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px;
    background: currentColor; transform: translate(-50%, -50%); transition: transform 0.35s var(--ease-out);
}
.ah-faq__q span:last-child::after { transform: translate(-50%, -50%) rotate(90deg); }
.ah-faq__item.is-open .ah-faq__q span:last-child::after { transform: translate(-50%, -50%) rotate(0deg); }
.ah-faq__a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out); }
.ah-faq__a > div { padding: 0 24px 22px; color: var(--text-muted); font-size: 0.95rem; }

/* ── Header ──────────────────────────────────────────────────────────────── */

.ah-header {
    position: sticky; top: 0; z-index: 90;
    transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
    border-bottom: 1px solid transparent;
}
.ah-header.is-stuck {
    background: rgba(6, 7, 13, 0.82);
    backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: var(--border);
}
.ah-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }

.ah-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; letter-spacing: -0.03em; }
.ah-logo__mark {
    width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
    background: linear-gradient(130deg, var(--brand), var(--brand-2));
    color: #04060f; font-size: 0.85rem; font-weight: 850;
}

.ah-nav { display: flex; align-items: center; gap: 4px; }
.ah-nav a {
    white-space: nowrap;
    padding: 8px 12px; border-radius: 999px; font-size: 0.92rem; color: var(--text-muted);
    transition: color 0.25s ease, background 0.25s ease;
}
.ah-nav a:hover { color: var(--text); background: var(--surface); }

.ah-header__actions { display: flex; align-items: center; gap: 10px; }

.ah-burger { display: none; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.ah-burger span { position: absolute; left: 12px; width: 18px; height: 2px; background: var(--text); transition: transform 0.35s var(--ease-out), opacity 0.25s ease; }
.ah-burger span:nth-child(1) { top: 15px; }
.ah-burger span:nth-child(2) { top: 20px; }
.ah-burger span:nth-child(3) { top: 25px; }
.ah-burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.ah-burger.is-open span:nth-child(2) { opacity: 0; }
.ah-burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.ah-mobile-nav {
    position: fixed; inset: 70px 0 0; z-index: 89;
    background: rgba(6,7,13,0.97); backdrop-filter: blur(20px);
    padding: 28px var(--gutter);
    transform: translateX(100%); transition: transform 0.45s var(--ease-out);
    overflow-y: auto;
}
.ah-mobile-nav.is-open { transform: none; }
.ah-mobile-nav a { display: block; padding: 15px 0; font-size: 1.1rem; font-weight: 620; border-bottom: 1px solid var(--border); }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.ah-footer { border-top: 1px solid var(--border); background: var(--bg-elev); padding: 64px 0 28px; position: relative; z-index: 2; }
.ah-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.ah-footer h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 16px; }
.ah-footer a { display: block; padding: 6px 0; color: var(--text-muted); font-size: 0.92rem; transition: color 0.25s ease; }
.ah-footer a:hover { color: var(--brand-2); }
.ah-footer__bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 0.85rem; color: var(--text-dim); }

/* ── Payment chips ───────────────────────────────────────────────────────── */

.ah-pays { display: flex; flex-wrap: wrap; gap: 9px; }
.ah-pay {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 15px; border-radius: 10px; font-size: 0.83rem; font-weight: 640;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
}
.ah-pay--bkash { color: #ff5fa2; border-color: rgba(226,19,110,0.4); background: rgba(226,19,110,0.1); }
.ah-pay--nagad { color: #ff6b6b; border-color: rgba(237,28,36,0.4); background: rgba(237,28,36,0.1); }

/* ── Floating WhatsApp ───────────────────────────────────────────────────── */

.ah-wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 80;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #04120a;
    display: grid; place-items: center;
    box-shadow: 0 12px 34px -10px rgba(37,211,102,0.65);
    transition: transform 0.35s var(--ease-out);
}
.ah-wa-float:hover { transform: scale(1.09) translateY(-2px); }
.ah-wa-float::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid #25d366; animation: ah-ping 2.4s var(--ease-out) infinite;
}
@keyframes ah-ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ── Product detail article (seeded HTML) ────────────────────────────────── */

.ah-article { font-size: 1.02rem; color: var(--text-muted); }
.ah-article .lead { font-size: 1.12rem; color: var(--text); margin-bottom: 30px; }
.ah-article h2 {
    font-size: clamp(1.32rem, 2.7vw, 1.75rem); color: var(--text); font-weight: 720;
    margin: 42px 0 14px; letter-spacing: -0.02em;
}
.ah-article h3 { font-size: 1.08rem; color: var(--text); font-weight: 660; margin: 26px 0 7px; }
.ah-article p { margin: 0 0 15px; }
.ah-article ul, .ah-article ol { margin: 0 0 18px; padding-left: 22px; }
.ah-article li { margin-bottom: 9px; }
.ah-article ul.tool-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.ah-article ul.tool-list li {
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 11px 15px; color: var(--text); font-weight: 600; font-size: 0.93rem; margin: 0;
    display: flex; align-items: center; gap: 9px;
}
.ah-article ul.tool-list li::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none;
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
}
.ah-article table.price-compare {
    width: 100%; border-collapse: collapse; margin: 0 0 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.ah-article table.price-compare th,
.ah-article table.price-compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.ah-article table.price-compare thead th { background: rgba(255,255,255,0.04); color: var(--text); font-weight: 660; }
.ah-article table.price-compare tbody tr:last-child { background: linear-gradient(90deg, rgba(124,92,255,0.12), rgba(34,211,238,0.05)); }
.ah-article table.price-compare tbody tr:last-child td { color: var(--text); border-bottom: none; }
.ah-article .note,
.ah-article .disclaimer {
    font-size: 0.86rem; color: var(--text-dim); border-left: 2px solid var(--border-strong);
    padding: 3px 0 3px 14px; margin: 0 0 20px;
}
.ah-article ol.how-to-buy { counter-reset: s; list-style: none; padding: 0; }
.ah-article ol.how-to-buy li {
    counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 13px; color: var(--text);
}
.ah-article ol.how-to-buy li::before {
    content: counter(s); position: absolute; left: 0; top: -1px;
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #04060f;
    font-size: 0.8rem; font-weight: 750;
}

/* ── Sticky buy bar ──────────────────────────────────────────────────────── */

.ah-buybar {
    position: sticky; top: 92px;
    background: var(--bg-elev); border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg); padding: 28px;
    box-shadow: var(--shadow-lg);
}

.ah-trust-row { display: grid; gap: 12px; margin-top: 20px; }
.ah-trust { display: flex; align-items: flex-start; gap: 11px; font-size: 0.88rem; color: var(--text-muted); }
.ah-trust svg { flex: none; margin-top: 2px; color: var(--success); }

/* ── Forms ───────────────────────────────────────────────────────────────── */

.ah-field { margin-bottom: 16px; }
.ah-label { display: block; font-size: 0.85rem; font-weight: 620; margin-bottom: 7px; color: var(--text-muted); }
.ah-input, .ah-select, .ah-textarea {
    width: 100%; padding: 13px 16px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-size: 0.97rem;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.ah-input:focus, .ah-select:focus, .ah-textarea:focus {
    outline: none; border-color: var(--brand);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(124,92,255,0.15);
}
.ah-input::placeholder { color: var(--text-dim); }
.ah-select option { background: var(--bg-elev); color: var(--text); }

.ah-radio-card {
    display: flex; align-items: center; gap: 13px;
    padding: 15px 17px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    cursor: pointer; transition: border-color 0.25s ease, background 0.25s ease;
    margin-bottom: 10px;
}
.ah-radio-card:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.06); }
.ah-radio-card input { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.ah-radio-card.is-sel { border-color: var(--brand); background: rgba(124,92,255,0.1); }

.ah-alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 18px; }
.ah-alert--warn { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); color: #fcd34d; }
.ah-alert--err  { background: rgba(251,113,133,0.1); border: 1px solid rgba(251,113,133,0.3); color: #fda4af; }
.ah-alert--ok   { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.3); color: #6ee7b7; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */

.ah-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--text-dim); padding: 22px 0; }
.ah-crumb a { color: var(--text-muted); transition: color 0.25s ease; }
.ah-crumb a:hover { color: var(--brand-2); }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .ah-grid--4 { grid-template-columns: repeat(3, 1fr); }
    .ah-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .ah-buybar { position: static; }
}

@media (max-width: 1120px) {
    .ah-nav a:nth-child(n+6) { display: none; }
}
@media (max-width: 860px) {
    .ah-nav { display: none; }
    .ah-burger { display: block; }
    .ah-header__actions .ah-btn--ghost { display: none; }
    .ah-grid--3, .ah-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .ah-steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .ah-steps::before { display: none; }
}

@media (max-width: 560px) {
    :root { --gutter: 16px; }
    .ah-grid--2, .ah-grid--3, .ah-grid--4 { grid-template-columns: 1fr; }
    .ah-stats { grid-template-columns: repeat(2, 1fr); }
    .ah-article ul.tool-list { grid-template-columns: 1fr; }
    .ah-btn { padding: 13px 22px; font-size: 0.92rem; }
    .ah-display { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
}

/* ── Motion preferences ──────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .ah-word > span { transform: none !important; }
    .ah-aurora span { animation: none !important; }
    .ah-marquee__track { animation: none !important; }
}

/* Light-mode users still get the intended dark brand surface: this is a
   deliberately dark product page, so we pin the colour scheme. */
:root { color-scheme: dark; }
