/* Arman HR 2050 — main stylesheet */
:root {
	--ah-void: #030407;
	--ah-ink: #090a0f;
	--ah-cyan: #00f5d4;
	--ah-cyan-soft: #72e8e1;
	--ah-violet: #7b2cbf;
	--ah-gold: #e2c275;
	--ah-mist: #c9d1dc;
	--ah-line: rgba(114, 232, 225, 0.18);
	--ah-glass: rgba(255, 255, 255, 0.045);
	--ah-radius: 20px;
	--ah-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
	--ah-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { background: var(--ah-void); overflow-x: hidden; }

/* Ambient 2050 backdrop */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(60vw 50vh at 12% 8%, rgba(0, 245, 212, 0.14), transparent 60%),
		radial-gradient(55vw 55vh at 92% 22%, rgba(123, 44, 191, 0.22), transparent 62%),
		radial-gradient(50vw 40vh at 50% 100%, rgba(226, 194, 117, 0.09), transparent 60%),
		var(--ah-void);
}
body::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(114, 232, 225, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(114, 232, 225, 0.045) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 75%);
	mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 75%);
}

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ah-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Header */
.ah-site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: rgba(3, 4, 7, 0.72); border-bottom: 1px solid var(--ah-line); }
.ah-topbar { padding: 6px clamp(16px, 4vw, 40px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.ah-mono, .ah-badge, .ah-eyebrow, .ah-btn, .ah-note { font-family: var(--ah-mono); }
.ah-topbar p { margin: 0; font-size: 0.68rem; letter-spacing: 0.18em; color: var(--ah-cyan-soft); }
.ah-navbar { padding: 12px clamp(16px, 4vw, 40px); gap: 16px; align-items: center; }
.ah-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.ah-brand strong { font-family: var(--ah-display); font-size: 1.35rem; color: #fff; }
.ah-brand span { font-family: var(--ah-mono); font-size: 0.6rem; letter-spacing: 0.3em; color: var(--ah-gold); }
.ah-nav a { font-size: 0.92rem; text-decoration: none; color: var(--ah-mist); }
.ah-nav a:hover { color: var(--ah-cyan); }
.ah-actions-bar { display: flex; align-items: center; gap: 14px; }
.ah-link { text-decoration: none; font-size: 0.92rem; color: var(--ah-mist); }
.ah-cart-btn { text-decoration: none; font-family: var(--ah-mono); font-size: 0.85rem; color: #fff; border: 1px solid var(--ah-line); border-radius: 999px; padding: 8px 14px; }
.ah-cart-btn span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; border-radius: 999px; background: var(--ah-cyan); color: var(--ah-void); font-size: 0.72rem; font-weight: 700; }

/* Buttons */
.ah-btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: 999px; cursor: pointer; text-decoration: none;
	font-size: 0.86rem; letter-spacing: 0.02em; line-height: 1.2;
	border: 1px solid var(--ah-line); background: transparent; color: #fff;
	transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.ah-btn:hover, .wp-block-button__link:hover { transform: translateY(-2px); border-color: var(--ah-cyan); box-shadow: 0 0 28px rgba(0, 245, 212, 0.25); color: #fff; }
.ah-btn--solid, .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--ah-cyan); color: var(--ah-void); border-color: var(--ah-cyan); font-weight: 600; }
.ah-btn--solid:hover, .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--ah-cyan-soft); color: var(--ah-void); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 1px solid var(--ah-line); }
.ah-btn--block { width: 100%; }
.ah-btn:focus-visible, .wp-block-button__link:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 3px; }

/* Sections */
.ah-section { padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 40px); }
.ah-head { max-width: 860px; margin-bottom: clamp(28px, 4vw, 48px); }
.ah-eyebrow { font-size: 0.74rem; letter-spacing: 0.24em; color: var(--ah-cyan); margin: 0 0 14px; }
.ah-h1 { font-size: clamp(2.8rem, 1.4rem + 7vw, 6.4rem); letter-spacing: -0.03em; background: linear-gradient(120deg, #fff 10%, var(--ah-cyan-soft) 50%, var(--ah-gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 8px; }
.ah-h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem); letter-spacing: -0.02em; margin: 0; }
.ah-tagline { font-family: var(--ah-display); font-size: clamp(1.2rem, 1rem + 1.2vw, 1.9rem); color: var(--ah-gold); margin: 0 0 20px; }
.ah-lead { font-size: 1.1rem; color: var(--ah-mist); max-width: 62ch; }
.ah-hero { padding-top: clamp(56px, 9vw, 120px); position: relative; }
.ah-hero::before { content: ''; position: absolute; width: 520px; height: 520px; right: -8%; top: 4%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(0, 245, 212, 0.35), rgba(123, 44, 191, 0.28) 45%, transparent 70%); filter: blur(30px); z-index: -1; animation: ah-float 14s ease-in-out infinite; }
@keyframes ah-float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-30px, 24px, 0) scale(1.06); } }

/* Glass cards */
.ah-card, .ah-glass {
	position: relative; border-radius: var(--ah-radius); padding: clamp(20px, 2.5vw, 32px);
	background: var(--ah-glass); border: 1px solid var(--ah-line);
	-webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset, 0 24px 60px rgba(0, 0, 0, 0.35);
	transition: transform 0.3s ease, border-color 0.3s ease;
	overflow: hidden;
}
.ah-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 245, 212, 0.14), transparent 60%); }
.ah-card:hover { transform: translateY(-4px); border-color: rgba(0, 245, 212, 0.5); }
.ah-card:hover::before { opacity: 1; }
.ah-card > * { position: relative; }
.ah-card h3 { margin-top: 0; font-size: 1.35rem; }
.ah-card p:last-child { margin-bottom: 0; }

.ah-grid { display: grid; gap: 20px; }
.ah-grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 48px; }
.ah-grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.ah-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.ah-grid > * { margin: 0 !important; }

.ah-badge { display: inline-block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 11px; margin: 0 0 12px; border-radius: 999px; color: var(--ah-cyan-soft); border: 1px solid var(--ah-line); background: rgba(0, 245, 212, 0.06); }
.ah-badge--gold { color: var(--ah-gold); border-color: rgba(226, 194, 117, 0.35); background: rgba(226, 194, 117, 0.07); }
.ah-badge--violet { color: #c9a0ff; border-color: rgba(123, 44, 191, 0.6); background: rgba(123, 44, 191, 0.18); }

.ah-metric__n { font-family: var(--ah-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 700; color: #fff; margin: 0; line-height: 1; }
.ah-metric__l { margin: 8px 0 0; font-size: 0.9rem; color: var(--ah-mist); }

.ah-timeline { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
.ah-timeline > * { margin: 0 !important; }
.ah-quote { border-left: 2px solid var(--ah-gold); padding-left: 16px; font-style: italic; color: #fff; }

/* Books */
.ah-books { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.ah-book { display: flex; flex-direction: column; gap: 20px; padding: 0; }
.ah-book__cover { position: relative; aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; background: radial-gradient(120% 100% at 0% 0%, rgba(0, 245, 212, 0.35), transparent 55%), radial-gradient(100% 100% at 100% 100%, rgba(123, 44, 191, 0.7), transparent 60%), #0b0d14; border-bottom: 1px solid var(--ah-line); }
.ah-book__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ah-book__tag { align-self: flex-start; font-family: var(--ah-mono); font-size: 0.72rem; letter-spacing: 0.2em; padding: 4px 10px; border: 1px solid var(--ah-gold); color: var(--ah-gold); border-radius: 999px; }
.ah-book__ctitle { font-family: var(--ah-display); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); line-height: 1.1; color: #fff; }
.ah-book__by { font-family: var(--ah-mono); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--ah-cyan-soft); }
.ah-book__body { padding: 0 clamp(20px, 2.5vw, 28px) clamp(20px, 2.5vw, 28px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ah-book__body h3 { margin: 0; }
.ah-book__sum { margin: 0; color: var(--ah-mist); font-size: 0.98rem; }
.ah-price { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.ah-price__now { font-family: var(--ah-display); font-size: 1.9rem; font-weight: 700; color: var(--ah-gold); }
.ah-price__was { color: #7d8794; }
.ah-price .ah-badge { margin: 0; }
.ah-details { border: 1px solid var(--ah-line); border-radius: 14px; padding: 10px 14px; background: rgba(0, 0, 0, 0.25); }
.ah-details summary { cursor: pointer; font-family: var(--ah-mono); font-size: 0.82rem; color: var(--ah-cyan-soft); }
.ah-details ul { padding-left: 1.1rem; margin: 6px 0 12px; }
.ah-details li { margin-bottom: 6px; font-size: 0.93rem; }
.ah-details__h { font-family: var(--ah-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ah-gold); margin: 14px 0 4px; }
.ah-details__quote { font-style: italic; color: #fff; }
.ah-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.ah-wish { background: none; border: 0; color: var(--ah-mist); font-family: var(--ah-mono); font-size: 0.8rem; cursor: pointer; padding: 10px 4px; }
.ah-wish[aria-pressed='true'] { color: var(--ah-gold); }
.ah-wish[aria-pressed='true'] span { color: #ff6b9a; }

/* Courses */
.ah-courses { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.ah-course { display: flex; flex-direction: column; gap: 12px; }
.ah-course h3, .ah-course p { margin: 0; }
.ah-modules { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 6px; }
.ah-modules li { padding-left: 22px; position: relative; font-size: 0.93rem; }
.ah-modules li::before { content: '◆'; position: absolute; left: 0; color: var(--ah-cyan); font-size: 0.7rem; top: 0.35em; }
.ah-course .ah-btn { margin-top: auto; align-self: flex-start; }

/* CTA blocks */
.ah-cta { text-align: left; padding: clamp(28px, 5vw, 64px); background: linear-gradient(135deg, rgba(0, 245, 212, 0.1), rgba(123, 44, 191, 0.18)), var(--ah-glass); }
.ah-cta .ah-lead { margin-bottom: 24px; }

/* Forms */
.ah-form { display: grid; gap: 14px; }
.ah-field { display: grid; gap: 6px; }
.ah-field label, .ah-chips legend, .ah-form label { font-size: 0.85rem; color: var(--ah-mist); }
.ah-form input[type='text'], .ah-form input[type='email'], .ah-form input[type='tel'], .ah-form select, .ah-form textarea {
	width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ah-line); background: rgba(0, 0, 0, 0.45); color: #fff; font: inherit;
}
.ah-form select option { background: #0b0d14; }
.ah-form input:focus, .ah-form select:focus, .ah-form textarea:focus { border-color: var(--ah-cyan); outline: none; box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.18); }
.ah-form .is-invalid { border-color: #ff6b6b !important; }
.ah-form--inline { grid-template-columns: 1fr auto; align-items: start; }
.ah-form--inline .ah-form__msg { grid-column: 1 / -1; }
.ah-form__msg { margin: 0; min-height: 1.2em; font-size: 0.9rem; color: var(--ah-cyan-soft); }
.ah-form__msg.is-error { color: #ff8a8a; }
.ah-muted { color: var(--ah-mist); font-size: 0.92rem; margin: 0; }
.ah-note { font-size: 0.74rem; color: #8b95a3; letter-spacing: 0.02em; }
.ah-check { display: flex; gap: 10px; align-items: flex-start; }
.ah-check input { margin-top: 4px; accent-color: var(--ah-cyan); }

.ah-chips { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ah-chips legend { margin-bottom: 10px; }
.ah-chips label { position: relative; }
.ah-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ah-chips span { display: block; text-align: center; padding: 12px; border: 1px solid var(--ah-line); border-radius: 12px; transition: 0.2s; }
.ah-chips input:checked + span { border-color: var(--ah-cyan); background: rgba(0, 245, 212, 0.12); color: #fff; }
.ah-chips input:focus-visible + span { outline: 2px solid var(--ah-gold); outline-offset: 2px; }

/* Modals */
.ah-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.ah-modal[hidden], .ah-drawer[hidden], .ah-scrim[hidden], .ah-cookie[hidden] { display: none; }
.ah-modal__backdrop { position: absolute; inset: 0; background: rgba(2, 3, 6, 0.78); backdrop-filter: blur(6px); }
.ah-modal__panel { position: relative; width: min(100%, 520px); max-height: calc(100vh - 32px); overflow: auto; background: rgba(11, 13, 20, 0.92); animation: ah-pop 0.25s ease; }
.ah-modal__panel--wide { width: min(100%, 640px); }
.ah-modal__title { font-size: 1.6rem; margin: 0 40px 18px 0; }
.ah-modal__x { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ah-line); background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
@keyframes ah-pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
body.ah-lock { overflow: hidden; }

.ah-progress { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 18px; font-family: var(--ah-mono); font-size: 0.74rem; color: #8b95a3; flex-wrap: wrap; }
.ah-progress li { display: flex; align-items: center; gap: 8px; }
.ah-progress span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--ah-line); }
.ah-progress li.is-active, .ah-progress li.is-done { color: #fff; }
.ah-progress li.is-active span { background: var(--ah-cyan); color: var(--ah-void); border-color: var(--ah-cyan); }
.ah-progress li.is-done span { border-color: var(--ah-cyan); color: var(--ah-cyan); }
.ah-step { display: none; gap: 14px; }
.ah-step.is-active { display: grid; }
.ah-step__nav { display: flex; gap: 10px; justify-content: space-between; }
.ah-done { display: grid; gap: 12px; }
.ah-done[hidden] { display: none; }
.ah-done__lead { font-family: var(--ah-display); font-size: 1.2rem; color: #fff; margin: 0; }
.ah-step-label { font-family: var(--ah-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ah-gold); margin: 8px 0 0; }
.ah-done__links { display: grid; gap: 10px; }

/* Cart drawer */
.ah-scrim { position: fixed; inset: 0; z-index: 150; background: rgba(2, 3, 6, 0.6); }
.ah-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(100%, 420px); display: flex; flex-direction: column; border-radius: 0; border-width: 0 0 0 1px; background: rgba(9, 10, 15, 0.96); animation: ah-slide 0.28s ease; }
@keyframes ah-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.ah-drawer__head { display: flex; justify-content: space-between; align-items: center; padding-right: 48px; }
.ah-drawer__head h2 { font-size: 1.4rem; margin: 0; }
.ah-drawer__head .ah-modal__x { top: 22px; }
.ah-cart { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; overflow: auto; }
.ah-cart li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ah-line); border-radius: 12px; }
.ah-cart li strong { display: block; font-size: 0.95rem; color: #fff; }
.ah-cart li span { color: var(--ah-gold); font-family: var(--ah-mono); font-size: 0.85rem; }
.ah-cart button { background: none; border: 0; color: #ff8a8a; cursor: pointer; font-size: 0.8rem; font-family: var(--ah-mono); }
.ah-cart__empty { color: var(--ah-mist); }
.ah-cart__total { display: flex; justify-content: space-between; font-family: var(--ah-mono); margin: 0 0 12px; }
.ah-cart__total strong { color: var(--ah-gold); font-size: 1.2rem; }
.ah-drawer__foot { margin-top: auto; display: grid; gap: 8px; }

/* Toast + cookie */
.ah-toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 999px; background: #0b0d14; border: 1px solid var(--ah-cyan); color: #fff; font-family: var(--ah-mono); font-size: 0.82rem; transition: 0.3s; max-width: calc(100vw - 32px); }
.ah-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ah-cookie { position: fixed; z-index: 250; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; background: rgba(9, 10, 15, 0.95); }
.ah-cookie p { margin: 0; font-size: 0.88rem; flex: 1 1 280px; }
.ah-cookie[hidden] { display: none; }

/* Footer */
.ah-footer { padding: 48px clamp(16px, 4vw, 40px) 32px; border-top: 1px solid var(--ah-line); margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(0, 245, 212, 0.04)); }
.ah-footer__brand { font-family: var(--ah-display); font-size: 1.3rem; color: #fff; margin: 0; }
.ah-footer__nav a { text-decoration: none; color: var(--ah-mist); font-size: 0.9rem; }
.ah-footer__nav a:hover { color: var(--ah-cyan); }
.ah-page { padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 40px); }

/* Scroll reveal */
.js .ah-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .ah-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 720px) {
	.ah-form--inline { grid-template-columns: 1fr; }
	.ah-actions-bar { gap: 10px; }
	.ah-link { display: none; }
	.ah-topbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .ah-reveal { opacity: 1; transform: none; }
}
