/* =========================================================================
   ToolKey AI — theme stylesheet
   Design tokens mirror the original Apple-inspired design system: Sora
   type, oklch color scale, a single --accent variable (set inline from the
   Customizer in functions.php::toolkeyai_dynamic_css so no build step is
   needed). Organized: tokens → reset → layout → header/nav → buttons →
   cards/grids → forms → page-specific blocks → footer → responsive.
   ========================================================================= */

:root {
	--accent: #3454e8; /* overridden inline per-request from the Customizer */
	--ink: oklch(18% 0.006 264);
	--ink-soft: oklch(28% 0.012 264);
	--muted: oklch(42% 0.012 264);
	--muted-2: oklch(46% 0.012 264);
	--faint: oklch(50% 0.012 264);
	--faint-2: oklch(55% 0.012 264);
	--border: oklch(90% 0.006 264);
	--border-soft: oklch(89% 0.006 264);
	--surface: oklch(99% 0.002 90);
	--surface-2: oklch(97% 0.003 264);
	--surface-3: oklch(96% 0.004 264);
	--dark: oklch(13% 0.014 264);
	--dark-2: oklch(17% 0.012 264);
	--dark-3: oklch(20% 0.02 264);
	--dark-border: oklch(24% 0.012 264);
	--dark-border-2: oklch(26% 0.012 264);
	--dark-border-3: oklch(28% 0.012 264);
	--dark-border-4: oklch(30% 0.012 264);
	--dark-ink: oklch(97% 0.004 90);
	--dark-muted: oklch(75% 0.01 264);
	--dark-faint: oklch(65% 0.01 264);
	--white: oklch(99% 0 0);
	--radius-sm: 10px;
	--radius-md: 16px;
	--radius-lg: 20px;
	--radius-xl: 28px;
}

/* ---------------------------------------------------------------- reset */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	background: var(--surface);
	color: var(--ink);
	direction: ltr;
	text-align: left;
	overflow-x: hidden;
}
body.mobile-menu-is-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
ul { margin: 0; }
::selection { background: color-mix(in srgb, var(--accent) 25%, white); }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- layout */

.container { max-width: 1180px; margin: 0 auto; padding: 0 64px; }
.container--sm { max-width: 760px; }
.container--md { max-width: 900px; }
.container--lg { max-width: 1000px; }
.container--xl { max-width: 1080px; }

.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }
.section--top-only { padding: 96px 0 56px; }
.section--none-top { padding-top: 0; }
.section--dark { background: var(--dark); color: var(--dark-ink); }

.section-hero { position: relative; overflow: hidden; text-align: center; max-width: 860px; margin: 0 auto; padding: 96px 64px 56px; display: flex; flex-direction: column; align-items: center; }

.hero-glow {
	position: absolute; z-index: 0; pointer-events: none;
	top: 50%; left: 50%;
	width: 680px; height: 680px;
	margin: -340px 0 0 -340px;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent) 0%, color-mix(in srgb, var(--accent) 6%, transparent) 45%, transparent 72%);
	animation: toolkeyai-glow-drift 14s ease-in-out infinite;
}
.section-hero > *:not(.hero-glow) { position: relative; z-index: 1; }

@keyframes toolkeyai-glow-drift {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(3%, -4%) scale(1.08); }
}

@keyframes toolkeyai-hero-in {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}
.section-hero > .tag,
.section-hero > h1,
.section-hero > .section-lede,
.section-hero > div {
	animation: toolkeyai-hero-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.section-hero > .tag { animation-delay: 0.02s; }
.section-hero > h1 { animation-delay: 0.1s; }
.section-hero > .section-lede { animation-delay: 0.2s; }
.section-hero > div { animation-delay: 0.3s; }
.section-hero > .hero-glow { animation: toolkeyai-glow-drift 14s ease-in-out infinite; }

/* -------------------------------------------------------------- scroll reveal */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-group > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-group.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
	.hero-glow { animation: none; }
	.section-hero > .tag, .section-hero > h1, .section-hero > .section-lede, .section-hero > div { animation: none; opacity: 1; transform: none; }
	.reveal, .reveal-group > * { transition: none; opacity: 1; transform: none; }
}

/* -------------------------------------------------------------- process strip */

.process-strip { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.process-strip::before {
	content: ""; position: absolute; top: 27px; left: 12.5%; right: 12.5%; height: 1px;
	background: var(--border); z-index: 0;
}
.process-step { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.process-step-icon {
	width: 56px; height: 56px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--surface); border: 1px solid var(--border);
	color: var(--accent);
	margin-bottom: 18px;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.process-step:hover .process-step-icon {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px -8px color-mix(in srgb, var(--accent) 35%, transparent);
	border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.process-step-num { font-size: 12px; font-weight: 800; letter-spacing: 0.5px; color: var(--muted-2); margin-bottom: 8px; }
.process-step-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.process-step-desc { font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 240px; margin: 0 auto; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 0.3px; margin-bottom: 16px; display: inline-block; }
.eyebrow--on-dark { color: color-mix(in srgb, var(--accent) 70%, white); }
h1 { font-size: 56px; line-height: 1.1; font-weight: 800; letter-spacing: -1.5px; margin: 0 0 20px; }
h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.9px; margin: 0; }
h3 { font-size: 20px; font-weight: 700; margin: 0; }
.section-lede { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 620px; margin: 0 auto; }
.section-kicker { font-size: 15px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 20px; }

.breadcrumb { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted-2); }

/* ---------------------------------------------------------------- header */

.site-header {
	position: sticky; top: 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 64px;
	background: color-mix(in srgb, var(--surface) 82%, transparent);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
}
.site-logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-badge {
	width: 34px; height: 34px; border-radius: 9px; background: var(--accent);
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	color: var(--white); font-weight: 800; font-size: 16px; overflow: hidden;
}
.logo-badge img { width: 100%; height: 100%; object-fit: cover; }
/* Real uploaded logo (toolkeyai_logo_badge() in functions.php): drop the
   accent-color square used only by the "TK" text fallback above, and mask
   to a circle instead — matches a circular logo file exactly and avoids
   cropping a non-square one (contain, not cover). */
.logo-badge--image { background: transparent; border-radius: 50%; }
.logo-badge--image img { object-fit: contain; }
.site-logo-text { font-weight: 700; font-size: 18px; letter-spacing: -0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color 0.2s ease; }
.site-nav a:hover, .site-nav a.is-current { color: var(--ink); }
.site-nav a.is-current { color: var(--accent); font-weight: 700; }

/* Language switcher (EN / FA / TR) — toolkeyai_language_switcher() in
   inc/languages.php, rendered only when Polylang is active with 2+
   languages configured. One instance sits in the desktop header (hidden
   on mobile, same breakpoint as .site-nav/.header-cta below); a second,
   separately-placed instance lives inside .mobile-menu-panel and needs no
   extra hiding rule since that panel is itself a mobile-only affordance. */
.lang-switcher { display: flex; align-items: center; gap: 10px; }
.lang-switcher a { font-size: 13px; font-weight: 700; color: var(--muted); opacity: 0.7; letter-spacing: 0.3px; }
.lang-switcher a:hover, .lang-switcher a.is-current { color: var(--accent); opacity: 1; }
.lang-switcher span[aria-hidden] { color: var(--border); font-size: 12px; }
.mobile-menu-panel .lang-switcher { justify-content: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }

.mobile-menu-btn {
	position: relative;
	display: none; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-soft);
	background: transparent; padding: 0; flex-shrink: 0;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.mobile-menu-btn:hover { background: var(--surface-2); }
.mobile-menu-btn-icon {
	position: absolute; top: 50%; left: 50%;
	display: flex; margin: -9px 0 0 -9px;
	transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-btn-icon--close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.mobile-menu-btn.is-open .mobile-menu-btn-icon--open { opacity: 0; transform: rotate(90deg) scale(0.6); }
.mobile-menu-btn.is-open .mobile-menu-btn-icon--close { opacity: 1; transform: rotate(0) scale(1); }

.mobile-menu-backdrop {
	display: none; position: fixed; inset: 0; z-index: 48;
	background: color-mix(in srgb, var(--dark) 55%, transparent);
	opacity: 0; transition: opacity 0.3s ease;
}
.mobile-menu-backdrop.is-open { display: block; opacity: 1; }

.mobile-menu-panel {
	display: flex; visibility: hidden; position: fixed; inset: 0 0 auto 0; top: 74px; z-index: 49;
	flex-direction: column;
	background: var(--surface);
	border-bottom-left-radius: var(--radius-lg, 16px); border-bottom-right-radius: var(--radius-lg, 16px);
	box-shadow: 0 24px 48px -12px color-mix(in srgb, var(--dark) 22%, transparent);
	padding: 8px 20px 24px;
	max-height: calc(100vh - 74px); overflow-y: auto;
	opacity: 0; transform: translateY(-12px);
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
}
.mobile-menu-panel.is-open {
	visibility: visible; opacity: 1; transform: translateY(0);
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}
.mobile-menu-nav { display: flex; flex-direction: column; padding: 8px 0 4px; }
.mobile-menu-nav a {
	font-size: 16px; font-weight: 600; color: var(--ink);
	padding: 14px 14px; border-radius: 10px;
	display: flex; align-items: center;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
	opacity: 0; transform: translateY(8px);
}
.mobile-menu-nav a:hover { background: var(--surface-2); }
.mobile-menu-nav a.is-current { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.mobile-menu-panel.is-open .mobile-menu-nav a { opacity: 1; transform: translateY(0); }
.mobile-menu-panel.is-open .mobile-menu-nav a:nth-child(1) { transition: opacity 0.35s ease 0.05s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, background 0.2s ease, color 0.2s ease; }
.mobile-menu-panel.is-open .mobile-menu-nav a:nth-child(2) { transition: opacity 0.35s ease 0.09s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.09s, background 0.2s ease, color 0.2s ease; }
.mobile-menu-panel.is-open .mobile-menu-nav a:nth-child(3) { transition: opacity 0.35s ease 0.13s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.13s, background 0.2s ease, color 0.2s ease; }
.mobile-menu-panel.is-open .mobile-menu-nav a:nth-child(4) { transition: opacity 0.35s ease 0.17s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.17s, background 0.2s ease, color 0.2s ease; }
.mobile-menu-panel.is-open .mobile-menu-nav a:nth-child(5) { transition: opacity 0.35s ease 0.21s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.21s, background 0.2s ease, color 0.2s ease; }
.mobile-menu-panel.is-open .mobile-menu-nav a:nth-child(6) { transition: opacity 0.35s ease 0.25s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, background 0.2s ease, color 0.2s ease; }
.mobile-menu-panel.is-open .mobile-menu-nav a:nth-child(7) { transition: opacity 0.35s ease 0.29s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.29s, background 0.2s ease, color 0.2s ease; }
.mobile-menu-panel.is-open .mobile-menu-nav a:nth-child(8) { transition: opacity 0.35s ease 0.33s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.33s, background 0.2s ease, color 0.2s ease; }
.mobile-menu-cta { margin-top: 10px; text-align: center; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
	.mobile-menu-btn-icon, .mobile-menu-backdrop, .mobile-menu-panel, .mobile-menu-nav a { transition: none !important; }
	.mobile-menu-nav a { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------- buttons */

.btn-primary, .btn-dark, .btn-outline {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-size: 15px; font-weight: 700; padding: 14px 28px; border-radius: 100px;
	border: none; transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
	white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-primary:hover, .btn-dark:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.header-cta { font-size: 14px; font-weight: 600; padding: 11px 22px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; transition: gap 0.25s ease; font-weight: 600; }
.link-arrow:hover { gap: 10px; }

/* ---------------------------------------------------------------- grids & cards */

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

.card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border-soft); overflow: hidden; display: flex; flex-direction: column; }
.card-lift { transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease, border-color 0.35s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px oklch(20% 0.02 264 / 0.18); }
.card-cover { height: 150px; background-size: cover; background-position: center; flex-shrink: 0; }
.card-cover--tall { height: 220px; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-category { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.4px; }
.card-title { font-size: 17px; font-weight: 700; margin: 0; }
.card-desc { font-size: 13.5px; color: var(--muted-2); line-height: 1.6; margin: 0; }

.tag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 100px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.tag--accent { background: var(--accent); color: var(--white); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.stat-item { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); }
.stat-label { font-size: 13px; color: var(--muted-2); }

.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-label { font-size: 11.5px; font-weight: 700; color: var(--faint-2); text-transform: uppercase; letter-spacing: 0.4px; }
.meta-value { font-size: 15px; font-weight: 600; }

/* ---------------------------------------------------------------- filter tabs */

.filter-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.filter-tab {
	font-size: 13.5px; font-weight: 600; padding: 9px 18px; border-radius: 100px;
	border: 1px solid var(--border-soft); color: var(--muted); white-space: nowrap;
	background: transparent; transition: all 0.2s ease;
}
.filter-tab.is-active, .filter-tab:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------------------------------------------------------------- forms */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
	background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
	padding: 13px 16px; color: var(--ink); font-size: 14.5px; font-family: inherit; outline: none;
	transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field--dark input, .field--dark select, .field--dark textarea { background: var(--dark); border-color: var(--dark-border-4); color: var(--dark-ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: 40px; box-shadow: 0 24px 56px -32px oklch(20% 0.02 264 / 0.14); }
.form-card--dark { background: var(--dark-2); border-color: var(--dark-border-2); box-shadow: none; }
.form-note { font-size: 12px; color: var(--faint-2); margin: 8px 0 0; text-align: center; }

.form-message { border-radius: var(--radius-sm); padding: 16px 18px; font-size: 14.5px; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 10px; }
.form-message--success { background: color-mix(in srgb, var(--accent) 10%, white); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, white); }
.form-message--error { background: oklch(96% 0.03 25); color: oklch(35% 0.1 25); border: 1px solid oklch(85% 0.08 25); }
.form-message ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------------------------------------------------------------- footer */

.site-footer { padding: 72px 0 40px; background: var(--dark); color: var(--dark-muted); border-top: 1px solid var(--dark-border); }

.footer-newsletter { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--dark-border); }
.footer-newsletter-text { max-width: 420px; }
.footer-newsletter-title { display: block; font-size: 18px; font-weight: 700; color: var(--dark-ink); margin-bottom: 6px; }
.footer-newsletter-desc { font-size: 13.5px; line-height: 1.7; color: var(--dark-muted); margin: 0; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 380px; flex-shrink: 0; }
.newsletter-form-row { display: flex; gap: 10px; }
.newsletter-form-row input[type="email"] {
	flex: 1; min-width: 0; padding: 12px 16px; border-radius: 100px; border: 1px solid var(--dark-border-3);
	background: var(--dark-2); color: var(--dark-ink); font-size: 14px; font-family: inherit; outline: none;
	transition: border-color 0.2s ease;
}
.newsletter-form-row input[type="email"]:focus { border-color: var(--accent); }
.newsletter-form-row input[type="email"]::placeholder { color: var(--dark-faint); }
.newsletter-submit { flex-shrink: 0; }
.toolkeyai-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter-form-message { font-size: 12.5px; margin: 0; min-height: 16px; }
.newsletter-form-message.is-success { color: color-mix(in srgb, var(--accent) 70%, white); }
.newsletter-form-message.is-error { color: oklch(72% 0.12 25); }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-size: 13px; font-weight: 700; color: var(--dark-ink); margin-bottom: 6px; }
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: var(--dark-ink); }
.footer-brand-desc { font-size: 14px; line-height: 1.8; margin: 0; max-width: 260px; }
.social-icons { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.social-icons a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--dark-border-3); display: flex; align-items: center; justify-content: center; }
.footer-bottom { border-top: 1px solid var(--dark-border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom span { font-size: 13px; color: var(--faint-2); }

/* ---------------------------------------------------------------- home: services / smart tools */

.track-card { border-radius: var(--radius-xl); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.track-card--light { background: var(--surface-2); border: 1px solid var(--border-soft); }
.track-card--dark { background: var(--dark); color: var(--dark-ink); }

.capability-card { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.capability-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; color: var(--accent); }

.smart-tool-card { border-radius: var(--radius-xl); padding: 40px; display: flex; flex-direction: column; gap: 18px; }

/* ---------------------------------------------------------------- prompt library */

.prompt-card { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.prompt-box {
	font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.65; color: var(--ink-soft);
	background: var(--surface-2); border-radius: 12px; padding: 16px; margin: 0; white-space: pre-line;
}
.prompt-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.copy-count { font-size: 12.5px; color: var(--faint-2); }
.copy-btn {
	display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
	padding: 8px 16px; border-radius: 100px; border: none; background: var(--accent); color: var(--white);
	transition: transform 0.15s ease, opacity 0.2s ease;
}
.copy-btn:active { transform: scale(0.96); }
.copy-btn.is-copied { background: color-mix(in srgb, var(--accent) 15%, white); color: var(--accent); }

.visual-card { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.visual-media { display: grid; grid-template-columns: 1fr 1fr; }
.visual-media > div { position: relative; height: 140px; background-size: cover; background-position: center; }
.visual-label { position: absolute; top: 10px; left: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px; padding: 4px 9px; border-radius: 100px; }
.visual-label--before { color: var(--ink-soft); background: color-mix(in srgb, var(--surface) 85%, transparent); }
.visual-label--after { color: var(--white); background: oklch(20% 0.02 264 / 0.35); }
.tool-tag { font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 100px; background: var(--surface-3); color: var(--ink-soft); white-space: nowrap; }

/* ---------------------------------------------------------------- chatbot */

.chat-panel { border: 1px solid var(--border-soft); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; background: var(--surface); }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 20px 26px; border-bottom: 1px solid var(--border-soft); }
.chat-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; }
.chat-messages { display: flex; flex-direction: column; gap: 14px; padding: 26px; min-height: 320px; max-height: 460px; overflow-y: auto; }
.chat-bubble { max-width: 78%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; }
.chat-bubble.is-user { align-self: flex-end; background: var(--accent); color: var(--white); border-bottom-right-radius: 4px; }
.chat-bubble.is-bot { align-self: flex-start; background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; background: var(--surface-2); border-radius: 16px; border-bottom-left-radius: 4px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--faint-2); animation: toolkeyai-bounce 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes toolkeyai-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 26px 20px; }
.chip { font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--border-soft); background: var(--surface); color: var(--muted); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chat-input-bar { display: flex; gap: 10px; padding: 18px 22px; border-top: 1px solid var(--border-soft); }
.chat-input-bar input { flex: 1; border: 1px solid var(--border-soft); border-radius: 100px; padding: 13px 20px; font-size: 14.5px; font-family: inherit; outline: none; }
.chat-input-bar input:focus { border-color: var(--accent); }
.chat-send-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--white); border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------------------------------------------------------------- testimonial / credentials / article */

.testimonial-box { background: var(--dark); border-radius: var(--radius-xl); padding: 56px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; color: var(--dark-ink); }
.testimonial-quote { font-size: 21px; line-height: 1.6; font-weight: 500; margin: 0; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, oklch(45% 0.08 264), oklch(65% 0.1 220)); flex-shrink: 0; }

.credential-card { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 24px; display: flex; align-items: flex-start; gap: 14px; }
.credential-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }

.article-body p, .article-body li { font-size: 17.5px; line-height: 1.85; color: var(--ink-soft); }
.article-body h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin: 44px 0 16px; }
.article-body h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin: 32px 0 12px; }
.article-body ul { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.article-body img { border-radius: var(--radius-lg); }

.author-box { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 32px; display: flex; gap: 20px; align-items: flex-start; }

/* ---------------------------------------------------------------- misc placeholders */

.cover-gradient { background: linear-gradient(135deg, oklch(18% 0.006 264), oklch(35% 0.08 264)); }
.gallery-item { height: 220px; border-radius: 18px; }
.reasons-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.reason-card { border: 1px solid var(--border-soft); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.split-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; }
.next-project-link { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 32px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
	.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 900px) {
	.grid-2, .grid-3, .grid-4, .meta-grid, .reasons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.split-grid, .contact-grid, .featured-post, .visual-card .split-grid { grid-template-columns: 1fr !important; }
	.smart-tools-grid { grid-template-columns: 1fr !important; }
	.footer-newsletter { flex-direction: column !important; align-items: flex-start !important; }
	.newsletter-form { max-width: 100% !important; }
	.process-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 40px !important; }
	.process-strip::before { display: none !important; }
}

@media (max-width: 768px) {
	.site-nav { display: none !important; }
	.header-cta { display: none !important; }
	.mobile-menu-btn { display: flex !important; }
	.header-lang-switcher { display: none !important; }
}

@media (max-width: 640px) {
	.site-header, .section, .site-footer { padding-left: 20px !important; padding-right: 20px !important; }
	.container { padding: 0 20px; }
	.site-header { padding-top: 14px !important; padding-bottom: 14px !important; }
	.section { padding-top: 56px !important; padding-bottom: 56px !important; }
	.section-hero { padding: 64px 20px 40px !important; }
	h1 { font-size: 36px !important; letter-spacing: -1px !important; }
	h2 { font-size: 26px !important; letter-spacing: -0.5px !important; }
	.article-body h2 { font-size: 22px !important; }
	.grid-2, .grid-3, .grid-4, .meta-grid, .reasons-grid { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
	.stat-grid { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
	.form-row { grid-template-columns: 1fr !important; }
	.footer-grid { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; gap: 32px !important; }
	.footer-bottom { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
	.footer-newsletter { padding-bottom: 32px !important; margin-bottom: 32px !important; }
	.newsletter-form-row { flex-direction: column !important; }
	.newsletter-submit { width: 100% !important; }
	.process-strip { grid-template-columns: 1fr !important; gap: 36px !important; }
	.hero-glow { width: 420px !important; height: 420px !important; margin: -210px 0 0 -210px !important; }
	.filter-row { overflow-x: auto !important; flex-wrap: nowrap !important; justify-content: flex-start !important; padding-bottom: 8px; }
	.visual-media > div { height: 110px !important; }
	.form-card { padding: 24px !important; }
	.testimonial-box { padding: 32px !important; }
}
