/* ============================================================
   ILX Studio — shared stylesheet (light default + dark theme)
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ---- LIGHT THEME (default) ---- */
:root {
  --blue:     #1a70ff;
  --blue-2:   #2563eb;
  --blue-dim: #0d4bb5;

  --bg:       #f4f6f9;   /* offwhite page */
  --bg2:      #ffffff;   /* cards / surfaces */
  --bg3:      #eef1f6;   /* inputs / subtle fills */

  --text:     #243044;
  --heading:  #0f172a;
  --muted:    #5a6878;
  --faint:    #8794a5;

  --border:   rgba(15,23,42,0.10);
  --border-2: rgba(26,112,255,0.30);
  --green:    #16a34a;

  --logo-ink: #0f172a;
  --nav-bg:   rgba(244,246,249,0.88);
  --shadow:   0 1px 2px rgba(15,23,42,0.05), 0 10px 30px rgba(15,23,42,0.06);
  --grid-line: rgba(15,23,42,0.05);

  --maxw: 1100px;
}

/* ---- DARK THEME ---- */
html[data-theme="dark"] {
  --blue:     #1a70ff;
  --blue-2:   #60a5fa;
  --blue-dim: #0d4bb5;

  --bg:       #080d18;
  --bg2:      #0d1525;
  --bg3:      #111e35;

  --text:     #e2e8f0;
  --heading:  #ffffff;
  --muted:    #94a3b8;
  --faint:    #64748b;

  --border:   rgba(255,255,255,0.08);
  --border-2: rgba(26,112,255,0.28);
  --green:    #4ade80;

  --logo-ink: #ffffff;
  --nav-bg:   rgba(8,13,24,0.85);
  --shadow:   0 1px 2px rgba(0,0,0,0.3), 0 10px 30px rgba(0,0,0,0.25);
  --grid-line: rgba(255,255,255,0.04);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--blue); }
img, svg { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-logo { height: 30px; width: auto; flex-shrink: 0; display: block; }
.brand-logo--sm { height: 24px; }
html[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }
.brand-name { font-size: 0.92rem; font-weight: 700; color: var(--heading); letter-spacing: 0.02em; white-space: nowrap; }
.brand-llc { color: var(--muted); font-weight: 400; font-size: 0.82rem; }

.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-links { display: flex; gap: 1.4rem; align-items: center; font-size: 0.9rem; }
.nav-links > a { color: var(--muted); white-space: nowrap; }
.nav-links > a:hover { color: var(--heading); }

/* ── Tools dropdown ───────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 0.28rem;
  color: var(--muted); font-size: 0.9rem; text-decoration: none; white-space: nowrap;
}
.nav-dropdown-trigger:hover { color: var(--heading); }
.dd-arr { width: 13px; height: 13px; flex-shrink: 0; transition: transform 0.2s; }
.nav-dropdown:hover .dd-arr { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 0.9rem); left: 50%; transform: translateX(-50%);
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.55rem; min-width: 290px; box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s 0.2s, visibility 0.15s 0.2s;
  z-index: 200;
}
/* Extends .nav-dropdown's own hover area down to bridge the gap to the menu.
   This is a child of .nav-dropdown so hovering it keeps :hover active. */
.nav-dropdown::after {
  content: ""; position: absolute;
  top: 100%; left: -12px; right: -12px;
  height: 1.2rem; /* covers the 0.9rem gap */
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.12s, visibility 0s;
}
.nav-dd-section + .nav-dd-section { margin-top: 0.35rem; padding-top: 0.35rem; border-top: 1px solid var(--border); }
.nav-dd-label {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); padding: 0.2rem 0.65rem 0.3rem;
}
.nav-dropdown-menu a {
  display: flex; flex-direction: column; gap: 0.06rem;
  padding: 0.4rem 0.65rem; border-radius: 7px;
  text-decoration: none; transition: background 0.1s;
  white-space: normal; color: inherit;
}
.nav-dropdown-menu a strong { font-size: 0.82rem; font-weight: 600; color: var(--heading); line-height: 1.25; }
.nav-dropdown-menu a span { font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.nav-dropdown-menu a:hover { background: rgba(26,112,255,0.07); }
.nav-dropdown-menu a:hover strong { color: var(--blue); }
.nav-dropdown-menu a.dd-soon { opacity: 0.5; }
@media (max-width: 860px) { .nav-dropdown-menu { display: none; } }
.nav-cta {
  background: var(--blue); color: #fff !important; font-weight: 600;
  padding: 0.5rem 1rem; border-radius: 8px;
}
.nav-cta:hover { background: #1560e0; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; transition: all 0.2s;
}
.theme-toggle:hover { color: var(--heading); border-color: var(--border-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

.nav-toggle {
  display: none; width: 40px; height: 38px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border); cursor: pointer;
  color: var(--heading);
}
.nav-toggle svg { width: 20px; height: 20px; }

.nav-badge {
  font-size: 0.7rem; font-weight: 600;
  background: rgba(26,112,255,0.12); color: var(--blue);
  border: 1px solid var(--border-2); padding: 0.2rem 0.6rem;
  border-radius: 999px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
}

[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--bg2); color: var(--text); border: 1px solid var(--border);
  font-size: 0.72rem; font-weight: 500; white-space: nowrap;
  padding: 0.3rem 0.65rem; border-radius: 6px; box-shadow: var(--shadow);
  pointer-events: none; opacity: 0; transition: opacity 0.15s; z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }
@media (max-width: 860px) { [data-tooltip]::after { display: none; } }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem 1rem; box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open .nav-links { display: flex; }
  .nav-links a { padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block; padding: 0.7rem 1.4rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; border: 1px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: #1560e0; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--heading); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { font-size: 0.8rem; color: var(--faint); padding: 1.25rem 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 0.4rem; }

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 5rem 1.5rem 4rem;
}
.coming-soon-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(26,112,255,0.1); border: 1px solid var(--border-2); color: var(--blue);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 2rem;
}
.coming-soon-pill::before {
  content: ''; width: 7px; height: 7px; background: var(--blue); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--heading); margin-bottom: 1.25rem;
}
.highlight, h1 .accent {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tagline {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted);
  max-width: 560px; line-height: 1.65; margin-bottom: 2.5rem;
}
.hero-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-bottom: 3rem; }

/* ============================================================
   FORMS (generic + homepage demo)
   ============================================================ */
.field-label { font-size: 0.8rem; font-weight: 600; color: var(--heading); margin-bottom: 0.3rem; display: block; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 0.92rem;
  background: var(--bg3); border: 1px solid var(--border); color: var(--text);
  padding: 0.7rem 0.95rem; border-radius: 8px; outline: none; transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { min-height: 110px; resize: vertical; }

.ajax-form, .notify-form { display: flex; flex-direction: column; gap: 0.65rem; width: 100%; }
.notify-form { max-width: 420px; margin: 0 auto 4rem; text-align: left; }
.form-title { font-size: 0.95rem; font-weight: 600; color: var(--heading); text-align: center; margin-bottom: 0.25rem; }
.form-row { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.form-row > * { flex: 1 1 180px; }
.ajax-form button, .notify-form button { width: 100%; margin-top: 0.25rem; }
.ajax-form button:disabled, .notify-form button:disabled { opacity: 0.6; cursor: default; }
.form-status { font-size: 0.85rem; text-align: center; min-height: 1.2rem; margin-top: 0.1rem; }
.form-status.success { color: var(--green); }
.form-status.error   { color: #ef4444; }
.form-note { font-size: 0.8rem; color: var(--faint); text-align: center; }

/* inline newsletter (email + button on one row) */
.newsletter-form { display: flex; gap: 0.5rem; max-width: 440px; }
.newsletter-form input { flex: 1; }
.newsletter-form button { white-space: nowrap; width: auto; margin: 0; }
@media (max-width: 480px) { .newsletter-form { flex-direction: column; } .newsletter-form button { width: 100%; } }

/* ============================================================
   PRODUCTS GRID (homepage)
   ============================================================ */
.products-section { width: 100%; max-width: 940px; margin: 0 auto; scroll-margin-top: 80px; }
.products-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.25rem;
}
.roadmap-label { margin-top: 2.75rem; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.product-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.95rem 1rem; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; text-decoration: none; display: block;
}
.product-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card.soon { opacity: 0.9; }
.product-name { font-size: 0.85rem; font-weight: 600; color: var(--heading); }
.product-name .ilx { color: var(--blue); }
.product-desc { font-size: 0.74rem; color: var(--muted); margin-top: 0.2rem; }
.product-cta { font-size: 0.7rem; color: var(--blue); margin-top: 0.45rem; font-weight: 600; }
.wip-tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue); background: rgba(26,112,255,0.1); border: 1px solid var(--border-2);
  padding: 0.1rem 0.4rem; border-radius: 5px; margin-top: 0.5rem; display: inline-block; }

/* ============================================================
   GENERIC SECTIONS / TOOL PAGES
   ============================================================ */
.tool-hero { position: relative; overflow: hidden; padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--border); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); background: rgba(26,112,255,0.1); border: 1px solid var(--border-2);
  padding: 0.35rem 0.85rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.eyebrow.wip { color: #b45309; background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.35); }
html[data-theme="dark"] .eyebrow.wip { color: #fbbf24; }
.tool-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--heading); margin-bottom: 1rem; max-width: 20ch;
}
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }

section { padding: 3.5rem 0; border-bottom: 1px solid var(--border); }
.section-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; color: var(--heading); letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 600; color: var(--heading); margin-bottom: 0.5rem; }
section > .wrap > p { color: var(--muted); max-width: 72ch; margin-bottom: 1rem; }
.prose p { color: var(--muted); max-width: 72ch; margin-bottom: 1rem; }
.prose ul { color: var(--muted); margin: 0 0 1rem 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--text); }
.about-section { background: var(--bg2); border-top: 1px solid var(--border); padding: 4rem 1.5rem; }
.about-inner { max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 4rem; }
.about-text { flex: 1; }
.about-text h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.about-text p { color: var(--muted); font-size: 0.95rem; line-height: 1.75; }
.about-logo { width: 180px; height: auto; flex-shrink: 0; opacity: 0.9; }
html[data-theme="dark"] .about-logo { filter: brightness(0) invert(1); }
@media (max-width: 680px) {
  .about-inner { flex-direction: column-reverse; gap: 2rem; text-align: center; }
  .about-logo { width: 130px; }
}

/* cards */
.grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.card .ico { font-size: 1.4rem; margin-bottom: 0.6rem; display: block; }
.card p { color: var(--muted); font-size: 0.92rem; }

/* spec table */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { color: var(--faint); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.spec-table td { color: var(--muted); }
.spec-table td:first-child { color: var(--heading); font-weight: 600; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.checklist { list-style: none; margin: 1.5rem 0 0; display: grid; gap: 0.65rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.checklist li { position: relative; padding-left: 1.75rem; color: var(--muted); font-size: 0.93rem; }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: 10px; padding: 0 1.2rem; margin-bottom: 0.75rem; background: var(--bg2); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 600; color: var(--heading); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 1.3rem; }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { color: var(--muted); padding: 1rem 0; font-size: 0.93rem; max-width: none; }

/* CTA + related */
.cta-band { text-align: center; background: linear-gradient(180deg, var(--bg2), var(--bg)); }
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { margin: 0 auto 1.75rem; }
.related-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 1.5rem; }
.related-grid a { display: block; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; color: var(--text); transition: all 0.2s; }
.related-grid a:hover { border-color: var(--border-2); transform: translateY(-2px); color: var(--heading); box-shadow: var(--shadow); }
.related-grid .r-name { font-weight: 600; color: var(--heading); }
.related-grid .r-name .ilx { color: var(--blue); }
.related-grid .r-desc { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }

/* newsletter band */
.signup-band { text-align: center; background: var(--bg2); }
.signup-band .newsletter-form { margin: 1.5rem auto 0; justify-content: center; }

/* ============================================================
   DECORATIVE GRAPHICS (internal only)
   ============================================================ */
.blueprint-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
}
.hero > .wrap, .hero-inner-z { position: relative; z-index: 1; }
.hero-art { color: var(--blue); opacity: 0.9; max-width: 460px; margin: 0 auto 2.25rem; display: block; }
.hero-art .stroke { stroke: currentColor; fill: none; }
.hero-art .node { fill: var(--blue); }
.hero-art .muted { stroke: var(--faint); }
.hero-art .muted-node { fill: var(--faint); }
.hero-art .slab { fill: rgba(26,112,255,0.06); stroke: none; }
.tool-hero .corner-art { position: absolute; right: -40px; top: -20px; width: 320px; color: var(--blue); opacity: 0.18; pointer-events: none; z-index: 0; }
.tool-hero .corner-art .stroke { stroke: currentColor; fill: none; }
.tool-hero .wrap { position: relative; z-index: 1; }

/* ============================================================
   GALLERY (hero slideshow)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 980px;
  margin: 0 auto 2.5rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--border);
  margin: 0;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow); }

.gallery-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.8s ease; display: block;
}
.gallery-slide.active { opacity: 1; }

.gallery-item.ph .gallery-slide { display: none; }
.gallery-item.ph::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
}
.gallery-item.ph::after {
  content: 'Screenshot coming soon';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
}

.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.35rem 0.6rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  font-size: 0.7rem; font-weight: 700; color: #fff;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.gallery-caption .g-ilx { color: #7db8ff; }

.gallery-dots {
  position: absolute; top: 0.45rem; right: 0.55rem;
  display: flex; gap: 0.3rem; align-items: center;
}
.dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: background 0.3s; }
.dot.active { background: #fff; }

/* ============================================================
   EULA (beta/sales page)
   ============================================================ */
.eula-box {
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 2.25rem;
  background: var(--bg);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}
.eula-box h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--heading);
  margin: 1.5rem 0 0.4rem;
}
.eula-box p { margin-bottom: 0.75rem; }
.eula-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.eula-caps {
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.eula-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--faint);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; font-size: 0.85rem; color: var(--muted); background: var(--bg2); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--blue); }
.foot-cols { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.foot-cols h4 { color: var(--heading); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.foot-cols ul { list-style: none; display: grid; gap: 0.35rem; }

/* homepage simple footer */
footer.simple { border-top: 1px solid var(--border); padding: 1.5rem 2.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; gap: 0.5rem; background: var(--bg2); }
footer.simple a { color: var(--muted); }
footer.simple a:hover { color: var(--blue); }

.disclaimer { color: var(--faint); font-size: 0.78rem; max-width: 72ch; margin-top: 1rem; }

@media (max-width: 600px) {
  .site-nav { padding: 0.8rem 1.1rem; }
  section { padding: 2.5rem 0; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
}

/* ============================================================
   HERO — REBUILT
   ============================================================ */
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-2);
  background: rgba(26,112,255,0.08);
  border: 1px solid rgba(26,112,255,0.20);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.5rem;
}
.hero-verb-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem auto 0;
}
.verb-chip {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-2);
  background: rgba(26,112,255,0.06);
  border: 1px solid rgba(26,112,255,0.18);
  border-radius: 6px;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.verb-chip:hover {
  background: rgba(26,112,255,0.14);
  border-color: rgba(26,112,255,0.40);
  color: var(--blue);
}
.verb-dot { color: var(--faint); font-size: 1rem; }

/* ============================================================
   SUITE SECTION — 5 PRODUCT CARDS
   ============================================================ */
.products-section { padding: 5rem 0; background: var(--bg2); }
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 3rem;
}
.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}
.suite-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.suite-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.suite-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.suite-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.suite-verb {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-2);
  background: rgba(26,112,255,0.08);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}
.suite-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.6rem;
}
.suite-name a { color: inherit; text-decoration: none; }
.suite-name a:hover { color: var(--blue); }
.suite-name .ilx { color: var(--blue); }
.suite-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.suite-features {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  flex: 1;
}
.suite-features li {
  font-size: 0.82rem;
  color: var(--text);
  padding-left: 1.1rem;
  position: relative;
}
.suite-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.75rem;
}
.suite-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-2);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  display: block;
}
.suite-link:hover { color: var(--blue); }

/* ── Bundle card — featured "all-in-one" variant ─────────── */
.suite-card--bundle {
  border-color: rgba(26,112,255,0.35);
  background: linear-gradient(135deg, var(--bg) 60%, rgba(26,112,255,0.04) 100%);
  position: relative;
}
.suite-card--bundle::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: linear-gradient(135deg, var(--blue), rgba(26,112,255,0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.suite-card--bundle:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,112,255,0.12), var(--shadow);
}
.suite-number--bundle {
  font-size: 1rem;
  color: var(--blue-2);
}
.suite-verb--bundle {
  background: rgba(26,112,255,0.14);
  color: var(--blue);
  border: 1px solid rgba(26,112,255,0.30);
}
.bundle-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  vertical-align: middle;
  margin-left: 0.5rem;
}
.suite-link--bundle {
  color: var(--blue);
  border-top-color: rgba(26,112,255,0.2);
}
.suite-link--bundle:hover { color: var(--blue-dim); }

/* ============================================================
   IPC INTEGRATION SECTION
   ============================================================ */
.ipc-section {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ipc-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.ipc-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 1.1rem;
}
.ipc-text p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.85rem;
}
.ipc-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.ipc-nodes {
  position: relative;
  width: 260px;
  height: 260px;
}
.ipc-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 0 8px rgba(26,112,255,0.12);
}
.ipc-node-label {
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ipc-spoke {
  position: absolute;
  top: 50%; left: 50%;
}
.ipc-spoke::before {
  content: '';
  position: absolute;
  width: 80px; height: 1px;
  background: var(--border-2);
  transform-origin: 0 50%;
}
.ipc-tool-chip {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}
.ipc-spoke-1 { transform: rotate(-90deg); }
.ipc-spoke-1 .ipc-tool-chip { transform: rotate(90deg) translate(82px, -50%); }
.ipc-spoke-1::before { width: 75px; }
.ipc-spoke-2 { transform: rotate(-18deg); }
.ipc-spoke-2 .ipc-tool-chip { transform: rotate(18deg) translate(82px, -50%); }
.ipc-spoke-2::before { width: 75px; }
.ipc-spoke-3 { transform: rotate(54deg); }
.ipc-spoke-3 .ipc-tool-chip { transform: rotate(-54deg) translate(82px, -50%); }
.ipc-spoke-3::before { width: 75px; }
.ipc-spoke-4 { transform: rotate(126deg); }
.ipc-spoke-4 .ipc-tool-chip { transform: rotate(-126deg) translate(82px, -50%); }
.ipc-spoke-4::before { width: 75px; }
.ipc-spoke-5 { transform: rotate(198deg); }
.ipc-spoke-5 .ipc-tool-chip { transform: rotate(-198deg) translate(82px, -50%); }
.ipc-spoke-5::before { width: 75px; }

@media (max-width: 860px) {
  .ipc-inner { grid-template-columns: 1fr; }
  .ipc-diagram { display: none; }
}

/* ============================================================
   VALUE PROP SECTION
   ============================================================ */
.value-section {
  padding: 5rem 0;
  background: var(--bg2);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}
.value-icon {
  width: 36px; height: 36px;
  color: var(--blue-2);
  margin-bottom: 0.85rem;
}
.value-icon svg { width: 100%; height: 100%; }
.value-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.4rem;
}
.value-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.value-card a { color: var(--blue-2); }
.value-card a:hover { color: var(--blue); }

/* ============================================================
   STANDARDS SECTION
   ============================================================ */
.standards-section {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.std-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.std-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.75rem;
}
.std-steel   { background: rgba(26,112,255,0.10); color: var(--blue-2); }
.std-concrete{ background: rgba(22,163,74,0.10);  color: var(--green); }
.std-loads   { background: rgba(217,119,6,0.10);  color: #b45309; }
.std-wood    { background: rgba(120,53,15,0.08);  color: #92400e; }
.std-masonry { background: rgba(107,114,128,0.10);color: #6b7280; }
.std-geotech { background: rgba(159,88,10,0.10);  color: #92400e; }
html[data-theme="dark"] .std-loads  { color: #fbbf24; }
html[data-theme="dark"] .std-wood   { color: #d97706; }
html[data-theme="dark"] .std-masonry{ color: #9ca3af; }
html[data-theme="dark"] .std-geotech{ color: #d97706; }
.std-card ul { list-style: none; display: grid; gap: 0.3rem; }
.std-card ul li { font-size: 0.82rem; color: var(--muted); padding-left: 0.9rem; position: relative; }
.std-card ul li::before { content: "–"; position: absolute; left: 0; color: var(--faint); }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { padding: 5rem 0; background: var(--bg2); }
.faq-list { margin-top: 2.5rem; display: grid; gap: 0.75rem; max-width: 780px; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--faint);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  padding: 0 1.25rem 1.25rem;
}
.faq-item a { color: var(--blue-2); }
.faq-item a:hover { color: var(--blue); }
