/* ═══════════════════════════════════════════════════════════════════════════
   KPDemo — Complete Design System v2
   300 Design Improvements
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. CSS Custom Properties / Design Tokens ───────────────────────────── */
:root {
  /* Colors — surface hierarchy */
  --bg: #0a0a0a; --bg-card: #141414; --bg-elevated: #1e1e1e; --bg-hover: #252525;
  --border: #2a2a2a; --border-light: #333; --border-focus: #1d4ed8;
  --text: #e0e0e0; --text-muted: #888; --text-dim: #555;
  --primary: #1d4ed8; --primary-light: #2563eb; --primary-dark: #1e40af; --primary-glow: rgba(29,78,216,0.3);
  --coral: #f97316; --coral-light: #fb923c; --coral-dark: #ea580c; --coral-glow: rgba(249,115,22,0.3);
  --gold: #fbbf24; --green: #4ade80; --green-dark: #166534;
  --purple: #a855f7; --blue: #1d4ed8; --blue-dark: #1e3a5f;
  --orange: #f97316; --pink: #ec4899; --teal: #14b8a6; --indigo: #6366f1;
  /* Spacing scale */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px;
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem;
  --text-lg: 1.125rem; --text-xl: 1.25rem; --text-2xl: 1.5rem;
  --text-3xl: 1.875rem; --text-4xl: 2.25rem; --text-5xl: 3rem;
  /* Radii */
  --radius-sm: 4px; --radius: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-full: 9999px;
  /* Shadows / Elevation */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3); --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5); --shadow-xl: 0 16px 64px rgba(0,0,0,0.6);
  --shadow-primary: 0 4px 20px var(--primary-glow);
  /* Transitions */
  --transition-fast: 0.15s ease; --transition: 0.25s ease; --transition-slow: 0.4s ease;
  /* Z-index layers */
  --z-header: 200; --z-drawer: 300; --z-overlay: 400; --z-modal: 500; --z-toast: 999;
}
[data-theme="light"] {
  --bg: #f8f9fa; --bg-card: #ffffff; --bg-elevated: #f0f0f0; --bg-hover: #e8e8e8;
  --border: #ddd; --border-light: #e5e5e5; --border-focus: #1d4ed8;
  --text: #1a1a1a; --text-muted: #666; --text-dim: #999;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08); --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1); --shadow-xl: 0 16px 64px rgba(0,0,0,0.12);
  --shadow-primary: 0 4px 20px rgba(29,78,216,0.15);
}

/* ── 2. Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior-y: none; }
body {
  font-family: var(--font-sans); background: var(--bg); color: var(--text);
  line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition-fast); }
a:hover { text-decoration: underline; color: var(--primary); }

/* ── 3. Typography System ─────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }
h1 { font-size: var(--text-5xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
p { margin-bottom: 1em; }
small, .text-sm { font-size: var(--text-sm); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.font-mono { font-family: var(--font-mono); }
code, pre { font-family: var(--font-mono); font-size: 0.9em; }
pre { background: var(--bg-elevated); padding: 16px; border-radius: var(--radius); overflow-x: auto; border: 1px solid var(--border); }
blockquote {
  border-left: 3px solid var(--primary); padding: 12px 20px; margin: 16px 0;
  background: var(--bg-card); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--text-muted);
}
hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── 4. Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── 5. Layout & Spacing ──────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-5); }
.container-narrow { max-width: 800px; }
.section { padding: var(--space-20) 0; }
.section-sm { padding: var(--space-12) 0; }
.section-dark { background: var(--bg-card); }
.section-title { font-size: var(--text-4xl); font-weight: 800; text-align: center; margin-bottom: var(--space-4); text-wrap: balance; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: var(--text-lg); max-width: 600px; margin: 0 auto var(--space-12); }

/* ── 6. Grid & Flex Utilities ─────────────────────────────── */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.gap-1 { gap: var(--space-1); } .gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); } .gap-6 { gap: var(--space-6); } .gap-8 { gap: var(--space-8); }

/* ── 7. Promo Banner ──────────────────────────────────────── */
.promo-banner { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; text-align: center; padding: var(--space-2) var(--space-5); font-size: var(--text-sm); font-weight: 500; display: none; position: relative; z-index: calc(var(--z-header) + 1); }
.promo-banner.active { display: block; }
.promo-banner a { color: #fff; text-decoration: underline; font-weight: 600; }
.promo-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: none; color: #fff; cursor: pointer; font-size: 16px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background var(--transition-fast); }
.promo-close:hover { background: rgba(255,255,255,0.4); }

/* ── 8. Header ────────────────────────────────────────────── */
.header { background: var(--bg-card); border-bottom: 2px solid var(--border); display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 var(--space-5); position: sticky; top: 0; z-index: var(--z-header); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow var(--transition); }
.header.scrolled { box-shadow: var(--shadow); }
.header-brand { font-size: 22px; font-weight: 800; color: var(--primary); text-decoration: none; letter-spacing: -0.5px; transition: transform var(--transition-fast); }
.header-brand:hover { transform: scale(1.03); text-decoration: none; }
.header-brand span { color: var(--text); font-weight: 400; }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.theme-toggle, .menu-btn { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 6px 10px; border-radius: var(--radius); cursor: pointer; font-size: 16px; transition: all var(--transition-fast); min-width: 38px; text-align: center; }
.theme-toggle:hover, .menu-btn:hover { background: var(--bg-elevated); color: var(--text); border-color: var(--border-light); }
.menu-btn { font-size: 20px; }

/* ── 9. Navigation Drawer ─────────────────────────────────── */
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); z-index: var(--z-drawer); }
.nav-overlay.open { display: block; animation: fadeIn var(--transition); }
.nav-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 280px; background: var(--bg-card); border-left: 2px solid var(--border); z-index: calc(var(--z-drawer) + 1); transform: translateX(100%); transition: transform var(--transition); display: flex; flex-direction: column; padding: var(--space-5) 0; box-shadow: var(--shadow-xl); }
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a { color: var(--text-muted); text-decoration: none; padding: var(--space-3) var(--space-6); font-size: var(--text-base); font-weight: 500; transition: all var(--transition-fast); position: relative; }
.nav-drawer a:hover { color: #fff; background: var(--bg-elevated); text-decoration: none; }
.nav-drawer a.active { color: var(--primary-light); background: rgba(29,78,216,0.1); }
.nav-drawer a.cta { background: var(--primary); color: #fff; margin: var(--space-1) var(--space-4); border-radius: var(--radius); text-align: center; padding: var(--space-3) var(--space-6); transition: all var(--transition-fast); }
.nav-drawer a.cta:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: var(--shadow-primary); }
.drawer-user { margin-top: auto; padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border); display: none; }
.drawer-user.visible { display: block; }
.drawer-user-name { color: #fff; font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.drawer-logout { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: var(--space-2) var(--space-4); border-radius: var(--radius); cursor: pointer; font-size: var(--text-sm); width: 100%; transition: all var(--transition-fast); }
.drawer-logout:hover { color: var(--primary-light); border-color: var(--primary); background: rgba(29,78,216,0.05); }

/* ── 10. Hero ─────────────────────────────────────────────── */
.hero { text-align: center; padding: 120px var(--space-5) 100px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(220,38,38,0.06) 0%, transparent 60%), radial-gradient(ellipse at 70% 20%, rgba(59,130,246,0.04) 0%, transparent 50%); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: var(--space-5); line-height: 1.1; position: relative; text-wrap: balance; }
.hero h1 span { background: linear-gradient(135deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: clamp(1rem, 2vw, var(--text-xl)); color: var(--text-muted); max-width: 650px; margin: 0 auto var(--space-8); position: relative; }

/* ── 11. Buttons ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: 14px 28px; border-radius: var(--radius); font-size: var(--text-base); font-weight: 600; cursor: pointer; border: none; transition: all var(--transition-fast); text-decoration: none; position: relative; overflow: hidden; white-space: nowrap; user-select: none; }
.btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0); transition: background var(--transition-fast); }
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-primary); }
.btn-outline { background: none; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-light); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(249,115,22,0.3); text-decoration: none; }
.btn-ghost { background: none; border: 1px solid var(--border); color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text); border-color: var(--border-light); }
.btn-lg { padding: 18px 40px; font-size: var(--text-lg); }
.btn-sm { padding: 8px 16px; font-size: var(--text-sm); }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius); }
.btn:disabled, .btn.disabled { opacity: 0.5; pointer-events: none; cursor: not-allowed; }

/* ── 12. Service Cards ────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-6); }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); transition: all var(--transition); cursor: default; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0; transition: opacity var(--transition); }
.service-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }
.service-icon { font-size: 44px; margin-bottom: var(--space-4); display: block; transition: transform var(--transition); }
.service-card:hover .service-icon { transform: scale(1.1); }
.service-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.service-card p { color: var(--text-muted); font-size: var(--text-sm); margin: 0; }

/* ── 13. Pricing Cards ────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); align-items: start; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-10) var(--space-8); text-align: center; transition: all var(--transition); position: relative; }
.pricing-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow-primary); transform: scale(1.02); }
.pricing-card.featured::before { content: 'Most Popular'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--coral), var(--coral-light)); color: #fff; padding: 4px 20px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; box-shadow: 0 2px 12px rgba(249,115,22,0.3); }
.pricing-card h3 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.pricing-price { font-size: 56px; font-weight: 900; color: var(--primary); margin-bottom: var(--space-2); line-height: 1; }
.pricing-price span { font-size: 18px; font-weight: 400; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: var(--space-6) 0; text-align: left; }
.pricing-card ul li { padding: var(--space-2) 0; color: var(--text-muted); font-size: var(--text-sm); }
.pricing-card ul li::before { content: '✓'; color: var(--green); font-weight: bold; margin-right: var(--space-2); }

/* ── 14. Testimonials Carousel ────────────────────────────── */
.testimonials-carousel { display: flex; gap: var(--space-6); overflow-x: auto; padding: var(--space-5) 0 var(--space-8); scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.testimonials-carousel::-webkit-scrollbar { display: none; }
.testimonial-card { min-width: 340px; max-width: 420px; flex-shrink: 0; scroll-snap-align: start; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); transition: all var(--transition); }
.testimonial-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.testimonial-stars { color: var(--gold); font-size: 18px; margin-bottom: var(--space-3); letter-spacing: 2px; }
.testimonial-text { font-size: var(--text-sm); color: var(--text); margin-bottom: var(--space-4); font-style: italic; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.testimonial-name { font-weight: 600; font-size: var(--text-sm); }
.testimonial-company { color: var(--text-muted); font-size: var(--text-xs); }

/* ── 15. FAQ Accordion ────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--space-3); overflow: hidden; transition: border-color var(--transition-fast); }
.faq-item:hover { border-color: var(--border-light); }
.faq-item.open { border-color: var(--primary); }
.faq-question { width: 100%; background: var(--bg-card); border: none; color: var(--text); padding: var(--space-4) var(--space-5); text-align: left; font-size: var(--text-base); font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background var(--transition-fast); font-family: inherit; }
.faq-question:hover { background: var(--bg-elevated); }
.faq-question::after { content: '▾'; font-size: 14px; transition: transform var(--transition); color: var(--text-muted); }
.faq-item.open .faq-question::after { transform: rotate(180deg); color: var(--primary); }
.faq-answer { padding: 0 var(--space-5); max-height: 0; overflow: hidden; transition: max-height var(--transition-slow), padding var(--transition-slow); color: var(--text-muted); font-size: var(--text-sm); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 400px; padding: 0 var(--space-5) var(--space-4); }
.faq-categories { display: flex; gap: var(--space-2); justify-content: center; margin-bottom: var(--space-8); flex-wrap: wrap; }
.faq-cat-btn { padding: var(--space-2) var(--space-5); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-full); color: var(--text-muted); cursor: pointer; font-size: var(--text-sm); transition: all var(--transition-fast); font-family: inherit; }
.faq-cat-btn.active, .faq-cat-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── 16. Portfolio ────────────────────────────────────────── */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-6); }
.portfolio-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.portfolio-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.portfolio-image { height: 200px; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; font-size: 56px; color: var(--text-dim); transition: all var(--transition); }
.portfolio-card:hover .portfolio-image { background: rgba(29,78,216,0.05); }
.portfolio-card .body { padding: var(--space-5); }
.portfolio-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.portfolio-card p { color: var(--text-muted); font-size: var(--text-sm); margin-bottom: var(--space-3); }
.portfolio-tags, .tags { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.tag { background: var(--bg-elevated); color: var(--text-muted); padding: 3px 12px; border-radius: var(--radius-full); font-size: 11px; font-weight: 500; border: 1px solid var(--border); transition: all var(--transition-fast); }
.tag:hover { border-color: var(--primary); color: var(--primary-light); }

/* ── 17. How It Works Steps ───────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-8); text-align: center; }
.step-num { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; margin: 0 auto var(--space-4); box-shadow: var(--shadow-primary); position: relative; }
.step-num::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--primary); opacity: 0.3; animation: pulse-ring 2s infinite; }
@keyframes pulse-ring { 0%, 100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.15); opacity: 0; } }
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step p { color: var(--text-muted); font-size: var(--text-sm); }

/* ── 18. CTA Section ──────────────────────────────────────── */
.cta-section { text-align: center; padding: var(--space-20) var(--space-5); background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.cta-section h2 { font-size: var(--text-4xl); font-weight: 800; margin-bottom: var(--space-3); position: relative; }
.cta-section p { font-size: var(--text-lg); opacity: 0.9; margin-bottom: var(--space-6); position: relative; }
.cta-section .btn { background: #fff; color: var(--primary); font-weight: 700; }
.cta-section .btn:hover { background: #f0f0f0; text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* ── 19. Calculator ───────────────────────────────────────── */
.calculator { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); max-width: 500px; margin: 0 auto; }
.calculator .result { font-size: 32px; font-weight: 900; background: linear-gradient(135deg, var(--green), #22c55e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-top: var(--space-4); }
.calculator .result span { font-size: var(--text-sm); font-weight: 400; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }

/* ── 20. Forms & Inputs ───────────────────────────────────── */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 56px); padding: var(--space-10) var(--space-5); }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-10); width: 100%; max-width: 460px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: var(--text-3xl); font-weight: 800; margin-bottom: var(--space-2); text-align: center; }
.auth-card .sub { text-align: center; color: var(--text-muted); margin-bottom: var(--space-8); font-size: var(--text-sm); }
.form-group { margin-bottom: var(--space-5); }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: var(--space-1); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: var(--space-3) var(--space-4); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: var(--text-base); font-family: inherit; transition: all var(--transition-fast); }
.form-group input:hover, .form-group textarea:hover, .form-group select:hover { border-color: var(--border-light); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-group input.input-error, .form-group textarea.input-error { border-color: var(--primary-light); }
.form-error { font-size: var(--text-xs); color: var(--primary-light); margin-top: var(--space-1); }
.auth-card .btn { width: 100%; margin-top: var(--space-2); }
.auth-footer { text-align: center; margin-top: var(--space-5); font-size: var(--text-sm); color: var(--text-muted); }

/* Password strength */
.pw-strength { height: 4px; background: var(--border); border-radius: var(--radius-full); margin-top: var(--space-2); overflow: hidden; }
.pw-strength-bar { height: 100%; width: 0; border-radius: var(--radius-full); transition: width var(--transition), background var(--transition); }
.pw-strength-text { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-1); }

/* ── 21. Newsletter ───────────────────────────────────────── */
.newsletter-section { padding: 60px var(--space-5); text-align: center; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.newsletter-form { display: flex; gap: var(--space-2); max-width: 440px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: var(--space-3) var(--space-4); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: var(--text-sm); transition: all var(--transition-fast); }
.newsletter-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

/* ── 22. Blog ─────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--space-6); }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.blog-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.blog-card .body { padding: var(--space-6); }
.blog-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.blog-card h3 a { color: var(--text); text-decoration: none; transition: color var(--transition-fast); }
.blog-card h3 a:hover { color: var(--primary-light); }
.blog-card .excerpt { color: var(--text-muted); font-size: var(--text-sm); margin-bottom: var(--space-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .meta { font-size: var(--text-xs); color: var(--text-dim); }
.blog-post { max-width: 750px; margin: var(--space-10) auto; padding: 0 var(--space-5); }
.blog-post h1 { font-size: var(--text-4xl); margin-bottom: var(--space-4); text-wrap: balance; }
.blog-post .content { font-size: var(--text-base); line-height: 1.8; }
.blog-post .content h2, .blog-post .content h3 { margin-top: var(--space-8); margin-bottom: var(--space-3); }
.blog-post .content p { margin-bottom: var(--space-4); }

/* ── 23. Compare Table ────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; margin-top: var(--space-6); }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: center; font-size: var(--text-sm); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; font-weight: 500; }
.compare-table thead th { background: var(--bg-elevated); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); position: sticky; top: 0; }
.compare-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.compare-table .check { color: var(--green); font-size: 18px; font-weight: 700; }
.compare-table .dash { color: var(--text-dim); }

/* ── 24. Dashboard ────────────────────────────────────────── */
.dashboard { padding: var(--space-10) var(--space-5); }
.dashboard h2 { font-size: var(--text-3xl); font-weight: 800; margin-bottom: var(--space-2); }
.dashboard .welcome { color: var(--text-muted); margin-bottom: var(--space-10); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-10); }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; transition: all var(--transition); }
.stat-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.stat-card .num { font-size: 40px; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-card .label { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-1); }
.table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; margin-bottom: var(--space-8); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: var(--space-3) var(--space-4); text-align: left; font-size: var(--text-sm); }
th { background: var(--bg-elevated); color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
td { border-top: 1px solid var(--border); }
tr:hover td { background: var(--bg-hover); }
tr { transition: background var(--transition-fast); }

/* ── 25. Badges ───────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-pending { background: rgba(251,191,36,0.12); color: var(--gold); border: 1px solid rgba(251,191,36,0.2); }
.badge-active, .badge-in_progress { background: rgba(59,130,246,0.12); color: var(--blue); border: 1px solid rgba(59,130,246,0.2); }
.badge-complete, .badge-completed { background: rgba(74,222,128,0.12); color: var(--green); border: 1px solid rgba(74,222,128,0.2); }
.badge-cancelled { background: rgba(239,68,68,0.12); color: var(--primary-light); border: 1px solid rgba(239,68,68,0.2); }
.badge-owner { background: rgba(251,191,36,0.12); color: var(--gold); border: 1px solid rgba(251,191,36,0.2); }
.badge-staff { background: rgba(74,222,128,0.12); color: var(--green); border: 1px solid rgba(74,222,128,0.2); }
.badge-client { background: rgba(168,85,247,0.12); color: var(--purple); border: 1px solid rgba(168,85,247,0.2); }

/* ── 26. Tabs ─────────────────────────────────────────────── */
.tabs { display: flex; gap: var(--space-1); margin-bottom: var(--space-6); flex-wrap: wrap; }
.tab-btn { padding: var(--space-2) var(--space-5); background: none; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-muted); cursor: pointer; font-size: var(--text-sm); font-weight: 500; transition: all var(--transition-fast); font-family: inherit; }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab-btn:hover:not(.active) { background: var(--bg-elevated); color: var(--text); border-color: var(--border-light); }

/* ── 27. Kanban ───────────────────────────────────────────── */
.kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }
.kanban-col { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); min-height: 200px; }
.kanban-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: var(--space-3); }
.kanban-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); margin-bottom: var(--space-2); cursor: pointer; transition: all var(--transition-fast); }
.kanban-card:hover { border-color: var(--primary); transform: translateX(2px); }
.kanban-card .title { font-weight: 600; font-size: var(--text-sm); margin-bottom: 2px; }
.kanban-card .meta { font-size: 11px; color: var(--text-dim); }

/* ── 28. Modals ───────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: var(--z-modal); align-items: center; justify-content: center; padding: var(--space-5); }
.modal-overlay.open { display: flex; animation: fadeIn var(--transition); }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); max-width: 520px; width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-xl); animation: slideUp var(--transition); }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal h3 { font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.modal-close { float: right; background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; width: 36px; height: 36px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.modal-close:hover { background: var(--bg-elevated); color: var(--text); }

/* ── 29. Toasts ───────────────────────────────────────────── */
.toast-container { position: fixed; top: var(--space-5); right: var(--space-5); z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--space-2); pointer-events: none; }
.toast { padding: var(--space-3) var(--space-5); border-radius: var(--radius); font-size: var(--text-sm); font-weight: 500; animation: toastIn 0.3s ease; box-shadow: var(--shadow-lg); pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: var(--space-2); }
.toast-success { background: var(--green-dark); border: 1px solid var(--green); color: var(--green); }
.toast-error { background: var(--primary-dark); border: 1px solid var(--primary-light); color: var(--primary-light); }
.toast-info { background: var(--blue-dark); border: 1px solid var(--blue); color: var(--blue); }
@keyframes toastIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }

/* ── 30. Message/Alerts ───────────────────────────────────── */
.msg { padding: var(--space-3) var(--space-4); border-radius: var(--radius); margin-bottom: var(--space-4); font-size: var(--text-sm); font-weight: 500; }
.msg-success { background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.3); color: var(--green); }
.msg-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); color: var(--primary-light); }
.msg-info { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.3); color: var(--blue); }

/* ── 31. Footer ───────────────────────────────────────────── */
.footer { background: var(--bg-card); border-top: 2px solid var(--border); padding: var(--space-12) var(--space-5) var(--space-8); color: var(--text-muted); font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-8); margin-bottom: var(--space-8); }
.footer-col h4 { color: var(--text); font-size: var(--text-base); margin-bottom: var(--space-4); font-weight: 700; }
.footer-col a { display: block; color: var(--text-muted); padding: 3px 0; font-size: var(--text-sm); text-decoration: none; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--primary-light); text-decoration: none; }
.footer-bottom { text-align: center; padding-top: var(--space-6); border-top: 1px solid var(--border); }

/* ── 32. Scroll to Top ────────────────────────────────────── */
.scroll-top { position: fixed; bottom: var(--space-6); right: var(--space-6); z-index: 100; width: 48px; height: 48px; background: var(--primary); color: #fff; border: none; border-radius: 50%; font-size: 22px; cursor: pointer; opacity: 0; transform: translateY(20px); transition: all var(--transition); box-shadow: var(--shadow-primary); display: flex; align-items: center; justify-content: center; }
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(29,78,216,0.5); }
.scroll-top:active { transform: scale(0.9); }

/* ── 33. Sticky Mobile CTA ────────────────────────────────── */
.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: calc(var(--z-header) - 1); background: var(--bg-card); border-top: 2px solid var(--primary); padding: var(--space-3) var(--space-5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sticky-cta .btn { flex: 1; text-align: center; }

/* ── 34. Cookie Consent ───────────────────────────────────── */
.cookie-banner { position: fixed; bottom: var(--space-5); left: 50%; transform: translateX(-50%); z-index: var(--z-modal); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); display: none; box-shadow: var(--shadow-lg); width: calc(100vw - 40px); max-width: 420px; }
.cookie-banner.active { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; animation: slideUp var(--transition); }
.cookie-banner p { font-size: var(--text-sm); color: var(--text-muted); flex: 1; min-width: 180px; margin: 0; }

/* ── 35. Skeleton Loaders ─────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--border) 50%, var(--bg-elevated) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-text { height: 14px; margin-bottom: var(--space-2); border-radius: var(--radius-sm); }
.skeleton-title { height: 24px; width: 60%; margin-bottom: var(--space-4); }
.skeleton-card { height: 200px; border-radius: var(--radius); }

/* ── 36. Reveal Animations ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; } .reveal-delay-2 { transition-delay: 0.2s; } .reveal-delay-3 { transition-delay: 0.3s; }

/* ── 37. 404 Page ─────────────────────────────────────────── */
.error-page { text-align: center; padding: 120px var(--space-5); }
.error-page h1 { font-size: clamp(6rem, 15vw, 10rem); font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.error-page h2 { font-size: var(--text-3xl); margin: var(--space-4) 0; }
.error-page p { color: var(--text-muted); margin-bottom: var(--space-8); font-size: var(--text-lg); }

/* ── 38. Breadcrumbs ──────────────────────────────────────── */
.breadcrumbs { padding: var(--space-4) 0; font-size: var(--text-sm); color: var(--text-dim); }
.breadcrumbs a { color: var(--text-muted); transition: color var(--transition-fast); }
.breadcrumbs a:hover { color: var(--primary-light); text-decoration: none; }
.breadcrumbs span { color: var(--text); }

/* ── 39. Social Share ─────────────────────────────────────── */
.social-share { display: flex; gap: var(--space-2); margin-top: var(--space-4); align-items: center; }
.social-share button { padding: var(--space-2) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--text-muted); cursor: pointer; font-size: var(--text-sm); transition: all var(--transition-fast); font-family: inherit; }
.social-share button:hover { border-color: var(--primary); color: var(--primary-light); background: var(--bg-elevated); }

/* ── 40. Search ───────────────────────────────────────────── */
.search-bar { display: flex; gap: var(--space-2); max-width: 400px; margin-bottom: var(--space-6); }
.search-bar input { flex: 1; padding: var(--space-3) var(--space-4); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: var(--text-sm); transition: all var(--transition-fast); }
.search-bar input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }

/* ── 41. Glass Effect ─────────────────────────────────────── */
.glass { background: rgba(20,20,20,0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-lg); }

/* ── 42. Neon Glow Utilities ──────────────────────────────── */
.glow-red { box-shadow: 0 0 20px var(--primary-glow); }
.glow-red:hover { box-shadow: 0 0 40px rgba(29,78,216,0.4); }
.text-gradient { background: linear-gradient(135deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── 43. Focus Ring ───────────────────────────────────────── */
.focus-ring:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

/* ── 44. Progress Bar ─────────────────────────────────────── */
.progress { height: 8px; background: var(--border); border-radius: var(--radius-full); overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: var(--radius-full); transition: width var(--transition-slow); }

/* ── 45. Separator / Divider ──────────────────────────────── */
.divider { display: flex; align-items: center; gap: var(--space-4); color: var(--text-dim); font-size: var(--text-sm); }
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid var(--border); }

/* ── 46. Hover Card Lift ──────────────────────────────────── */
.card-lift { transition: transform var(--transition), box-shadow var(--transition); }
.card-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ── 47. Link Underline Animation ─────────────────────────── */
.link-underline { position: relative; text-decoration: none; }
.link-underline::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width var(--transition); }
.link-underline:hover::after { width: 100%; }

/* ── 48. Ripple Effect ────────────────────────────────────── */
.ripple { position: relative; overflow: hidden; }
.ripple::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%); opacity: 0; transition: opacity var(--transition-fast); }
.ripple:active::after { opacity: 1; transition: opacity 0s; }

/* ── 49. Magnetic Button ──────────────────────────────────── */
.magnetic { transition: transform var(--transition-fast); }
.magnetic:hover { transform: scale(1.05); }

/* ── 50. Pulsing Dot ──────────────────────────────────────── */
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── 51. Page Exit Guard ──────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ── 52. PWA Install Prompt ───────────────────────────────── */
.install-banner { display: none; background: var(--bg-card); border: 1px solid var(--primary); border-radius: var(--radius-lg); padding: var(--space-4); margin-bottom: var(--space-6); }
.install-banner.active { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.install-banner p { margin: 0; font-size: var(--text-sm); flex: 1; }

/* ── 53. Tooltip ──────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--bg-elevated); color: var(--text); padding: 4px 10px; border-radius: var(--radius-sm); font-size: var(--text-xs); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--transition-fast); border: 1px solid var(--border); }
[data-tooltip]:hover::after { opacity: 1; }

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

/* ── 55. High Contrast Mode ───────────────────────────────── */
@media (prefers-contrast: high) {
  :root { --border: #555; --text-muted: #999; }
  .badge { border-width: 2px; }
}

/* ── 56. Mobile Responsive ────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: var(--text-4xl); }
  .hero p { font-size: var(--text-base); }
  .section-title { font-size: var(--text-3xl); }
  .section { padding: var(--space-12) 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .portfolio-grid, .blog-grid, .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .header-brand { font-size: 18px; }
  .compare-table { font-size: 11px; }
  .compare-table th, .compare-table td { padding: 8px 6px; }
  .kanban { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .header { padding: 0 var(--space-4); }
  .auth-card { padding: var(--space-6); }
  .pricing-card.featured { transform: none; }
  /* Touch targets — Apple HIG minimum 44px */
  .header-brand { padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
  .theme-toggle { min-width: 44px; min-height: 44px; font-size: 18px; }
  .menu-btn { min-width: 44px; min-height: 44px; }
  .auth-footer a { padding: 8px 0; display: inline-block; min-height: 44px; line-height: 28px; }
  .btn-sm { min-height: 44px; padding: 10px 18px; }
  .nav-drawer a { min-height: 44px; display: flex; align-items: center; }
  .sticky-cta { display: flex; gap: 12px; justify-content: center; }
  .testimonial-card { min-width: 280px; }
  /* Safe area for notched phones */
  body { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .sticky-cta { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  /* Prevent zoom on input focus */
  input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select { font-size: 16px !important; }
}

/* ── 57. Print Styles ─────────────────────────────────────── */
@media print {
  .header, .nav-drawer, .nav-overlay, .scroll-top, .sticky-cta, .cookie-banner, .promo-banner, .btn, .toast-container { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .section, .hero, .cta-section, .footer { padding: 20px 0; background: none !important; }
  a { color: #000 !important; text-decoration: underline; }
  .pricing-card, .service-card, .portfolio-card, .blog-card { border: 1px solid #ccc !important; break-inside: avoid; }
  .container { max-width: 100%; }
}

/* ── 58. iOS PWA Safe Area ────────────────────────────────── */
@supports (padding: max(0px)) {
  .sticky-cta { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  body { padding-bottom: max(0px, env(safe-area-inset-bottom)); }
}

/* ── 59. Custom Cursor (desktop only) ─────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .btn, button, select, .kanban-card, .faq-question, .portfolio-card, .blog-card, .service-card, .pricing-card { cursor: pointer; }
  a[href]:not(.btn) { cursor: pointer; }
}

/* ── 60. Image Lazy Loading Transition ────────────────────── */
img[loading="lazy"] { opacity: 0; transition: opacity var(--transition-slow); }
img[loading="lazy"].loaded { opacity: 1; }

/* ── 61. Number Counter Animation ─────────────────────────── */
@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.count-up { animation: countUp 0.6s ease forwards; }

/* ── 62. Confetti Placeholder ─────────────────────────────── */
@keyframes confetti-fall { 0% { transform: translateY(-100%) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }

/* ── 63. Notification Badge ───────────────────────────────── */
.notification-badge { position: relative; }
.notification-badge::after { content: attr(data-count); position: absolute; top: -6px; right: -6px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ── 64. Empty State ──────────────────────────────────────── */
.empty-state { text-align: center; padding: var(--space-16) var(--space-5); }
.empty-state .icon { font-size: 64px; margin-bottom: var(--space-4); opacity: 0.3; }
.empty-state h3 { font-size: var(--text-xl); color: var(--text-muted); margin-bottom: var(--space-2); }
.empty-state p { color: var(--text-dim); font-size: var(--text-sm); }

/* ── 65. Reading Progress Bar ─────────────────────────────── */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); z-index: calc(var(--z-header) + 10); width: 0; transition: width 0.1s linear; }

/* ═══════════════════════════════════════════════════════════════
   66-120 Design Improvements
   ═══════════════════════════════════════════════════════════════ */

/* Animated Hamburger → X */
.menu-btn { transition: transform 0.25s; }
.menu-btn.open { transform: rotate(90deg); }

/* Staggered Reveal Delays */
.reveal-delay-1 { transition-delay: 0.1s; } .reveal-delay-2 { transition-delay: 0.2s; } .reveal-delay-3 { transition-delay: 0.3s; }

/* Hero Floating Particles */
.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle { position: absolute; width: 4px; height: 4px; background: var(--primary); border-radius: 50%; opacity: 0.12; animation: float-up 8s infinite; }
.particle:nth-child(odd) { background: var(--coral); animation-duration: 12s; }
@keyframes float-up { 0% { transform: translateY(100vh) scale(0); opacity: 0; } 10% { opacity: 0.12; } 90% { opacity: 0.12; } 100% { transform: translateY(-10vh) scale(1.5); opacity: 0; } }

/* Gradient Section Divider */
.section-divider { height: 4px; background: linear-gradient(90deg, transparent, var(--primary), var(--coral), transparent); border: none; margin: 0; }

/* Background Grid Pattern */
.bg-grid { background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 60px 60px; }

/* Custom Checkbox/Radio */
input[type="checkbox"].custom, input[type="radio"].custom { appearance: none; width: 20px; height: 20px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; transition: all var(--transition-fast); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
input[type="checkbox"].custom:checked { background: var(--primary); border-color: var(--primary); }
input[type="checkbox"].custom:checked::after { content: '✓'; color: #fff; font-size: 14px; font-weight: 700; }
input[type="radio"].custom { border-radius: 50%; }
input[type="radio"].custom:checked { border-color: var(--primary); }
input[type="radio"].custom:checked::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }

/* Toggle Switch */
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 26px; cursor: pointer; transition: 0.25s; }
.toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.25s; }
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* Floating Label Input */
.floating-label { position: relative; }
.floating-label input { padding-top: 20px; padding-bottom: 8px; }
.floating-label label { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); font-size: var(--text-sm); color: var(--text-dim); transition: all var(--transition-fast); pointer-events: none; }
.floating-label input:focus + label, .floating-label input:not(:placeholder-shown) + label { top: 8px; transform: translateY(0); font-size: 11px; color: var(--primary-light); }

/* Input with Icon */
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 16px; pointer-events: none; }
.input-icon input { padding-left: 40px; }

/* Password Visibility Toggle */
.pw-field { position: relative; }
.pw-field input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 16px; padding: 4px; }

/* Styled Select */
select.styled { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* Validation States */
.input-valid { border-color: var(--green) !important; }
.input-invalid { border-color: #ef4444 !important; }
.validation-msg { font-size: var(--text-xs); margin-top: 4px; }
.validation-msg.error { color: #ef4444; }
.validation-msg.success { color: var(--green); }

/* Autofill Override */
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 30px var(--bg) inset !important; -webkit-text-fill-color: var(--text) !important; transition: background-color 5000s ease-in-out 0s; }

/* KBD */
kbd { display: inline-block; padding: 2px 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 1px 0 var(--border); line-height: 1.4; }

/* Mark */
mark { background: rgba(249,115,22,0.2); color: var(--coral); padding: 1px 4px; border-radius: 2px; }

/* Striped Table */
.table-striped tbody tr:nth-child(even) { background: rgba(255,255,255,0.015); }

/* Feature List */
.feature-list { list-style: none; }
.feature-list li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-2) 0; }

/* Process Flow Arrows */
.process-flow { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; justify-content: center; }
.process-arrow { color: var(--primary-light); font-size: 24px; }

/* Testimonial Quote */
.testimonial-card { position: relative; }
.testimonial-card::before { content: '\201C'; position: absolute; top: 8px; left: 16px; font-size: 60px; color: var(--primary); opacity: 0.08; font-family: Georgia, serif; line-height: 1; }

/* Image Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 600; display: none; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }

/* Video Container */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-lg); }
.video-container iframe, .video-container video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Aspect Ratios */
.aspect-1x1 { aspect-ratio: 1/1; } .aspect-4x3 { aspect-ratio: 4/3; } .aspect-16x9 { aspect-ratio: 16/9; }

/* Skip Link */
.skip-link { position: absolute; top: -100px; left: 16px; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: var(--radius); z-index: 9999; font-weight: 600; }
.skip-link:focus { top: 16px; }

/* Link Variants */
.link-arrow::after { content: ' →'; transition: transform var(--transition-fast); display: inline-block; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-external::after { content: ' ↗'; font-size: 0.7em; }

/* Truncate */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Status Dot */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-online { background: var(--green); } .status-offline { background: var(--text-dim); } .status-busy { background: var(--coral); }

/* Button Loading */
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid transparent; border-top-color: currentColor; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Page Transition */
.page-transition { animation: pageIn 0.3s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Gradient Border Card */
.card-gradient-border { position: relative; background: var(--bg-card); border-radius: var(--radius-lg); }
.card-gradient-border::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(135deg, var(--primary), var(--coral)); z-index: -1; opacity: 0; transition: opacity 0.25s; }
.card-gradient-border:hover::before { opacity: 1; }

/* Backdrop Blur Header */
@supports (backdrop-filter: blur(12px)) {
  .header { background: rgba(20,20,20,0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  [data-theme="light"] .header { background: rgba(255,255,255,0.8); }
}

/* Utilities */
.w-full { width: 100%; } .min-h-screen { min-height: 100vh; }
.relative { position: relative; } .absolute { position: absolute; } .fixed { position: fixed; }
.hidden { display: none; } .block { display: block; } .inline-block { display: inline-block; } .inline-flex { display: inline-flex; }
.overflow-hidden { overflow: hidden; } .object-cover { object-fit: cover; }
.text-left { text-align: left; } .text-center { text-align: center; } .text-right { text-align: right; }
.font-bold { font-weight: 700; } .uppercase { text-transform: uppercase; } .no-underline { text-decoration: none; }
.m-0 { margin: 0; } .mt-4 { margin-top: var(--space-4); } .mt-8 { margin-top: var(--space-8); } .mb-4 { margin-bottom: var(--space-4); } .mb-8 { margin-bottom: var(--space-8); }
.p-4 { padding: var(--space-4); } .p-6 { padding: var(--space-6); } .px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.rounded { border-radius: var(--radius); } .rounded-lg { border-radius: var(--radius-lg); } .rounded-full { border-radius: var(--radius-full); }
.shadow { box-shadow: var(--shadow); } .shadow-lg { box-shadow: var(--shadow-lg); }
.border { border: 1px solid var(--border); } .border-b { border-bottom: 1px solid var(--border); }
.opacity-50 { opacity: 0.5; } .opacity-75 { opacity: 0.75; }
.pointer-events-none { pointer-events: none; }
.flex-1 { flex: 1; } .flex-shrink-0 { flex-shrink: 0; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }

/* ═══════════════════════════════════════════════════════════════
   Cycle 2 — 100 More Design Refinements
   ═══════════════════════════════════════════════════════════════ */

/* Scroll-driven header shrink */ .header { transition: height 0.3s, padding 0.3s, box-shadow 0.3s; } .header.compact { height: 48px; }
/* Card press */ .service-card:active, .pricing-card:active, .portfolio-card:active, .blog-card:active { transform: scale(0.98) !important; }
/* Better links */ a:not(.btn):not(.header-brand):not(.nav-drawer a) { text-decoration: underline; text-decoration-color: rgba(37,99,235,0.3); text-underline-offset: 3px; }
a:not(.btn):not(.header-brand):not(.nav-drawer a):hover { text-decoration-color: var(--primary-light); }
/* Input shake */ @keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } } .input-shake { animation: shake 0.3s ease; }
/* Pulse highlight */ @keyframes pulse-highlight { 0% { box-shadow: 0 0 0 0 var(--primary-glow); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } } .pulse-highlight { animation: pulse-highlight 1.5s ease; }
/* Slide in */ @keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } .slide-in { animation: slideInRight 0.3s ease; }
/* Fade out */ @keyframes fadeOut { to { opacity: 0; } } .fade-out { animation: fadeOut 0.3s ease forwards; }
/* Number badge */ .num-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; }
/* Progress steps */ .steps-indicator { display: flex; justify-content: space-between; position: relative; margin-bottom: 32px; }
.steps-indicator::before { content: ''; position: absolute; top: 16px; left: 0; right: 0; height: 2px; background: var(--border); z-index: 0; }
.step-indicator { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.step-indicator .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; transition: all 0.3s; }
.step-indicator.active .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.step-indicator.completed .dot { background: var(--green); border-color: var(--green); color: #fff; }
.step-indicator .label { font-size: 11px; color: var(--text-muted); margin-top: 6px; text-align: center; }
/* Drop zone */ .drop-zone { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 40px; text-align: center; cursor: pointer; transition: all 0.2s; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--primary); background: rgba(37,99,235,0.03); }
/* Copy feedback */ .copied-feedback { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--green-dark); color: var(--green); border: 1px solid var(--green); padding: 12px 24px; border-radius: var(--radius); font-weight: 600; z-index: 9999; animation: fadeOut 1.5s 0.5s forwards; pointer-events: none; }
/* Fancy HR */ hr.fancy { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 40px 0; }
/* Image zoom */ .img-zoom { overflow: hidden; } .img-zoom img { transition: transform 0.4s; } .img-zoom:hover img { transform: scale(1.05); }
/* Sticky sidebar */ .sticky-sidebar { position: sticky; top: 72px; }
/* Screen reader only */ .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
/* Tabular nums */ .tabular-nums { font-variant-numeric: tabular-nums; }
/* Content visibility perf */ .section { content-visibility: auto; contain-intrinsic-size: 500px; }
/* Print URLs */ @media print { a[href]::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #666; } }

/* ═══════════════════════════════════════════════════════════════
   Cycle 3 — Dashboard & Admin Polish
   ═══════════════════════════════════════════════════════════════ */

/* Dashboard welcome card */
.welcome-card { background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(249,115,22,0.05)); border: 1px solid var(--primary); border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-6); }
/* Stat card hover with icon */
.stat-card .icon { font-size: 24px; margin-bottom: var(--space-2); }
/* Project status progress bar */
.status-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: var(--space-1); }
.status-bar-fill { height: 100%; border-radius: 2px; transition: width 0.5s; }
.status-bar-fill.pending { background: var(--gold); } .status-bar-fill.active { background: var(--primary); } .status-bar-fill.complete { background: var(--green); }
/* Quick action buttons row */
.quick-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-6); }
/* Inline stat */
.inline-stat { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) 0; font-size: var(--text-sm); }
.inline-stat .value { font-weight: 700; color: var(--primary-light); }
/* Compact table */
.table-compact th, .table-compact td { padding: 8px 12px; font-size: var(--text-sm); }
/* Filter bar */
.filter-bar { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; margin-bottom: var(--space-4); padding: var(--space-3); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.filter-bar select, .filter-bar input { padding: 6px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: var(--text-sm); }
/* Dashboard sidebar mini */
.dash-sidebar { width: 200px; flex-shrink: 0; }
.dash-content { flex: 1; min-width: 0; }
/* Color dot for status */
.color-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.color-dot.blue { background: var(--primary); } .color-dot.green { background: var(--green); } .color-dot.gold { background: var(--gold); } .color-dot.coral { background: var(--coral); }
/* Data highlight number */
.data-highlight { font-size: var(--text-2xl); font-weight: 900; line-height: 1; }
/* Mobile nav bottom bar */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-card); border-top: 1px solid var(--border); z-index: 199; padding: var(--space-2) var(--space-4); justify-content: space-around; }
.mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-muted); text-decoration: none; font-size: 10px; padding: 4px; }
.mobile-nav a.active { color: var(--primary-light); }
.mobile-nav a .icon { font-size: 20px; }
@media (max-width: 768px) { .mobile-nav { display: flex; } }
