/*
Theme Name: Aitaca
Theme URI: https://aitaca.io
Author: Aitaca
Description: Aitaca — AI & Computer Vision Sizing Engine for Ecommerce
Version: 1.0
*/

/* ============================================
   AITACA — Global Stylesheet
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-ink:        #0D0F14;
  --color-surface:    #F7F7F5;
  --color-white:      #FFFFFF;
  --color-accent:     #F94868;
  --color-accent-dk:  #1040CC;
  --color-accent-lt:  #EEF2FF;
  --color-mid:        #6B7280;
  --color-border:     #E4E4E0;
  --color-dark-bg:    #0D0F14;
  --color-dark-card:  #161A23;
  --color-gold:       #C9A84C;
  --color-gold-lt:    #FBF5E8;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;

  --space-xs:   clamp(0.4rem,  0.3vw, 0.75rem);
  --space-sm:   clamp(0.75rem, 0.6vw, 1.5rem);
  --space-md:   clamp(1rem,    1vw,   2.25rem);
  --space-lg:   clamp(1.75rem, 1.8vw, 4rem);
  --space-xl:   clamp(2.5rem,  3vw,   7rem);
  --space-2xl:  clamp(4rem,    4.5vw, 10rem);
  --space-3xl:  clamp(5rem,    6vw,   14rem);

  --max-w: min(1200px, 88vw);
  --radius: clamp(6px, 0.5vw, 14px);
  --radius-lg: clamp(12px, 1vw, 24px);
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 32px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; font-size: clamp(14px, 0.85vw, 18px); overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }
p { max-width: 65ch; }
.lead { font-size: 1.2rem; color: var(--color-mid); line-height: 1.7; }
.label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-mid); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-2xl) 0; }
.section--dark { background: var(--color-dark-bg); color: var(--color-white); }
.section--white { background: var(--color-white); }
.section--gold { background: var(--color-gold-lt); }

/* Safety-net: text and card colors inside dark sections.
   Lets us swap section--white ↔ section--dark without per-page inline overrides. */
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--color-white); }
.section--dark .label { color: rgba(255, 255, 255, 0.4); }
.section--dark .lead { color: rgba(255, 255, 255, 0.65); }
.section--dark p { color: rgba(255, 255, 255, 0.75); }
.section--dark .cap-card {
  background: var(--color-dark-card);
  border-color: rgba(255, 255, 255, 0.08);
}
.section--dark .cap-card h4 { color: var(--color-white); }
.section--dark .cap-card p { color: rgba(255, 255, 255, 0.65); }
.section--dark .tech-pillar p { color: rgba(255, 255, 255, 0.7); }
.section--dark .text-mid { color: rgba(255, 255, 255, 0.7); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.text-center { text-align: center; }
.text-mid { color: var(--color-mid); }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.section-header { max-width: 640px; }
.section-header.centered { margin: 0 auto; text-align: center; }
.section-header.centered p { margin-left: auto; margin-right: auto; }

/* Spacing between consecutive sections */
.section + .section { border-top: none; }
.section-header h2 { margin-bottom: var(--space-xs); }
.section-header .lead { margin-top: var(--space-md); }

.btn {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: all 0.2s ease; border: 2px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }
.btn-primary:hover { background: #d63557; border-color: #d63557; }
.btn-primary:active,
.btn-primary.is-active { background: var(--color-white); color: var(--color-accent); border-color: var(--color-accent); }
.btn-outline { background: transparent; color: var(--color-ink); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-ink); }
.btn-outline:active,
.btn-outline.is-active { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }
.btn-outline-white { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { border-color: var(--color-white); }
.btn-outline-white:active,
.btn-outline-white.is-active { background: var(--color-white); color: var(--color-ink); border-color: var(--color-white); }
.btn-gold { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }
.btn-gold:hover { background: #d63557; border-color: #d63557; }
.btn-gold:active,
.btn-gold.is-active { background: var(--color-white); color: var(--color-accent); border-color: var(--color-accent); }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247,247,245,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
body { padding-top: 56px; }

/* WordPress admin bar pushes nav down when logged in */
.admin-bar .nav { top: 32px; }
.admin-bar .nav__mobile { top: calc(56px + 32px); }
@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
  .admin-bar .nav__mobile { top: calc(56px + 46px); }
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; gap: 24px;
  flex-wrap: nowrap;
}
.nav__links a { white-space: nowrap; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 28px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav__links > li { display: flex; align-items: center; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--color-mid); transition: color 0.15s; }
.nav__links a:hover { color: var(--color-ink); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__cta .btn { padding: 7px 16px; font-size: 13px; }

/* ─── Dropdown ─────────────────────────────────────── */
.nav__links .has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 3px; }
.nav__chevron {
  display: inline-block; font-size: 0.6rem; line-height: 1; font-style: normal;
  opacity: 0.55; transition: transform 0.2s ease, opacity 0.2s ease;
}
.has-dropdown.is-open > a .nav__chevron { transform: rotate(180deg); opacity: 1; }

.nav__dropdown {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0,0,0,0.11);
  min-width: 210px; list-style: none; padding: 6px 0;
  z-index: 200;
}
.has-dropdown.is-open .nav__dropdown {
  display: block;
  animation: dropdownIn 0.16s ease forwards;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav__dropdown li a {
  display: block; padding: 0.6rem 1.25rem;
  font-size: 0.875rem; font-weight: 500; color: var(--color-mid);
  white-space: nowrap; transition: color 0.15s, background 0.15s;
  position: static;
}
.nav__dropdown li a:hover { color: var(--color-ink); background: var(--color-surface); }
.nav__dropdown li a.active { color: var(--color-ink); font-weight: 600; }
/* Suppress the underline-on-hover animation for dropdown items */
.nav__dropdown li a::after { display: none !important; }

.hero {
  background: var(--color-dark-bg);
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-2xl);
  position: relative; overflow: hidden;
}
/* Animated aurora blobs */
.hero__aurora {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  filter: blur(80px);
}
.hero__aurora span {
  position: absolute;
  border-radius: 50%;
}
.hero__aurora span:nth-child(1) {
  width: 600px; height: 600px;
  top: -15%; right: -5%;
  background: radial-gradient(circle, rgba(249,72,104,0.35) 0%, transparent 70%);
  animation: auroraA 10s ease-in-out infinite alternate;
}
.hero__aurora span:nth-child(2) {
  width: 500px; height: 500px;
  bottom: -10%; left: -5%;
  background: radial-gradient(circle, rgba(26,86,255,0.30) 0%, transparent 70%);
  animation: auroraB 13s ease-in-out infinite alternate;
}
.hero__aurora span:nth-child(3) {
  width: 400px; height: 400px;
  top: 30%; left: 35%;
  background: radial-gradient(circle, rgba(168,85,247,0.22) 0%, transparent 70%);
  animation: auroraC 16s ease-in-out infinite alternate;
}
.hero__aurora span:nth-child(4) {
  width: 350px; height: 350px;
  top: -10%; left: 15%;
  background: radial-gradient(circle, rgba(249,72,104,0.18) 0%, transparent 70%);
  animation: auroraD 11s ease-in-out infinite alternate;
}

@keyframes auroraA {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-20%, 15%) scale(1.2); }
  50%  { transform: translate(-35%, 40%) scale(0.9); }
  75%  { transform: translate(-10%, 55%) scale(1.15); }
  100% { transform: translate(5%, 30%) scale(1.05); }
}
@keyframes auroraB {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(25%, -20%) scale(1.15); }
  50%  { transform: translate(50%, -10%) scale(0.95); }
  75%  { transform: translate(35%, -40%) scale(1.1); }
  100% { transform: translate(10%, -25%) scale(1.2); }
}
@keyframes auroraC {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
  25%  { transform: translate(-20%, -15%) scale(1.3); opacity: 1; }
  50%  { transform: translate(15%, 20%) scale(0.85); opacity: 0.7; }
  75%  { transform: translate(25%, -10%) scale(1.1); opacity: 0.9; }
  100% { transform: translate(-10%, 10%) scale(1.2); opacity: 0.8; }
}
@keyframes auroraD {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  25%  { transform: translate(30%, 25%) scale(1.1); opacity: 1; }
  50%  { transform: translate(15%, 45%) scale(1.25); opacity: 0.6; }
  75%  { transform: translate(-10%, 30%) scale(0.9); opacity: 0.9; }
  100% { transform: translate(20%, 10%) scale(1.15); opacity: 0.8; }
}
/* Glitter warp background */
.hero__warp {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }

.hero__label { color: rgba(255,255,255,0.5); margin-bottom: var(--space-md); }
.hero__headline { color: var(--color-white); max-width: 820px; }
.hero__headline em { color: var(--color-accent); font-style: normal; }
.hero__sub { color: rgba(255,255,255,0.65); font-size: 1.15rem; line-height: 1.8; max-width: 600px; margin-top: var(--space-md); }
.hero__actions { display: flex; gap: var(--space-sm); margin-top: var(--space-xl); flex-wrap: wrap; }
.hero__visual { margin-top: var(--space-xl); }

/* Globe in hero */
.hero__globe {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: calc(var(--space-xl) * -1) 0;
}
.hero__globe #globeContainer {
  width: 650px;
  height: 650px;
  margin: 0 auto;
  position: relative;
}
.hero__globe #globeContainer canvas {
  display: block;
}

.trust-bar { background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: var(--space-lg) 0; }
.trust-bar__inner { display: flex; align-items: center; gap: var(--space-xl); flex-wrap: wrap; }
.trust-stat { display: flex; flex-direction: column; }
.trust-stat__number { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--color-ink); }
.trust-stat__label { font-size: 0.85rem; color: var(--color-mid); }
.trust-divider { width: 1px; height: 48px; background: var(--color-border); flex-shrink: 0; }
.logo-placeholder {
  height: 24px; display: flex; align-items: center;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; color: var(--color-mid);
  border: 1px solid var(--color-border); padding: 0 var(--space-sm); border-radius: 4px;
}

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.problem-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); display: flex; flex-direction: column; }
.problem-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(249,72,104,0.08);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.problem-card__metric { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; color: var(--color-accent); margin-bottom: var(--space-xs); }

.step { display: flex; gap: var(--space-md); align-items: flex-start; }
.step__number {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-accent); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.step__content h4 { margin-bottom: var(--space-xs); }

.outcome-card { background: var(--color-dark-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg); padding: var(--space-lg); }
.outcome-card__metric { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.04em; color: var(--color-accent); margin-bottom: var(--space-xs); }
.outcome-card__label { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

.cap-card { background: var(--color-white); color: var(--color-ink); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); transition: box-shadow 0.2s; }
.cap-card:hover { box-shadow: var(--shadow-md); }
.cap-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(249,72,104,0.08);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.cap-card h4 { margin-bottom: var(--space-xs); }
.cap-card p { font-size: 0.92rem; color: var(--color-mid); }

.logo-marquee { background: var(--color-dark-bg); padding: var(--space-xl) 0; overflow: hidden; }
.logo-marquee__label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); text-align: center; margin-bottom: var(--space-lg); }
.logo-marquee__track { display: flex; width: fit-content; will-change: transform; animation: marquee 25s linear infinite; }
.logo-marquee__slide { display: flex; align-items: center; flex-shrink: 0; }
.logo-marquee__slide img { height: 140px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.5; transition: opacity 0.3s; margin: 0 clamp(2.5rem, 5vw, 6rem); flex-shrink: 0; }
.logo-marquee__slide img.logo--dw { height: 180px; }
.logo-marquee__slide img:hover { opacity: 1; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Scroll reveal animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Case study hero layout */
.cs-hero-layout { display: flex; align-items: center; gap: var(--space-2xl); }
.cs-hero-text { flex: 1; }
.cs-hero-logo-wrap { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cs-hero-logo { height: 500px; width: auto; filter: brightness(0) invert(1); opacity: 0.8; }
.testimonial-logo { height: 80px; }

.tech-pillar { border-left: 3px solid var(--color-accent); padding-left: var(--space-md); margin-bottom: var(--space-lg); }
.tech-pillar h4 { margin-bottom: var(--space-xs); }
.tech-pillar p { font-size: 0.93rem; color: var(--color-mid); }

.case-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.case-card__visual { background: var(--color-accent-lt); height: 200px; display: flex; align-items: center; justify-content: center; }
.case-card__body { padding: var(--space-lg); }
.case-card__metric { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--color-accent); }

.page-hero { background: var(--color-dark-bg); color: var(--color-white); padding: var(--space-3xl) 0 var(--space-2xl); border-bottom: 1px solid rgba(255,255,255,0.06); }
.page-hero--gold { background: linear-gradient(135deg, #0D0F14 0%, #1A1500 100%); }
.page-hero__label { color: var(--color-accent); margin-bottom: var(--space-md); }
.page-hero__headline { color: var(--color-white); max-width: 760px; margin-bottom: var(--space-md); }
.page-hero__sub { color: rgba(255,255,255,0.65); font-size: 1.15rem; line-height: 1.8; max-width: 580px; margin-top: var(--space-sm); }


.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.feature-row.reverse .feature-row__visual { order: -1; }
.feature-row__visual {
  background: var(--color-accent-lt); border-radius: var(--radius-lg);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  color: var(--color-mid); font-size: 0.85rem; font-weight: 500;
}
.feature-row__content .label { color: var(--color-accent); margin-bottom: var(--space-sm); }

.footer { background: var(--color-dark-bg); color: rgba(255,255,255,0.55); padding: var(--space-2xl) 0 var(--space-lg); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-xl); }
.footer__brand { margin-bottom: var(--space-lg); }
.footer__logo { margin-bottom: var(--space-sm); }
.footer__logo img { height: 32px; width: auto; display: block; }
.footer__tagline { font-size: 0.88rem; max-width: 280px; }
.footer__col h5 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin-bottom: var(--space-md); }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col ul a { font-size: 0.9rem; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer__col ul a:hover { color: var(--color-white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.06); margin-top: var(--space-xl); padding-top: var(--space-md); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-sm); font-size: 0.82rem; }
.footer__legal { display: inline-flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; }
.footer__legal > * { white-space: nowrap; }

.footer__partners {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.footer__partners-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.footer__partners img {
  max-width: 100%;
  width: min(880px, 100%);
  height: auto;
  background: #ffffff;
  padding: 14px 20px;
  border-radius: 8px;
}
.footer__partners + .footer__bottom { margin-top: var(--space-lg); }
@media (max-width: 640px) {
  .footer__partners img { padding: 10px 12px; }
}

.tag { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.78rem; font-weight: 600; background: var(--color-accent-lt); color: var(--color-accent); }
.tag--gold { background: var(--color-gold-lt); color: #8a6318; }
.tag--dark { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }

.pullquote { border-left: 4px solid var(--color-accent); padding-left: var(--space-md); font-size: 1.25rem; font-style: italic; color: var(--color-ink); line-height: 1.6; }
.pullquote footer { font-size: 0.85rem; font-style: normal; color: var(--color-mid); margin-top: var(--space-xs); }

/* ============================================
   HERO 2-COLUMN LAYOUT
   ============================================ */
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero__phone { display: flex; justify-content: center; align-items: center; }

/* ============================================
   PHONE MOCKUP COMPONENT
   ============================================ */
.phone-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.phone-mockup__frame {
  width: 255px;
  background: #1c1c1e;
  border-radius: 50px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.1),
    0 50px 100px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}

/* Notch */
.phone-mockup__frame::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 72px; height: 22px;
  background: #0d0d0f;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-mockup__screen {
  border-radius: 40px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  position: relative;
  background: #fff;
}

.phone-carousel {
  position: absolute;
  inset: 0;
}
.phone-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.45s ease-in-out;
  will-change: opacity;
  pointer-events: none;
}
.phone-carousel__slide.is-active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}
.phone-carousel__slide img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

.phone-mockup__screen video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.phone-mockup__dots {
  display: flex; gap: 7px;
}
.phone-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.25);
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}
.phone-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.35);
}

/* Light-background variant (no glow) */
.phone-mockup--light .phone-mockup__frame {
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.1),
    0 30px 60px rgba(0,0,0,0.18);
  animation: none;
}
.phone-mockup--light .phone-dot { background: rgba(0,0,0,0.2); }
.phone-mockup--light .phone-dot.is-active { background: var(--color-accent); }

/* Feature-row visual wrapping a phone */
.feature-row__visual--phone {
  background: transparent !important;
  border: none !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
  padding: var(--space-md) 0;
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.nav__hamburger:hover { background: rgba(0,0,0,0.06); }
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease;
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 56px; left: 0; right: 0; bottom: 0;
  background: rgba(247,247,245,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 98;
  padding: var(--space-md) var(--space-md) var(--space-xl);
  overflow-y: auto;
  gap: 0;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.nav__mobile.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s ease, visibility 0s;
}
.nav__mobile > a {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-ink);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.15s;
}
.nav__mobile > a:last-of-type { border-bottom: none; }
.nav__mobile > a:hover { color: var(--color-accent); }
.nav__mobile-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.nav__mobile-cta .btn { justify-content: center; width: 100%; }

.nav__mobile-accordion {
  border-bottom: 1px solid var(--color-border);
}
.nav__mobile-accordion-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer;
  font-size: 1.15rem; font-weight: 600; color: var(--color-ink);
  padding: var(--space-sm) 0;
  font-family: inherit;
  transition: color 0.15s;
}
.nav__mobile-accordion-btn:hover { color: var(--color-accent); }
.nav__mobile-accordion-chevron {
  font-size: 0.65rem; opacity: 0.5;
  transition: transform 0.22s ease, opacity 0.22s ease;
  display: inline-block;
}
.nav__mobile-accordion-btn[aria-expanded="true"] .nav__mobile-accordion-chevron {
  transform: rotate(180deg); opacity: 1;
}
.nav__mobile-accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.25s ease;
}
.nav__mobile-accordion-panel.is-open { grid-template-rows: 1fr; }
.nav__mobile-accordion-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.nav__mobile-accordion-inner a {
  display: block;
  font-size: 1rem; font-weight: 500; color: var(--color-mid);
  padding: 0.6rem 0 0.6rem var(--space-sm);
  border-bottom: none; transition: color 0.15s;
  text-decoration: none;
}
.nav__mobile-accordion-inner a:last-child { padding-bottom: var(--space-md); }
.nav__mobile-accordion-inner a:hover { color: var(--color-accent); }

/* ============================================
   RESPONSIVE — COMPACT DESKTOP (1100px)
   ============================================ */
@media (max-width: 1100px) {
  .nav__inner { gap: var(--space-md); }
  .nav__links { gap: var(--space-sm); }
  .nav__links a { font-size: 0.84rem; }
  .nav__cta .btn-outline { display: none; }
}

/* ============================================
   RESPONSIVE — TABLET + HAMBURGER NAV (960px)
   ============================================ */
@media (max-width: 960px) {
  html, body { overflow-x: hidden; }

  /* Logo marquee */
  .logo-marquee__slide img { height: 100px; margin: 0 2rem; }
  .logo-marquee__slide img.logo--dw { height: 130px; }

  /* Nav — switch to hamburger at tablet */
  .nav__links     { display: none; }
  .nav__cta       { display: none; }
  .nav__hamburger { display: flex; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: var(--space-lg); }
  .feature-row.reverse .feature-row__visual { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  /* Trust bar — 2-col grid from tablet down */
  .trust-bar { padding: var(--space-md) 0; }
  .trust-bar__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    justify-items: center;
    text-align: center;
  }
  .trust-divider { display: none; }
  .trust-stat {
    flex: unset;
    align-items: center;
  }
  .trust-stat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* Hero */
  .hero { padding: var(--space-2xl) 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__phone { margin-top: 0; }
  .hero__globe { margin: 0 auto; }
  .hero__globe #globeContainer { width: 400px; height: 400px; }

  /* Phone */
  .phone-mockup__frame { width: 210px; border-radius: 40px; }
  .page-hero .phone-mockup__frame { width: 190px; border-radius: 36px; animation: none; }

  /* Page-hero phone hidden on tablet — too tall in stacked layout */
  .page-hero .phone-mockup  { display: none; }
  .page-hero-phone          { display: none; }

  /* Case study hero */
  .cs-hero-layout { flex-direction: column; gap: var(--space-lg); }
  .cs-hero-logo-wrap { order: -1; }
  .cs-hero-logo { height: 300px; }

  /* Reveal animations — reduce translateX to avoid overflow */
  .reveal-left { transform: translateX(-20px); }
  .reveal-right { transform: translateX(20px); }
}

/* ============================================
   RESPONSIVE — MOBILE (640px)
   ============================================ */
@media (max-width: 640px) {
  /* Logo marquee */
  .logo-marquee { padding: var(--space-md) 0; }
  .logo-marquee__slide img { height: 60px; margin: 0 1.5rem; }
  .logo-marquee__slide img.logo--dw { height: 80px; }
  .logo-marquee__label { margin-bottom: var(--space-sm); }

  /* Spacing */
  .section   { padding: var(--space-lg) 0; }
  .hero      { padding: var(--space-xl) 0; }
  .page-hero { padding: var(--space-xl) 0 var(--space-lg); }

  /* Page content breathing room */
  .page-hero__headline { font-size: clamp(1.6rem, 7vw, 2.4rem); margin-bottom: var(--space-sm); }
  .page-hero__sub { font-size: 1rem; line-height: 1.7; }
  .section-header { margin-bottom: var(--space-lg); }
  :root {
    --space-2xl: 4rem;
    --space-3xl: 6rem;
  }

  /* Typography */
  h1  { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  h2  { font-size: clamp(1.4rem, 6vw, 2.1rem); }
  .hero__sub      { font-size: 1rem; }
  .page-hero__sub { font-size: 1rem; }
  p   { max-width: 100%; }
  .lead { font-size: 1rem; }

  /* Grids */
  .grid-2, .grid-3, .grid-4, .feature-row { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }

  /* Hero phone — hidden on mobile */
  .hero__phone              { display: none; }
  .hero__globe              { margin: 0 auto; overflow: hidden; }
  .hero__globe #globeContainer { width: 260px; height: 260px; max-width: 100%; }

  /* Prevent hero overflow on mobile */
  .hero { overflow: hidden; }
  .hero__warp canvas { max-width: 100%; }
  .hero__headline { max-width: 100%; word-wrap: break-word; }
  .hero__sub { max-width: 100%; }

  /* Trust bar — smaller text on mobile */
  .trust-stat__number { font-size: 1.75rem; }
  .trust-stat__label  { font-size: 0.78rem; }

  /* Buttons — allow wrapping on mobile so long labels don't overflow */
  .btn { max-width: 100%; white-space: normal; text-align: center; }

  /* Hero actions */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }

  /* Buttons — full width in stacked action groups */
  .page-hero .hero__actions .btn,
  .section .hero__actions .btn { width: 100%; justify-content: center; }

  /* Phone */
  .phone-mockup__frame { width: 175px; border-radius: 34px; animation: none; padding: 9px; }
  .phone-mockup__frame::before { width: 56px; height: 18px; top: 9px; }
  .phone-mockup__screen { border-radius: 27px; }

  /* Cards */
  .outcome-card__metric { font-size: 2rem; }
  .problem-card__metric { font-size: 2rem; }

  /* Solution cards — compact on mobile */
  .solution-card { padding: var(--space-md) !important; border-radius: 12px !important; }
  .solution-card h3 { font-size: 1.15rem; line-height: 1.4; }
  .solution-card p { font-size: 0.9rem; }
  .solution-card ul { margin-top: var(--space-sm) !important; }
  .solution-card ul li { font-size: 0.82rem !important; }
  .solution-card .mt-lg { margin-top: var(--space-md) !important; }
  .solution-card .mt-md { margin-top: var(--space-sm) !important; }

  /* Case study responsive */
  .insight-box { flex-direction: column; }
  .cs-hero-logo { height: 180px !important; }
  .testimonial-logo { height: 55px !important; }

  /* Reveal animations — prevent horizontal overflow on mobile */
  .reveal-left, .reveal-right { transform: translateY(20px) !important; }

  /* Footer */
  .footer__bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }

  /* Inline flex-between → stack on mobile */
  .flex-between.stack-mobile { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }

  /* Container padding tighter on small screens */
  .container { padding: 0 1rem; }
}

/* ============================================
   MOBILE — KILL MOTION EFFECTS (site-wide)
   Wipes every keyframe animation, parallax, hover lift, float, reveal,
   and tap-bounce on viewports ≤ 768 px.
   ============================================ */
@media (max-width: 768px) {
  /* Wipe every CSS animation AND transform-based transition site-wide */
  *,
  *::before,
  *::after {
    animation: none !important;
    animation-name: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-property: background-color, color, border-color, opacity, box-shadow !important;
    transition-duration: 0.15s !important;
  }
  /* Smooth-scroll snap behavior off so anchor jumps don't slide */
  html { scroll-behavior: auto !important; }

  /* Reveal classes — show immediately even if JS never adds .is-visible */
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .reveal.is-visible, .reveal-left.is-visible, .reveal-right.is-visible, .reveal-scale.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Case-study scroll progress bar (transform: scaleX driven by JS scroll) */
  #csProgress { display: none !important; }
  /* Testimonials carousel slide transition + phone carousel fade */
  .tc-track,
  .phone-carousel__slide { transition: none !important; }

  /* Scroll reveal: render visible immediately, no transform/transition */
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* GSAP-applied opacity:0/translateY left behind when JS skipped */
  [data-anim] { opacity: 1 !important; transform: none !important; }

  /* Decorative motion layers — remove outright */
  .hero__warp { display: none !important; }
  .hero__aurora { display: none !important; }

  /* Kill all hover/tap lift, scale and translate motion */
  .btn:active,
  .btn-primary:active,
  .btn-outline:active,
  .btn-outline-white:active,
  .btn-gold:active { transform: none !important; }
  .problem-card,
  .problem-card:hover,
  .outcome-card,
  .outcome-card:hover,
  .trust-stat,
  .trust-stat:hover,
  .tc-btn,
  .tc-btn:hover,
  .bi-card,
  .bi-card:hover,
  .cap-card,
  .cap-card:hover { transform: none !important; }
  /* Tech pillar grew on hover — keep colour, drop the slide */
  .tech-pillar,
  .tech-pillar:hover { padding-left: var(--space-md) !important; }
  /* Step number ring pulse on hover */
  .step:hover .step__number { box-shadow: none !important; }
  /* Hamburger morph: keep functional (open/close), strip its 300 ms ease */
  .nav__hamburger span { transition: none !important; }
}

/* Respect users who request reduced motion at any viewport */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   RESPONSIVE — SMALL PHONES (400px)
   ============================================ */
@media (max-width: 400px) {
  .phone-mockup__frame { width: 150px; border-radius: 28px; padding: 7px; }
  .phone-mockup__frame::before { width: 46px; height: 15px; top: 7px; }
  .phone-mockup__screen { border-radius: 22px; }
}

/* ============================================
   RESPONSIVE — LARGE SCREENS (1600px+)
   ============================================ */
@media (min-width: 1600px) {
  :root { --max-w: min(1440px, 88vw); }
}

@media (min-width: 2200px) {
  :root { --max-w: min(1800px, 88vw); }
}

@media (min-width: 3200px) {
  :root { --max-w: min(2400px, 88vw); }
}

/* ============================================
   LUCIDE ICON CONTAINERS
   ============================================ */
.challenge-card__icon,
.feature-card__icon,
.diff-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(249,72,104,0.08);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.problem-card__icon svg,
.cap-card__icon svg,
.challenge-card__icon svg,
.feature-card__icon svg,
.diff-card__icon svg {
  width: 22px; height: 22px;
  stroke-width: 1.75;
}
.section--dark .cap-card__icon,
.diff-card__icon {
  background: rgba(249,72,104,0.15);
}

/* ============================================
   ENHANCED INTERACTIONS
   ============================================ */

/* Smooth button press feedback */
.btn { position: relative; overflow: hidden; }
.btn:active { transform: scale(0.97); }
.btn-primary { box-shadow: 0 4px 14px rgba(249,72,104,0.3); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(249,72,104,0.4); }
.btn-gold { box-shadow: 0 4px 14px rgba(201,168,76,0.3); }
.btn-gold:hover { box-shadow: 0 6px 20px rgba(201,168,76,0.4); }

/* Problem cards hover lift */
.problem-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Outcome cards subtle glow on hover */
.outcome-card { transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.outcome-card:hover { border-color: rgba(249,72,104,0.2); box-shadow: 0 0 30px rgba(249,72,104,0.06); }

/* Tech pillars hover accent */
.tech-pillar { transition: border-color 0.25s ease, padding-left 0.25s ease; }
.tech-pillar:hover { border-color: var(--color-accent); padding-left: calc(var(--space-md) + 4px); }

/* Step numbers pulse on scroll-in (via GSAP class) */
.step { transition: opacity 0.3s ease; }
.step:hover .step__number { box-shadow: 0 0 0 4px rgba(249,72,104,0.2); transition: box-shadow 0.3s ease; }

/* Trust bar stat hover */
.trust-stat { transition: transform 0.2s ease; cursor: default; }
.trust-stat:hover { transform: translateY(-2px); }

/* Nav link underline effect */
.nav__links > li > a { position: relative; padding-bottom: 4px; }
.nav__links > li > a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--color-accent);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.25s ease;
}
.nav__links > li > a:hover::after { transform: scaleX(1); }
.nav__links > li > a.active { color: var(--color-ink); font-weight: 600; }
.nav__links > li > a.active::after { transform: scaleX(1); }

/* Smooth scroll-to-top for sections */
.section { position: relative; }

/* Selection color */
::selection { background: rgba(249,72,104,0.15); color: var(--color-ink); }
.section--dark ::selection { background: rgba(249,72,104,0.3); color: var(--color-white); }

/* ============================================
   PAGE CONTENT SPACING
   ============================================ */

/* Evidence / insight cards need breathing room */
.evidence-card h4, .insight-card h4 { margin-bottom: var(--space-sm); }
.evidence-card p, .insight-card p { line-height: 1.7; }

/* FAQ items spacing */
.faq-item { padding: var(--space-md) 0; }
.faq-item__q { margin-bottom: var(--space-sm); }
.faq-item__a { line-height: 1.7; }

/* Plan cards internal spacing */
.plan-card { display: flex; flex-direction: column; }
.plan-card ul { margin-top: auto; }

/* Shopify hero breathing room */
.hero--shopify .hero__headline { margin-bottom: var(--space-sm); }
.hero--shopify .hero__microcopy { margin-top: var(--space-md); }

/* CTA band spacing */
.cta-band { padding: var(--space-3xl) 0; }
.cta-band h2 { margin-bottom: var(--space-md); }

/* Steps spacing */
.step-item { margin-bottom: var(--space-sm); }
.step-item__content h4 { margin-bottom: var(--space-xs); }
.step-item__content p { line-height: 1.7; }

/* Feature cards */
.feature-card h4 { margin-bottom: var(--space-sm); }
.feature-card p { line-height: 1.7; }

/* Diff cards (dark) */
.diff-card h4 { margin-bottom: var(--space-sm); }
.diff-card p { line-height: 1.7; }

/* Compare table */
.compare-table td { padding: var(--space-sm) var(--space-md); line-height: 1.6; }

/* Dark CTA sections — add vertical breathing room */
.section--dark .text-center h2 { margin-bottom: var(--space-md); }
.section--dark .text-center p { line-height: 1.75; }
