/*
Theme Name: AppZen.Tech
Theme URI: https://appzen.tech
Author: AppZen.Tech
Author URI: https://appzen.tech
Description: Custom high-tech app development & CRM studio theme for AppZen.Tech — dark, precise, AI-forward.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: appzen
*/

/* ==========================================================================
   1. Reset & base
   ========================================================================== */
:root {
	--az-bg: #05070a;
	--az-bg-alt: #090c11;
	--az-surface: #0e131b;
	--az-surface-2: #141a24;
	--az-border: rgba(255, 255, 255, 0.08);
	--az-border-strong: rgba(255, 255, 255, 0.16);
	--az-text: #eef2f6;
	--az-muted: #98a3b0;
	--az-faint: #626c78;
	--az-green: #22c55e;
	--az-green-dark: #16a34a;
	--az-cyan: #06b6d4;
	--az-gradient: linear-gradient(135deg, #22c55e 0%, #06b6d4 100%);
	--az-radius: 20px;
	--az-radius-sm: 13px;
	--az-container: 1180px;
	--az-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--az-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--az-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	background: var(--az-bg);
	color: var(--az-text);
	font-family: var(--az-font);
	font-size: 17px;
	line-height: 1.6;
	margin: 0;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--az-font); margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }

.az-container { max-width: var(--az-container); margin: 0 auto; padding: 0 24px; }
.az-icon { width: 20px; height: 20px; flex-shrink: 0; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute; word-wrap: normal !important;
}

/* Background grid, fixed behind everything */
.az-bg-grid {
	position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.az-page { position: relative; z-index: 1; }

/* ==========================================================================
   2. Reveal-on-scroll
   ========================================================================== */
.az-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--az-ease), transform 0.6s var(--az-ease); transition-delay: var(--az-delay, 0ms); }
.az-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   3. Announcement bar
   ========================================================================== */
.az-announce {
	background: #0a0e14; color: var(--az-muted); text-align: center;
	font-size: 13px; font-weight: 600; padding: 10px 20px;
	border-bottom: 1px solid var(--az-border);
	display: flex; align-items: center; justify-content: center; gap: 6px;
}
.az-announce a { color: var(--az-green); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.az-announce .az-icon { width: 13px; height: 13px; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.az-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
	white-space: nowrap; border: 1px solid transparent;
	transition: transform 0.2s var(--az-ease), box-shadow 0.2s var(--az-ease), background 0.2s var(--az-ease), border-color 0.2s var(--az-ease), color 0.2s var(--az-ease);
}
.az-btn .az-icon { width: 16px; height: 16px; }
.az-btn--primary { background: var(--az-gradient); color: #04140c; box-shadow: 0 8px 26px -8px rgba(34, 197, 94, 0.5); }
.az-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -6px rgba(6, 182, 212, 0.55); }
.az-btn--ghost { background: transparent; border-color: var(--az-border-strong); color: var(--az-text); }
.az-btn--ghost:hover { border-color: var(--az-green); color: var(--az-green); transform: translateY(-2px); }
.az-btn--on-dark { background: #fff; color: var(--az-bg); }
.az-btn--on-dark:hover { background: #dff7e6; transform: translateY(-2px); }
.az-btn--sm { padding: 10px 20px; font-size: 13px; }
.az-btn--lg { padding: 19px 36px; font-size: 16px; }

/* ==========================================================================
   5. Header
   ========================================================================== */
.az-header {
	position: sticky; top: 0; z-index: 100; padding: 18px 0;
	background: rgba(5, 7, 10, 0.75); backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: padding 0.3s var(--az-ease), border-color 0.3s var(--az-ease), box-shadow 0.3s var(--az-ease);
}
.az-header.is-scrolled { border-bottom-color: var(--az-border); box-shadow: 0 8px 30px -20px rgba(0,0,0,0.6); padding: 12px 0; }
.az-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.az-logo { display: flex; align-items: center; gap: 10px; }
.az-logo img { max-height: 40px; width: auto; border-radius: 9px; }
.az-logo__word { font-weight: 900; font-size: 18px; letter-spacing: -0.01em; color: var(--az-text); }
.az-logo__word span { color: var(--az-green); font-weight: 700; }

.az-nav { display: flex; align-items: center; gap: 30px; }
.az-nav a { font-size: 14px; font-weight: 600; color: var(--az-muted); transition: color 0.2s; }
.az-nav a:hover { color: var(--az-text); }
.az-header__actions { display: flex; align-items: center; gap: 16px; }

.az-nav-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 40px; height: 40px; background: var(--az-surface); border: 1px solid var(--az-border);
	border-radius: 10px; padding: 0;
}
.az-nav-toggle span { display: block; width: 18px; height: 2px; background: var(--az-text); margin: 0 auto; transition: transform 0.25s, opacity 0.25s; }
.az-nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.az-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.az-nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.az-hero { padding: 72px 0 0; position: relative; }
.az-hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-bottom: 72px; }
.az-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--az-mono); font-size: 13px; font-weight: 600;
	color: var(--az-green); margin: 0 0 20px; letter-spacing: 0.01em;
}
.az-eyebrow::before { content: "//"; color: var(--az-faint); }
.az-h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); line-height: 1.08; margin-bottom: 22px; }
.az-highlight { background: var(--az-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.az-lead { font-size: 18px; color: var(--az-muted); max-width: 52ch; margin-bottom: 32px; }
.az-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.az-hero__trust { font-size: 13.5px; font-weight: 600; color: var(--az-faint); display: flex; align-items: center; gap: 8px; }
.az-hero__trust strong { color: var(--az-text); }

/* Code window mockup */
.az-codewin {
	background: linear-gradient(180deg, var(--az-surface) 0%, var(--az-bg-alt) 100%);
	border: 1px solid var(--az-border-strong); border-radius: var(--az-radius);
	overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
.az-codewin__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--az-border); }
.az-codewin__dot { width: 10px; height: 10px; border-radius: 50%; }
.az-codewin__dot--r { background: #ff5f56; }
.az-codewin__dot--y { background: #ffbd2e; }
.az-codewin__dot--g { background: #27c93f; }
.az-codewin__title { margin-left: 10px; font-family: var(--az-mono); font-size: 12px; color: var(--az-faint); }
.az-codewin__body { padding: 24px; font-family: var(--az-mono); font-size: 13.5px; line-height: 1.9; }
.az-codewin__body .ln { color: var(--az-faint); display: inline-block; width: 22px; user-select: none; }
.az-codewin__kw { color: #c084fc; }
.az-codewin__fn { color: #06b6d4; }
.az-codewin__str { color: #22c55e; }
.az-codewin__com { color: var(--az-faint); }
.az-codewin__cursor { display: inline-block; width: 8px; height: 16px; background: var(--az-green); vertical-align: middle; animation: az-blink 1s step-end infinite; }
@keyframes az-blink { 50% { opacity: 0; } }

/* Marquee */
.az-marquee { border-top: 1px solid var(--az-border); border-bottom: 1px solid var(--az-border); overflow: hidden; background: var(--az-bg-alt); padding: 16px 0; }
.az-marquee__track { display: flex; align-items: center; gap: 18px; white-space: nowrap; width: max-content; animation: az-marquee 30s linear infinite; }
.az-marquee__track span { font-family: var(--az-mono); font-size: 13px; font-weight: 600; color: var(--az-muted); }
.az-marquee__track i { color: var(--az-green); font-style: normal; }
@keyframes az-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   7. Trust stats
   ========================================================================== */
.az-trust { padding: 56px 0; border-bottom: 1px solid var(--az-border); }
.az-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.az-trust__stat { display: flex; flex-direction: column; gap: 6px; }
.az-trust__value { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; background: var(--az-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.az-trust__label { font-size: 13px; font-weight: 600; color: var(--az-faint); }

/* ==========================================================================
   8. Sections & type
   ========================================================================== */
.az-section { padding: 100px 0; }
.az-section--alt { background: var(--az-bg-alt); }
.az-section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.az-section__head .az-eyebrow { justify-content: center; }
.az-h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
.az-h4 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.az-body { color: var(--az-muted); font-size: 16px; }
.az-section__head .az-body { margin: 0 auto; }

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

.az-card {
	background: var(--az-surface); border: 1px solid var(--az-border); border-radius: var(--az-radius);
	padding: 28px; transition: transform 0.3s var(--az-ease), border-color 0.3s var(--az-ease), background 0.3s var(--az-ease);
}
.az-card:hover { transform: translateY(-6px); border-color: var(--az-border-strong); background: var(--az-surface-2); }

.az-service__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 12px;
	background: rgba(34, 197, 94, 0.12); color: var(--az-green); margin-bottom: 18px;
}
.az-service p { color: var(--az-muted); font-size: 14px; }
.az-card--featured { border-color: rgba(34,197,94,0.35); background: linear-gradient(160deg, rgba(34,197,94,0.08), var(--az-surface) 60%); }

/* ==========================================================================
   9. CRM feature split
   ========================================================================== */
.az-crm { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.az-crm__checklist { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 32px; }
.az-crm__checklist li { display: flex; align-items: center; gap: 10px; color: var(--az-text); font-weight: 600; }
.az-crm__checklist .az-icon { color: var(--az-green); width: 18px; height: 18px; flex-shrink: 0; }

.az-dashboard {
	background: linear-gradient(180deg, var(--az-surface) 0%, var(--az-bg-alt) 100%);
	border: 1px solid var(--az-border-strong); border-radius: var(--az-radius); padding: 24px;
	box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
}
.az-dashboard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.az-dashboard__title { font-family: var(--az-mono); font-size: 13px; color: var(--az-faint); }
.az-dashboard__pill { font-family: var(--az-mono); font-size: 11px; font-weight: 700; color: var(--az-green); background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); padding: 4px 10px; border-radius: 999px; }
.az-dashboard__rows { display: flex; flex-direction: column; gap: 12px; }
.az-dashboard__row { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--az-border); border-radius: var(--az-radius-sm); padding: 14px 16px; }
.az-dashboard__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--az-gradient); flex-shrink: 0; }
.az-dashboard__row div { flex: 1; }
.az-dashboard__row strong { display: block; font-size: 13.5px; }
.az-dashboard__row span { font-size: 12px; color: var(--az-faint); }
.az-dashboard__bar { width: 70px; height: 6px; border-radius: 999px; background: var(--az-border-strong); overflow: hidden; }
.az-dashboard__bar i { display: block; height: 100%; background: var(--az-gradient); }

/* ==========================================================================
   10. Process
   ========================================================================== */
.az-num { font-size: 32px; font-weight: 900; color: transparent; -webkit-text-stroke: 1.4px var(--az-border-strong); display: block; margin-bottom: 12px; }
.az-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.az-process__step { border-top: 1px solid var(--az-border); padding-top: 24px; }
.az-process__step p { color: var(--az-muted); font-size: 14px; }

/* ==========================================================================
   11. Featured app showcase
   ========================================================================== */
.az-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.az-showcase__copy .az-body { margin-bottom: 24px; }
.az-showcase__stats { display: flex; gap: 32px; margin-bottom: 28px; }
.az-showcase__stat strong { display: block; font-size: 26px; font-weight: 900; background: var(--az-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.az-showcase__stat span { font-size: 12.5px; color: var(--az-faint); font-weight: 600; }
.az-showcase__badge {
	display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
	border: 1px solid var(--az-border-strong); border-radius: 999px; font-weight: 700; font-size: 14px;
	transition: border-color 0.2s, transform 0.2s var(--az-ease);
}
.az-showcase__badge:hover { border-color: var(--az-green); transform: translateY(-2px); }
.az-showcase__badge .az-icon--brand { width: 20px; height: 20px; color: var(--az-green); }

.az-phones { display: flex; justify-content: center; gap: 16px; perspective: 1200px; }
.az-phone { width: 42%; max-width: 200px; aspect-ratio: 9/19.5; border-radius: 28px; border: 6px solid #1a1f27; background: var(--az-surface); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7); position: relative; }
.az-phone--offset { transform: translateY(28px); }
.az-phone__shot { width: 100%; height: 100%; background-size: cover; background-position: center; background-image: linear-gradient(160deg, rgba(34,197,94,0.25), rgba(6,182,212,0.2)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); }
.az-phone__shot .az-icon { width: 30%; height: 30%; }

/* ==========================================================================
   12. Team / founder
   ========================================================================== */
.az-founder__inner { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; align-items: center; }
.az-founder__photo {
	aspect-ratio: 1; border-radius: var(--az-radius); background: var(--az-surface);
	background-size: cover; background-position: center; border: 1px solid var(--az-border-strong);
	display: flex; align-items: center; justify-content: center; color: var(--az-green);
}
.az-founder__photo span .az-icon { width: 64px; height: 64px; }
.az-founder__title { color: var(--az-green); font-weight: 700; margin: 8px 0 20px; }

/* ==========================================================================
   13. FAQ
   ========================================================================== */
.az-faq { max-width: 780px; }
.az-accordion__item { border-bottom: 1px solid var(--az-border); }
.az-accordion__trigger {
	width: 100%; display: flex; align-items: center; justify-content: space-between;
	background: none; border: none; color: var(--az-text); text-align: left;
	padding: 24px 4px; font-size: 17px; font-weight: 700;
}
.az-accordion__trigger i { font-style: normal; font-size: 22px; color: var(--az-green); transition: transform 0.3s var(--az-ease); flex-shrink: 0; margin-left: 16px; }
.az-accordion__trigger[aria-expanded="true"] i { transform: rotate(45deg); }
.az-accordion__panel { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--az-ease); }
.az-accordion__panel p { padding: 0 4px 24px; color: var(--az-muted); max-width: 62ch; }
.az-faq__cta { text-align: center; margin-top: 48px; }

/* Final CTA */
.az-cta { padding: 110px 0; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(34,197,94,0.16), transparent 60%), var(--az-bg-alt); border-top: 1px solid var(--az-border); }
.az-cta .az-h2 { max-width: 720px; margin: 0 auto 20px; }
.az-cta .az-body { max-width: 560px; margin: 0 auto 36px; }

/* ==========================================================================
   14. Footer
   ========================================================================== */
.az-footer { padding: 72px 0 32px; background: var(--az-bg-alt); }
.az-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--az-border); }
.az-footer__brand p { color: var(--az-faint); margin-top: 14px; max-width: 32ch; }
.az-footer__sub a { color: var(--az-green); font-weight: 700; }
.az-footer__col h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--az-faint); margin-bottom: 18px; }
.az-footer__col { display: flex; flex-direction: column; gap: 12px; }
.az-footer__col a { color: var(--az-muted); font-size: 14px; font-weight: 600; transition: color 0.2s; }
.az-footer__col a:hover { color: var(--az-green); }
.az-footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; color: var(--az-faint); font-size: 13px; flex-wrap: wrap; gap: 12px; }
.az-footer__legal { display: flex; gap: 20px; }
.az-footer__legal a { color: var(--az-faint); }
.az-footer__legal a:hover { color: var(--az-text); }

.az-social { display: flex; gap: 10px; margin-top: 4px; }
.az-social__link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--az-surface); border: 1px solid var(--az-border-strong); color: var(--az-text);
	transition: transform 0.2s var(--az-ease), border-color 0.2s, color 0.2s;
}
.az-social__link:hover { color: var(--az-green); border-color: var(--az-green); transform: translateY(-2px); }
.az-social__link .az-icon--brand { width: 20px; height: 20px; }

/* Simple pages */
.az-prose { max-width: 720px; }
.az-prose p { margin-bottom: 1em; }

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.az-hero__inner { grid-template-columns: 1fr; }
	.az-hero__visual { order: -1; }
	.az-crm { grid-template-columns: 1fr; gap: 32px; }
	.az-showcase { grid-template-columns: 1fr; gap: 32px; }
	.az-showcase__visual { order: -1; }
	.az-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.az-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.az-process { grid-template-columns: repeat(2, 1fr); }
	.az-founder__inner { grid-template-columns: 1fr; }
	.az-founder__photo { max-width: 320px; margin: 0 auto; }
	.az-footer__grid { grid-template-columns: 1fr 1fr; }
	.az-footer__brand { grid-column: 1 / -1; }
	.az-trust__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
	.az-nav {
		position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 80vw);
		background: var(--az-bg-alt); border-left: 1px solid var(--az-border);
		flex-direction: column; align-items: flex-start; justify-content: flex-start;
		padding: 100px 32px 32px; gap: 24px;
		transform: translateX(100%); transition: transform 0.35s var(--az-ease); z-index: 90;
	}
	.az-nav.is-open { transform: translateX(0); }
	.az-nav a { font-size: 18px; }
	.az-nav-toggle { display: flex; }
	.az-header__actions .az-btn--sm { display: none; }
	.az-grid--4, .az-grid--3 { grid-template-columns: 1fr; }
	.az-process { grid-template-columns: 1fr; }
	.az-section { padding: 72px 0; }
	.az-hero { padding: 56px 0 40px; }
}

@media (max-width: 480px) {
	.az-btn--lg { width: 100%; justify-content: center; }
	.az-footer__bottom { flex-direction: column; align-items: flex-start; }
	.az-showcase__stats { flex-wrap: wrap; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.az-reveal { opacity: 1; transform: none; transition: none; }
	.az-marquee__track { animation: none; }
	.az-codewin__cursor { animation: none; }
	html { scroll-behavior: auto; }
}
