/* ==========================================================================
   Smashmob.ai — Design System (IBM Carbon Design System, carbondesignsystem.com)
   This was "v4" among four parallel design explorations; it's now the site's
   only design. Carbon v11 structure (zero border-radius everywhere, Carbon
   Gray/Purple/Teal/Red ramps) with one deliberate swap: the stock Carbon Blue
   ramp is replaced by "Electric Sky" (#2F6FED), a brand blue chosen to read as
   energetic and "always-on" rather than generic enterprise-SaaS blue, picked
   to sit well against the logo's warm orange. Same lightness/saturation
   curve as Carbon's own Blue ramp, rotated to the new hue.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand Blue ramp — "Electric Sky" */
  --blue-10: #e1ebfd;
  --blue-20: #bbd0f9;
  --blue-30: #90b2f6;
  --blue-40: #6192f2;
  --blue-50: #2F6FED;
  --blue-60: #2F6FED;
  --blue-70: #1150cc;
  --blue-80: #0d3e9e;
  --blue-90: #092c72;

  /* Carbon support colors */
  --red-60: #da1e28;
  --red-10: #fff1f1;
  --green-60: #24a148;
  --green-10: #defbe6;
  --yellow-30: #f1c21b;
  --yellow-10: #fcf4d6;

  /* Carbon Purple / Teal (badge hues) */
  --purple-60: #6929c4;
  --purple-10: #f6f2ff;
  --teal-60: #007d79;
  --teal-10: #d9fbfb;

  /* Carbon Gray ramp */
  --gray-10: #f4f4f4;
  --gray-20: #e0e0e0;
  --gray-30: #c6c6c6;
  --gray-40: #a8a8a8;
  --gray-50: #8d8d8d;
  --gray-60: #6f6f6f;
  --gray-70: #525252;
  --gray-80: #393939;
  --gray-90: #262626;
  --gray-100: #161616;
  --white: #ffffff;

  /* Semantic (light = Carbon "White" theme) */
  --bg: var(--white);
  --bg-layer: var(--gray-10);
  --bg-layer-2: var(--gray-20);
  --text-primary: var(--gray-100);
  --text-secondary: var(--gray-70);
  --border: var(--gray-20);
  --border-strong: var(--gray-50);
  --interactive: var(--blue-60);
  --interactive-hover: var(--blue-70);
  --interactive-active: var(--blue-80);
  --focus: var(--blue-60);

  /* Illustration tokens — shared inline-SVG illustration markup (added in
     v3) reads these so it re-themes correctly here too. */
  --illust-a: var(--blue-60);
  --illust-b: var(--purple-60);
  --illust-line: var(--gray-100);
  --illust-accent: var(--teal-60);
  --illust-bg: var(--blue-10);
  --illust-skin: #e0a877;
  --illust-hair: #4a3728;

  /* Type — IBM Plex Sans, Carbon's real productive/expressive type scale */
  --font-sans: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --body-01: 400 14px/18px var(--font-sans);
  --body-02: 400 16px/22px var(--font-sans);
  --heading-03: 400 20px/28px var(--font-sans);
  --heading-04: 400 28px/36px var(--font-sans);
  --heading-05: 300 32px/40px var(--font-sans);
  --heading-06: 300 42px/50px var(--font-sans);
  --heading-07: 300 54px/64px var(--font-sans);

  /* Shape — Carbon's defining trait: zero radius, everywhere */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --radius-full: 0;

  /* Space — Carbon's real 2px-based scale */
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 8px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 48px;
  --space-12: 64px;

  --max-width: 1120px;
}

/* ---- Dark theme: Carbon "Gray 100" ---- */
:root[data-mode="dark"] {
  color-scheme: dark;
  --bg: var(--gray-100);
  --bg-layer: var(--gray-90);
  --bg-layer-2: var(--gray-80);
  --text-primary: var(--gray-10);
  --text-secondary: var(--gray-30);
  --border: var(--gray-80);
  --border-strong: var(--gray-60);
  /* Carbon keeps interactive blue constant across themes, but bumps it a
     touch lighter for contrast against a near-black surface. */
  --interactive: var(--blue-40);
  --interactive-hover: var(--blue-30);
  --interactive-active: var(--blue-20);
  --focus: var(--blue-40);

  --illust-a: var(--blue-40);
  --illust-b: #be95ff;
  --illust-line: var(--gray-10);
  --illust-accent: #3ddbd9;
  --illust-bg: var(--gray-80);
  --illust-skin: #e0a877;
  --illust-hair: #8a6a52;
}

/* ---- Reset-ish basics ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font: var(--body-02);
  -webkit-font-smoothing: antialiased;
  transition: background-color .15s ease, color .15s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--interactive); }
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  margin: 0 0 var(--space-5);
}
h1 { font: var(--heading-06); }
h2 { font: var(--heading-05); }
h3 { font: var(--heading-04); }
p { margin: 0 0 var(--space-5); }
ul, ol { padding-left: 1.25em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

section { padding: var(--space-12) 0; }
section.alt { background: var(--bg-layer); }

/* ---- Buttons: Carbon Primary / Tertiary, zero radius ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  min-height: 48px;
  border-radius: 0;
  font: var(--body-02);
  font-weight: 400;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .11s cubic-bezier(0.2, 0, 0.38, 0.9);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus);
}
.btn-primary {
  background: var(--interactive);
  color: var(--white);
}
.btn-primary:hover { background: var(--interactive-hover); }
.btn-primary:active { background: var(--interactive-active); }
.btn-outline {
  background: transparent;
  border-color: var(--interactive);
  color: var(--interactive);
}
.btn-outline:hover { background: var(--interactive); color: var(--white); }
.btn-lg { padding: var(--space-5) var(--space-8); }

/* ---- Header / nav: Carbon UI Shell, structure and styling ported 1:1 from
   the Maestro Carbon concept (maestro-1c6.pages.dev) — always dark (Gray
   100), regardless of page theme. This is a deliberate, faithful Carbon
   convention, not an inconsistency. Two groups: logo + links on the left,
   utilities (theme toggle, CTA, mobile toggle) on the right. ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-80);
}
.site-header .nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 48px;
}
.nav-left { display: flex; align-items: stretch; }
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding-right: var(--space-5);
  border-right: 1px solid var(--gray-80);
}
.wordmark-logo {
  height: 28px;
  width: auto;
  display: block;
}

.nav-toggle, .theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  color: var(--gray-10);
  flex: none;
}
.nav-toggle:hover, .theme-toggle:hover { background: var(--gray-80); }
.nav-toggle { display: none; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-mode="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-mode="dark"] .theme-toggle .icon-moon { display: none; }
:root:not([data-mode]) .theme-toggle .icon-sun { display: none; }

.nav-links { display: flex; align-items: stretch; gap: 0; margin-left: var(--space-5); }
.nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  color: var(--gray-30);
  text-decoration: none;
  font: var(--body-01);
  padding: 0 var(--space-5);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: var(--gray-90); }
.nav-links a[aria-current="page"] { color: var(--white); border-bottom-color: var(--blue-40); }
.nav-cta { display: flex; align-items: center; gap: var(--space-4); }
.nav-cta .btn-primary { padding: 0 var(--space-4); height: 32px; font: var(--body-01); font-weight: 600; white-space: nowrap; flex: none; }

/* ---- Hero ---- */
.hero { padding: var(--space-12) 0 var(--space-10); }
.hero p.lead { font: var(--heading-03); font-weight: 400; color: var(--text-secondary); max-width: 60ch; }
.hero-actions { display: flex; gap: 0; flex-wrap: wrap; margin-top: var(--space-6); }

/* ---- Home hero: full-bleed looping background video, text overlaid.
   The video is dark/abstract by design, so this is a local dark-on-video
   context regardless of the site's own light/dark mode. ---- */
.hero--video {
  position: relative;
  overflow: hidden;
  padding: calc(var(--space-12) * 1.5) 0;
  color: var(--white);
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 11, 16, 0.5) 0%, rgba(9, 11, 16, 0.78) 100%);
  z-index: 1;
}
.hero--video .container { position: relative; z-index: 2; }
.hero-content { max-width: 65ch; }
.hero--video h1 { color: var(--white); }
.hero--video p.lead { color: rgba(255, 255, 255, 0.82); }
.hero--video .btn-outline { border-color: var(--white); color: var(--white); }
.hero--video .btn-outline:hover { background: var(--white); color: var(--gray-100); }
.about-illust {
  width: 100%;
  aspect-ratio: 940 / 788;
  align-self: center;
  background: var(--illust-bg) center / cover no-repeat url("/assets/img/about-owner.webp");
  border-radius: var(--radius-xl);
}
.blog-illust {
  width: 100%;
  aspect-ratio: 612 / 408;
  align-self: center;
  background: var(--illust-bg) center / cover no-repeat url("/assets/img/blog-owner.jpg");
  border-radius: var(--radius-xl);
}

/* ---- Cards / grid: Carbon Tile ---- */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); align-items: center; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-layer);
  border-radius: 0;
  border-left: 4px solid transparent;
  padding: var(--space-6);
  transition: border-color .11s cubic-bezier(0.2, 0, 0.38, 0.9), background-color .11s ease;
}
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 0;
  background: var(--bg-layer-2); color: var(--interactive);
  margin-bottom: var(--space-4);
}
.icon-chip svg { width: 22px; height: 22px; }
.step-icon { display: inline-flex; vertical-align: middle; margin-right: var(--space-3); color: var(--interactive); }
.step-icon svg { width: 20px; height: 20px; }

/* ---- Badges: Carbon Tag ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: 0;
  font: var(--body-01);
  font-weight: 600;
  background: var(--bg-layer-2);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.badge svg { width: 14px; height: 14px; }
.badge-blue { background: var(--blue-10); color: var(--blue-70); border-color: var(--blue-40); }
.badge-purple { background: var(--purple-10); color: var(--purple-60); border-color: var(--purple-60); }
.badge-orange { background: var(--teal-10); color: var(--teal-60); border-color: var(--teal-60); }

/* ---- Pricing table: Carbon DataTable ---- */
.pricing-table { width: 100%; border-collapse: collapse; background: var(--bg); border-radius: 0; }
.pricing-table th, .pricing-table td { padding: var(--space-4) var(--space-5); text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; font: var(--body-02); }
.pricing-table thead th { font: var(--body-01); font-weight: 600; color: var(--text-primary); background: var(--bg-layer); text-transform: uppercase; letter-spacing: 0.02em; }
.pricing-table tbody tr:hover td { background: var(--bg-layer); }
.pricing-table td.category { font-weight: 600; color: var(--text-primary); background: var(--bg-layer); }
.pricing-table-wrap { overflow-x: auto; border: 1px solid var(--border); }

/* ---- Forms: Carbon filled input, bottom-border only ---- */
.field { margin-bottom: var(--space-6); }
.field label { display: block; font: var(--body-01); font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-3); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  border: none;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--bg-layer);
  font: var(--body-02);
  color: var(--text-primary);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-secondary); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--interactive);
  box-shadow: inset 0 -1px 0 0 var(--interactive);
}
.field-check { display: flex; align-items: flex-start; gap: var(--space-3); }
.field-check input { width: auto; margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
/* Carbon Inline Notification: colored left accent bar + a leading status
   icon (checkmark / alert), same shape whether it's reporting success or
   an error. Icon-only, no markup change — main.js still just sets
   textContent and the success/error class. */
.form-status { position: relative; padding: var(--space-5) var(--space-5) var(--space-5) 52px; border-radius: 0; margin-bottom: var(--space-6); display: none; font: var(--body-01); border-left: 3px solid transparent; }
.form-status::before {
  content: "";
  position: absolute; left: var(--space-5); top: var(--space-5);
  width: 20px; height: 20px; background-repeat: no-repeat; background-size: 20px 20px;
}
.form-status.visible { display: block; }
.form-status.success { background: var(--green-10); color: #044317; border-left-color: var(--green-60); }
.form-status.success::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2324a148'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.3 14.6-4-4 1.4-1.5 2.6 2.6 5.6-5.7 1.5 1.5-7.1 7.1Z'/%3E%3C/svg%3E"); }
.form-status.error { background: var(--red-10); color: #750e13; border-left-color: var(--red-60); }
.form-status.error::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23da1e28'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM9 4h2v8H9Zm0 10h2v2H9Z'/%3E%3C/svg%3E"); }

/* ---- Footer: structure and styling ported 1:1 from the Maestro Carbon
   concept (maestro-1c6.pages.dev) — always dark (Gray 100), matching the
   header, regardless of page theme. ---- */
.site-footer { background: var(--gray-100); color: var(--gray-30); padding: var(--space-12) 0 0; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--gray-80);
}
.footer-brand .logo { border-right: none; padding-right: 0; }
.footer-brand p { max-width: 34ch; color: var(--gray-40); font: var(--body-01); margin-top: var(--space-3); }
.social-row { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.social-row a {
  width: 36px; height: 36px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(47, 111, 237, 0.4);
  color: var(--gray-30);
}
.social-row a svg { width: 17px; height: 17px; }
.social-row a:hover { background: var(--blue-60); color: var(--white); border-color: var(--blue-60); }
.footer-col h4 { font: var(--body-01); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: var(--space-3); }
.footer-col a { color: var(--gray-30); text-decoration: none; font: var(--body-02); }
.footer-col a:hover { color: var(--blue-40); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); padding: var(--space-5) 0; font: var(--body-01); color: var(--gray-50); }
.footer-bottom a { color: var(--gray-50); }

/* ---- Breadcrumbs ----
   Carbon's real Breadcrumb component: Body 01 text, a light Gray 10 bar
   sitting directly under the UI Shell header, "/" separators, current page
   in Gray 100 and not a link. */
.breadcrumb-bar { background: var(--bg-layer); border-bottom: 1px solid var(--border); padding: var(--space-3) 0; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; font: var(--body-01); color: var(--text-secondary); }
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--interactive); text-decoration: underline; }
.breadcrumbs .crumb-sep { margin: 0 var(--space-2); opacity: 0.6; }
.breadcrumbs [aria-current="page"] { color: var(--text-primary); font-weight: 600; }
.blog-main > .breadcrumbs { margin-bottom: var(--space-4); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); font: var(--body-01); }

/* ---- Progress Indicator ----
   Carbon's connected-step pattern: a vertical rule joining each numbered
   node to the next, so the sequence reads as one continuous path rather
   than four isolated circles. */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: var(--space-12); margin-bottom: var(--space-6); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 0;
  background: var(--interactive); color: var(--white);
  font: var(--body-01); font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute; left: 15px; top: 32px; bottom: calc(-1 * var(--space-6));
  width: 2px; background: var(--border-strong);
}
.blog-card { display: block; text-decoration: none; }
.blog-card .card:hover { border-left-color: var(--interactive); background: var(--bg-layer-2); }
.blog-meta { font: var(--body-01); color: var(--text-secondary); margin-bottom: var(--space-3); text-transform: uppercase; letter-spacing: 0.03em; }

/* ---- Blog sidebar layout ---- */
.blog-shell { display: flex; align-items: flex-start; gap: var(--space-8); }
.blog-sidebar {
  flex: none;
  width: 240px;
  position: sticky;
  top: calc(48px + var(--space-6) + 34px);
  padding: var(--space-2) 0;
  border-right: 1px solid var(--border);
}
.blog-sidebar h4 { font: var(--body-01); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary); padding: 0 var(--space-4); margin-bottom: var(--space-3); }
.blog-sidebar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.blog-sidebar a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: 0;
  border-left: 3px solid transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font: var(--body-01);
}
.blog-sidebar a:hover { background: var(--bg-layer-2); color: var(--text-primary); }
.blog-sidebar a[aria-current="page"] { color: var(--interactive); border-left-color: var(--interactive); background: var(--bg-layer-2); font-weight: 600; }
.blog-main { flex: 1; min-width: 0; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero .grid-2, .blog-main .grid-2 { grid-template-columns: 1fr; }
  .about-illust, .blog-illust { max-width: 320px; margin: var(--space-6) auto 0; }
  .hero--video { padding: var(--space-10) 0; }
  .blog-shell { flex-direction: column; }
  .blog-sidebar { width: 100%; position: static; border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
  h1 { font: var(--heading-05); }
  h2 { font: var(--heading-04); }
  .nav-toggle { display: inline-flex; }
  .logo { border-right: none; padding-right: var(--space-4); }
  .nav-toggle, .theme-toggle { width: 40px; }
  .nav-cta { gap: var(--space-3); }
  .wordmark-logo { height: 22px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-80);
    flex-direction: column; align-items: stretch; gap: 0; margin-left: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { width: 100%; height: auto; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--gray-80); }
  .nav-links a[aria-current="page"] { border-left: 3px solid var(--blue-40); border-bottom-color: var(--gray-80); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-6); }
}
