/* ══════════════════════════════════════════════════════════════
   MILLIONAIRE MAKES AI — Page Styles
   Theme: White bg / Black text / Gold headings
   ══════════════════════════════════════════════════════════════ */

:root {
  --ai-bg:          #ffffff;
  --ai-text:        #0f0f0f;
  --ai-text-muted:  #5a5550;
  --ai-gold:        #c89a45;
  --ai-gold-light:  #e4b86a;
  --ai-gold-dim:    rgba(200, 154, 69, 0.14);
  --ai-border:      rgba(200, 154, 69, 0.25);
  --ai-font-sans:   'DM Sans', sans-serif;
  --ai-font-display:'DM Sans', sans-serif;
}

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

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body.ai-page {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  background: var(--ai-bg);
  color: var(--ai-text);
  font-family: var(--ai-font-sans);
  overflow-x: hidden;
}

[data-barba="wrapper"],
[data-barba="container"] {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ── Page-work-pattern background override ─────────────────── */
body.ai-page.page-work-pattern::before {
  display: none !important;
}

/* ── Hero ─────────────────────────────────────────────────────*/
.ai-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4vw 8vh;
  position: relative;
  overflow: hidden;
  background: var(--ai-bg);
}

.ai-hero__eyebrow {
  font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ai-gold);
  margin-bottom: 24px;
  font-weight: 500;
}

.ai-hero__heading {
  font-size: clamp(52px, 9vw, 140px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--ai-text);
  margin: 0 0 40px;
  max-width: 14ch;
}

.ai-hero__heading em {
  font-style: normal;
  background: linear-gradient(135deg, var(--ai-gold), var(--ai-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-hero__sub {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ai-border);
  padding-top: 28px;
}

.ai-hero__desc {
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--ai-text-muted);
  max-width: 520px;
}

.ai-hero__stat {
  text-align: right;
  flex-shrink: 0;
}

.ai-hero__stat-num {
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--ai-gold), var(--ai-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-hero__stat-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ai-text-muted);
  margin-top: 4px;
}

/* ── Scroll noise canvas ────────────────────────────────────── */
.work-noise-canvas {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: multiply;
  width: 100vw;
  height: 100vh;
}

/* ── Marquee Strip ──────────────────────────────────────────── */
.ai-marquee-strip {
  overflow: hidden;
  padding: 22px 0;
  background: #F4EFE6;
  border-top: 1px solid var(--ai-border);
  border-bottom: 1px solid var(--ai-border);
  white-space: nowrap;
}

.ai-marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: ai-marquee 28s linear infinite;
  will-change: transform;
}

.ai-marquee-item {
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ai-text);
  font-weight: 700;
  padding: 0 36px;
}

.ai-marquee-sep {
  color: var(--ai-gold);
  font-size: 10px;
  flex-shrink: 0;
}

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

/* ── Section shared ─────────────────────────────────────────── */
.ai-section {
  padding: 120px 4vw;
  position: relative;
}

.ai-section--alt {
  background: #f8f6f2;
}

.ai-section-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ai-gold);
  margin-bottom: 24px;
  display: block;
  font-weight: 500;
}

.ai-section-title {
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ai-text);
  margin: 0 0 60px;
}

.ai-section-title span {
  background: linear-gradient(135deg, var(--ai-gold), var(--ai-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Services Grid ──────────────────────────────────────────── */
.ai-services-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  background: transparent !important;
  border: none !important;
  width: 100%;
}

.ai-service-card {
  padding: 44px 34px;
  position: relative;
  overflow: hidden;
  border-radius: 20px !important;
  border: 1px solid rgba(23, 20, 17, 0.08) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, background-color 0.35s ease;
}

.ai-service-card:hover {
  transform: translateY(-6px);
  background: #ffffff !important;
  border-color: rgba(200, 154, 69, 0.45) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.07), 0 6px 18px rgba(200, 154, 69, 0.1);
}

.ai-service-card__num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ai-gold);
  margin-bottom: 28px;
  font-weight: 600;
}

.ai-service-card__title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ai-text);
  margin-bottom: 16px;
  line-height: 1.05;
}

.ai-service-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ai-text-muted);
}

.ai-service-card__icon {
  position: absolute;
  top: 36px;
  right: 36px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ai-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ai-gold);
  transition: background 0.2s;
}

.ai-service-card:hover .ai-service-card__icon {
  background: var(--ai-gold-dim);
}

/* ── How It Works ───────────────────────────────────────────── */
.ai-process-list {
  counter-reset: process-counter;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ai-process-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--ai-border);
  counter-increment: process-counter;
}

.ai-process-item:first-child {
  border-top: 1px solid var(--ai-border);
}

.ai-process-item__num {
  font-size: clamp(40px, 4.5vw, 68px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--ai-gold), var(--ai-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: block;
}

.ai-process-item__body {
  padding-top: 8px;
}

.ai-process-item__title {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--ai-text);
}

.ai-process-item__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ai-text-muted);
  max-width: 540px;
}

.ai-process-item__tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ai-gold);
  border: 1px solid var(--ai-border);
  padding: 6px 14px;
  align-self: center;
  white-space: nowrap;
}

/* ── Use Cases ──────────────────────────────────────────────── */
.ai-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ai-case-card {
  padding: 44px 34px;
  background: #ffffff !important;
  border: 1px solid rgba(23, 20, 17, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, background-color 0.35s ease;
}

.ai-case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 154, 69, 0.45) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.07), 0 6px 18px rgba(200, 154, 69, 0.1);
  z-index: 2;
}

.ai-case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(200,154,69,0.06) 100%);
  pointer-events: none;
}

.ai-case-card__cat {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ai-gold);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.ai-case-card__title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--ai-text);
  line-height: 1.15;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.ai-case-card__desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ai-text-muted);
  position: relative;
  z-index: 1;
}

/* ── Stats Row ──────────────────────────────────────────────── */
.ai-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ai-border);
  border-left: 1px solid var(--ai-border);
}

.ai-stat-cell {
  padding: 48px 36px;
  border-right: 1px solid var(--ai-border);
  border-bottom: 1px solid var(--ai-border);
  text-align: left;
}

.ai-stat-cell__num {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--ai-gold), var(--ai-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-stat-cell__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ai-text-muted);
  margin-top: 10px;
}

/* ── CTA Block ──────────────────────────────────────────────── */
.ai-cta {
  padding: 120px 4vw;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #F4EFE6;
  border-top: 1px solid var(--ai-border);
  border-bottom: 1px solid var(--ai-border);
}

.ai-cta::before {
  content: 'AI';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36vw;
  font-weight: 800;
  color: rgba(200,154,69,0.08);
  letter-spacing: -0.08em;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

.ai-cta__label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #046A38;
  font-weight: 700;
  margin-bottom: 24px;
  display: block;
  position: relative;
  z-index: 1;
}

.ai-cta__title {
  font-size: clamp(38px, 6.5vw, 90px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--ai-text);
  margin: 0 auto 48px;
  max-width: 18ch;
  position: relative;
  z-index: 1;
}

.ai-cta__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--ai-gold), var(--ai-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1.5px solid var(--ai-gold);
  color: #171411;
  background: #FDFAF6;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 48px;
  font-weight: 700;
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
  font-family: var(--ai-font-sans);
  box-shadow: 0 4px 16px rgba(200, 154, 69, 0.12);
}

.ai-cta__btn:hover {
  background: var(--ai-gold);
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(200, 154, 69, 0.35);
  transform: translateY(-2px);
}

/* ── Site Footer (Gold & Ivory Theme matching About page) ── */
.site-footer {
  position: relative;
  overflow: visible;
  background: #FDFAF6;
  color: #171411;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  border-top: 1px solid rgba(200, 154, 69, 0.2);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.footer-top {
  padding: 4vw 3vw;
  position: relative;
  z-index: 5;
  background-color: #FDFAF6;
  width: 100%;
  box-sizing: border-box;
}

.footer-main-content {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.footer-contact-info a {
  display: block;
  font-size: clamp(24px, 4vw, 50px);
  font-weight: 400;
  color: #000000 !important;
  text-decoration: none;
  line-height: 1.15;
  margin-bottom: 4px;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-contact-info a:hover {
  color: var(--color-gold, #c89a45) !important;
  opacity: 1;
}

.footer-contact-info span {
  display: block;
  font-size: clamp(18px, 2.5vw, 30px);
  color: #000000 !important;
  font-weight: 400;
  transition: color 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.footer-contact-info span:hover {
  color: var(--color-gold, #c89a45) !important;
  opacity: 1;
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 38px;
  width: 100%;
}

.footer-nav-links a {
  color: var(--color-gold, #c89a45);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-nav-links a:hover {
  color: #171411;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 1;
}

.footer-copyright-bridge {
  position: absolute !important;
  bottom: 0 !important;
  right: 6% !important;
  width: clamp(90px, 10vw, 148px) !important;
  height: clamp(90px, 10vw, 148px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateY(50%) !important;
  z-index: 25 !important;
  pointer-events: none !important;
  user-select: none !important;
}

.footer-copyright-bridge span {
  font-family: 'Zalando Sans SemiExpanded', 'DM Sans', sans-serif !important;
  font-size: clamp(84px, 11vw, 160px) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 0.8 !important;
  display: block !important;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.22)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.12)) !important;
}

.footer-parallax-section {
  height: 50vh;
  min-height: 300px;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #b88a32 0%, #e0bd68 35%, #f1d78f 55%, #c59a3b 75%, #9b7024 100%);
  border-top: 1px solid rgba(23, 20, 17, 0.08);
  box-sizing: border-box;
}

.footer-parallax-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-end !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  font-family: "Zalando Sans SemiExpanded", "Outfit", "DM Sans", sans-serif !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  font-size: clamp(34px, 8vw, 160px) !important;
  line-height: 0.8 !important;
  letter-spacing: -0.03em !important;
  word-spacing: 0.15em !important;
  color: #ffffff !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  user-select: none !important;
  pointer-events: none !important;
  text-align: center !important;
}

.footer-parallax-copy {
  position: absolute;
  top: 30px;
  left: 40px;
  z-index: 3;
  color: rgba(23, 20, 17, 0.65);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 1440px) {
  .footer-parallax-section {
    height: 300px;
  }
}

@media (max-width: 1024px) {
  .footer-copyright-bridge {
    display: flex !important;
    position: absolute !important;
    bottom: 0 !important;
    right: 6% !important;
    transform: translateY(50%) !important;
    z-index: 25 !important;
  }
  .footer-copyright-bridge span {
    font-size: clamp(64px, 14vw, 110px) !important;
    color: #ffffff !important;
    display: block !important;
  }
  .footer-parallax-section {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .footer-top {
    padding: 32px 20px 40px;
  }
  .footer-nav-links {
    gap: 16px;
    margin-top: 24px;
  }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ai-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
  .ai-service-card {
    padding: 38px 28px;
    border-radius: 18px !important;
  }
  .ai-cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
  .ai-case-card {
    padding: 38px 28px;
    border-radius: 18px !important;
  }
  .ai-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .ai-process-item {
    grid-template-columns: 68px 1fr;
    gap: 28px;
  }
  .ai-process-item__tag {
    display: none;
  }
}

@media (max-width: 768px) {
  .ai-hero {
    padding: 0 24px 60px;
  }
  .ai-section {
    padding: 64px 20px;
  }
  .ai-cases-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .ai-case-card {
    padding: 32px 24px;
    border-radius: 16px !important;
  }
  .ai-stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .ai-process-item {
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding: 32px 0;
  }
  .ai-process-item__num {
    font-size: clamp(34px, 8vw, 44px);
    line-height: 1;
    min-width: 56px;
  }
  .ai-services-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .ai-service-card {
    padding: 32px 24px;
    border-radius: 16px !important;
  }
  .ai-hero__sub {
    flex-direction: column;
    align-items: flex-start;
  }
  .ai-hero__stat {
    text-align: left;
  }
}

/* ── Hide Browser Scrollbar ── */
html,
body {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
