/* ==========================================================================
   AutCode Theme — Main Stylesheet
   ========================================================================== */

:root {
  --ac-white: #ffffff;
  --ac-light: #f8f6f9;
  --ac-gray-100: #f3eef3;
  --ac-gray-200: #e8e0e8;
  --ac-gray-300: #d0c8d0;
  --ac-gray-500: #797979;
  --ac-gray-700: #4a4a4a;
  --ac-dark: #101010;
  --ac-dark-alt: #282828;
  --ac-accent: #4f0c5a;
  --ac-accent-hover: #3a0843;
  --ac-accent-light: rgba(79, 12, 90, 0.07);
  --ac-accent-mid: rgba(79, 12, 90, 0.15);
  --ac-font: 'Inter-Regular', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ac-radius: 6px;
  --ac-radius-lg: 12px;
  --ac-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --ac-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --ac-shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --ac-transition: 0.2s ease;
  --ac-container: 1140px;
}

/* ---------- Reset ---------- */

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--ac-font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ac-dark);
  background: var(--ac-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--ac-accent); text-decoration: none; transition: color var(--ac-transition); }
a:hover { color: var(--ac-accent-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ac-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ac-dark);
  margin-top: 0;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin-top: 0; }

/* ---------- Container ---------- */

.ac-container {
  width: 100%;
  max-width: var(--ac-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */

.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--ac-font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--ac-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ac-transition);
  text-decoration: none;
  gap: 8px;
}

.ac-btn--primary {
  background: var(--ac-accent);
  color: var(--ac-white);
  border-color: var(--ac-accent);
}
.ac-btn--primary:hover {
  background: var(--ac-accent-hover);
  border-color: var(--ac-accent-hover);
  color: var(--ac-white);
}

.ac-btn--outline {
  background: transparent;
  color: var(--ac-accent);
  border-color: var(--ac-accent);
}
.ac-btn--outline:hover {
  background: var(--ac-accent);
  color: var(--ac-white);
}

.ac-btn--white {
  background: var(--ac-white);
  color: var(--ac-accent);
  border-color: var(--ac-white);
}
.ac-btn--white:hover {
  background: var(--ac-light);
  border-color: var(--ac-light);
  color: var(--ac-accent-hover);
}

.ac-btn--lg {
  padding: 14px 36px;
  font-size: 1.05rem;
}

.ac-btn--sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ---------- Header / Nav ---------- */

.ac-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ac-white);
  border-bottom: 1px solid var(--ac-gray-200);
  transition: box-shadow var(--ac-transition);
}
.ac-header--scrolled {
  box-shadow: var(--ac-shadow);
}

.ac-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.ac-nav__logo img {
  height: 40px;
  width: auto;
}

.ac-nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ac-nav__account {
  display: flex;
  align-items: center;
  color: var(--ac-gray-700);
  transition: color var(--ac-transition);
}
.ac-nav__account:hover { color: var(--ac-accent); }

.ac-sidebar__account-link {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--ac-transition);
}
.ac-sidebar__account-link:hover { color: #fff; }

.ac-nav__cart {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--ac-dark);
  transition: color var(--ac-transition);
}
.ac-nav__cart:hover { color: var(--ac-accent); }
.ac-nav__cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: var(--ac-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.ac-nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ac-dark);
  border-radius: 2px;
  transition: all var(--ac-transition);
}
.ac-nav__toggle:hover span { background: var(--ac-accent); }

/* ---------- Sidebar / Offcanvas ---------- */

.ac-sidebar-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.ac-sidebar-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.ac-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--ac-dark-alt);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow-y: auto;
}
.ac-sidebar.is-open {
  transform: translateX(0);
}

.ac-sidebar__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity var(--ac-transition);
}
.ac-sidebar__close:hover { opacity: 1; }

.ac-sidebar__logo {
  margin-bottom: 40px;
  margin-top: 8px;
}
.ac-sidebar__logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.ac-sidebar__nav {
  flex: 1;
}

.ac-sidebar__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ac-sidebar__links li {
  margin-bottom: 4px;
}
.ac-sidebar__links li a {
  display: block;
  padding: 10px 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  border-radius: var(--ac-radius);
  transition: all var(--ac-transition);
  text-decoration: none;
}
.ac-sidebar__links li a:hover {
  color: #fff;
  padding-left: 20px;
}
.ac-sidebar__links li.current-menu-item a,
.ac-sidebar__links li.current_page_item a {
  color: #fff;
}

.ac-sidebar__footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.ac-sidebar__footer p {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* ---------- Sections ---------- */

.ac-section {
  padding: 80px 0;
}
.ac-section--alt {
  background: var(--ac-light);
}
.ac-section--dark {
  background: var(--ac-dark);
  color: var(--ac-white);
}
.ac-section--dark h2,
.ac-section--dark h3 {
  color: var(--ac-white);
}
.ac-section--dark p {
  color: rgba(255,255,255,0.75);
}

.ac-section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.ac-section__header p {
  color: var(--ac-gray-700);
  font-size: 1.1rem;
}
.ac-section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ac-accent);
  margin-bottom: 12px;
}

/* ---------- Hero ---------- */

.ac-hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  background: #0e0014;
}
.ac-hero__video {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 0;
}
.ac-hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-width: 100%;
  min-height: 100%;
}
.ac-hero__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(14, 0, 20, 0.55);
  z-index: 1;
}
.ac-hero .ac-container {
  position: relative;
  z-index: 2;
}
.ac-hero h1 { color: #fff; }
.ac-hero .ac-hero__sub { color: rgba(255,255,255,0.8); }
.ac-hero .ac-btn--primary {
  background: #fff;
  color: var(--ac-accent);
  border-color: #fff;
}
.ac-hero .ac-btn--primary:hover {
  background: var(--ac-light);
  border-color: var(--ac-light);
}
.ac-hero .ac-btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.ac-hero .ac-btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.ac-hero__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.ac-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.ac-hero__sub {
  font-size: 1.15rem;
  color: var(--ac-gray-700);
  line-height: 1.7;
  margin-bottom: 36px;
}

.ac-hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .ac-hero { padding: 60px 0 50px; }
  .ac-hero h1 { font-size: 2rem; }
  .ac-hero__sub { font-size: 1rem; }
  .ac-hero__ctas { flex-direction: column; align-items: center; }
}

/* ---------- Trust Bar ---------- */

.ac-trust-bar {
  padding: 20px 0;
  background: var(--ac-accent);
  text-align: center;
}
.ac-trust-bar p {
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ---------- Cards ---------- */

.ac-cards {
  display: grid;
  gap: 24px;
}
.ac-cards--4 { grid-template-columns: repeat(4, 1fr); }
.ac-cards--3 { grid-template-columns: repeat(3, 1fr); }
.ac-cards--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 991px) {
  .ac-cards--4, .ac-cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .ac-cards--4, .ac-cards--3, .ac-cards--2 { grid-template-columns: 1fr; }
}

.ac-card {
  background: var(--ac-white);
  border: 1px solid var(--ac-gray-200);
  border-radius: var(--ac-radius-lg);
  padding: 32px;
  transition: all var(--ac-transition);
}
.ac-card:hover {
  border-color: var(--ac-accent-mid);
  box-shadow: var(--ac-shadow);
  transform: translateY(-2px);
}

.ac-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ac-accent-light);
  border-radius: var(--ac-radius);
  margin-bottom: 20px;
  color: var(--ac-accent);
}
.ac-card__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.ac-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.ac-card p {
  color: var(--ac-gray-700);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.ac-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ac-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ac-card__link:hover { gap: 8px; }

/* Product card variant */
.ac-card--product {
  border-left: 3px solid var(--ac-accent);
}

/* Product card with visual preview */
.ac-card--visual {
  padding: 0;
  overflow: hidden;
}
.ac-card--visual h3,
.ac-card--visual p,
.ac-card--visual .ac-card__link {
  padding: 0 32px;
}
.ac-card--visual h3 { padding-top: 24px; }
.ac-card--visual p:last-of-type { padding-bottom: 24px; }
.ac-card__preview {
  width: 100%;
  border-bottom: 1px solid var(--ac-gray-200);
  overflow: hidden;
  border-radius: var(--ac-radius-lg) var(--ac-radius-lg) 0 0;
}
.ac-card__preview svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Placeholder card */
.ac-card--placeholder {
  background: var(--ac-light);
  border-style: dashed;
  text-align: center;
  color: var(--ac-gray-500);
}

/* ---------- Process Steps ---------- */

.ac-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

@media (max-width: 991px) {
  .ac-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .ac-steps { grid-template-columns: 1fr; }
}

.ac-step {
  position: relative;
  counter-increment: step;
}

.ac-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--ac-accent);
  color: var(--ac-white);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
}

.ac-step h4 {
  margin-bottom: 8px;
}
.ac-step p {
  color: var(--ac-gray-700);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Tech Marquee ---------- */

.ac-marquee {
  padding: 40px 0;
  overflow: hidden;
  background: var(--ac-dark);
}

.ac-marquee__track {
  display: flex;
  gap: 48px;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.ac-marquee__item {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- CTA Section ---------- */

.ac-cta {
  padding: 80px 0;
  background: var(--ac-accent);
  text-align: center;
}
.ac-cta h2 {
  color: var(--ac-white);
  margin-bottom: 16px;
}
.ac-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 32px;
}
.ac-cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Research / Highlight Block ---------- */

.ac-highlight {
  background: var(--ac-dark);
  color: var(--ac-white);
  padding: 80px 0;
}
.ac-highlight__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.ac-highlight h2 {
  color: var(--ac-white);
  margin-bottom: 24px;
}
.ac-highlight p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  line-height: 1.75;
}

/* ---------- Footer ---------- */

.ac-footer {
  background: linear-gradient(160deg, #1a0626 0%, #2d0a3e 40%, #3a0e4d 100%);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.ac-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 991px) {
  .ac-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .ac-footer__grid { grid-template-columns: 1fr; }
}

.ac-footer__brand p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.ac-footer__brand a {
  color: #fff;
  font-weight: 500;
}
.ac-footer__brand a:hover {
  color: var(--ac-gray-200);
}

.ac-footer__brand .ac-footer__logo {
  height: 36px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.ac-footer__col h4 {
  color: var(--ac-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.ac-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ac-footer__col ul li { margin-bottom: 8px; }
.ac-footer__col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--ac-transition);
}
.ac-footer__col ul li a:hover { color: var(--ac-white); }

.ac-footer__bottom {
  padding: 24px 0;
  text-align: center;
}
.ac-footer__copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.ac-footer__legal {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
}

/* ---------- Page Hero (subpages) ---------- */

.ac-page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #0e0014 0%, #1a0626 40%, #2d0a3e 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ac-page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79,12,90,0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroOrb1 15s ease-in-out infinite;
  pointer-events: none;
}
.ac-page-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(100,20,120,0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroOrb2 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-40px, 30px) scale(1.1); }
  50% { transform: translate(-20px, 60px) scale(0.95); }
  75% { transform: translate(15px, 20px) scale(1.05); }
}
@keyframes heroOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -25px) scale(1.08); }
  66% { transform: translate(15px, -50px) scale(0.92); }
}
.ac-page-hero .ac-container {
  position: relative;
  z-index: 2;
}
.ac-page-hero h1 {
  margin-bottom: 16px;
  color: #fff;
}
.ac-page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0 auto;
}
.ac-page-hero a { color: rgba(255,255,255,0.85); }
.ac-page-hero a:hover { color: #fff; }
.ac-page-hero .ac-section__label { color: rgba(255,255,255,0.4); }

@media (max-width: 767px) {
  .ac-page-hero { padding: 50px 0 40px; }
  .ac-page-hero h1 { font-size: 2rem; }
}

/* ---------- Pricing ---------- */

.ac-pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
}
.ac-pricing-table th,
.ac-pricing-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--ac-gray-200);
  font-size: 0.95rem;
}
.ac-pricing-table th {
  background: var(--ac-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ac-gray-700);
}
.ac-pricing-table td:last-child {
  font-weight: 600;
  color: var(--ac-accent);
}

.ac-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ac-check-list li {
  padding: 8px 0 8px 32px;
  position: relative;
  font-size: 0.95rem;
}
.ac-check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--ac-accent);
  font-weight: 700;
}

/* ---------- FAQ Accordion ---------- */

.ac-faq { margin: 32px 0; }

.ac-faq__item {
  border-bottom: 1px solid var(--ac-gray-200);
}

.ac-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ac-font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ac-dark);
  text-align: left;
  gap: 16px;
}
.ac-faq__question:hover { color: var(--ac-accent); }

.ac-faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--ac-transition);
}
.ac-faq__item.is-open .ac-faq__icon {
  transform: rotate(180deg);
}

.ac-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.ac-faq__item.is-open .ac-faq__answer {
  max-height: 600px;
}
.ac-faq__answer p {
  padding: 0 0 20px;
  color: var(--ac-gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Contact Form ---------- */

.ac-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ac-dark);
}

.ac-form input,
.ac-form select,
.ac-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--ac-font);
  font-size: 0.95rem;
  border: 1px solid var(--ac-gray-300);
  border-radius: var(--ac-radius);
  background: var(--ac-white);
  color: var(--ac-dark);
  transition: border-color var(--ac-transition);
}
.ac-form input:focus,
.ac-form select:focus,
.ac-form textarea:focus {
  outline: none;
  border-color: var(--ac-accent);
  box-shadow: 0 0 0 3px var(--ac-accent-light);
}

.ac-form textarea { resize: vertical; min-height: 120px; }

.ac-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 575px) {
  .ac-form__row { grid-template-columns: 1fr; }
}

.ac-form__group { margin-bottom: 20px; }

.ac-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
}
.ac-form__checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--ac-accent);
}
.ac-form__checkbox label {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ac-gray-700);
  margin-bottom: 0;
}

/* ---------- Blog / Post List ---------- */

.ac-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 991px) {
  .ac-posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .ac-posts { grid-template-columns: 1fr; }
}

.ac-post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--ac-radius-lg) var(--ac-radius-lg) 0 0;
}
.ac-post-card__body {
  padding: 24px 0;
}
.ac-post-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.ac-post-card h3 a { color: var(--ac-dark); }
.ac-post-card h3 a:hover { color: var(--ac-accent); }
.ac-post-card p {
  color: var(--ac-gray-700);
  font-size: 0.9rem;
}

/* ---------- Pagination ---------- */

.ac-text-center .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  margin: 0 3px;
  border-radius: var(--ac-radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ac-gray-700);
  background: var(--ac-white);
  border: 1px solid var(--ac-gray-200);
  text-decoration: none;
  transition: all var(--ac-transition);
}
.ac-text-center .page-numbers:hover {
  border-color: var(--ac-accent);
  color: var(--ac-accent);
}
.ac-text-center .page-numbers.current {
  background: var(--ac-accent);
  border-color: var(--ac-accent);
  color: #fff;
}
.ac-text-center .page-numbers.dots {
  border: none;
  background: none;
}

/* ---------- Single Post ---------- */

.ac-single {
  padding: 60px 0;
}
.ac-single__content {
  max-width: 760px;
  margin: 0 auto;
}
.ac-single__content h1 {
  margin-bottom: 16px;
}
.ac-single__meta {
  font-size: 0.85rem;
  color: var(--ac-gray-500);
  margin-bottom: 32px;
}
.ac-single__content img {
  border-radius: var(--ac-radius-lg);
  margin: 24px 0;
}
.ac-single__content p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ---------- 404 ---------- */

.ac-404 {
  padding: 120px 0;
  text-align: center;
}
.ac-404 h1 {
  font-size: 6rem;
  color: var(--ac-accent);
  margin-bottom: 16px;
}

/* Hide ka_licencje Polish login form — replaced by theme template */
.ka-login-register-container { display: none !important; }

/* ---------- Auth / Login / Register ---------- */

.ac-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .ac-auth { grid-template-columns: 1fr; gap: 32px; }
}
.ac-auth__login,
.ac-auth__register {
  padding: 36px;
  border: 1px solid var(--ac-gray-200);
  border-radius: var(--ac-radius-lg);
}
.ac-auth__login { background: var(--ac-white); }
.ac-auth__register { background: var(--ac-light); }
.ac-auth h2 { font-size: 1.3rem; margin-bottom: 24px; }
.ac-auth__forgot {
  margin-top: 16px;
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Account Dashboard ---------- */

.ac-account {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 767px) {
  .ac-account { grid-template-columns: 1fr; gap: 24px; }
}
.ac-account__hello {
  font-size: 0.95rem;
  color: var(--ac-gray-700);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ac-gray-200);
}
.ac-account__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ac-account__menu li { margin-bottom: 4px; }
.ac-account__menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.92rem;
  color: var(--ac-gray-700);
  border-radius: var(--ac-radius);
  text-decoration: none;
  transition: all var(--ac-transition);
}
.ac-account__menu li a:hover,
.ac-account__menu li.is-active a {
  background: var(--ac-accent-light);
  color: var(--ac-accent);
}
.ac-account__content {
  min-height: 300px;
}
.ac-account__content h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* ---------- WooCommerce Wrapper ---------- */

.ac-woo-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* WooCommerce Table */
.ac-woo-wrapper table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ac-font);
}
.ac-woo-wrapper table.shop_table th,
.ac-woo-wrapper table.shop_table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--ac-gray-200);
  font-size: 0.95rem;
}
.ac-woo-wrapper table.shop_table th {
  background: var(--ac-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ac-gray-700);
}
.ac-woo-wrapper table.shop_table img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--ac-radius);
}

/* WooCommerce Buttons */
.ac-woo-wrapper .button,
.ac-woo-wrapper button[type="submit"],
.ac-woo-wrapper input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--ac-font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--ac-radius);
  border: 2px solid var(--ac-accent);
  background: var(--ac-accent);
  color: #fff;
  cursor: pointer;
  transition: all var(--ac-transition);
  text-decoration: none;
}
.ac-woo-wrapper .button:hover,
.ac-woo-wrapper button[type="submit"]:hover,
.ac-woo-wrapper input[type="submit"]:hover {
  background: var(--ac-accent-hover);
  border-color: var(--ac-accent-hover);
}
.ac-woo-wrapper .button.alt {
  background: var(--ac-accent);
  color: #fff;
}

/* WooCommerce Inputs */
.ac-woo-wrapper input[type="text"],
.ac-woo-wrapper input[type="email"],
.ac-woo-wrapper input[type="tel"],
.ac-woo-wrapper input[type="number"],
.ac-woo-wrapper select,
.ac-woo-wrapper textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--ac-font);
  font-size: 0.95rem;
  border: 1px solid var(--ac-gray-300);
  border-radius: var(--ac-radius);
  transition: border-color var(--ac-transition);
}
.ac-woo-wrapper input:focus,
.ac-woo-wrapper select:focus,
.ac-woo-wrapper textarea:focus {
  outline: none;
  border-color: var(--ac-accent);
  box-shadow: 0 0 0 3px var(--ac-accent-light);
}

/* WooCommerce Notices */
.ac-woo-wrapper .woocommerce-message,
.ac-woo-wrapper .woocommerce-info {
  padding: 16px 20px;
  border-left: 3px solid var(--ac-accent);
  background: var(--ac-accent-light);
  border-radius: var(--ac-radius);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.ac-woo-wrapper .woocommerce-error {
  padding: 16px 20px;
  border-left: 3px solid #ef4444;
  background: rgba(239,68,68,0.05);
  border-radius: var(--ac-radius);
  margin-bottom: 24px;
}

/* Coupon form */
.ac-woo-wrapper .coupon {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.ac-woo-wrapper .coupon input {
  max-width: 200px;
}

/* Cart totals */
.ac-woo-wrapper .cart_totals {
  margin-top: 32px;
}
.ac-woo-wrapper .cart_totals h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* Checkout */
.ac-woo-wrapper .woocommerce-checkout h3 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 16px;
}
.ac-woo-wrapper .woocommerce-checkout .form-row {
  margin-bottom: 16px;
}
.ac-woo-wrapper .woocommerce-checkout label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Remove link */
.ac-woo-wrapper .remove {
  color: #ef4444;
  font-size: 1.2rem;
  text-decoration: none;
}
.ac-woo-wrapper .remove:hover {
  color: #dc2626;
}

/* ---------- Custom Cart ---------- */

.ac-cart {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 767px) {
  .ac-cart { grid-template-columns: 1fr; }
}

.ac-cart__item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--ac-white);
  border: 1px solid var(--ac-gray-200);
  border-radius: var(--ac-radius-lg);
  margin-bottom: 16px;
  align-items: center;
}
.ac-cart__item-image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--ac-radius);
  overflow: hidden;
}
.ac-cart__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ac-cart__item-placeholder {
  width: 100%;
  height: 100%;
  background: var(--ac-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ac-gray-500);
}
.ac-cart__item-info {
  flex: 1;
}
.ac-cart__item-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.ac-cart__item-desc {
  font-size: 0.85rem;
  color: var(--ac-gray-500);
  margin-bottom: 0;
  line-height: 1.5;
}
.ac-cart__item-price {
  text-align: right;
  flex-shrink: 0;
}
.ac-cart__price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ac-accent);
  display: block;
}
.ac-cart__remove {
  font-size: 1.4rem;
  color: var(--ac-gray-500);
  text-decoration: none;
  display: block;
  margin-top: 4px;
}
.ac-cart__remove:hover { color: #ef4444; }

.ac-cart__summary {
  padding: 32px;
  background: var(--ac-light);
  border-radius: var(--ac-radius-lg);
  position: sticky;
  top: 100px;
}
.ac-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ac-gray-200);
}
.ac-cart__total span {
  font-size: 1rem;
  color: var(--ac-gray-700);
}
.ac-cart__total strong {
  font-size: 1.6rem;
  color: var(--ac-accent);
}
.ac-cart__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--ac-gray-500);
}
.ac-cart__back {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ac-gray-500);
}

/* Product thumbnails in cart (legacy WC) */
.ac-woo-wrapper .product-thumbnail img {
  border-radius: var(--ac-radius);
}

/* Force WC product gallery to show (JS-dependent opacity fix) */
.woocommerce-product-gallery {
  opacity: 1 !important;
  max-width: 400px;
}
.woocommerce-product-gallery img {
  width: 100%;
  border-radius: var(--ac-radius-lg);
}

/* Single product page layout */
.ac-woo-wrapper .product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 767px) {
  .ac-woo-wrapper .product {
    grid-template-columns: 1fr;
  }
}
.ac-woo-wrapper .product .summary {
  padding-top: 0;
}
.ac-woo-wrapper .product .summary .product_title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.ac-woo-wrapper .product .summary .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ac-accent);
  margin-bottom: 20px;
}
.ac-woo-wrapper .product .summary .woocommerce-product-details__short-description {
  color: var(--ac-gray-700);
  margin-bottom: 24px;
  line-height: 1.7;
}
.ac-woo-wrapper .product .summary .single_add_to_cart_button {
  width: 100%;
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Hide related products, tabs, etc. for service products */
.ac-woo-wrapper .related.products,
.ac-woo-wrapper .woocommerce-tabs {
  grid-column: 1 / -1;
}

/* WooCommerce product description tab */
.ac-woo-wrapper .woocommerce-Tabs-panel {
  padding: 24px 0;
}
.ac-woo-wrapper .woocommerce-Tabs-panel p {
  color: var(--ac-gray-700);
  line-height: 1.7;
}

/* ---------- Utilities ---------- */

.ac-text-center { text-align: center; }
.ac-text-muted { color: var(--ac-gray-500); }
.ac-mt-0 { margin-top: 0; }
.ac-mb-0 { margin-bottom: 0; }
.ac-mt-3 { margin-top: 24px; }
.ac-mb-3 { margin-bottom: 24px; }
.ac-mt-5 { margin-top: 48px; }
.ac-mb-5 { margin-bottom: 48px; }
.ac-note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ac-gray-500);
  text-align: center;
  margin-top: 16px;
}

/* ---------- Retainer Cards ---------- */

.ac-retainers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 767px) {
  .ac-retainers { grid-template-columns: 1fr; }
}

.ac-retainer {
  border: 2px solid var(--ac-gray-200);
  border-radius: var(--ac-radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--ac-transition);
}
.ac-retainer:hover {
  border-color: var(--ac-accent-mid);
  box-shadow: var(--ac-shadow);
}
.ac-retainer h4 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}
.ac-retainer .ac-retainer__price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ac-accent);
  margin-bottom: 2px;
  line-height: 1.2;
}
.ac-retainer .ac-retainer__price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ac-gray-500);
}
.ac-retainer__hours {
  font-size: 0.85rem;
  color: var(--ac-gray-500);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ac-gray-200);
}
.ac-retainer .ac-check-list {
  text-align: left;
  margin-bottom: 20px;
  flex-grow: 1;
}
.ac-retainer .ac-check-list li {
  font-size: 0.88rem;
  padding: 5px 0 5px 28px;
}
.ac-retainer__best {
  font-size: 0.82rem;
  color: var(--ac-gray-500);
  font-style: italic;
  margin-bottom: 20px;
}
.ac-retainer .ac-btn {
  width: 100%;
}

/* Popular tier */
.ac-retainer--popular {
  border-color: var(--ac-accent);
  box-shadow: var(--ac-shadow-lg);
  transform: scale(1.03);
}
.ac-retainer--popular:hover {
  transform: scale(1.05);
}
.ac-retainer__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ac-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .ac-retainer--popular {
    transform: scale(1);
  }
  .ac-retainer--popular:hover {
    transform: scale(1);
  }
}

/* ---------- Schema/SEO hidden ---------- */

.ac-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Contact info block ---------- */

.ac-contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.ac-contact-info__item h4 {
  margin-bottom: 4px;
}
.ac-contact-info__item p {
  color: var(--ac-gray-700);
  font-size: 0.95rem;
  margin-bottom: 0;
}
.ac-contact-info__item a {
  color: var(--ac-accent);
  font-weight: 500;
}

/* ---------- Two-column layout ---------- */

.ac-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 767px) {
  .ac-two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- About page specifics ---------- */

.ac-about-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ac-gray-100);
  margin: 0 auto 32px;
  display: block;
}

.ac-avatar {
  width: 180px;
  height: 180px;
  margin: 0 auto 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ac-avatar__icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 20px rgba(79,12,90,0.3));
  animation: avatarPulse 3s ease-in-out infinite;
}
.ac-avatar__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 2px solid rgba(79,12,90,0.2);
  animation: avatarRing 4s ease-in-out infinite;
  z-index: 1;
}
.ac-avatar__ring--2 {
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  border-color: rgba(79,12,90,0.1);
  animation: avatarRing 4s ease-in-out infinite 1s;
}
@keyframes avatarPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes avatarRing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.ac-values { margin-top: 48px; }
.ac-values h4 {
  margin-bottom: 8px;
  color: var(--ac-accent);
}
.ac-values > div { margin-bottom: 28px; }

/* ---------- Smooth scroll ---------- */

html { scroll-behavior: smooth; }

/* ---------- Skip to content (a11y) ---------- */

.ac-skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--ac-accent);
  color: var(--ac-white);
  padding: 8px 16px;
  border-radius: var(--ac-radius);
  z-index: 10000;
  font-size: 0.85rem;
}
.ac-skip-link:focus {
  top: 16px;
  color: var(--ac-white);
}

/* ---------- Calculator ---------- */

.ac-calc {
  max-width: 800px;
  margin: 0 auto;
}
.ac-calc__step {
  margin-bottom: 36px;
}
.ac-calc__label {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--ac-dark);
}
.ac-calc__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ac-calc__options--row {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 575px) {
  .ac-calc__options,
  .ac-calc__options--row {
    grid-template-columns: 1fr;
  }
}

.ac-calc__option {
  cursor: pointer;
  display: block;
}
.ac-calc__option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ac-calc__box {
  display: block;
  padding: 16px 20px;
  border: 2px solid var(--ac-gray-200);
  border-radius: var(--ac-radius-lg);
  transition: all var(--ac-transition);
  background: var(--ac-white);
}
.ac-calc__box strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.ac-calc__box small {
  font-size: 0.8rem;
  color: var(--ac-gray-500);
}
.ac-calc__option input:checked + .ac-calc__box {
  border-color: var(--ac-accent);
  background: var(--ac-accent-light);
  box-shadow: 0 0 0 1px var(--ac-accent);
}
.ac-calc__option:hover .ac-calc__box {
  border-color: var(--ac-accent-mid);
}

.ac-calc__checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ac-calc__check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 16px;
  border: 1px solid var(--ac-gray-200);
  border-radius: var(--ac-radius);
  background: var(--ac-white);
  transition: all var(--ac-transition);
  font-size: 0.95rem;
}
.ac-calc__check:hover {
  border-color: var(--ac-accent-mid);
}
.ac-calc__check input {
  accent-color: var(--ac-accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.ac-calc__check input:checked ~ span {
  font-weight: 500;
}

.ac-calc__result {
  margin-top: 40px;
  padding: 40px;
  background: var(--ac-white);
  border: 2px solid var(--ac-accent);
  border-radius: var(--ac-radius-lg);
  text-align: center;
  animation: calcReveal 0.4s ease;
}
@keyframes calcReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ac-calc__estimate-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ac-gray-500);
  margin-bottom: 8px;
}
.ac-calc__estimate-range {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ac-accent);
  margin-bottom: 8px;
  line-height: 1.2;
}
@media (max-width: 575px) {
  .ac-calc__estimate-range { font-size: 1.8rem; }
  .ac-calc__result { padding: 24px; }
}
.ac-calc__estimate-note {
  display: block;
  font-size: 0.85rem;
  color: var(--ac-gray-500);
  margin-bottom: 28px;
}
.ac-calc__actions {
  margin-top: 8px;
}

/* ---------- Social links ---------- */

.ac-social {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.ac-social__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 2px solid var(--ac-accent);
  border-radius: 100px;
  color: var(--ac-accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--ac-transition);
}
.ac-social__link:hover {
  background: var(--ac-accent);
  color: #fff;
}
.ac-social__link svg { flex-shrink: 0; }

.ac-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.ac-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: all var(--ac-transition);
}
.ac-footer__social a:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ---------- Case Study Pages ---------- */

.ac-cs-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #0e0014 0%, #1a0626 40%, #2d0a3e 100%);
  position: relative;
  overflow: hidden;
}
.ac-cs-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(79,12,90,0.35) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroOrb1 15s ease-in-out infinite;
  pointer-events: none;
}
.ac-cs-hero .ac-container { position: relative; z-index: 2; }
.ac-cs-back {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
  text-decoration: none;
}
.ac-cs-back:hover { color: #fff; }
.ac-cs-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.ac-cs-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 28px;
  max-width: 800px;
  color: #fff;
}
.ac-cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.ac-cs-meta div {
  display: flex;
  flex-direction: column;
}
.ac-cs-meta span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2px;
}
.ac-cs-meta strong {
  font-size: 1rem;
  color: #fff;
}

.ac-cs-section {
  padding: 60px 0;
}
.ac-cs-section--alt {
  background: var(--ac-light);
}
.ac-cs-section h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  max-width: 700px;
}
.ac-cs-section p,
.ac-cs-section li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ac-gray-700);
  max-width: 700px;
}
.ac-cs-section ul {
  padding-left: 20px;
  margin: 0;
}
.ac-cs-section li {
  margin-bottom: 12px;
}

.ac-cs-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 575px) {
  .ac-cs-results { grid-template-columns: 1fr; }
}
.ac-cs-result {
  padding: 24px;
  background: var(--ac-accent-light);
  border-radius: var(--ac-radius-lg);
  border-left: 3px solid var(--ac-accent);
}
.ac-cs-result strong {
  display: block;
  font-size: 1.3rem;
  color: var(--ac-accent);
  margin-bottom: 4px;
}
.ac-cs-result span {
  font-size: 0.9rem;
  color: var(--ac-gray-700);
}

.ac-cs-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ac-cs-stack span {
  padding: 6px 16px;
  background: var(--ac-white);
  border: 1px solid var(--ac-gray-200);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ac-gray-700);
}

.ac-cs-cta {
  padding: 80px 0;
  background: var(--ac-accent);
  text-align: center;
}
.ac-cs-cta h2 { color: #fff; margin-bottom: 12px; }
.ac-cs-cta p { color: rgba(255,255,255,0.8); margin: 0 auto 28px; max-width: 500px; }

/* Case study tag on Work page cards */
.ac-cs-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ac-accent);
  margin-bottom: 8px;
}

/* Linkable card */
.ac-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.ac-card--link:hover { color: inherit; }

/* ---------- Founder section ---------- */

.ac-about-founder {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 48px;
}
.ac-about-founder--center {
  flex-direction: column;
  text-align: center;
  align-items: center;
}
.ac-about-founder__photo img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ac-light);
  box-shadow: 0 8px 30px rgba(79,12,90,0.15);
  border: 4px solid var(--ac-white);
}
.ac-about-founder--center .ac-about-founder__photo {
  margin-bottom: 24px;
}
.ac-about-founder--center h2 {
  margin-bottom: 16px;
}
.ac-about-founder--center p {
  max-width: 640px;
  color: var(--ac-gray-700);
}
@media (max-width: 767px) {
  .ac-about-founder__photo img {
    width: 180px;
    height: 180px;
  }
}

/* ---------- Print ---------- */

@media print {
  .ac-header, .ac-footer, .ac-marquee, .ac-cta { display: none; }
  body { font-size: 12pt; color: #000; }
}
