/* ═══════════════════════════════════════════
   PERPETUO — Apple-inspired clean design
   ═══════════════════════════════════════════ */

/* ═══ RESET & VARIABLES ═══ */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

:root {
  --white: #ffffff;
  --gray-bg: #f5f5f7;
  --gray-border: #d2d2d7;
  --black: #1d1d1f;
  --black-bg: #000000;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-dark-primary: #f5f5f7;
  --text-dark-secondary: #b0b0b5;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10001;
  transition: top .3s;
}

.skip-link:focus {
  top: 0;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide default cursor only when mouse is detected */
body.has-mouse { cursor: none; }
body.has-mouse a, body.has-mouse button { cursor: none; }

::selection { background: rgba(0, 113, 227, .2); color: var(--black); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }


/* ═══ INTRO — Full-screen AI animation ═══ */
.intro {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  will-change: transform, opacity;
  max-width: 700px;
  padding: 0 24px;
}

.intro-overline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0, 113, 227, .8);
  margin-bottom: 20px;
  animation: introFade 1s ease .2s both;
}

.intro-headline {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.04em;
  color: #fff;
  margin-bottom: 20px;
  animation: introFade 1s ease .4s both;
}

.intro-tagline {
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 400;
  color: rgba(255, 255, 255, .5);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
  animation: introFade 1s ease .6s both;
}

@keyframes introFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  animation: introFade 1.2s ease 1.2s both;
}

.intro-scroll-hint span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, .35);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.intro-arrow {
  width: 1px;
  height: 28px;
  margin: 0 auto;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
  animation: introArrowPulse 2s ease-in-out infinite;
}

@keyframes introArrowPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: .5; transform: scaleY(1.3); }
}


/* ═══ SCROLL REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══ NAVIGATION ═══ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  transition: background .4s ease;
}

nav.scrolled {
  background: rgba(255, 255, 255, .92);
}

.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 32px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  opacity: .8;
  letter-spacing: .2px;
  transition: opacity .3s;
}

.nav-links a:hover { opacity: 1; }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  opacity: 1 !important;
  padding: 5px 16px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
  transition: background .3s;
}

.nav-cta:hover { background: var(--blue-hover); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-hamburger span {
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all .3s;
  border-radius: 1px;
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }


/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 22px 120px;
  background: linear-gradient(to bottom, #f0f0f3 0%, var(--white) 30%);
}

.hero-content {
  max-width: 780px;
}

.hero-overline {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
  letter-spacing: .5px;
  animation: fadeUp .8s ease both;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.04em;
  color: var(--text-primary);
  margin-bottom: 20px;
  animation: fadeUp .8s ease .1s both;
}

.hero-sub {
  font-size: 21px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.47;
  max-width: 580px;
  margin: 0 auto 32px;
  animation: fadeUp .8s ease .2s both;
}

.hero-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  animation: fadeUp .8s ease .3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ═══ TRUST BAR ═══ */
.trust-bar {
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}

.trust-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trust-stat {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

.trust-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.02em;
  margin-bottom: 2px;
}

@media (max-width: 600px) {
  .trust-inner { flex-wrap: wrap; gap: 20px; justify-content: center; }
  .trust-stat { flex: 0 0 40%; }
}


/* ═══ COMMON ELEMENTS ═══ */
.text-blue { color: var(--blue); }

.link-cta {
  font-size: 20px;
  font-weight: 400;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
  position: relative;
}

.link-cta:hover { color: var(--blue-hover); }

.link-cta .chevron {
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}

.link-sm { font-size: 17px; }
.link-sm .chevron { font-size: 20px; }

.btn-pill {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: background .3s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-pill:hover { background: var(--blue-hover); }


/* ═══ SECTIONS ═══ */
.section {
  padding: 100px 0;
}

.section-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.section-white { background: var(--white); }
.section-gray { background: var(--gray-bg); }
.section-dark { background: var(--black-bg); }

.section-dark .section-title,
.section-dark h2 { color: var(--text-dark-primary); }

.section-dark .section-overline,
.section-dark .section-sub,
.section-dark p { color: var(--text-dark-secondary); }

.section-overline {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: .3px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.03em;
  line-height: 1.07;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 19px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.47;
  max-width: 600px;
}


/* ═══ SHOWCASE BLOCKS — Split layout ═══ */
.showcase-block {
  padding: 100px 22px;
}

.showcase-light { background: var(--white); }
.showcase-dark { background: var(--black-bg); }

.showcase-split {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.showcase-split.reverse { flex-direction: row-reverse; }

.showcase-text {
  flex: 1;
  min-width: 0;
}

.showcase-visual {
  flex: 1;
  min-width: 0;
}

.showcase-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
}

.showcase-dark .showcase-img { box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.showcase-light .showcase-img { box-shadow: 0 12px 40px rgba(0,0,0,.1); }

.showcase-overline {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: .5px;
}

.showcase-dark .showcase-overline { color: var(--text-dark-secondary); }
.showcase-light .showcase-overline { color: var(--text-secondary); }

.showcase-block h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.showcase-dark h2,
.showcase-block.showcase-dark h2 { color: #f5f5f7; }
.showcase-light h2 { color: var(--text-primary); }

.showcase-body {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 24px;
}

.showcase-dark .showcase-body { color: var(--text-dark-secondary); }
.showcase-light .showcase-body { color: var(--text-secondary); }

.showcase-dark .link-cta { color: var(--blue); }

@media (max-width: 900px) {
  .showcase-split, .showcase-split.reverse { flex-direction: column; gap: 40px; }
  .showcase-block { padding: 72px 22px; }
}


/* ═══ SERVICE CARDS ═══ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.card {
  background: var(--gray-bg);
  border-radius: 18px;
  padding: 36px 28px;
  border: 1px solid transparent;
  transition: transform .4s ease, box-shadow .4s ease, border-color .3s;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
  border-color: var(--gray-border);
}

.card-featured {
  background: var(--white);
  border: 2px solid var(--blue);
  position: relative;
}

.card-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--blue);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
}

.card-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--gray-border);
  letter-spacing: -.02em;
  margin-bottom: 16px;
  line-height: 1;
}

.card-featured .card-number { color: var(--blue); opacity: .3; }

.card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 16px;
}

.card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.card-tag {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  opacity: .7;
}


/* ═══ WHY SECTION ═══ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  text-align: left;
}

.why-item { }

.why-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--blue);
  opacity: .2;
  line-height: 1;
  margin-bottom: 12px;
}

.why-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.why-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}


/* ═══ SHARED PRODUCT BADGE ═══ */
.product-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--blue);
  color: var(--white);
  margin-bottom: 16px;
}


/* ═══ MOCKUP SCREENS ═══ */
.mockup-screen {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: var(--white);
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--gray-bg);
  border-bottom: 1px solid var(--gray-border);
}

.mockup-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mockup-chrome span:nth-child(1) { background: #ff5f57; }
.mockup-chrome span:nth-child(2) { background: #febc2e; }
.mockup-chrome span:nth-child(3) { background: #28c840; }

.mockup-url {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: .6;
}

.mockup-body {
  padding: 16px;
  min-height: 260px;
}


/* ── Chat Demo ── */
.chat-demo { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; scrollbar-width: none; }
.chat-demo::-webkit-scrollbar { display: none; }

.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.chat-user { align-self: flex-end; background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.chat-ai { align-self: flex-start; background: var(--gray-bg); color: var(--text-primary); border-bottom-left-radius: 4px; }

.chat-typing { display: flex; gap: 4px; padding: 4px 0; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-secondary); animation: typingDot 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot { 0%,60%,100%{opacity:.3;transform:scale(1)} 30%{opacity:1;transform:scale(1.2)} }


/* ── Dashboard Demo ── */
.dash-demo { display: flex; flex-direction: column; gap: 10px; }
.dash-header { display: flex; justify-content: space-between; align-items: center; }
.dash-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.dash-badge { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 980px; background: rgba(40,200,64,.12); color: #1b9e2d; letter-spacing: .3px; text-transform: uppercase; }

.dash-chart { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding: 8px 0; }
.dash-bar { flex: 1; height: 0; background: var(--blue); border-radius: 4px 4px 0 0; transition: height 1s cubic-bezier(.16,1,.3,1); opacity: .8; position: relative; }
.dash-bar.animate { height: var(--h); }
.dash-bar::after { content: attr(data-val); position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; opacity: 0; transition: opacity .5s .5s; }
.dash-bar.animate::after { opacity: 1; }

.dash-stats { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--gray-border); }
.dash-stat { text-align: center; }
.dash-stat strong { display: block; font-size: 15px; font-weight: 700; color: var(--text-primary); }
.dash-stat small { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .3px; }


/* ── Pipeline Demo ── */
.pipe-demo { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.pipe-stage { text-align: center; opacity: 0; transform: translateY(12px); transition: all .5s ease; }
.pipe-stage.active { opacity: 1; transform: translateY(0); }

.pipe-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gray-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 18px; border: 1px solid var(--gray-border); }
.pipe-label { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.pipe-count { font-size: 11px; color: var(--text-secondary); }

.pipe-arrow { flex: 1; height: 2px; background: var(--gray-border); margin: 0 8px; position: relative; overflow: hidden; }
.pipe-flow { width: 30px; height: 100%; background: linear-gradient(90deg, transparent, var(--blue), transparent); position: absolute; left: -30px; top: 0; opacity: 0; }
.pipe-flow.flowing { opacity: 1; animation: pipeFlowAnim 1.5s linear infinite; }
@keyframes pipeFlowAnim { from{left:-30px} to{left:100%} }


/* ── CRM Demo ── */
.crm-demo { display: flex; flex-direction: column; gap: 8px; position: relative; }
.crm-contact { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--gray-bg); border: 1px solid transparent; opacity: 0; transform: translateX(-12px); transition: all .5s ease; }
.crm-contact.visible { opacity: 1; transform: translateX(0); }
.crm-contact:hover { border-color: var(--gray-border); }

.crm-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--white); flex-shrink: 0; }
.crm-info { flex: 1; min-width: 0; }
.crm-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.crm-role { font-size: 11px; color: var(--text-secondary); }
.crm-score { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--blue); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--blue); flex-shrink: 0; }
.crm-ai-tag { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 980px; background: rgba(0,113,227,.08); color: var(--blue); letter-spacing: .3px; text-transform: uppercase; }




/* ── DevOps Demo ── */
.devops-demo { display: flex; flex-direction: column; gap: 6px; }
.devops-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.04); font-size: 13px; color: rgba(255,255,255,.7); opacity: 0; transform: translateX(-10px); transition: all .4s ease; }
.devops-row.visible { opacity: 1; transform: translateX(0); }
.devops-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.devops-ok { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,.4); }
.devops-warn { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,.4); animation: devopsPulse 1.5s infinite; }
@keyframes devopsPulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.devops-name { flex: 1; font-weight: 500; color: rgba(255,255,255,.85); }
.devops-metric { font-family: 'Montserrat', monospace; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); }
.devops-alert { margin-top: 6px; padding: 10px 12px; border-radius: 8px; background: rgba(40,200,64,.1); border: 1px solid rgba(40,200,64,.2); font-size: 12px; font-weight: 500; color: #28c840; opacity: 0; transition: opacity .6s ease .8s; }
.devops-alert.visible { opacity: 1; }


/* ── QC Demo ── */
.qc-demo { padding: 8px 0; }
.qc-header { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.qc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.qc-item { height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; opacity: 0; transform: scale(.8); transition: all .3s ease; }
.qc-item.visible { opacity: 1; transform: scale(1); }
.qc-pass { background: rgba(40,200,64,.08); color: #1b9e2d; border: 1px solid rgba(40,200,64,.2); }
.qc-fail { background: rgba(255,59,48,.08); color: #ff3b30; border: 1px solid rgba(255,59,48,.2); }
.qc-stats { display: flex; gap: 16px; font-size: 12px; color: var(--text-secondary); }
.qc-stats strong { color: var(--text-primary); font-weight: 700; }


/* ── Campaign Demo ── */
.campaign-demo { padding: 4px 0; }
.campaign-header { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.campaign-channels { display: flex; gap: 12px; align-items: flex-end; height: 120px; margin-bottom: 12px; }
.campaign-ch { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.campaign-bar { width: 100%; height: 0; background: var(--blue); border-radius: 4px 4px 0 0; transition: height 1s cubic-bezier(.16,1,.3,1); opacity: .75; }
.campaign-bar.animate { height: var(--h); }
.campaign-ch span { font-size: 11px; color: var(--text-secondary); margin-top: 6px; font-weight: 500; }
.campaign-insight { padding: 10px 12px; border-radius: 8px; background: rgba(0,113,227,.06); border: 1px solid rgba(0,113,227,.12); font-size: 12px; font-weight: 500; color: var(--blue); opacity: 0; transition: opacity .6s ease .6s; }
.campaign-insight.visible { opacity: 1; }


/* ═══ HOME EXPERTISE GRID ═══ */
.home-expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.home-exp-card {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  text-decoration: none;
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s ease, border-color .3s;
}

.home-exp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,.08);
  border-color: var(--blue);
}

.home-exp-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.home-exp-card strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.home-exp-card > span {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.home-exp-roi {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--blue) !important;
  letter-spacing: .3px;
}

@media (max-width: 900px) {
  .home-expertise-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .home-expertise-grid { grid-template-columns: 1fr; }
}


/* ═══ PROCESS TIMELINE ═══ */
.timeline {
  position: relative;
  max-width: 680px;
  margin: 56px auto 0;
  padding-left: 52px;
}

.timeline-line {
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-border);
  border-radius: 2px;
}

.timeline-progress {
  width: 100%;
  height: 0%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: height .1s linear;
}

.timeline-step {
  position: relative;
  padding: 0 0 40px 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.timeline-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-gray .timeline-content { background: var(--white); }
.section-white .timeline-content { background: var(--gray-bg); border-color: transparent; }

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-bg);
  border: 2.5px solid var(--gray-border);
  transition: all .4s ease;
  z-index: 2;
}

.timeline-step.visible .timeline-dot {
  border-color: var(--text-primary);
  background: var(--text-primary);
}

.timeline-content {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 14px;
  padding: 24px;
  transition: all .3s ease;
}

.timeline-content:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  transform: translateX(4px);
}

.step-num {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}


/* ═══ STATS ═══ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.stat { text-align: center; padding: 24px; }

.stat-num {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.stat-label {
  font-size: 14px;
  color: var(--text-dark-secondary);
  line-height: 1.4;
}


/* ═══ CTA ═══ */
.cta { padding: 120px 0; }
.cta .section-title { max-width: 640px; margin: 0 auto 16px; }
.cta-risk {
  font-size: 13px;
  color: var(--text-dark-secondary);
  margin-top: 16px;
  letter-spacing: .3px;
}

.cta-email {
  font-size: 15px;
  color: var(--text-dark-secondary);
  margin-top: 12px;
}


/* ═══ FOOTER ═══ */
footer {
  background: var(--black-bg);
  color: var(--text-dark-secondary);
}

.footer-top {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 22px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo { height: 28px; display: block; margin-bottom: 12px; filter: brightness(0) invert(1); }

.footer-tagline {
  font-size: 14px;
  color: var(--text-dark-secondary);
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark-primary);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-dark-secondary);
  margin-bottom: 10px;
  transition: color .2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: var(--text-dark-secondary);
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}


/* ═══ CONTACT FORM ═══ */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-row .form-group { margin-bottom: 0; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark-secondary);
  margin-bottom: 6px;
  letter-spacing: .3px;
}

.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: var(--text-dark-primary);
  outline: none;
  transition: border-color .3s, background .3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, .25);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: rgba(255, 255, 255, .12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn-pill {
  width: 100%;
  margin-top: 8px;
  padding: 14px 28px;
  text-align: center;
}

.contact-form .btn-pill:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.form-status {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
}

.form-status.success { color: #28c840; }
.form-status.error { color: #ff6b6b; }

.contact-form .cta-risk { text-align: center; margin-top: 20px; }
.contact-form .cta-email { text-align: center; }
.contact-form .cta-email a { color: var(--blue); }
.contact-form .cta-email a:hover { color: var(--blue-hover); }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}


/* ═══ FUTURISTIC CURSOR ═══ */
.cursor-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
}

@media (hover: none) {
  .cursor-canvas { display: none; }
  body, body.has-mouse, body.has-mouse a, body.has-mouse button, a, button { cursor: auto; }
}


/* ═══ ANIMATED LINK UNDERLINE ═══ */
.link-underline {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}

.link-cta:hover .link-underline {
  transform: scaleX(1);
  transform-origin: left;
}


/* ═══ BUTTON PULSE RING ═══ */
.btn-pulse-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 980px;
  animation: btnPulse .6s ease-out forwards;
  pointer-events: none;
}

@keyframes btnPulse {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.4); opacity: 0; }
}


/* ═══ SCROLL ANIMATION CLASSES ═══ */
/* Starting states — elements hidden until observer adds .in-view */
.anim-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1);
}

.anim-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.anim-scale {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1);
}

.anim-scale.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.anim-slide-left {
  opacity: 0;
  transform: translateX(-30px) translateY(15px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1);
}

.anim-slide-left.in-view {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.anim-slide-right {
  opacity: 0;
  transform: translateX(30px) translateY(15px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1);
}

.anim-slide-right.in-view {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Once in-view, allow hover transforms to take over cleanly */
.anim-card.in-view,
.anim-scale.in-view,
.anim-slide-left.in-view,
.anim-slide-right.in-view {
  transition: opacity .7s ease, transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s ease;
}


/* ═══ INTERACTIVE CARD GLOW ═══ */
.card,
.timeline-content {
  position: relative;
  overflow: hidden;
}

.card-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0,113,227,.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .3s;
  z-index: 0;
}

.card:hover .card-glow,
.timeline-content:hover .card-glow {
  opacity: 1;
}

.card > *:not(.card-glow),
.timeline-content > *:not(.card-glow) {
  position: relative;
  z-index: 1;
}

/* Stat number glow on visible */
.stat-num {
  transition: text-shadow .6s ease;
}

.stat.visible .stat-num {
  text-shadow: 0 0 40px rgba(0,113,227,.3);
}


/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 99;
  }

  .nav-links.mobile-open { display: flex; }
  .nav-links a { font-size: 18px; opacity: 1; }
  .nav-hamburger { display: flex; z-index: 101; }
  nav .nav-inner { height: 44px; }

  .section { padding: 72px 0; }
  .showcase-block { padding: 80px 22px; }

  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }

  .hero { padding: 120px 22px 80px; }
  .hero h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero-links { flex-direction: column; gap: 16px; align-items: center; }

  .showcase-block h2 { font-size: clamp(24px, 7vw, 36px); }

  .pipe-demo { flex-direction: column; gap: 12px; }
  .pipe-arrow { width: 2px; height: 24px; margin: 0; }
}
