/* ============================================================
   AutomationFunda — Shared Design System
   Modern Minimal · Light · Indigo accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Palette */
  --bg:          #F8FAFC;
  --surface:     #FFFFFF;
  --fg:          #0F172A;
  --muted:       #64748B;
  --border:      #E2E8F0;
  --accent:      #4F46E5;
  --accent-dark: #4338CA;
  --accent-bg:   #EEF2FF;
  --success:     #10B981;
  --warning:     #F59E0B;
  --danger:      #EF4444;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 68px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadow */
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-float: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-inner: inset 0 2px 4px 0 rgba(0,0,0,0.02);
  --shadow-btn: 0 1px 2px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,0.15);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- Accessibility ---- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: var(--space-md);
  background: var(--accent); color: #fff;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; z-index: 200;
  transition: top .15s;
}
.skip-link:focus { top: var(--space-sm); }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: var(--space-lg);
}
.nav-logo {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.nav-logo .dot { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--fg); background: var(--bg); }
.nav-links a[aria-current="page"] { color: var(--accent); background: var(--accent-bg); }
.nav-cta { display: flex; align-items: center; gap: var(--space-sm); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  padding: 4px; border-radius: var(--radius-sm);
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--fg); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-md) var(--space-lg);
  gap: 2px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px; font-weight: 500; color: var(--muted);
  padding: 10px 12px; border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-mobile a:hover { color: var(--fg); background: var(--bg); }
.nav-mobile a[aria-current="page"] { color: var(--accent); background: var(--accent-bg); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: scale(.96); }
.btn-primary { 
  background: var(--accent); color: #fff; border-color: var(--accent-dark);
  box-shadow: var(--shadow-btn), 0 4px 12px rgba(79,70,229,0.25);
}
.btn-primary:hover { 
  background: var(--accent-dark); 
  box-shadow: var(--shadow-btn), 0 6px 16px rgba(79,70,229,0.3);
  transform: translateY(-2px);
}
.btn-outline { background: var(--surface); color: var(--fg); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-outline:hover { background: var(--surface); border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: rgba(79,70,229,0.08); color: var(--accent); }
.btn-lg { font-size: 15px; padding: 12px 28px; border-radius: var(--radius-md); }
.btn-sm { font-size: 13px; padding: 8px 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ---- Badge ---- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px; border: 1px solid transparent;
}
.badge-accent { background: var(--accent-bg); color: var(--accent); border-color: #C7D2FE; }
.badge-green  { background: #ECFDF5; color: #059669; border-color: #A7F3D0; }
.badge-gray   { background: var(--bg); color: var(--muted); border-color: var(--border); }

/* ---- Section layout ---- */
.section { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-2xl) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-surface { background: var(--surface); border-top: 1px solid var(--border); }
.section-header {
  text-align: center; max-width: 600px;
  margin: 0 auto var(--space-2xl);
}
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-sm);
}
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.15; color: var(--fg);
  margin-bottom: var(--space-md);
}
.section-subtitle { font-size: 17px; color: var(--muted); line-height: 1.65; }

/* ---- Cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-xl);
  transition: box-shadow .3s, border-color .3s, transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-float); border-color: var(--accent); transform: translateY(-4px); }
.card-sm { padding: var(--space-lg); border-radius: var(--radius-md); }

/* ---- Service icon ---- */
.service-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--accent-bg); display: flex; align-items: center;
  justify-content: center; margin-bottom: var(--space-md); flex-shrink: 0;
}
.service-icon svg {
  width: 24px; height: 24px; color: var(--accent);
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Grid utilities ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }

/* ---- Hero ---- */
.hero { padding: var(--space-3xl) 0 var(--space-2xl); text-align: center; }
.hero-badge { margin-bottom: var(--space-lg); }
.hero-title {
  font-size: clamp(36px, 6vw, 68px); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1.08; color: var(--fg);
  margin-bottom: var(--space-lg); max-width: 820px;
  margin-left: auto; margin-right: auto;
}
.hero-title .highlight { color: var(--accent); }
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px); color: var(--muted);
  line-height: 1.7; max-width: 560px;
  margin: 0 auto var(--space-xl);
}
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-md); flex-wrap: wrap;
}
.hero-image-wrap {
  max-width: 800px; margin: var(--space-xl) auto 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px -16px rgba(79,70,229,0.15), 0 8px 32px -8px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  position: relative;
  background: var(--surface);
}
.hero-3d-img {
  width: 100%; height: auto; display: block;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* ---- Stats row ---- */
.stats-row {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-2xl); flex-wrap: wrap;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: var(--space-2xl) 0;
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 32px; font-weight: 800; letter-spacing: -0.04em;
  color: var(--fg); line-height: 1;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---- Filter bar (shared: projects + templates) ---- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-xl); }
.filter-btn {
  font-size: 13px; font-weight: 600; padding: 7px 16px;
  border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--muted);
  cursor: pointer; transition: all .15s;
}
.filter-btn:hover, .filter-btn.active { background: var(--accent-bg); color: var(--accent); border-color: #C7D2FE; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--accent); color: #fff;
  text-align: center; padding: var(--space-3xl) 0;
  border-radius: var(--radius-xl); margin: var(--space-2xl) 0;
}
.cta-band .section-title { color: #fff; }
.cta-band .section-subtitle { color: rgba(255,255,255,.8); }
.cta-band .btn-primary { background: #fff; color: var(--accent); border-color: #fff; }
.cta-band .btn-primary:hover { background: #E0E7FF; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); }
.cta-band .btn-outline:hover { background: rgba(0, 0, 0, 0.15); }
.cta-band .section-label { color: rgba(255,255,255,.65); }

/* ---- Footer ---- */
.footer {
  background: #0B1120; color: rgba(255,255,255,.75);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-2xl); margin-bottom: var(--space-2xl);
}
.footer-brand .nav-logo { color: #fff; margin-bottom: var(--space-md); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.65; max-width: 280px; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: var(--space-md);
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,.6);
  padding: 4px 0; transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: var(--space-lg);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: var(--space-sm);
}

/* ---- Form elements ---- */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 14px; font-weight: 600; color: var(--fg); }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 10px 14px; font-size: 15px;
  color: var(--fg); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 13px; color: var(--muted); }

/* ---- Tag / pill ---- */
.tag {
  display: inline-flex; font-size: 12px; font-weight: 500;
  padding: 3px 9px; border-radius: 999px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--border);
}

/* ---- Divider ---- */
.divider { border: none; border-top: 1px solid var(--border); margin: var(--space-xl) 0; }

/* ---- Check list ---- */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--muted);
}
.check-list li::before {
  content: '';
  width: 18px; height: 18px; min-width: 18px;
  border-radius: 50%;
  background: var(--accent-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8l3 3 6-6' stroke='%234F46E5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px;
  border: 1px solid #C7D2FE;
  margin-top: 2px; flex-shrink: 0;
}

/* ---- Pricing card ---- */
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  position: relative;
  transition: box-shadow .3s, border-color .3s, transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
}
.pricing-card:hover { box-shadow: var(--shadow-float); transform: translateY(-4px); }
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.pricing-card.featured:hover { box-shadow: 0 0 0 1px var(--accent), var(--shadow-float); transform: translateY(-6px); }
.pricing-popular {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.pricing-name { font-size: 16px; font-weight: 700; color: var(--fg); margin-bottom: var(--space-sm); }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.pricing-price .amount {
  font-size: 44px; font-weight: 900; letter-spacing: -0.04em;
  color: var(--fg); line-height: 1;
}
.pricing-price .currency {
  font-size: 20px; font-weight: 700; color: var(--muted);
  align-self: flex-start; margin-top: 8px;
}
.pricing-period { font-size: 14px; color: var(--muted); margin-bottom: var(--space-lg); }
.pricing-desc {
  font-size: 14px; color: var(--muted); line-height: 1.55;
  margin-bottom: var(--space-xl); padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

/* ---- Process steps ---- */
.process-step { display: flex; gap: var(--space-lg); align-items: flex-start; }
.step-number {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 50%; background: var(--accent-bg);
  border: 1.5px solid #C7D2FE; display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 800; color: var(--accent);
}
.step-content h3 { font-size: 17px; font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.step-content p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---- Tool badge ---- */
.tool-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; padding: 6px 12px;
  border-radius: var(--radius-sm); background: var(--surface);
  border: 1px solid var(--border); color: var(--fg);
}

/* ---- Page hero (inner pages) ---- */
.page-hero { padding: var(--space-2xl) 0 var(--space-xl); border-bottom: 1px solid var(--border); margin-bottom: var(--space-3xl); }
.page-hero-title {
  font-size: clamp(32px, 5vw, 54px); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1.1; color: var(--fg); margin-bottom: var(--space-md);
}
.page-hero-sub { font-size: 17px; color: var(--muted); max-width: 520px; line-height: 1.65; }

/* ---- Project card ---- */
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.project-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--accent-bg) 0%, #E0E7FF 100%); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .05em; text-transform: uppercase; }
.project-body { padding: var(--space-lg); }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-sm); }
.project-title { font-size: 17px; font-weight: 700; color: var(--fg); margin-bottom: 6px; }
.project-desc { font-size: 14px; color: var(--muted); line-height: 1.55; }
.project-footer { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--border); }
.project-outcome { font-size: 13px; font-weight: 600; color: var(--success); }

/* ---- Template card ---- */
.template-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; cursor: pointer; }
.template-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--accent); }
.template-thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, #F0F4FF 0%, #E8EDF8 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.template-body { padding: var(--space-md) var(--space-lg); }
.template-name { font-size: 16px; font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.template-cat { font-size: 13px; color: var(--muted); }
.template-footer { display: flex; align-items: center; justify-content: space-between; padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--border); }
.template-price { font-size: 15px; font-weight: 700; color: var(--fg); }
.template-price.free { color: var(--success); }

/* ---- Testimonial ---- */
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-xl); }
.testimonial-text { font-size: 16px; color: var(--fg); line-height: 1.7; margin-bottom: var(--space-md); }
.testimonial-text::before { content: '"'; color: var(--accent); font-size: 28px; font-weight: 900; line-height: 0; vertical-align: -6px; margin-right: 3px; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-sm); }
.testimonial-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--accent); }
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--fg); }
.testimonial-role { font-size: 13px; color: var(--muted); }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md); padding: var(--space-lg) 0; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--fg);
  user-select: none; background: none; border: none; width: 100%; text-align: left;
}
.faq-q svg { flex-shrink: 0; transition: transform .2s; color: var(--muted); }
.faq-a { font-size: 15px; color: var(--muted); line-height: 1.65; padding-bottom: var(--space-lg); display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }

/* ---- Misc utilities ---- */
.text-center { text-align: center; }
.text-muted   { color: var(--muted); }
.font-mono    { font-family: var(--font-mono); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.wrap   { flex-wrap: wrap; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
  .stats-row { gap: var(--space-xl); }
  .hero-title { font-size: clamp(32px, 9vw, 52px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-band { border-radius: var(--radius-lg); }
  .section { padding: var(--space-2xl) 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .card { padding: var(--space-lg); }
  .pricing-card { padding: var(--space-lg) var(--space-lg) var(--space-xl); }
}

/* ============================================================
   Pricing Tabs
   ============================================================ */
.pricing-tab-bar {
  display: flex; gap: 4px; flex-wrap: wrap; justify-content: center;
  padding: 6px; background: #E2E8F0; border-radius: 12px;
  box-shadow: var(--shadow-inner);
  margin: var(--space-xl) auto var(--space-2xl);
  width: fit-content; max-width: 100%;
}
.pricing-tab {
  font-size: 14px; font-weight: 500; padding: 8px 20px;
  border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--muted);
  cursor: pointer; transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap; position: relative;
}
.pricing-tab:hover { color: var(--fg); }
.pricing-tab.active { 
  background: var(--surface); color: var(--fg); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06); 
}
.pricing-section.hidden { display: none; }

/* ============================================================
   Scroll Reveal
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.revealed { opacity: 1; transform: none; }

/* ============================================================
   Gemini Chat Widget
   ============================================================ */
.chat-widget-btn {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6366F1);
  color: #fff; border: none;
  cursor: pointer; box-shadow: 0 8px 28px rgba(79,70,229,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  animation: chatBtnIn .5s cubic-bezier(.34,1.56,.64,1) .4s both;
}
.chat-widget-btn::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--accent); opacity: .6;
  animation: chatPing 2.6s cubic-bezier(.4,0,.6,1) infinite;
}
.chat-panel.open ~ .chat-widget-btn::after,
.chat-widget-btn.active::after { animation: none; opacity: 0; }
@keyframes chatBtnIn { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
@keyframes chatPing {
  0% { transform: scale(1); opacity: .6; }
  70%,100% { transform: scale(1.7); opacity: 0; }
}
.chat-widget-btn:hover { transform: scale(1.1) rotate(4deg); box-shadow: 0 12px 36px rgba(79,70,229,.6); }
.chat-widget-btn:active { transform: scale(1.02); }
.chat-widget-btn svg { width: 24px; height: 24px; position: relative; z-index: 1; }
/* unread notification dot */
.chat-widget-btn .chat-notif {
  position: absolute; top: 2px; right: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #EF4444; color: #fff; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg); z-index: 2;
}

/* Backdrop behind the chat sidebar/sheet */
.chat-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.4);
  backdrop-filter: blur(2px); z-index: 998;
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.chat-backdrop.open { opacity: 1; pointer-events: all; }

/* Desktop: right-side sidebar (industry standard) */
.chat-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  height: 100vh; max-height: 100vh;
  background: var(--bg); border-left: 1px solid var(--border);
  box-shadow: -8px 0 40px rgba(15,23,42,.18);
  display: flex; flex-direction: column; z-index: 999;
  transform: translateX(100%);
  pointer-events: none; transition: transform .32s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.chat-panel.open { transform: none; pointer-events: all; }
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--accent), #6366F1);
  flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
  display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 13px; font-weight: 800;
  border: 1px solid rgba(255,255,255,.3);
}
.chat-title { font-size: 14px; font-weight: 700; color: #fff; }
.chat-online { font-size: 12px; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 5px; }
.chat-online::before {
  content:''; width:7px; height:7px; border-radius:50%; background:#4ADE80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.7);
  animation: onlinePulse 2s infinite;
}
@keyframes onlinePulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.7); }
  70% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.chat-close {
  background: rgba(255,255,255,.15); border: none; cursor: pointer; color: #fff;
  padding: 6px; border-radius: var(--radius-sm); display: flex;
  transition: background .15s, transform .15s;
}
.chat-close:hover { background: rgba(255,255,255,.3); transform: rotate(90deg); }
.chat-messages {
  flex: 1 1 auto; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 200px; scroll-behavior: smooth;
  background:
    radial-gradient(circle at 100% 0%, rgba(79,70,229,.04), transparent 40%);
}
.chat-msg {
  max-width: 88%; font-size: 14px; line-height: 1.55;
  padding: 10px 14px; border-radius: 16px; word-break: break-word;
  animation: msgIn .3s cubic-bezier(.34,1.4,.5,1) both;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.chat-msg.bot { background: var(--surface); color: var(--fg); border-bottom-left-radius: 4px; align-self: flex-start; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.chat-msg.user { background: linear-gradient(135deg, var(--accent), #6366F1); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; box-shadow: 0 2px 8px rgba(79,70,229,.25); }
.chat-msg.typing { color: var(--muted); display: flex; gap: 4px; align-items: center; }
.chat-msg.typing .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.chat-msg.typing .dot:nth-child(2) { animation-delay: .2s; }
.chat-msg.typing .dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.chat-key-prompt { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-key-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.chat-key-row { display: flex; gap: 8px; }
.chat-key-input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 13px;
  background: var(--bg); color: var(--fg);
}
.chat-key-save {
  padding: 8px 14px; background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.chat-key-hint { font-size: 11px; color: var(--muted); margin-top: 6px; }
.chat-input-row {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface); flex-shrink: 0;
}
.chat-input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); font-size: 14px;
  background: var(--surface); color: var(--fg);
  resize: none; max-height: 80px; font-family: var(--font);
}
.chat-input:focus { outline: none; border-color: var(--accent); }
.chat-send {
  width: 38px; height: 38px; min-width: 38px;
  background: var(--accent); color: #fff; border: none;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; align-self: flex-end;
}
.chat-send svg { width: 18px; height: 18px; }
.chat-send:hover { background: #4338CA; }
.chat-send:disabled { opacity: .5; cursor: not-allowed; }
/* Mobile: bottom sheet (industry standard) */
@media (max-width: 640px) {
  .chat-panel {
    top: auto; left: 0; right: 0; bottom: 0;
    width: 100%; height: 88vh; max-height: 88vh;
    border-left: none; border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(15,23,42,.25);
    transform: translateY(100%);
  }
  .chat-panel.open { transform: none; }
  .chat-header { border-radius: 20px 20px 0 0; }
  .chat-widget-btn { bottom: 16px; right: 16px; }
}
/* Drag-handle affordance on the mobile sheet */
.chat-sheet-handle { display: none; }
@media (max-width: 640px) {
  .chat-sheet-handle {
    display: block; width: 40px; height: 4px; border-radius: 999px;
    background: rgba(255,255,255,.5); margin: 6px auto 0;
    position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  }
}

/* ============================================================
   Login Page
   ============================================================ */
.login-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; background: var(--bg); padding: var(--space-xl);
}
.login-card {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-2xl);
}
.login-logo { text-align: center; margin-bottom: var(--space-xl); }
.login-logo-text { font-size: 28px; font-weight: 900; letter-spacing: -0.04em; color: var(--fg); }
.login-heading { font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.login-sub { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: var(--space-xl); }
.login-error {
  display: none; color: #B91C1C; font-size: 14px;
  background: #FEF2F2; border: 1px solid #FCA5A5;
  border-radius: var(--radius-sm); padding: 10px var(--space-md);
  margin-bottom: var(--space-md); text-align: center;
}

/* ============================================================
   Admin Panel
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; min-width: 240px; background: var(--surface);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
}
.admin-brand {
  padding: var(--space-lg); border-bottom: 1px solid var(--border);
  font-size: 20px; font-weight: 900; letter-spacing: -0.03em;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-nav { padding: var(--space-md) 0; flex: 1; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px var(--space-lg); font-size: 14px; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: all .15s;
  border: none; border-left: 2px solid transparent;
  background: none; width: 100%; text-align: left;
}
.admin-nav-item:hover { color: var(--fg); background: rgba(79,70,229,.05); }
.admin-nav-item.active { color: var(--accent); background: var(--accent-bg); border-left-color: var(--accent); }
.admin-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-main { flex: 1; overflow: auto; background: var(--bg); }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-lg) var(--space-2xl);
  border-bottom: 1px solid var(--border); background: var(--surface);
  position: sticky; top: 0; z-index: 10;
}
.admin-page-title { font-size: 18px; font-weight: 800; color: var(--fg); }
.admin-content { padding: var(--space-xl) var(--space-2xl); }
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }
.admin-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); padding: 12px 16px;
  text-align: left; border-bottom: 1px solid var(--border); background: var(--bg);
}
.admin-table td { font-size: 14px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--fg); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(79,70,229,.02); }
.admin-actions { display: flex; gap: 8px; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg);
  cursor: pointer; color: var(--muted); transition: all .15s;
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }
.btn-icon.danger:hover { border-color: var(--danger); color: var(--danger); }
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(15,23,42,.5);
  z-index: 900; align-items: center; justify-content: center; padding: var(--space-xl);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: var(--space-2xl);
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
}
.modal-title { font-size: 18px; font-weight: 800; margin-bottom: var(--space-xl); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: var(--space-xl); }
.empty-state { text-align: center; padding: var(--space-3xl) var(--space-xl); color: var(--muted); }
.empty-state-icon { font-size: 40px; margin-bottom: var(--space-md); }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-lg); }
.stat-card-value { font-size: 32px; font-weight: 900; color: var(--fg); letter-spacing: -0.03em; }
.stat-card-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; min-width: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .admin-nav { display: flex; overflow-x: auto; padding: 0; }
  .admin-nav-item { border-left: none; border-bottom: 2px solid transparent; white-space: nowrap; flex-shrink: 0; }
  .admin-nav-item.active { border-bottom-color: var(--accent); border-left-color: transparent; background: none; }
  .admin-content, .admin-topbar { padding: var(--space-md) var(--space-lg); }
}

/* ============================================================
   Hero Entrance Animations
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero-badge, .hero-title, .hero-subtitle, .hero-actions, .hero-social-proof {
  animation: fadeInUp .7s cubic-bezier(.4,0,.2,1) both;
}
.hero-badge   { animation-delay: .05s; }
.hero-title   { animation-delay: .15s; }
.hero-subtitle{ animation-delay: .25s; }
.hero-actions { animation-delay: .35s; }
.hero-social-proof { animation-delay: .45s; }

/* ============================================================
   Service Block Images
   ============================================================ */
.service-block-img {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}
.service-block-img img {
  width: 100%; height: auto;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform .4s ease;
}
.service-block-img img:hover {
  transform: scale(1.03);
}

/* ============================================================
   Project Thumb — Image Mode
   ============================================================ */
.project-thumb img,
.template-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.project-thumb.has-img {
  padding: 0;
  font-size: 0;
  line-height: 0;
}

/* ============================================================
   Page Hero — Subtle Gradient Accent
   ============================================================ */
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(79,70,229,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.hero { position: relative; overflow: hidden; }

.template-3d-img { 
  width: 100%; height: 100%; object-fit: contain; 
  transform: scale(1.1); transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.template-card:hover .template-3d-img { transform: scale(1.15) translateY(-2px); }
/* ============================================================
   ✨ Animated Objects & Interactivity Layer (site-wide)
   Injected decorative elements + interactive enhancements
   ============================================================ */

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), #818CF8, #22D3EE);
  z-index: 2000; transition: width .1s linear;
  box-shadow: 0 0 10px rgba(79,70,229,.5);
}

/* ---- Floating background orbs (decorative, injected into body) ---- */
.af-orbs {
  position: fixed; inset: 0; z-index: -2;
  overflow: hidden; pointer-events: none;
}
.af-orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .35;
  will-change: transform;
}
.af-orb.o1 { width: 380px; height: 380px; top: -80px; left: -60px;
  background: radial-gradient(circle, #818CF8, transparent 70%);
  animation: orbDrift1 22s ease-in-out infinite; }
.af-orb.o2 { width: 320px; height: 320px; top: 30%; right: -90px;
  background: radial-gradient(circle, #22D3EE, transparent 70%);
  animation: orbDrift2 26s ease-in-out infinite; }
.af-orb.o3 { width: 300px; height: 300px; bottom: -60px; left: 25%;
  background: radial-gradient(circle, #C084FC, transparent 70%);
  animation: orbDrift3 30s ease-in-out infinite; }
@keyframes orbDrift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes orbDrift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-50px, 60px) scale(1.1); }
}
@keyframes orbDrift3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.2); }
}

/* ---- Animated gradient on hero highlight ---- */
.hero-title .highlight {
  background: linear-gradient(90deg, var(--accent), #818CF8, #22D3EE, var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Hero floating orbs around the 3D image ---- */
.hero-orbit { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero-orbit .dot-orb {
  position: absolute; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.hero-orbit .dot-orb.a { width: 56px; height: 56px; top: 8%; left: -18px; animation: float 5s ease-in-out infinite; }
.hero-orbit .dot-orb.b { width: 48px; height: 48px; top: 60%; left: -24px; animation: float 6s ease-in-out infinite .8s; }
.hero-orbit .dot-orb.c { width: 52px; height: 52px; top: 14%; right: -20px; animation: float 5.5s ease-in-out infinite .4s; }
.hero-orbit .dot-orb.d { width: 44px; height: 44px; top: 66%; right: -16px; animation: float 6.5s ease-in-out infinite 1.2s; }
@media (max-width: 768px) { .hero-orbit { display: none; } }

/* ---- Pulse ring (used on badges / live indicators) ---- */
.pulse-dot { position: relative; }
.pulse-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: currentColor; opacity: .5;
  animation: pulseRing 2s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: .5; }
  80%,100% { transform: scale(2.2); opacity: 0; }
}

/* ---- Card cursor spotlight glow ---- */
.card, .pricing-card, .project-card, .template-card, .testimonial {
  position: relative;
}
.card::before, .pricing-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
              rgba(79,70,229,.10), transparent 60%);
  transition: opacity .3s; pointer-events: none; z-index: 0;
}
.card:hover::before, .pricing-card:hover::before { opacity: 1; }
.card > *, .pricing-card > * { position: relative; z-index: 1; }

/* ---- Service icon: animated lift on card hover ---- */
.card:hover .service-icon {
  transform: translateY(-2px) rotate(-4deg) scale(1.06);
  background: var(--accent);
}
.card:hover .service-icon svg { color: #fff; }
.service-icon { transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s; }

/* ---- Tool badge interactive shimmer ---- */
.tool-badge { transition: transform .2s, box-shadow .2s, border-color .2s; }
.tool-badge:hover {
  transform: translateY(-3px); border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(79,70,229,.18); color: var(--accent);
}

/* ---- Button ripple ---- */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255,255,255,.5); pointer-events: none;
  animation: rippleExpand .6s ease-out;
}
.btn-outline .ripple, .btn-ghost .ripple { background: rgba(79,70,229,.25); }
@keyframes rippleExpand { to { transform: scale(4); opacity: 0; } }

/* ---- Stat item count-up emphasis ---- */
.stat-item { transition: transform .3s; }
.stat-item:hover { transform: translateY(-4px); }
.stat-item:hover .stat-value { color: var(--accent); }
.stat-value { transition: color .3s; }

/* ---- Back-to-top button ---- */
.to-top {
  position: fixed; bottom: 24px; left: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--accent); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 990;
  opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: all; }
.to-top:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 480px) { .to-top { bottom: 80px; left: 16px; width: 40px; height: 40px; } }

/* ---- Ask AI nav button ---- */
.ask-ai-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid #C7D2FE;
  color: var(--accent); background: var(--accent-bg);
  cursor: pointer; font-family: var(--font);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.ask-ai-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-1px); }
.ask-ai-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---- Cookie consent banner ---- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1100;
  max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-float);
  padding: 16px 18px; display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; justify-content: space-between;
  transform: translateY(140%); opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.4,.5,1), opacity .35s;
}
.cookie-bar.show { transform: none; opacity: 1; }
.cookie-text { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1 1 280px; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn { font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font); border: 1px solid var(--border); }
.cookie-btn.decline { background: transparent; color: var(--muted); }
.cookie-btn.decline:hover { background: var(--bg); color: var(--fg); }
.cookie-btn.accept { background: var(--accent); color: #fff; border-color: var(--accent); }
.cookie-btn.accept:hover { background: #4338CA; }
@media (max-width: 480px) { .cookie-actions { width: 100%; } .cookie-btn { flex: 1; } }

/* ---- Lucide icons inside .service-icon ---- */
.service-icon i, .service-icon svg {
  width: 24px; height: 24px;
  color: var(--accent); stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  display: block;
}
.card:hover .service-icon i, .card:hover .service-icon svg { color: #fff; }

/* ---- 3D Wireframe Cube (hero background) ---- */
.hero-cube-scene {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 340px; height: 340px;
  perspective: 900px;
  pointer-events: none;
  z-index: 0;
  opacity: .10;
}
.cube {
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: cubeRotate 28s linear infinite;
  position: relative;
}
.cube-face {
  position: absolute; inset: 0;
  border: 1.5px solid var(--accent);
  background: rgba(79,70,229,.025);
}
.cube-face.front  { transform: translateZ(170px); }
.cube-face.back   { transform: translateZ(-170px) rotateY(180deg); }
.cube-face.left   { transform: translateX(-170px) rotateY(-90deg); }
.cube-face.right  { transform: translateX(170px) rotateY(90deg); }
.cube-face.top    { transform: translateY(-170px) rotateX(90deg); }
.cube-face.bottom { transform: translateY(170px) rotateX(-90deg); }
@keyframes cubeRotate {
  from { transform: rotateX(18deg) rotateY(0deg); }
  to   { transform: rotateX(18deg) rotateY(360deg); }
}
.hero-content-wrap { position: relative; z-index: 1; }
@media (max-width: 768px) {
  .hero-cube-scene { width: 220px; height: 220px; opacity: .07; }
  .cube-face.front  { transform: translateZ(110px); }
  .cube-face.back   { transform: translateZ(-110px) rotateY(180deg); }
  .cube-face.left   { transform: translateX(-110px) rotateY(-90deg); }
  .cube-face.right  { transform: translateX(110px) rotateY(90deg); }
  .cube-face.top    { transform: translateY(-110px) rotateX(90deg); }
  .cube-face.bottom { transform: translateY(110px) rotateX(-90deg); }
}

/* ---- Button hover — calmer primary ---- */
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-btn), 0 4px 14px rgba(79,70,229,.22);
  transform: translateY(-1px);
}

/* ---- Fix: cta-band outline button was white-on-white ---- */
.cta-band .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.cta-band .btn-outline:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.7);
  transform: translateY(-1px);
  box-shadow: none;
}

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .af-orb, .hero-3d-img, .hero-orbit .dot-orb { animation: none !important; }
}

/* ============================================================
   GDPR Cookie Consent Banner
   ============================================================ */
.cookie-bar {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-float);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
}
.cookie-bar.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-text {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.6;
}
.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}
.cookie-text a:hover {
  color: var(--accent-dark);
}
.cookie-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}
.cookie-btn {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.cookie-btn:active {
  transform: scale(0.97);
}
.cookie-btn.accept {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dark);
}
.cookie-btn.accept:hover {
  background: var(--accent-dark);
}
.cookie-btn.decline {
  background: var(--bg);
  color: var(--muted);
  border-color: var(--border);
}
.cookie-btn.decline:hover {
  background: var(--border);
  color: var(--fg);
}
@media (max-width: 640px) {
  .cookie-bar {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

