/*
Theme Name: Analyst Landing
Theme URI: https://example.com
Author: Custom
Author URI: https://example.com
Description: ธีม Landing Page แบบกำหนดเองสำหรับ Analyst — ปลั๊กอินแดชบอร์ดวิเคราะห์ข้อมูลของ WordPress แนวคิดดีไซน์คือ "ห้องควบคุม / เครื่องมือวัดสัญญาณ" ตัวเลขธุรกิจอ่านง่ายเหมือนจอเรดาร์
Version: 1.0.0
Requires PHP: 7.4
Text Domain: analyst-landing
*/

/* =========================================================
   DESIGN TOKENS
   Concept: instrument-panel / control room. Deep navy field,
   amber "live signal" accent, cyan secondary trace, mono type
   for anything numeric — the page reads like a diagnostics
   console for a business.
   ========================================================= */
:root {
	--bg: #0b0f1a;
	--bg-soft: #0e1424;
	--panel: #121a2e;
	--panel-alt: #16203a;
	--border: #232f4d;
	--border-bright: #3a4a75;
	--text: #eef1f8;
	--text-dim: #93a0c2;
	--text-faint: #5c6790;
	--amber: #f5a623;
	--amber-soft: rgba(245, 166, 35, 0.14);
	--cyan: #35d4c7;
	--cyan-soft: rgba(53, 212, 199, 0.12);
	--red: #ff6b6b;

	--font-display: "Space Grotesk", "Segoe UI", sans-serif;
	--font-body: "Inter", "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;

	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 22px;
	--container: 1160px;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 3px;
	border-radius: 4px;
}

@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;
	}
}

/* Faint scanline / grid texture used sparingly behind the hero & CTA */
.bg-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--border) 1px, transparent 1px),
		linear-gradient(90deg, var(--border) 1px, transparent 1px);
	background-size: 42px 42px;
	opacity: 0.18;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 90%);
	pointer-events: none;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--amber);
}
.eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--amber);
	box-shadow: 0 0 0 4px var(--amber-soft);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 15px;
	border: 1px solid transparent;
	transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--amber); color: #191204; }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost { background: transparent; border-color: var(--border-bright); color: var(--text); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(11, 15, 26, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}
.nav-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 19px;
}
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px var(--amber-soft); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
	font-size: 14.5px;
	color: var(--text-dim);
	transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--border-bright);
	border-radius: 8px;
	width: 40px;
	height: 40px;
	color: var(--text);
	font-size: 18px;
}

@media (max-width: 860px) {
	.nav-links { position: fixed; inset: 72px 0 auto 0; background: var(--bg-soft); flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--border); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
	.nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
	.nav-links a { width: 100%; padding: 16px 24px; border-bottom: 1px solid var(--border); }
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.nav-actions .btn-ghost { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: 96px 0 0; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); margin: 22px 0 20px; }
.hero h1 .accent { color: var(--amber); }
.hero-sub { font-size: 18px; color: var(--text-dim); max-width: 560px; margin: 0 auto 34px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

/* Signature element: live-metrics ticker tape */
.ticker {
	position: relative;
	z-index: 1;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	background: var(--panel);
	overflow: hidden;
	white-space: nowrap;
}
.ticker-track {
	display: inline-flex;
	align-items: center;
	animation: ticker-scroll 32s linear infinite;
}
.ticker-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 13.5px;
	color: var(--text-dim);
	padding: 14px 28px;
	border-right: 1px solid var(--border);
}
.ticker-item .up { color: var(--cyan); }
.ticker-item .down { color: var(--red); }
.ticker-item .val { color: var(--text); font-weight: 600; }
@keyframes ticker-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* =========================================================
   STATS BAR
   ========================================================= */
.stats { padding: 56px 0; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-num { font-family: var(--font-mono); font-size: clamp(28px, 4vw, 38px); font-weight: 700; color: var(--amber); }
.stat-label { color: var(--text-dim); font-size: 13.5px; margin-top: 6px; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   SECTION HEADINGS (shared)
   ========================================================= */
.section { padding: 100px 0; }
.section-head { max-width: 620px; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 14px 0 12px; }
.section-head p { color: var(--text-dim); font-size: 16px; }

/* =========================================================
   FEATURES — "modules" grid
   ========================================================= */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 26px 24px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--border-bright); transform: translateY(-3px); }
.feature-icon {
	width: 40px; height: 40px;
	border-radius: 10px;
	background: var(--amber-soft);
	color: var(--amber);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-mono); font-weight: 700; font-size: 14px;
	margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 14.5px; }
@media (max-width: 860px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* =========================================================
   HOW IT WORKS — terminal log lines
   ========================================================= */
.steps { background: var(--bg-soft); }
.log-console {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
}
.log-line {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 22px 26px;
	border-bottom: 1px solid var(--border);
	font-family: var(--font-mono);
}
.log-line:last-child { border-bottom: none; }
.log-step { color: var(--amber); font-size: 13px; white-space: nowrap; padding-top: 2px; }
.log-body h3 { font-family: var(--font-body); font-size: 16.5px; margin-bottom: 4px; }
.log-body p { font-family: var(--font-body); color: var(--text-dim); font-size: 14.5px; }

/* =========================================================
   TESTIMONIAL — annotation on a chart line
   ========================================================= */
.testimonial { position: relative; }
.testimonial-panel {
	position: relative;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 56px;
	overflow: hidden;
}
.testimonial-chart { position: absolute; inset: 0; opacity: 0.5; }
.testimonial-content { position: relative; z-index: 1; max-width: 620px; }
.testimonial blockquote { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 27px); line-height: 1.45; margin: 0 0 22px; }
.testimonial cite { font-style: normal; font-family: var(--font-mono); font-size: 13px; color: var(--cyan); }
@media (max-width: 700px) { .testimonial-panel { padding: 34px 24px; } }

/* =========================================================
   PRICING / CTA
   ========================================================= */
.cta-panel {
	position: relative;
	overflow: hidden;
	background: linear-gradient(160deg, var(--panel-alt), var(--panel));
	border: 1px solid var(--border-bright);
	border-radius: var(--radius-lg);
	padding: 72px 40px;
	text-align: center;
}
.cta-panel h2 { font-size: clamp(26px, 3.8vw, 36px); margin: 16px 0 14px; }
.cta-panel p { color: var(--text-dim); max-width: 480px; margin: 0 auto 30px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 10px; max-width: 280px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-dim); padding: 5px 0; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--text-faint); font-size: 13px; font-family: var(--font-mono); }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   BASIC POST/PAGE FALLBACK STYLES (page.php / index.php)
   ========================================================= */
.entry-content { max-width: 760px; margin: 0 auto; padding: 80px 24px; }
.entry-content h1 { font-size: 34px; margin-bottom: 24px; }
.entry-content p { color: var(--text-dim); margin-bottom: 16px; }
