/* SpectrumCodes design system — ported from index.html, classes prefixed ac- */

.ac-root, .ac-page {
  --bg:       #020817;
  --bg-2:     #0D1117;
  --surface:  rgba(255,255,255,0.035);
  --surface2: rgba(255,255,255,0.06);
  --border:   rgba(255,255,255,0.08);
  --cyan:     #06B6D4;
  --cyan-dim: rgba(6,182,212,0.12);
  --pink:     #EC4899;
  --pink-dim: rgba(236,72,153,0.12);
  --text:     #F1F5F9;
  --muted:    #94A3B8;
  --subtle:   #475569;
  --mono:     'JetBrains Mono', monospace;
}

.ac-page * , .ac-page *::before, .ac-page *::after { box-sizing: border-box; }

/* Smooth in-page anchor scrolling (nav links, CTAs). scroll-margin-top keeps
   the target's heading clear of the fixed floating nav pill. */
html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 104px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Astra overrides — Astra styles h1-h6/button directly, which beats the
   inheritance the original index.html relied on. */
.ac-root h1, .ac-root h2, .ac-root h3, .ac-root h4, .ac-root h5, .ac-root h6 {
  color: var(--text);
}

.ac-page {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Inter', sans-serif !important;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.ac-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.065) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 30%, transparent 100%);
}

.ac-nav, .ac-main, .ac-footer { position: relative; z-index: 1; }

/* ── NAV ── */
.ac-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 48px);
  max-width: 1200px;
  height: 60px;
  padding: 0 20px 0 16px;
  background: rgba(2, 8, 23, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.05) inset;
}

.ac-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.ac-logo-img { width: 32px; height: 32px; border-radius: 8px; display: block; }

.ac-nav-links { display: flex; gap: 32px; list-style: none; margin:0; padding:0; }
.ac-nav-links a { color: var(--muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.ac-nav-links a:hover { color: var(--text); }
.ac-nav-right { display: flex; align-items: center; gap: 12px; }

.ac-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
  font-family: 'Inter', sans-serif;
}

.ac-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.ac-btn-primary {
  background: var(--cyan);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.35s, background-color 0.35s ease;
}
.ac-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle 120px at var(--mx, 50%) var(--my, 50%), rgba(6,182,212,0.9), rgba(6,182,212,0.28) 45%, transparent 75%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.ac-btn-primary:hover {
  background-color: transparent;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(6,182,212,0.5), 0 0 4px rgba(6,182,212,0.5), 0 0 24px rgba(6,182,212,0.5), 0 0 46px rgba(6,182,212,0.28);
}
.ac-btn-primary:hover::before {
  opacity: 1;
}
.ac-btn-particles-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.ac-btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.ac-btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); opacity: 1; transform: none; }
.ac-btn-lg { padding: 13px 28px; font-size: 0.95rem; }
.ac-btn-nav { background: transparent; color: var(--cyan); border: 1.5px solid rgba(6,182,212,0.45); padding: 7px 16px; font-size: 0.8rem; border-radius: 9999px; }
.ac-btn-nav:hover { background: rgba(6,182,212,0.1); border-color: var(--cyan); opacity: 1; transform: none; }

/* ── LANG SWITCHER ── */
.ac-lang-switcher { position: relative; }
.ac-lang-current {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.ac-lang-current:hover { border-color: rgba(6,182,212,0.4); color: var(--text); }
.ac-lang-chevron { transition: transform 0.2s; }
.ac-lang-switcher.ac-open .ac-lang-chevron { transform: rotate(180deg); }
.ac-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #0f1729;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 4px;
  min-width: 110px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 200;
}
.ac-lang-switcher.ac-open .ac-lang-dropdown { opacity: 1; transform: translateY(0); pointer-events: all; }
.ac-lang-opt {
  display: block; width: 100%;
  background: none; border: none;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  text-align: left;
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ac-lang-opt:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.ac-lang-opt.ac-active { color: var(--cyan); }

/* ── HERO ── */
.ac-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 60px;
  padding: 120px 6% 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.ac-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--cyan-dim);
  border: 1px solid rgba(6,182,212,0.2);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
}

.ac-eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  animation: ac-blink-dot 2.5s ease-in-out infinite;
}

@keyframes ac-blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ac-hero-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.ac-pink { color: var(--pink); }
.ac-cyan { color: var(--cyan); }

.ac-hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 28px;
}

.ac-hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

.ac-h-stat { display: flex; flex-direction: column; gap: 2px; }

.ac-h-stat-val {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}

.ac-h-stat-val.ac-cyan { color: var(--cyan); }
.ac-h-stat-val.ac-pink { color: var(--pink); }

.ac-h-stat-label {
  font-size: 0.72rem;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ac-stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.ac-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── ERP MOCK CARD ── */
.ac-erp-mock {
  background: var(--bg-2);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(6,182,212,0.06), 0 24px 60px rgba(0,0,0,0.6), 0 0 40px rgba(6,182,212,0.04);
}

.ac-mock-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.ac-chrome-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.ac-chrome-dot.ac-red   { background: #FF5F57; }
.ac-chrome-dot.ac-yellow { background: #FFBD2E; }
.ac-chrome-dot.ac-green { background: #28C840; }

.ac-chrome-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--subtle);
  margin-left: 6px;
}

.ac-mock-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.ac-mock-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--subtle);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
}

.ac-mock-tab.ac-active-before {
  color: var(--pink);
  background: var(--pink-dim);
  border-bottom: 2px solid var(--pink);
}

.ac-mock-tab.ac-active-after {
  color: var(--cyan);
  background: var(--cyan-dim);
  border-bottom: 2px solid var(--cyan);
}

.ac-mock-body { position: relative; min-height: 300px; }

.ac-before-state, .ac-after-state {
  position: absolute;
  inset: 0;
  padding: 20px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.ac-before-state.ac-visible, .ac-after-state.ac-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ac-chaos-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--subtle);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.ac-chaos-channels {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ac-channel-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
}

.ac-channel-pill.ac-wp  { border-color: rgba(37,211,102,0.3); color: #25D366; }
.ac-channel-pill.ac-em  { border-color: rgba(234,67,53,0.3);  color: #EA4335; }
.ac-channel-pill.ac-ph  { border-color: rgba(59,130,246,0.3); color: #3B82F6; }

.ac-chaos-msgs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.ac-chaos-msg {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

.ac-chaos-msg .ac-source {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--subtle);
  margin-bottom: 2px;
}

.ac-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(236,72,153,0.08);
  border: 1px solid rgba(236,72,153,0.2);
}

.ac-status-dot-bad  { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); flex-shrink: 0; animation: ac-pulse-bad 1.5s infinite; }
@keyframes ac-pulse-bad { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.ac-status-text-bad {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--pink);
}

.ac-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ac-order-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 500;
}

.ac-order-customer {
  font-size: 0.72rem;
  color: var(--subtle);
}

.ac-status-badge-good {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  font-size: 0.68rem;
  font-weight: 600;
  color: #22C55E;
  font-family: var(--mono);
}

.ac-status-dot-good { width: 5px; height: 5px; border-radius: 50%; background: #22C55E; }

.ac-order-line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 14px;
}

.ac-line-desc { font-size: 0.78rem; color: var(--text); }
.ac-line-qty  { font-family: var(--mono); font-size: 0.72rem; color: var(--cyan); }

.ac-thread-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--subtle);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.ac-thread { display: flex; flex-direction: column; gap: 7px; }

.ac-thread-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ac-thread-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #06B6D4);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
}

.ac-thread-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px 12px 12px 12px;
  padding: 6px 10px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.ac-thread-time {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--subtle);
  margin-top: 3px;
}

.ac-thread-msg.ac-confirmed .ac-thread-bubble {
  border-color: rgba(34,197,94,0.2);
  color: var(--text);
}

.ac-thread-msg.ac-typing .ac-thread-bubble {
  border-color: rgba(6,182,212,0.2);
}

.ac-cursor {
  display: inline-block;
  width: 2px;
  height: 12px;
  background: var(--cyan);
  margin-left: 2px;
  vertical-align: middle;
  animation: ac-blink-cursor 1s step-end infinite;
}

@keyframes ac-blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.ac-mock-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ac-mock-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: var(--subtle);
  font-family: var(--mono);
}

.ac-mock-send {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--cyan-dim);
  border: 1px solid rgba(6,182,212,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: default;
}

.ac-mock-send svg { width: 12px; height: 12px; color: var(--cyan); }

/* ── SHARED SECTION STYLES ── */
.ac-section {
  padding: 100px 6%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.ac-s-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.ac-s-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.ac-s-sub {
  color: var(--muted);
  line-height: 1.8;
}

.ac-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.ac-card:hover {
  background: var(--surface2);
  border-color: rgba(6,182,212,0.2);
  transform: translateY(-3px);
}

/* ── PROBLEM ── */
.ac-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.ac-p-cards { display: flex; flex-direction: column; gap: 12px; }

.ac-p-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--pink);
  border-radius: 10px;
  padding: 18px 20px;
}

.ac-p-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.75; margin:0; }

/* ── PROCESS ── */
.ac-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.ac-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px 24px;
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ac-step-card:hover { border-color: rgba(6,182,212,0.25); transform: translateY(-3px); }

.ac-step-num {
  position: absolute;
  top: -12px;
  left: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, rgba(6,182,212,0.2) 0%, rgba(6,182,212,0) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.ac-step-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ac-step-icon {
  width: 40px;
  height: 40px;
  background: rgba(6,182,212,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.ac-step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.ac-step-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* ── SERVICES ── */
.ac-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.ac-svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}

.ac-svc-card:hover { background: var(--surface2); }

.ac-svc-card:nth-child(odd)  { border-top: 2px solid var(--cyan); }
.ac-svc-card:nth-child(odd):hover  { border-color: var(--cyan); }
.ac-svc-card:nth-child(even) { border-top: 2px solid var(--pink); }
.ac-svc-card:nth-child(even):hover { border-color: var(--pink); }

.ac-svc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.ac-svc-card:nth-child(odd)  .ac-svc-icon { background: var(--cyan-dim); }
.ac-svc-card:nth-child(even) .ac-svc-icon { background: var(--pink-dim); }

.ac-svc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.ac-svc-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.8; }

/* ── WHY US / DIFF ── */
.ac-diff-block {
  background: linear-gradient(135deg, rgba(6,182,212,0.04), rgba(236,72,153,0.03));
  border: 1px solid rgba(6,182,212,0.12);
  border-radius: 20px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}

.ac-diff-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.ac-diff-text { font-size: 0.9rem; color: var(--muted); line-height: 1.8; margin-bottom: 10px; }

.ac-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ac-stat-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.ac-stat-val {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--cyan);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.ac-stat-label { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }

/* ── WORK CAROUSEL ── */
.ac-carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}

.ac-carousel-nav { display: flex; gap: 8px; }

.ac-carousel-btn {
  width: 38px; height: 38px;
  padding: 0; /* Astra gives buttons 10px 40px padding, which turns the circle into an oval */
  flex-shrink: 0;
  line-height: 1;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ac-carousel-btn:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }

.ac-carousel-track-wrap { overflow: hidden; }

.ac-work-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 64px 24px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--subtle);
}
.ac-work-empty svg { color: var(--cyan); opacity: 0.7; margin-bottom: 4px; }
.ac-work-empty-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--text); }
.ac-work-empty-sub { font-size: 0.9rem; color: var(--muted); }

.ac-carousel-track {
  display: flex;
  gap: 18px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.ac-work-card {
  flex: 0 0 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.ac-work-card:hover { border-color: rgba(6,182,212,0.25); transform: translateY(-4px); }
.ac-work-card img { pointer-events: none; -webkit-user-drag: none; }
.ac-carousel-track.ac-dragging { cursor: grabbing; }
.ac-carousel-track.ac-dragging .ac-work-card { transform: none; transition: none; }

.ac-work-card-img {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.ac-work-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ac-work-card:hover .ac-work-card-img img { transform: scale(1.04); }

.ac-work-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(2,8,23,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--cyan);
}

.ac-work-card-body { padding: 22px; }

.ac-work-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.ac-work-card-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }

.ac-work-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  transition: gap 0.2s;
}

.ac-work-card-link:hover { gap: 9px; }

/* ── FAQ ── */
.ac-faq-list { margin-top: 44px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }

.ac-faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.ac-faq-q {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.ac-faq-q:hover { background: rgba(255,255,255,0.03); }

.ac-faq-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid rgba(6,182,212,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--cyan);
  line-height: 1;
  transition: transform 0.3s;
}

.ac-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.ac-faq-a-inner { padding: 0 20px 18px; font-size: 0.875rem; color: var(--muted); line-height: 1.8; }
.ac-faq-item.ac-open .ac-faq-a { max-height: 400px; }
.ac-faq-item.ac-open .ac-faq-icon { transform: rotate(45deg); background: rgba(6,182,212,0.2); }

/* ── FINAL CTA ── */
.ac-final-cta {
  padding: 140px 6%;
  text-align: center;
  position: relative;
}

.ac-final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(236,72,153,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.ac-final-cta .ac-s-heading { max-width: 560px; margin: 0 auto 14px; }
.ac-cta-sub { color: var(--muted); max-width: 440px; margin: 0 auto 36px; line-height: 1.75; }

/* ── FOOTER ── */
.ac-footer {
  border-top: 1px solid var(--border);
  padding: 60px 6% 36px;
  position: relative; z-index: 1;
}

.ac-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.ac-footer-brand-text { font-size: 0.84rem; color: var(--muted); line-height: 1.7; margin: 12px 0 16px; max-width: 240px; }
.ac-footer-contact { font-size: 0.8rem; color: var(--muted); line-height: 2; }
.ac-footer-contact a { color: var(--muted); text-decoration: none; }
.ac-footer-contact a:hover { color: var(--text); }

.ac-trust-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.ac-trust-pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: 100px;
  padding: 3px 10px;
}

.ac-f-col-head { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.84rem; margin-bottom: 14px; }
.ac-f-links { list-style: none; display: flex; flex-direction: column; gap: 10px; margin:0; padding:0; }
.ac-f-links a { color: var(--muted); text-decoration: none; font-size: 0.84rem; transition: color 0.2s; }
.ac-f-links a:hover { color: var(--text); }

.ac-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ac-footer-copy, .ac-footer-tag { font-size: 0.78rem; color: var(--subtle); }

/* ── HERO STAGE ── */
.ac-hero-stage {
  position: relative;
  height: 560px;
  width: 100%;
}

/* ── SCATTERED FRAGMENTS ── */
.ac-frags-layer { position: absolute; inset: 44px 0 0; }

.ac-frag {
  position: absolute; width: 205px;
  background: rgba(11,15,25,0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.65);
  transition: left 1.15s cubic-bezier(0.4,0,0.2,1),
              top  1.15s cubic-bezier(0.4,0,0.2,1),
              transform 1.15s cubic-bezier(0.4,0,0.2,1),
              opacity 0.9s ease;
}

.ac-frag-chrome {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ac-frag-chrome-icon { width: 14px; height: 14px; border-radius: 3px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ac-frag-chrome-title { font-family: var(--mono); font-size: 0.6rem; color: var(--subtle); margin-left: 2px; }

.ac-frag-body { padding: 10px 11px; }
.ac-frag-from { font-size: 0.68rem; color: var(--text); font-weight: 500; margin-bottom: 2px; }
.ac-frag-line { font-size: 0.69rem; color: var(--muted); line-height: 1.4; margin-bottom: 3px; }
.ac-frag-dim  { font-size: 0.65rem; color: var(--subtle); }

.ac-frag-bubble {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px 10px 10px 10px;
  padding: 5px 9px; font-size: 0.69rem; color: var(--muted); margin-bottom: 4px;
}
.ac-frag-bubble.ac-right { border-radius: 10px 6px 10px 10px; }

.ac-frag-table { width: 100%; border-collapse: collapse; }
.ac-frag-table th { font-family: var(--mono); font-size: 0.54rem; color: var(--subtle); text-align: left; padding: 2px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); text-transform: uppercase; }
.ac-frag-table td { padding: 3px 4px; font-size: 0.68rem; color: var(--muted); }
.ac-frag-table .ac-t-id { font-family: var(--mono); color: var(--cyan); }
.ac-frag-table .ac-t-warn { color: var(--pink); font-family: var(--mono); }

.ac-frag-notif-row { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.ac-frag-notif-icon { width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.ac-frag-ai-q { font-size: 0.69rem; color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 6px 8px; margin-bottom: 5px; }
.ac-frag-ai-a { font-size: 0.69rem; color: var(--subtle); background: rgba(16,163,127,0.06); border: 1px solid rgba(16,163,127,0.12); border-radius: 8px; padding: 6px 8px; }

.ac-frag-email { left:10px;  top:10px;  animation: ac-flt-a 5.5s ease-in-out infinite; }
.ac-frag-wa    { left:278px; top:22px;  animation: ac-flt-b 6.2s ease-in-out infinite; animation-delay:-2.1s; }
.ac-frag-excel { left:22px;  top:190px; animation: ac-flt-c 5.8s ease-in-out infinite; animation-delay:-1.2s; }
.ac-frag-notif { left:270px; top:174px; animation: ac-flt-b 6.8s ease-in-out infinite; animation-delay:-3.6s; }
.ac-frag-ai    { left:116px; top:362px; animation: ac-flt-a 6.1s ease-in-out infinite; animation-delay:-4.3s; z-index: 6; }

@keyframes ac-flt-a { 0%,100%{transform:translateY(0) rotate(-6deg)} 50%{transform:translateY(-9px) rotate(-5deg)} }
@keyframes ac-flt-b { 0%,100%{transform:translateY(0) rotate(5deg)}  50%{transform:translateY(-8px) rotate(4deg)} }
@keyframes ac-flt-c { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-10px) rotate(-2deg)} }

/* ── REVEAL ──
   Visible by default so content never depends on JS running. JS opts elements
   INTO the fade-in-from-below effect by adding .ac-pending before they scroll
   into view, then swaps to .ac-visible once they do. */
.ac-reveal.ac-pending { opacity: 0; transform: translateY(24px); }
.ac-reveal.ac-visible { opacity: 1; transform: translateY(0); }
.ac-reveal { transition: opacity 0.6s ease, transform 0.6s ease; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .ac-hero { grid-template-columns: 1fr; padding-top: 100px; min-height: auto; }
  .ac-erp-mock { max-width: 520px; margin: 0 auto; }
  .ac-problem-grid, .ac-diff-block, .ac-svc-grid { grid-template-columns: 1fr; }
  .ac-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .ac-step-grid { grid-template-columns: 1fr 1fr; }
  .ac-footer-grid { grid-template-columns: 1fr; }
  .ac-nav-links { display: none; }
  .ac-diff-block { padding: 32px 24px; gap: 32px; }

  .ac-hero-stage {
    transform: scale(0.68);
    transform-origin: top left;
    height: 400px;
    margin: 0 auto;
  }

  .ac-nav {
    width: calc(100% - 24px);
    height: 52px;
    padding: 0 14px;
    top: 10px;
  }
  .ac-logo-img { width: 28px; height: 28px; }
  .ac-nav-logo-text { display: none; }
  .ac-btn-nav { display: none; }
  .ac-nav-right { gap: 8px; flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ac-reveal { opacity: 1; transform: none; transition: none; }
  .ac-cursor { animation: none; }
  .ac-eyebrow-dot { animation: none; }
}

/* ── EXCEL → ODOO MORPH ── */
#ac-excel-card {
  transition: left 0.85s cubic-bezier(0.4,0,0.2,1),
              top 0.85s cubic-bezier(0.4,0,0.2,1),
              width 0.8s cubic-bezier(0.4,0,0.2,1),
              height 0.8s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.34,1.4,0.64,1),
              border-color 0.5s ease,
              box-shadow 0.5s ease,
              opacity 0.9s ease;
  z-index: 5;
}
#ac-excel-card.ac-excel-morphed {
  animation: none !important;
  width: 515px !important;
  height: 420px !important;
  transform: rotate(0deg) translateY(0px) !important;
  border-color: rgba(6,182,212,0.5) !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.85), 0 0 48px rgba(6,182,212,0.2) !important;
  z-index: 20 !important;
}

.ac-odoo-ai-chat {
  position: absolute;
  bottom: 8px;
  right: 7px;
  width: 194px;
  background: rgba(8,12,22,0.98);
  border: 1px solid rgba(6,182,212,0.38);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.8), 0 0 18px rgba(6,182,212,0.18);
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.34,1.4,0.64,1);
  z-index: 31;
}
.ac-odoo-ai-chat.ac-chat-visible { opacity: 1; transform: translateY(0) scale(1); }
.ac-odoo-ai-header {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 9px;
  background: rgba(6,182,212,0.22);
  border-bottom: 1px solid rgba(6,182,212,0.28);
}
.ac-odoo-ai-header-icon {
  width: 16px; height: 16px; border-radius: 4px; background: #0891b2;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ac-odoo-ai-header-title { font-size: 0.58rem; font-weight: 700; color: var(--text); }
.ac-odoo-ai-status-dot {
  width: 5px; height: 5px; border-radius: 50%; background: #22c55e;
  margin-left: auto; box-shadow: 0 0 6px rgba(34,197,94,0.7);
  animation: ac-pulse-dot 2s ease-in-out infinite;
}
@keyframes ac-pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.85)} }
.ac-odoo-ai-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ac-odoo-ai-bubble-user {
  background: rgba(6,182,212,0.18); border: 1px solid rgba(6,182,212,0.28);
  border-radius: 8px 8px 2px 8px;
  padding: 5px 8px; font-size: 0.54rem; color: var(--muted);
  align-self: flex-end; max-width: 92%; line-height: 1.35;
}
.ac-odoo-ai-bubble-bot {
  background: rgba(6,182,212,0.05); border: 1px solid rgba(6,182,212,0.18);
  border-radius: 2px 8px 8px 8px;
  padding: 5px 8px; font-size: 0.54rem; color: var(--text);
  line-height: 1.5; min-height: 16px;
}
.ac-odoo-ai-thinking { display: flex; gap: 3px; align-items: center; padding: 2px 0; }
.ac-odoo-ai-thinking span {
  width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); opacity: 0.5;
  animation: ac-ai-think 1.2s ease-in-out infinite;
}
.ac-odoo-ai-thinking span:nth-child(2) { animation-delay: .2s; }
.ac-odoo-ai-thinking span:nth-child(3) { animation-delay: .4s; }
@keyframes ac-ai-think { 0%,100%{opacity:.2;transform:translateY(0)} 50%{opacity:1;transform:translateY(-3px)} }

.ac-frag.ac-flying-away {
  animation: none !important;
  transition: left 0.85s cubic-bezier(0.4,0,0.2,1),
              top 0.85s cubic-bezier(0.4,0,0.2,1),
              opacity 0.6s ease,
              transform 0.75s cubic-bezier(0.4,0,0.2,1) !important;
  z-index: 15 !important;
}

.ac-odoo-notifs-area {
  position: absolute;
  top: 50px;
  right: 7px;
  width: 172px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 30;
  pointer-events: none;
}
.ac-odoo-notif-toast {
  background: rgba(8,12,22,0.97);
  border: 1px solid rgba(255,255,255,0.09);
  border-left: 3px solid #22c55e;
  border-radius: 7px;
  padding: 7px 9px 7px 8px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.7), 0 0 12px rgba(34,197,94,0.08);
  opacity: 0;
  transform: translateX(22px);
  transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.34,1.4,0.64,1);
}
.ac-odoo-notif-toast.ac-toast-visible { opacity: 1; transform: translateX(0); }
.ac-odoo-notif-toast-wa { border-left-color: #25D366; box-shadow: 0 6px 24px rgba(0,0,0,0.7), 0 0 12px rgba(37,211,102,0.08); }
.ac-odoo-notif-icon-wrap {
  width: 20px; height: 20px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ac-odoo-notif-title { display: block; font-size: 0.57rem; font-weight: 700; color: #4ade80; margin-bottom: 2px; line-height: 1.2; }
.ac-odoo-notif-toast-wa .ac-odoo-notif-title { color: #4ade80; }
.ac-odoo-notif-msg   { display: block; font-size: 0.52rem; color: var(--muted); line-height: 1.35; }

.ac-odoo-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 10px;
  background: rgba(6,182,212,0.14);
  border-bottom: 1px solid rgba(6,182,212,0.22);
}
.ac-odoo-breadcrumb { display: flex; align-items: center; gap: 3px; }
.ac-odoo-bc-root { font-size: 0.58rem; color: var(--subtle); }
.ac-odoo-bc-current { font-size: 0.58rem; color: var(--text); font-weight: 600; }
.ac-odoo-actions { display: flex; gap: 6px; align-items: center; }
.ac-odoo-btn-new {
  font-size: 0.52rem; color: #fff; background: #0891b2;
  border-radius: 4px; padding: 2px 7px; font-weight: 700; letter-spacing: .01em;
}
.ac-odoo-filters { font-size: 0.52rem; color: var(--subtle); }
.ac-odoo-list-header {
  display: flex; align-items: center;
  padding: 4px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}
.ac-odoo-list-header .ac-odoo-col {
  font-size: 0.52rem; color: var(--subtle);
  text-transform: uppercase; font-weight: 700; letter-spacing: .04em;
}
.ac-odoo-list-body { padding: 0; }
.ac-odoo-row {
  display: flex; align-items: center;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  opacity: 0; transform: translateY(5px);
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.15s;
}
.ac-odoo-row.ac-row-visible { opacity: 1; transform: translateY(0); }
.ac-odoo-row-highlight { background: rgba(6,182,212,0.08); }
.ac-odoo-row:hover { background: rgba(255,255,255,0.03); }
.ac-odoo-col { font-size: 0.59rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-odoo-col-order  { width: 48px; flex-shrink: 0; }
.ac-odoo-col-date   { width: 58px; flex-shrink: 0; }
.ac-odoo-col-customer { flex: 1; min-width: 0; }
.ac-odoo-col-amount { width: 48px; flex-shrink: 0; text-align: right; color: var(--text); font-family: var(--mono); font-size: 0.57rem; }
.ac-odoo-col-status { width: 110px; flex-shrink: 0; display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.ac-odoo-order-num  { color: var(--cyan); font-family: var(--mono); font-size: 0.58rem; }
.ac-odoo-tag {
  display: inline-block; font-size: 0.49rem;
  padding: 1px 5px; border-radius: 8px; font-weight: 700; white-space: nowrap;
}
.ac-odoo-tag-so      { background: rgba(34,197,94,0.1);  color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.ac-odoo-tag-invoice { background: rgba(251,146,60,0.12); color: #fb923c; border: 1px solid rgba(251,146,60,0.22); }
.ac-odoo-tag-done    { background: rgba(6,182,212,0.1);  color: #22d3ee; border: 1px solid rgba(6,182,212,0.2); }
.ac-odoo-tag-locked  { background: rgba(99,102,241,0.12);color: #818cf8; border: 1px solid rgba(99,102,241,0.22); }
.ac-odoo-tag-quote   { background: rgba(148,163,184,0.08);color: var(--muted); border: 1px solid rgba(148,163,184,0.14); }
.ac-odoo-footer-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
}
.ac-odoo-footer-count, .ac-odoo-footer-pages { font-size: 0.53rem; color: var(--subtle); }

/* Typewriter cursor */
.ac-tw-cursor {
  display: inline-block; width: 1.5px; height: 0.65em;
  background: var(--cyan); margin-left: 1px; vertical-align: middle;
  animation: ac-tw-blink 0.55s step-end infinite;
}
@keyframes ac-tw-blink { 0%,100%{opacity:1} 50%{opacity:0} }
