/* =============================================================
   AI Deck — Elementor widgets stylesheet  (v2.0)
   Every rule is scoped under .aideck-scope so it can NEVER leak
   into or clash with theme styles or other plugins. Colour, size
   and layout tokens are locally-scoped CSS variables, so nothing
   is written to :root/html and nothing collides with a theme.
   !important is used only once, in the prefers-reduced-motion block
   (an accessibility override that must win); Elementor style overrides
   win through variable re-assignment on the scoped wrapper instead.
============================================================= */

.aideck-scope{
  /* ---- Brand / type tokens ---- */
  --aideck-accent:#ff4d6d;
  --aideck-accent-2:#c6ff3d;
  --aideck-accent-contrast:#12060a;
  --aideck-font-display:'Space Grotesk',sans-serif;
  --aideck-font-body:'Inter',sans-serif;
  --aideck-font-mono:'JetBrains Mono',monospace;
  --aideck-radius:14px;

  /* ---- Layout tokens (overridable per widget) ---- */
  --aideck-max:1280px;      /* boxed content width */
  --aideck-align:left;      /* content alignment   */
  --aideck-gutter:24px;     /* inner horizontal pad */

  /* ---- Responsive column tokens (set by widgets) ---- */
  --aideck-stats-cols:4;
  --aideck-footer-cols:4;
  --aideck-featured-cols:3;   /* used only in grid layout mode */
  --aideck-grid-min:190px;
  --aideck-grid-cols:auto-fill;

  /* ---- Dark palette (default) — only the PRIMARY tokens are set per theme ---- */
  --aideck-bg:#0a0e14;
  --aideck-surface:#131924;
  --aideck-text:#eef1f6;
  --aideck-text-dim:#8993a8;
  /* Derived tokens: computed from the primaries above so adjusting any one
     colour (via the Style controls) cascades to icon boxes, the stats bar,
     borders, FAQ dividers and card gradients automatically. */
  --aideck-bg-alt:color-mix(in srgb, var(--aideck-bg) 95%, var(--aideck-text) 5%);
  --aideck-surface-2:color-mix(in srgb, var(--aideck-surface) 92%, var(--aideck-text) 8%);
  --aideck-border:color-mix(in srgb, var(--aideck-bg) 88%, var(--aideck-text) 12%);
  --aideck-shadow-rgb:0,0,0;                 /* shadow/scrim colour, per-theme */
  --aideck-overlay:rgba(6,9,14,.55);         /* default media overlay */
  --aideck-field:#0e131c;                    /* form control background */
  --aideck-shadow:0 20px 45px rgba(var(--aideck-shadow-rgb),.45);
  --aideck-card-shadow:none;
  --aideck-card-shadow-hover:var(--aideck-shadow);

  display:block;
  font-family:var(--aideck-font-body);
  color:var(--aideck-text);
  box-sizing:border-box;
  color-scheme:dark;                         /* native selects/scrollbars follow theme */
}
.aideck-scope[data-aideck-theme="light"]{
  --aideck-bg:#f7f6f2;
  --aideck-surface:#ffffff;
  --aideck-text:#14161c;
  --aideck-text-dim:#65697a;
  --aideck-shadow-rgb:20,20,30;
  --aideck-field:#ffffff;
  --aideck-shadow:0 20px 45px rgba(20,20,30,.08);
  color-scheme:light;
}

.aideck-scope *{ box-sizing:border-box; }
.aideck-scope a{ color:inherit; }
.aideck-scope img{ max-width:100%; }
.aideck-scope h1,
.aideck-scope h2,
.aideck-scope h3,
.aideck-scope h4{ font-family:var(--aideck-font-display); margin:0; }

/* Shared inner wrapper: boxed width + gutters, honours --aideck-max */
.aideck-inner{
  width:100%;
  max-width:var(--aideck-max);
  margin-inline:auto;
  padding-inline:var(--aideck-gutter);
}

/* Accessible focus ring for keyboard users only */
.aideck-scope :focus-visible{
  outline:2px solid var(--aideck-accent);
  outline-offset:2px;
  border-radius:4px;
}
.aideck-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;
}
/* Ensure the [hidden] attribute always wins over author display rules
   (author display:flex would otherwise beat the UA [hidden] rule). */
.aideck-scope [hidden]{ display:none; }

/* ---------- Buttons ---------- */
.aideck-btn{
  font-family:var(--aideck-font-mono);
  font-size:13px;
  font-weight:500;
  padding:14px 26px;
  border-radius:999px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
/* Prefixed with .aideck-scope so button colour wins over `.aideck-scope a{color:inherit}`. */
.aideck-scope .aideck-btn-primary{ background:var(--aideck-accent); color:var(--aideck-accent-contrast); }
.aideck-scope .aideck-btn-secondary{ background:transparent; color:var(--aideck-text); border-color:var(--aideck-border); }
.aideck-btn:hover{ transform:translateY(-3px); box-shadow:0 14px 26px rgba(var(--aideck-shadow-rgb),.18); }
.aideck-btn:focus-visible{ transform:translateY(-3px); }

/* ---------- Section head (shared) ---------- */
.aideck-section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  flex-wrap:wrap; gap:14px; margin-bottom:26px;
}
.aideck-section-head.aideck-center{ justify-content:center; text-align:center; }
.aideck-section-head h2{ font-size:clamp(22px,3vw,28px); }
.aideck-count{ font-family:var(--aideck-font-mono); font-size:13px; color:var(--aideck-text-dim); }

/* ---------- Theme toggle ---------- */
.aideck-theme-toggle{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--aideck-surface); border:1px solid var(--aideck-border);
  border-radius:999px; padding:6px;
  font-family:var(--aideck-font-mono); font-size:12px; color:var(--aideck-text-dim);
}
.aideck-theme-toggle button{
  border:none; background:transparent; color:inherit; font-family:inherit;
  font-size:16px; width:32px; height:32px; border-radius:50%; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:.2s;
}
.aideck-theme-toggle button.active{ background:var(--aideck-accent); color:var(--aideck-accent-contrast); }

/* =============================================================
   HEADER
============================================================= */
.aideck-topbar{
  position:relative; z-index:50;
  background:var(--aideck-bg);
  border-bottom:1px solid var(--aideck-border);
}
.aideck-topbar.aideck-sticky{ position:sticky; top:0; }
.aideck-topbar.aideck-blur{
  background:color-mix(in srgb, var(--aideck-bg) 88%, transparent);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
/* Transparent header (sits over a hero) */
.aideck-topbar.aideck-transparent{
  background:transparent; border-bottom-color:transparent; position:absolute;
  left:0; right:0; top:0; z-index:50;
}
.aideck-topbar.aideck-transparent.aideck-sticky{ position:sticky; }
.aideck-topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px var(--aideck-gutter); max-width:var(--aideck-max); margin:0 auto; gap:20px;
}
.aideck-brand{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--aideck-font-display); font-weight:700; font-size:18px;
  text-decoration:none; color:var(--aideck-text); flex-shrink:0;
}
.aideck-brand img{ display:block; height:auto; }
.aideck-dot{
  width:10px; height:10px; border-radius:50%; background:var(--aideck-accent);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--aideck-accent) 22%, transparent);
  animation:aideck-pulse 2s infinite; flex-shrink:0;
}
@keyframes aideck-pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.45; } }
.aideck-nav{ display:flex; align-items:center; gap:26px; flex:1; justify-content:center; }
.aideck-nav a{
  font-family:var(--aideck-font-mono); font-size:13px; text-decoration:none;
  color:var(--aideck-text-dim); transition:color .2s; position:relative;
}
.aideck-nav a:hover{ color:var(--aideck-text); }
.aideck-header-right{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.aideck-btn-sm{ padding:9px 18px; font-size:12px; }

/* Hamburger */
.aideck-nav-burger{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:40px; height:40px; background:var(--aideck-surface); border:1px solid var(--aideck-border);
  border-radius:10px; cursor:pointer; padding:0; flex-shrink:0;
}
.aideck-nav-burger span{ display:block; width:18px; height:2px; margin:0 auto; background:var(--aideck-text); transition:transform .25s ease, opacity .2s ease; }
.aideck-nav-burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.aideck-nav-burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.aideck-nav-burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* Slide-in mobile drawer */
.aideck-mobile-overlay{
  position:fixed; inset:0; background:rgba(var(--aideck-shadow-rgb),.5);
  opacity:0; pointer-events:none; transition:opacity .3s ease; z-index:998;
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
}
.aideck-mobile-overlay.aideck-open{ opacity:1; pointer-events:auto; }
.aideck-mobile-panel{
  position:fixed; top:0; right:0; height:100%; width:min(320px,85vw);
  background:var(--aideck-bg); border-left:1px solid var(--aideck-border);
  transform:translateX(105%); transition:transform .32s cubic-bezier(.4,0,.2,1);
  z-index:999; display:flex; flex-direction:column; padding:20px;
  box-shadow:-20px 0 50px rgba(var(--aideck-shadow-rgb),.35); overflow-y:auto;
}
.aideck-mobile-panel.aideck-left{ right:auto; left:0; border-left:none; border-right:1px solid var(--aideck-border); transform:translateX(-105%); box-shadow:20px 0 50px rgba(var(--aideck-shadow-rgb),.35); }
.aideck-mobile-panel.aideck-open{ transform:translateX(0); }
.aideck-mobile-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.aideck-mobile-close{
  width:40px; height:40px; border-radius:10px; border:1px solid var(--aideck-border);
  background:var(--aideck-surface); color:var(--aideck-text); font-size:20px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; line-height:1;
}
.aideck-mobile-links{ display:flex; flex-direction:column; margin-top:6px; }
.aideck-mobile-links a{
  padding:15px 6px; font-family:var(--aideck-font-mono); font-size:15px;
  color:var(--aideck-text); text-decoration:none; border-bottom:1px solid var(--aideck-border);
  transition:color .2s, padding-left .2s;
}
.aideck-mobile-links a:hover{ color:var(--aideck-accent); padding-left:12px; }
.aideck-mobile-cta{ margin-top:20px; }
.aideck-mobile-cta .aideck-btn{ width:100%; justify-content:center; }
body.aideck-menu-open{ overflow:hidden; }

/* Header collapse breakpoint (default = Elementor tablet). Widgets can
   override --aideck-collapse via a body-independent max-width query below. */
@media(max-width:1024px){
  .aideck-topbar[data-collapse="tablet"] .aideck-nav{ display:none; }
  .aideck-topbar[data-collapse="tablet"] .aideck-nav-burger{ display:flex; }
}
@media(max-width:767px){
  .aideck-topbar[data-collapse="mobile"] .aideck-nav{ display:none; }
  .aideck-topbar[data-collapse="mobile"] .aideck-nav-burger{ display:flex; }
  .aideck-topbar-inner{ padding-inline:18px; }
}

/* =============================================================
   HERO
============================================================= */
.aideck-hero{
  position:relative; padding:90px var(--aideck-gutter) 70px; overflow:hidden;
  border-bottom:1px solid var(--aideck-border); background:var(--aideck-bg);
  background-image:
    radial-gradient(60% 50% at 15% 0%, color-mix(in srgb, var(--aideck-accent) 16%, transparent), transparent 60%),
    radial-gradient(50% 40% at 100% 10%, color-mix(in srgb, var(--aideck-accent-2) 12%, transparent), transparent 60%);
}
.aideck-hero.aideck-has-media{ background-size:cover; background-position:center; }
.aideck-hero-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.aideck-hero-overlay{ position:absolute; inset:0; z-index:1; background:var(--aideck-overlay); }
.aideck-hero-inner{
  position:relative; z-index:2;
  max-width:var(--aideck-max); margin:0 auto; display:grid;
  grid-template-columns:1.2fr .8fr; gap:50px; align-items:center;
}
.aideck-hero.aideck-no-terminal .aideck-hero-inner{ grid-template-columns:1fr; }
.aideck-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--aideck-font-mono); font-size:12px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--aideck-accent);
  border:1px solid color-mix(in srgb, var(--aideck-accent) 40%, var(--aideck-border));
  padding:7px 14px; border-radius:999px; margin-bottom:22px;
}
.aideck-hero h1{
  font-size:clamp(30px,4.6vw,54px); line-height:1.06; margin:0 0 20px; letter-spacing:-0.01em;
}
.aideck-hero h1 em{ font-style:normal; color:var(--aideck-accent); }
.aideck-hero-desc{ font-size:17px; line-height:1.6; color:var(--aideck-text-dim); max-width:520px; margin:0 0 34px; }
.aideck-hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; justify-content:var(--aideck-align); }
.aideck-hero-copy{ text-align:var(--aideck-align); }
.aideck-hero-copy .aideck-hero-desc{ margin-inline:0; }

.aideck-terminal{
  background:var(--aideck-surface); border:1px solid var(--aideck-border);
  border-radius:var(--aideck-radius); box-shadow:var(--aideck-shadow); overflow:hidden;
}
.aideck-terminal-head{ display:flex; gap:6px; padding:12px 16px; border-bottom:1px solid var(--aideck-border); }
.aideck-terminal-head span{ width:10px; height:10px; border-radius:50%; background:var(--aideck-border); }
.aideck-terminal-body{ padding:20px; font-family:var(--aideck-font-mono); font-size:13px; color:var(--aideck-text-dim); line-height:1.9; overflow-wrap:anywhere; }
.aideck-prompt{ color:var(--aideck-accent-2); }
.aideck-result{ color:var(--aideck-text); }
.aideck-cursor{
  display:inline-block; width:7px; height:14px; background:var(--aideck-accent);
  animation:aideck-blink 1s steps(1) infinite; vertical-align:-2px;
}
@keyframes aideck-blink{ 50%{ opacity:0; } }

/* Shape divider (shared: hero / cta) */
.aideck-shape-divider{ position:absolute; left:0; width:100%; overflow:hidden; line-height:0; z-index:2; pointer-events:none; }
.aideck-shape-divider.aideck-shape-bottom{ bottom:-1px; }
.aideck-shape-divider.aideck-shape-top{ top:-1px; transform:rotate(180deg); }
.aideck-shape-divider svg{ display:block; width:100%; height:60px; }
.aideck-shape-divider path{ fill:var(--aideck-bg); }

/* =============================================================
   STATS
============================================================= */
.aideck-stats{ border-bottom:1px solid var(--aideck-border); background:var(--aideck-bg-alt); }
.aideck-stats-grid{ display:grid; grid-template-columns:repeat(var(--aideck-stats-cols),1fr); max-width:var(--aideck-max); margin:0 auto; }
.aideck-stat{ padding:34px 24px; text-align:center; border-right:1px solid var(--aideck-border); }
.aideck-stat:last-child{ border-right:none; }
.aideck-stat-icon{ font-size:24px; margin-bottom:10px; color:var(--aideck-accent); }
.aideck-stat-icon svg{ width:1em; height:1em; fill:currentColor; }
.aideck-stat-num{ font-family:var(--aideck-font-display); font-size:36px; font-weight:700; color:var(--aideck-accent); line-height:1; }
.aideck-stat-label{
  font-family:var(--aideck-font-mono); font-size:12px; color:var(--aideck-text-dim);
  text-transform:uppercase; letter-spacing:.05em; margin-top:6px;
}

/* =============================================================
   CONTROLS / SEARCH / FILTERS
============================================================= */
.aideck-controls{ padding:40px var(--aideck-gutter) 20px; max-width:var(--aideck-max); margin:0 auto; }
.aideck-search-row{ display:flex; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.aideck-search-box{
  flex:1; min-width:240px; display:flex; align-items:center; gap:10px;
  background:var(--aideck-surface); border:1px solid var(--aideck-border);
  border-radius:999px; padding:14px 20px; transition:border-color .2s;
}
.aideck-search-box:focus-within{ border-color:var(--aideck-accent); }
.aideck-search-box input{
  border:none; outline:none; background:transparent; color:var(--aideck-text);
  font-family:var(--aideck-font-body); font-size:15px; width:100%;
}
.aideck-search-box svg{ flex-shrink:0; color:var(--aideck-text-dim); }
.aideck-filters{ display:flex; flex-wrap:wrap; gap:10px; }
.aideck-filter-btn{
  font-family:var(--aideck-font-mono); font-size:12px; padding:10px 16px; border-radius:999px;
  border:1px solid var(--aideck-border); background:var(--aideck-surface); color:var(--aideck-text-dim);
  cursor:pointer; transition:.2s; white-space:nowrap;
}
.aideck-filter-btn:hover{ border-color:var(--aideck-accent); color:var(--aideck-text); }
.aideck-filter-btn.active{ background:var(--aideck-accent); border-color:var(--aideck-accent); color:var(--aideck-accent-contrast); }

/* =============================================================
   FEATURED
============================================================= */
.aideck-featured{ padding:20px var(--aideck-gutter) 10px; max-width:var(--aideck-max); margin:0 auto; }
.aideck-featured-scroll{ display:flex; gap:16px; overflow-x:auto; padding-bottom:14px; scrollbar-width:thin; scroll-snap-type:x proximity; }
.aideck-featured-scroll .aideck-f-card{ scroll-snap-align:start; }
/* Grid mode (equal columns, wraps) */
.aideck-featured-grid{ display:grid; grid-template-columns:repeat(var(--aideck-featured-cols,3),1fr); gap:16px; }
.aideck-f-card{
  min-width:220px; background:linear-gradient(160deg, var(--aideck-surface), var(--aideck-surface-2));
  border:1px solid color-mix(in srgb, var(--aideck-accent) 35%, var(--aideck-border));
  border-radius:var(--aideck-radius); padding:20px; text-decoration:none; color:var(--aideck-text);
  flex-shrink:0; position:relative; transition:transform .25s ease, box-shadow .25s ease;
  box-shadow:var(--aideck-card-shadow);
}
.aideck-featured-grid .aideck-f-card{ min-width:0; }
.aideck-f-card:hover{ transform:translateY(-6px); box-shadow:var(--aideck-card-shadow-hover); }
.aideck-f-card .aideck-tag{ position:absolute; top:14px; right:14px; font-family:var(--aideck-font-mono); font-size:10px; color:var(--aideck-accent); }
.aideck-f-card .aideck-ic{
  width:44px; height:44px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  font-family:var(--aideck-font-display); font-weight:700; background:color-mix(in srgb, var(--aideck-accent) 16%, transparent);
  color:var(--aideck-accent); margin-bottom:16px; font-size:16px; overflow:hidden;
}
.aideck-f-card .aideck-ic img{ width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.aideck-f-card h4{ margin:0 0 4px; font-size:16px; }
.aideck-f-card p{ margin:0; font-size:12px; color:var(--aideck-text-dim); font-family:var(--aideck-font-mono); text-transform:capitalize; }

/* =============================================================
   TOOLS GRID
============================================================= */
.aideck-tools-section{ padding:40px var(--aideck-gutter) 20px; max-width:var(--aideck-max); margin:0 auto; }
.aideck-tools-grid{ display:grid; grid-template-columns:repeat(var(--aideck-grid-cols,auto-fill),minmax(var(--aideck-grid-min,190px),1fr)); gap:16px; }
.aideck-tool-card{
  background:var(--aideck-surface); border:1px solid var(--aideck-border); border-radius:var(--aideck-radius);
  padding:20px; text-decoration:none; color:var(--aideck-text);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display:flex; flex-direction:column; gap:12px; box-shadow:var(--aideck-card-shadow);
}
.aideck-tool-card:hover{ transform:translateY(-6px); border-color:var(--aideck-accent); box-shadow:var(--aideck-card-shadow-hover); color:inherit; }
.aideck-tool-card .aideck-ic{
  width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  font-family:var(--aideck-font-display); font-weight:700; font-size:14px;
  background:var(--aideck-surface-2); border:1px solid var(--aideck-border); overflow:hidden;
}
.aideck-tool-card .aideck-ic img{ width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.aideck-tool-card h3{ margin:0; font-size:15px; font-family:var(--aideck-font-body); font-weight:600; }
.aideck-tool-card .aideck-cat{
  font-family:var(--aideck-font-mono); font-size:10.5px; color:var(--aideck-text-dim);
  text-transform:uppercase; letter-spacing:.04em;
}
.aideck-tool-card .aideck-go{
  margin-top:auto; font-family:var(--aideck-font-mono); font-size:11px; color:var(--aideck-accent);
  opacity:0; transform:translateX(-4px); transition:.2s;
}
.aideck-tool-card:hover .aideck-go,
.aideck-tool-card:focus-visible .aideck-go{ opacity:1; transform:translateX(0); }

.aideck-empty-state{
  text-align:center; padding:60px 20px; color:var(--aideck-text-dim);
  font-family:var(--aideck-font-mono); font-size:14px;
}

/* =============================================================
   FAQ
============================================================= */
.aideck-faq{ padding:60px var(--aideck-gutter); max-width:var(--aideck-max); margin:0 auto; }
.aideck-faq-list{ max-width:820px; margin:0 auto; }
.aideck-faq-item{ border-bottom:1px solid var(--aideck-border); }
.aideck-faq-q{
  width:100%; text-align:left; background:none; border:none; color:var(--aideck-text);
  font-family:var(--aideck-font-display); font-size:17px; padding:22px 0;
  display:flex; justify-content:space-between; align-items:center; cursor:pointer; gap:20px;
}
.aideck-faq-q.aideck-icon-left{ flex-direction:row-reverse; justify-content:flex-end; gap:14px; }
.aideck-faq-q .aideck-plus{ font-family:var(--aideck-font-mono); color:var(--aideck-accent); font-size:20px; transition:transform .25s ease; flex-shrink:0; }
.aideck-faq-item.aideck-open .aideck-faq-q{ color:var(--aideck-accent); }
.aideck-faq-item.aideck-open .aideck-plus{ transform:rotate(45deg); }
.aideck-faq-item.aideck-open .aideck-chevron{ transform:rotate(180deg); }
.aideck-faq-a{ max-height:0; overflow:hidden; transition:max-height .3s ease; color:var(--aideck-text-dim); font-size:14.5px; line-height:1.7; }
.aideck-faq-a p{ margin:0 0 22px; }

/* =============================================================
   BOTTOM CTA
============================================================= */
.aideck-bottom-cta{
  position:relative; overflow:hidden;
  margin:20px auto; max-width:var(--aideck-max); padding:70px 30px; border-radius:28px; text-align:center;
  background:
    radial-gradient(60% 120% at 50% 0%, color-mix(in srgb, var(--aideck-accent) 22%, transparent), transparent 70%),
    var(--aideck-surface);
  border:1px solid var(--aideck-border);
}
.aideck-bottom-cta.aideck-glass{
  background:color-mix(in srgb, var(--aideck-surface) 60%, transparent);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
}
.aideck-bottom-cta.aideck-align-left{ text-align:left; }
.aideck-bottom-cta.aideck-align-left .aideck-cta-inner{ align-items:flex-start; }
.aideck-cta-inner{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; }
.aideck-bottom-cta h2{ font-size:clamp(26px,4vw,34px); margin:0 0 14px; }
.aideck-bottom-cta p{ color:var(--aideck-text-dim); margin:0 0 30px; max-width:600px; }

/* =============================================================
   FOOTER
============================================================= */
.aideck-footer{
  position:relative; overflow:hidden;
  border-top:1px solid var(--aideck-border);
  background:var(--aideck-bg);
  font-family:var(--aideck-font-mono);
  color:var(--aideck-text-dim);
}
.aideck-footer.aideck-has-bg{ background-size:cover; background-position:center; }
.aideck-footer-bg-overlay{ position:absolute; inset:0; z-index:0; }
.aideck-footer-simple{
  position:relative; z-index:1;
  padding:26px var(--aideck-gutter); text-align:center; font-size:12px;
}
.aideck-footer-inner{ position:relative; z-index:1; max-width:var(--aideck-max); margin:0 auto; padding:60px var(--aideck-gutter) 30px; }
.aideck-footer-grid{
  display:grid; grid-template-columns:1.4fr repeat(calc(var(--aideck-footer-cols) - 1), 1fr); gap:40px;
  padding-bottom:40px; border-bottom:1px solid var(--aideck-border);
}
.aideck-footer-brand p{ font-size:13px; line-height:1.6; margin:14px 0 0; max-width:280px; font-family:var(--aideck-font-body); }
.aideck-footer-brand .aideck-brand{ font-size:16px; }
.aideck-footer-brand img{ height:auto; }
.aideck-footer-social{ display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.aideck-footer-social a{
  width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--aideck-surface); border:1px solid var(--aideck-border); color:var(--aideck-text-dim);
  text-decoration:none; font-size:11px; transition:transform .2s, border-color .2s, color .2s, background-color .2s;
}
.aideck-footer-social a svg{ width:16px; height:16px; fill:currentColor; }
.aideck-footer-social a:hover{ transform:translateY(-3px); border-color:var(--aideck-accent); color:var(--aideck-accent); }
.aideck-footer-col h4{
  font-family:var(--aideck-font-display); font-size:14px; color:var(--aideck-text);
  margin:0 0 16px; font-weight:600;
}
.aideck-footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px; }
.aideck-footer-col a{ font-size:13px; text-decoration:none; color:var(--aideck-text-dim); transition:color .2s, padding-left .2s; }
.aideck-footer-col a:hover{ color:var(--aideck-accent); padding-left:4px; }
.aideck-footer-newsletter{ margin-top:40px; padding-top:30px; border-top:1px solid var(--aideck-border); }
.aideck-footer-newsletter h4{ font-family:var(--aideck-font-display); color:var(--aideck-text); font-size:15px; margin:0 0 6px; }
.aideck-footer-newsletter p{ font-size:12px; margin:0 0 14px; font-family:var(--aideck-font-body); }
.aideck-newsletter-form{ display:flex; gap:10px; flex-wrap:wrap; max-width:440px; }
.aideck-newsletter-form input{
  flex:1; min-width:200px; background:var(--aideck-surface); border:1px solid var(--aideck-border);
  border-radius:999px; padding:12px 18px; color:var(--aideck-text); font-family:var(--aideck-font-body); font-size:14px; outline:none;
}
.aideck-newsletter-form input:focus{ border-color:var(--aideck-accent); }
.aideck-footer-bottom{
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px;
  padding-top:24px; text-align:center; font-size:12px;
}

/* =============================================================
   BACK TO TOP
============================================================= */
.aideck-back-top{
  position:fixed; bottom:26px; right:26px; width:48px; height:48px; border-radius:50%;
  background:var(--aideck-accent); color:var(--aideck-accent-contrast); border:none;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  opacity:0; pointer-events:none; transform:translateY(10px); transition:.3s;
  z-index:60; box-shadow:0 10px 24px rgba(var(--aideck-shadow-rgb),.3); font-size:18px;
}
.aideck-back-top.aideck-show{ opacity:1; pointer-events:auto; transform:translateY(0); }
/* Chat button sits bottom right, so move "back to top" to the other side. */
.aidc-chat-right .aideck-back-top{ right:auto; left:26px; }

/* =============================================================
   RESPONSIVE  (mobile-first overrides)
============================================================= */
@media(max-width:1024px){
  .aideck-hero-inner{ grid-template-columns:1fr; gap:36px; }
  .aideck-stats-grid{ grid-template-columns:repeat(min(var(--aideck-stats-cols),2),1fr); }
  .aideck-stat:nth-child(2n){ border-right:none; }
  .aideck-stat{ border-bottom:1px solid var(--aideck-border); }
  .aideck-footer-grid{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:767px){
  .aideck-hero{ padding:64px 18px 54px; }
  .aideck-tools-grid{ grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
  .aideck-featured-grid{ grid-template-columns:1fr; }
  .aideck-stats-grid{ grid-template-columns:1fr 1fr; }
  .aideck-footer-grid{ grid-template-columns:1fr; gap:28px; }
  .aideck-bottom-cta{ padding:48px 22px; }
  .aideck-section-head{ margin-bottom:20px; }
}
@media(max-width:420px){
  .aideck-tools-grid{ grid-template-columns:1fr; }
  .aideck-stats-grid{ grid-template-columns:1fr; }
  .aideck-stat{ border-right:none; }
}

/* Respect users who prefer reduced motion */
@media(prefers-reduced-motion:reduce){
  .aideck-scope *,
  .aideck-scope *::before,
  .aideck-scope *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}

/* =============================================================
   v3 — THEME ENGINE (page-level preference, no flash of wrong theme)
   These come AFTER the per-scope theme rules so a saved/OS preference
   applied to <html> in the document head wins on first paint.
============================================================= */
html[data-aideck-pref="dark"] .aideck-scope{
  --aideck-bg:#0a0e14; --aideck-surface:#131924; --aideck-text:#eef1f6;
  --aideck-text-dim:#8993a8; --aideck-shadow-rgb:0,0,0; --aideck-field:#0e131c;
  --aideck-shadow:0 20px 45px rgba(var(--aideck-shadow-rgb),.45); color-scheme:dark;
}
html[data-aideck-pref="light"] .aideck-scope{
  --aideck-bg:#f7f6f2; --aideck-surface:#ffffff; --aideck-text:#14161c;
  --aideck-text-dim:#65697a; --aideck-shadow-rgb:20,20,30; --aideck-field:#ffffff;
  --aideck-shadow:0 20px 45px rgba(20,20,30,.08); color-scheme:light;
}
/* Auto-contrast: JS adds these when a custom background is measured. */
.aideck-scope.aideck-on-dark{ --aideck-text:#f4f6fb; --aideck-text-dim:#c3c9d6; }
.aideck-scope.aideck-on-light{ --aideck-text:#14161c; --aideck-text-dim:#5c6070; }

/* Each full-width section paints the theme background so dark/light mode is
   self-consistent no matter what page/body colour sits behind the widget.
   (The header is intentionally excluded so its Transparent option works.) */
.aideck-hero-wrap,
.aideck-stats-wrap,
.aideck-featured-wrap,
.aideck-toolsgrid-wrap,
.aideck-steps-wrap,
.aideck-testimonials-wrap,
.aideck-logos-wrap,
.aideck-faq-wrap,
.aideck-cta-wrap,
.aideck-footer-wrap{
  background:var(--aideck-bg);
  display:flow-root;   /* contain child margins so no page colour shows through */
}

/* Smooth, transient transition applied only while toggling. */
html.aideck-theming .aideck-scope,
html.aideck-theming .aideck-scope *{
  transition-property:background-color,color,border-color,fill,box-shadow;
  transition-duration:.35s;
  transition-timing-function:ease;
}

/* =============================================================
   v3 — UNIVERSAL BUTTON
============================================================= */
.aideck-btn{ max-width:100%; }
.aideck-btn-txt{ display:inline-block; }
.aideck-btn-ico{ display:inline-flex; align-items:center; line-height:0; }
.aideck-btn-ico svg{ width:1em; height:1em; fill:currentColor; }
.aideck-btn-ico i{ font-size:1em; line-height:1; }
[class*="aideck-btn-wrap-"]{ display:flex; }

/* =============================================================
   v3 — CARD POLISH (glass / hover-lift / image-zoom / ribbon)
============================================================= */
.aideck-f-card,.aideck-tool-card{ --aideck-lift:6px; }
.aideck-f-card:hover,
.aideck-tool-card:hover{ transform:translateY(calc(-1 * var(--aideck-lift))); }
.aideck-f-card.aideck-glass,
.aideck-tool-card.aideck-glass{
  background:color-mix(in srgb, var(--aideck-surface) 55%, transparent);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
}
.aideck-zoom .aideck-ic img{ transition:transform .35s ease; }
.aideck-zoom:hover .aideck-ic img{ transform:scale(1.12); }
.aideck-card-ribbon{
  position:absolute; top:12px; left:-6px; z-index:2;
  background:var(--aideck-accent); color:var(--aideck-accent-contrast);
  font-family:var(--aideck-font-mono); font-size:10px; letter-spacing:.04em;
  padding:4px 12px 4px 10px; border-radius:3px;
  box-shadow:0 6px 14px rgba(var(--aideck-shadow-rgb),.25);
}
.aideck-card-ribbon::after{
  content:""; position:absolute; left:0; bottom:-5px; border:3px solid transparent;
  border-top-color:color-mix(in srgb, var(--aideck-accent) 60%, #000);
  border-right-color:color-mix(in srgb, var(--aideck-accent) 60%, #000);
}

/* =============================================================
   v3 — TOOLS GRID: skeleton loading + load more + sorting
============================================================= */
.aideck-skel-grid{
  display:grid;
  grid-template-columns:repeat(var(--aideck-grid-cols,auto-fill),minmax(var(--aideck-grid-min,190px),1fr));
  gap:16px;
}
.aideck-skel-card{
  height:132px; border-radius:var(--aideck-radius); border:1px solid var(--aideck-border);
  background:linear-gradient(90deg,
    var(--aideck-surface) 25%, var(--aideck-surface-2) 37%, var(--aideck-surface) 63%);
  background-size:400% 100%; animation:aideck-shimmer 1.4s ease infinite;
}
@keyframes aideck-shimmer{ 0%{ background-position:100% 0; } 100%{ background-position:-100% 0; } }
.aideck-toolbar{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.aideck-sort{ margin-left:auto; }
.aideck-sort select{
  font-family:var(--aideck-font-mono); font-size:12px; padding:9px 14px; border-radius:999px;
  border:1px solid var(--aideck-border); background:var(--aideck-surface); color:var(--aideck-text); cursor:pointer;
}
.aideck-loadmore-wrap{ text-align:center; margin-top:26px; }
.aideck-loadmore{
  font-family:var(--aideck-font-mono); font-size:13px; padding:12px 26px; border-radius:999px;
  border:1px solid var(--aideck-border); background:var(--aideck-surface); color:var(--aideck-text);
  cursor:pointer; transition:.2s;
}
.aideck-loadmore:hover{ border-color:var(--aideck-accent); color:var(--aideck-accent); }

/* =============================================================
   v3 — HEADER: search field + scroll-shrink + height
============================================================= */
.aideck-topbar-inner{ transition:padding .25s ease, min-height .25s ease; }
.aideck-topbar.aideck-scrolled .aideck-topbar-inner{ padding-top:9px; padding-bottom:9px; }
.aideck-topbar.aideck-scrolled:not(.aideck-transparent){ box-shadow:0 6px 22px rgba(var(--aideck-shadow-rgb),.18); }
.aideck-search-toggle{
  width:40px; height:40px; border-radius:10px; border:1px solid var(--aideck-border);
  background:var(--aideck-surface); color:var(--aideck-text); cursor:pointer; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.aideck-search-toggle svg{ width:18px; height:18px; }
.aideck-header-searchbar{
  max-height:0; overflow:hidden; transition:max-height .3s ease;
  border-top:1px solid transparent; background:var(--aideck-bg);
}
.aideck-header-searchbar.aideck-open{ max-height:100px; border-top-color:var(--aideck-border); }
.aideck-header-searchbar form{
  max-width:var(--aideck-max); margin:0 auto; padding:14px var(--aideck-gutter);
  display:flex; gap:10px;
}
.aideck-header-searchbar input{
  flex:1; background:var(--aideck-surface); border:1px solid var(--aideck-border);
  border-radius:999px; padding:12px 20px; color:var(--aideck-text);
  font-family:var(--aideck-font-body); font-size:15px; outline:none;
}
.aideck-header-searchbar input:focus{ border-color:var(--aideck-accent); }

/* =============================================================
   v3 — FOOTER glass
============================================================= */
.aideck-footer.aideck-glass{
  background:color-mix(in srgb, var(--aideck-bg) 60%, transparent);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
}

/* =============================================================
   TESTIMONIALS
============================================================= */
.aideck-testimonials{ padding:60px var(--aideck-gutter); max-width:var(--aideck-max); margin:0 auto; }
.aideck-testimonials-grid{ display:grid; grid-template-columns:repeat(var(--aideck-testi-cols,3),minmax(0,1fr)); gap:20px; }
.aideck-tcard{
  background:var(--aideck-surface); border:1px solid var(--aideck-border); border-radius:var(--aideck-radius);
  padding:26px; display:flex; flex-direction:column; gap:14px; box-shadow:var(--aideck-card-shadow);
}
.aideck-tcard.aideck-glass{ background:color-mix(in srgb, var(--aideck-surface) 55%, transparent); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.aideck-stars{ color:var(--aideck-accent); letter-spacing:2px; font-size:14px; }
.aideck-tcard blockquote{ margin:0; }
.aideck-tcard p{ margin:0; color:var(--aideck-text); font-size:15px; line-height:1.6; }
.aideck-tcard-foot{ display:flex; align-items:center; gap:12px; margin-top:auto; }
.aideck-tcard-avatar{ width:42px; height:42px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.aideck-tcard-initial{ display:flex; align-items:center; justify-content:center; background:var(--aideck-surface-2); border:1px solid var(--aideck-border); color:var(--aideck-accent); font-family:var(--aideck-font-display); font-weight:700; }
.aideck-tcard-meta{ display:flex; flex-direction:column; }
.aideck-tcard-name{ font-family:var(--aideck-font-display); font-weight:600; color:var(--aideck-text); font-size:14px; }
.aideck-tcard-role{ font-family:var(--aideck-font-mono); font-size:12px; color:var(--aideck-text-dim); }
@media(max-width:1024px){ .aideck-testimonials-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:767px){ .aideck-testimonials-grid{ grid-template-columns:1fr; } }

/* =============================================================
   LOGOS / TRUSTED BY
============================================================= */
.aideck-logos{ padding:40px var(--aideck-gutter); max-width:var(--aideck-max); margin:0 auto; }
.aideck-logos-eyebrow{ text-align:center; font-family:var(--aideck-font-mono); font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--aideck-text-dim); margin:0 0 22px; }
.aideck-logos-viewport{ overflow:hidden; }
.aideck-logos-track{ display:flex; align-items:center; justify-content:center; gap:44px; flex-wrap:wrap; }
.aideck-logo-item{ display:inline-flex; align-items:center; color:var(--aideck-text-dim); text-decoration:none; transition:color .2s, filter .3s, opacity .3s; }
.aideck-logo-item img{ height:30px; width:auto; display:block; }
.aideck-logo-text{ font-family:var(--aideck-font-display); font-weight:700; font-size:20px; white-space:nowrap; }
.aideck-logos-track.aideck-gray .aideck-logo-item{ filter:grayscale(1); opacity:.6; }
.aideck-logos-track.aideck-gray .aideck-logo-item:hover{ filter:grayscale(0); opacity:1; color:var(--aideck-text); }
.aideck-logos-marquee .aideck-logos-viewport{
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.aideck-logos-marquee .aideck-logos-track{ flex-wrap:nowrap; width:max-content; justify-content:flex-start; animation:aideck-marquee 30s linear infinite; }
.aideck-logos-marquee .aideck-logos-track:hover{ animation-play-state:paused; }
@keyframes aideck-marquee{ to{ transform:translateX(-50%); } }

/* =============================================================
   STEPS / HOW IT WORKS
============================================================= */
.aideck-steps{ padding:60px var(--aideck-gutter); max-width:var(--aideck-max); margin:0 auto; }
.aideck-steps-grid{ display:grid; grid-template-columns:repeat(var(--aideck-steps-cols,3),minmax(0,1fr)); gap:30px; }
.aideck-step{ text-align:center; position:relative; display:flex; flex-direction:column; align-items:center; gap:10px; }
.aideck-step-badge{
  width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--aideck-accent); color:var(--aideck-accent-contrast);
  font-family:var(--aideck-font-display); font-weight:700; font-size:20px; position:relative; z-index:1;
}
.aideck-step h3{ font-size:17px; color:var(--aideck-text); margin:4px 0 0; }
.aideck-step p{ margin:0; color:var(--aideck-text-dim); font-size:14px; line-height:1.6; max-width:280px; }
.aideck-steps-grid.aideck-has-connector .aideck-step:not(:last-child)::after{
  content:""; position:absolute; top:26px; left:calc(50% + 34px); right:calc(-50% + 34px); height:2px;
  background:var(--aideck-border); z-index:0;
}
@media(max-width:1024px){
  .aideck-steps-grid{ grid-template-columns:repeat(2,1fr); }
  .aideck-steps-grid.aideck-has-connector .aideck-step::after{ display:none; }
}
@media(max-width:600px){ .aideck-steps-grid{ grid-template-columns:1fr; } }

/* =============================================================
   v3.1 — FORM CONTROLS, STATES & SCROLLBARS (theme-driven, dark-safe)
   Every control inherits theme colours so nothing renders as black
   text on a dark surface (or the reverse) in either mode.
============================================================= */
.aideck-scope input,
.aideck-scope textarea,
.aideck-scope select,
.aideck-scope button{ font-family:inherit; }
.aideck-scope input,
.aideck-scope textarea,
.aideck-scope select{
  color:var(--aideck-text);
  background-color:var(--aideck-field);
  border:1px solid var(--aideck-border);
}
.aideck-scope input::placeholder,
.aideck-scope textarea::placeholder{ color:var(--aideck-text-dim); opacity:1; }
.aideck-scope input:focus-visible,
.aideck-scope textarea:focus-visible,
.aideck-scope select:focus-visible{
  border-color:var(--aideck-accent);
  outline:2px solid color-mix(in srgb, var(--aideck-accent) 45%, transparent);
  outline-offset:1px;
}
/* The pill search / newsletter inputs intentionally sit on the surface
   colour and set their own radius — keep them themed, not the field bg. */
.aideck-search-box input,
.aideck-newsletter-form input,
.aideck-header-searchbar input{ background-color:transparent; border:none; border-radius:0; }
.aideck-newsletter-form input,
.aideck-header-searchbar input{ background-color:var(--aideck-surface); border:1px solid var(--aideck-border); }
.aideck-sort select{ background-color:var(--aideck-surface); }

/* Button states */
.aideck-btn{ position:relative; }
.aideck-btn:disabled,
.aideck-btn.aideck-disabled,
.aideck-btn[aria-disabled="true"]{ opacity:.5; cursor:not-allowed; transform:none; box-shadow:none; pointer-events:none; }
.aideck-btn.aideck-loading{ color:transparent; pointer-events:none; }
.aideck-btn.aideck-loading::after{
  content:""; position:absolute; width:16px; height:16px; top:calc(50% - 8px); left:calc(50% - 8px);
  border:2px solid var(--aideck-accent-contrast); border-top-color:transparent; border-radius:50%;
  animation:aideck-spin .7s linear infinite;
}
@keyframes aideck-spin{ to{ transform:rotate(360deg); } }

/* Themed thin scrollbars for scroll areas */
.aideck-featured-scroll,
.aideck-mobile-panel{ scrollbar-width:thin; scrollbar-color:var(--aideck-border) transparent; }
.aideck-featured-scroll::-webkit-scrollbar,
.aideck-mobile-panel::-webkit-scrollbar{ width:8px; height:8px; }
.aideck-featured-scroll::-webkit-scrollbar-thumb,
.aideck-mobile-panel::-webkit-scrollbar-thumb{ background:var(--aideck-border); border-radius:8px; }
.aideck-featured-scroll::-webkit-scrollbar-track,
.aideck-mobile-panel::-webkit-scrollbar-track{ background:transparent; }
