/* === shared.css v2-lean — Alcanah AI design system === */

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cta: #233eff;
    --cta-hover: #4d62ff;
    --cta-active: #1a2fcc;
    --cta-light: rgba(35, 62, 255, 0.08);
    --bg: #ffffff;
    --bg-gray: #f8fafc;
    --bg-dark: #0f172a;
    --text: #0f172a;
    --text-sec: #475569;
    --text-muted: #64748b;
    --text-on-dark: #f1f5f9;
    --text-on-dark-sec: #94a3b8;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --voice: #7c3aed;
    --voice-light: rgba(124, 58, 237, 0.08);
    --agents: #059669;
    --agents-light: rgba(5, 150, 105, 0.08);
    --knowledge: #d97706;
    --knowledge-light: rgba(217, 119, 6, 0.08);
    --workspace: #2563eb;
    --workspace-light: rgba(37, 99, 235, 0.08);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --max-w: 1200px;
    --nav-h: 72px;
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 14px;
    /* Legacy aliases used by blog-post inline CSS */
    --text-primary: var(--text);
    --text-secondary: var(--text-sec);
    --text-tertiary: var(--text-muted);
    --bg-secondary: var(--bg-gray);
    --border-secondary: var(--border);
    --border-translucent: rgba(15, 23, 42, 0.08);
}

/* === Base === */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--text-sec); background: var(--bg); overflow-x: hidden; }
::selection { background: var(--cta); color: #fff; }
img { max-width: 100%; height: auto; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* === Typography === */
h1, h2, h3, h4 { font-family: var(--font); color: var(--text); line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 2rem; }
h2 em { font-style: normal; color: var(--cta); }
h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
h1 + p, h2 + p, h3 + p, h4 + p { margin-top: 0; }
h1:last-child, h3:last-child, h4:last-child { margin-bottom: 0; }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font); font-weight: 600; text-decoration: none; border: none; border-radius: 10px; cursor: pointer; transition: all 0.25s var(--ease); }
.btn-primary { padding: 1rem 2rem; font-size: 1rem; background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(35,62,255,0.25); }
.btn-primary:active { background: var(--cta-active); transform: translateY(0); }
.btn-outline { padding: 0.875rem 1.75rem; font-size: 0.9375rem; background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--cta); color: var(--cta); transform: translateY(-2px); }
.btn-white { padding: 1rem 2rem; font-size: 1rem; background: #fff; color: var(--text); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-icon { transition: transform 0.2s var(--ease); }
.btn:hover .btn-icon { transform: translate(2px, -2px); }
.arrow-icon { width: 16px; height: 16px; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* === Nav === */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo:hover { opacity: 0.7; }
.nav-mark-img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.nav-name { font-size: 0.9375rem; font-weight: 700; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color 0.2s ease; }
.nav-link:hover { color: var(--text); }
.nav-link-active { color: var(--text); font-weight: 600; }
.nav-cta-btn { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 1px; }
.mobile-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1.25rem 2rem 1.5rem; z-index: 90; flex-direction: column; gap: 0.875rem; }
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { font-size: 1rem; padding: 0.375rem 0; }

/* === Sections === */
.section { padding: 5rem 0; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--text-on-dark-sec); }
.section-label { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cta); margin-bottom: 1.25rem; }
.section-sub { font-size: 1.0625rem; color: var(--text-sec); max-width: 560px; margin: 0 auto; }
.hero-centered .section-sub, .section-center .section-sub, .section-header-center .section-sub { margin-left: auto; margin-right: auto; }
.section-center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }
.section-header { margin-bottom: 3rem; }
.section-header-center { text-align: center; max-width: 720px; margin: 0 auto 3rem; }

/* === Hero === */
.hero { padding: calc(var(--nav-h) + 5rem) 0 5rem; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(35,62,255,0.05) 0%, transparent 60%); }
.hero-centered { text-align: center; max-width: 720px; margin: 0 auto; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .section-sub { font-size: 1.1875rem; margin-bottom: 2rem; }

/* === Cards === */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: all 0.3s var(--ease); }
.card:hover { border-color: var(--border-hover); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--text-sec); font-size: 0.9375rem; line-height: 1.6; }
.card-arrow { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; font-weight: 600; color: var(--cta); margin-top: 1rem; transition: gap 0.2s var(--ease); }
.card-link:hover .card-arrow { gap: 0.625rem; }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.card-icon svg { width: 24px; height: 24px; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* === Steps === */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; counter-reset: step; }
.step { position: relative; padding-top: 3rem; }
.step::before { content: counter(step); counter-increment: step; position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--cta-light); color: var(--cta); font-weight: 700; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; }
.step h4 { margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; color: var(--text-sec); }

/* === Feature list === */
.feature-list { list-style: none; display: grid; gap: 0.75rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9375rem; color: var(--text-sec); }
.feature-list li::before { content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 0.15rem; border-radius: 50%; background: var(--cta-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23233eff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center/12px; }

/* === Tier cards === */
.tier-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; }
.tier-card-featured { border-color: var(--cta); box-shadow: 0 0 0 1px var(--cta); }
.tier-badge { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.625rem; border-radius: 100px; display: inline-block; width: fit-content; margin-bottom: 1rem; }
.tier-price { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.tier-price-note { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.tier-features { list-style: none; display: grid; gap: 0.5rem; margin-bottom: 1.5rem; flex: 1; }
.tier-features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--text-sec); }
.tier-features li::before { content: ''; flex-shrink: 0; width: 16px; height: 16px; margin-top: 0.2rem; border-radius: 50%; background: var(--cta-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23233eff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center/10px; }

/* === CTA Banner === */
.cta-banner { text-align: center; padding: 5rem 2rem; }
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { color: var(--text-sec); max-width: 480px; margin: 0 auto 2rem; font-size: 1.0625rem; }
.cta-banner.section-dark p { color: var(--text-on-dark-sec); }

/* === Article Tags === */
.article-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.25rem 0.625rem; border-radius: 100px; white-space: nowrap; }
.article-tag-operators { background: rgba(245, 158, 11, 0.1); color: #b45309; }
.article-tag-builders { background: rgba(99, 102, 241, 0.1); color: #4338ca; }

/* === Footer === */
.footer { padding: 3rem 0 2rem; border-top: 1px solid var(--border); }
.footer-inner { text-align: center; }
.footer-newsletter { margin-bottom: 2rem; }
.footer-newsletter-label { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.footer-form { display: flex; gap: 0.5rem; max-width: 400px; margin: 0 auto; }
.footer-input { flex: 1; padding: 0.75rem 1rem; font-family: var(--font); font-size: 0.875rem; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; outline: none; transition: border-color 0.2s ease; }
.footer-input:focus { border-color: var(--cta); }
.footer-input::placeholder { color: var(--text-muted); opacity: 0.6; }
.footer-btn { padding: 0.75rem 1.25rem; font-size: 0.875rem; white-space: nowrap; }
.footer-newsletter-success { display: none; font-size: 0.875rem; color: var(--cta); margin-top: 0.75rem; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-nav a { font-size: 0.8125rem; font-weight: 500; color: var(--text-sec); text-decoration: none; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--text); }
.footer-nav-legal { gap: 1.25rem; margin-bottom: 0.75rem; margin-top: -0.5rem; }
.footer-nav-legal a { font-size: 0.75rem; color: var(--text-muted); }
.footer-copy { font-size: 0.8125rem; color: var(--text-muted); margin: 0; }

/* === Blog Preview === */
.blog-preview { padding: 5rem 0; background: var(--bg-gray); }
.blog-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.blog-preview-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: all 0.3s var(--ease); }
.blog-preview-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); border-color: var(--border-hover); }
.bp-visual { height: 160px; display: flex; align-items: center; justify-content: center; }
.bp-visual svg { width: 48px; height: 48px; opacity: 0.5; }
.bp-visual-amber { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%); }
.bp-visual-emerald { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%); }
.bp-visual-rose { background: linear-gradient(135deg, #fff1f2 0%, #fecdd3 50%, #fda4af 100%); }
.bp-visual-violet { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #ddd6fe 100%); }
.bp-visual-slate { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%); }
.bp-visual-blue { background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 40%, #c7d2fe 100%); }
.bp-content { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.bp-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.25rem 0.625rem; border-radius: 100px; white-space: nowrap; display: inline-block; width: fit-content; margin-bottom: 0.625rem; }
.bp-tag-operators { background: rgba(245, 158, 11, 0.1); color: #b45309; }
.bp-tag-builders { background: rgba(99, 102, 241, 0.1); color: #4338ca; }
.bp-content h3 { font-size: 1.1875rem; line-height: 1.3; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.bp-content p { font-size: 0.875rem; color: var(--text-sec); line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-footer { margin-top: 0.75rem; }
.bp-read { font-size: 0.875rem; font-weight: 600; color: var(--cta); display: inline-flex; align-items: center; gap: 0.375rem; transition: gap 0.2s var(--ease); }
.blog-preview-card:hover .bp-read { gap: 0.625rem; }
.blog-preview-all { display: flex; justify-content: center; margin-top: 2rem; }

/* === Reveals === */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === Keyframes === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; border-radius: 4px; }
a, button, .nav-toggle { cursor: pointer; }

site-nav:not(:defined) { display: block; min-height: var(--nav-h); }
site-footer:not(:defined) { display: block; min-height: 120px; }
blog-preview:not(:defined) { display: block; min-height: 200px; }

/* === Responsive === */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .blog-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    :root { --nav-h: 64px; }
    .container { padding: 0 1.5rem; }
    .nav-links .nav-link { display: none; }
    .nav-toggle { display: flex; }
    .section { padding: 3.5rem 0; }
    .hero { padding: calc(var(--nav-h) + 3rem) 0 3rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .blog-preview-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
    .blog-preview { padding: 3rem 0; }
    .steps { grid-template-columns: 1fr; }
    .btn-group { flex-direction: column; align-items: stretch; }
    .btn-group .btn { justify-content: center; }
}
@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .footer-form { flex-direction: column; }
    .footer-btn { width: 100%; justify-content: center; }
}

/* === <inline-cta> component === */
.inline-cta { text-align: center; padding: 2rem 1.5rem; margin: 3rem 0; border-top: 1px solid var(--border-translucent); border-bottom: 1px solid var(--border-translucent); }
.inline-cta > p { font-size: 0.9375rem !important; color: var(--text-tertiary) !important; margin-bottom: 0.75rem !important; }
.inline-cta-form { display: flex; gap: 0.5rem; max-width: 360px; margin: 0 auto; }
.inline-cta-input { flex: 1; padding: 0.625rem 0.875rem; font-size: 0.875rem; border: 1px solid var(--border-secondary); border-radius: 8px; outline: none; font-family: inherit; }
.inline-cta-input:focus { border-color: var(--text-tertiary); }
.inline-cta .btn { padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 600; background: var(--text-primary); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-family: inherit; transition: opacity 0.15s ease; white-space: nowrap; }
.inline-cta .btn:hover { opacity: 0.85; background: var(--text-primary); transform: none; box-shadow: none; }
.inline-cta-success { color: var(--cta); font-size: 0.875rem; margin: 0.5rem 0 0; }
.inline-cta-error { color: #dc2626; font-size: 0.875rem; margin-top: 0.5rem; }
.inline-cta-error a { color: inherit; text-decoration: underline; }
@media (max-width: 480px) {
    .inline-cta-form { flex-direction: column; }
    .inline-cta-btn { width: 100%; justify-content: center; }
}
