/* ═══════════════════════════════════════════
   EXPERIENCE LABS — styles.css
   AI Automation Agency
═══════════════════════════════════════════ */

/* ─── Reset & Variables ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black:     #04040a;
  --surface:   #090912;
  --surface2:  #0f0f1c;
  --card:      #0d0d1a;
  --border:    #1a1a2e;
  --border2:   #252540;
  --cyan:      #00e5c4;
  --cyan2:     #00b89e;
  --cyan-dim:  rgba(0, 229, 196, 0.08);
  --white:     #eeeef8;
  --muted:     #7a7a9a;
  --muted2:    #4a4a6a;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --container: 1100px;
  --nav-h:     68px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 196, 0.05) 0%, transparent 55%);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }
ul { list-style: none; }


/* ─── Page System ─── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }


/* ─── Container ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
}


/* ─── Typography helpers ─── */
.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 0.9rem;
  font-family: var(--font-head);
}
.section-label.center { text-align: center; }

.section-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.9rem;
  max-width: 600px;
}

.section-sub {
  color: var(--muted);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}
/* Preserve spacing when section-sub precedes a grid/CTA (not a sibling p) */
.section-sub:last-of-type {
  margin-bottom: 3rem;
}
.section-sub + .section-sub {
  margin-top: 0;
}


/* ─── Buttons ─── */
.btn-primary {
  background: var(--cyan);
  color: #04040a;
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.87; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border2);
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }


/* ─── Section spacing ─── */
.section { padding: 5.5rem 0; }
.section.alt { background: var(--surface); }


/* ─── CTA Section ─── */
.cta-section {
  padding: 6rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0,229,196,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  max-width: 680px;
  margin: 0 auto 1rem;
  position: relative;
}
.cta-section p {
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  position: relative;
}
.cta-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}
.center-cta { text-align: center; margin-top: 2.5rem; }


/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(4, 4, 10, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.84rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active  { border-bottom-color: var(--cyan); }

.nav-cta {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(238, 238, 248, 0.3);
  padding: 0.48rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
}
.nav-cta:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  display: block;
  transition: transform 0.25s, opacity 0.25s;
}


/* ══════════════════════════════════════════
   HERO (Home)
══════════════════════════════════════════ */
.hero {
  padding: 9rem 2.5rem 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,26,46,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,26,46,0.5) 1px, transparent 1px);
  background-size: 52px 52px;
}

.hero-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0,229,196,0.09) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 229, 196, 0.2);
  border-radius: 50px;
  padding: 0.3rem 1rem 0.3rem 0.55rem;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 2rem;
  background: rgba(0, 229, 196, 0.04);
  backdrop-filter: blur(8px);
}

.badge-pill {
  background: var(--cyan);
  color: #04040a;
  font-size: 0.64rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
}

.hero h1 {
  position: relative;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0 auto 1.4rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}

.hero > p {
  position: relative;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 530px;
  margin: 0 auto 2.8rem;
  font-weight: 300;
}
.hero > p strong { color: var(--white); font-weight: 400; }

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;
}

.tool-chips {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 3rem;
  position: relative;
  justify-content: center;
  flex-wrap: wrap;
}
.chips-label {
  font-size: 0.72rem;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.chip {
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 0.28rem 0.7rem;
  font-size: 0.76rem;
  color: var(--muted);
  background: var(--surface2);
  cursor: default;
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--cyan); color: var(--white); }


/* ──  Ticker ── */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0.8rem 0;
}
.ticker-track {
  display: flex;
  gap: 3rem;
  animation: tick 24s linear infinite;
  width: max-content;
}
@keyframes tick { to { transform: translateX(-50%); } }

.ticker-item {
  font-size: 0.7rem;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ticker-item::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}


/* ─── Services Grid (Home) ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 3rem;
}

.service-card {
  background: var(--card);
  padding: 2.2rem 1.8rem;
  transition: background 0.2s;
  cursor: pointer;
}
.service-card:hover { background: var(--surface2); }
.service-card:hover .service-icon { border-color: var(--cyan); }

.service-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border2);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  background: var(--black);
}
.service-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
}


/* ─── Stats Row ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-block {
  background: var(--card);
  padding: 2.2rem 2rem;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
}


/* ─── Testimonial ─── */
.testimonial-section {
  padding: 5rem 0;
  background: var(--surface);
  text-align: center;
}
.testimonial-quote {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  max-width: 760px;
  margin: 1.5rem auto 2rem;
  line-height: 1.65;
  color: var(--white);
}
.testimonial-quote em { font-style: normal; color: var(--cyan); }
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
}
.author-name  { font-size: 0.84rem; font-weight: 500; }
.author-role  { font-size: 0.74rem; color: var(--muted); }


/* ══════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════ */
.page-hero {
  padding: 8rem 2.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero.short { padding-bottom: 3.5rem; }

.page-hero h1 {
  position: relative;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  max-width: 820px;
  margin: 0.8rem auto 1.2rem;
}
.page-hero h1 em { font-style: normal; color: var(--cyan); }

.page-hero > p {
  position: relative;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
  font-weight: 300;
}
.page-hero .section-label { position: relative; display: inline-block; }


/* ══════════════════════════════════════════
   SERVICES — Phase nav
══════════════════════════════════════════ */
.phase-nav {
  display: flex;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 440px;
  margin: 2.5rem auto 0;
  position: relative;
}
.phase-btn {
  flex: 1;
  background: var(--card);
  border: none;
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.72rem 1rem;
  transition: background 0.25s, color 0.25s;
  border-right: 1px solid var(--border);
  letter-spacing: 0.03em;
}
.phase-btn:last-child { border-right: none; }
.phase-btn.active { background: var(--cyan); color: #04040a; }
.phase-btn:hover:not(.active) { background: var(--surface2); color: var(--white); }


/* ─── Phase Sections ─── */
.phase-section { padding: 5.5rem 0; border-bottom: 1px solid var(--border); }
.phase-section.alt { background: var(--surface); }
.phase-section:last-of-type { border-bottom: none; }

.phase-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5.5rem;
  align-items: start;
}
.phase-inner.reverse { direction: rtl; }
.phase-inner.reverse > * { direction: ltr; }

.phase-num {
  font-size: 0.7rem;
  color: var(--muted2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phase-num::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--cyan);
  display: block;
}

.phase-content h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.phase-tagline {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
}

.phase-body {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.8rem;
  font-weight: 300;
}

.deliverables-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 0.9rem;
  font-family: var(--font-head);
}

.deliverables { display: flex; flex-direction: column; }

.deliverable {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
}
.deliverable:last-child { border-bottom: none; }
.deliverable:hover .del-title { color: var(--cyan); }
.deliverable:hover .del-arrow { transform: translateX(3px); }

.del-arrow {
  color: var(--cyan);
  font-size: 0.74rem;
  margin-top: 3px;
  flex-shrink: 0;
  transition: transform 0.2s;
  font-family: monospace;
}
.del-title {
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 0.12rem;
  transition: color 0.2s;
}
.del-desc {
  font-size: 0.79rem; /* keep */
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
}


/* ─── Phase Visuals ─── */
.phase-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.visual-header {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.visual-title {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-head);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.window-dots { display: flex; gap: 4px; }
.window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border2);
}
.window-dots span:nth-child(1) { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }


/* Scorecard visual */
.scorecard-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.75rem; }

.score-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: border-color 0.3s;
}
.score-card.high { border-color: rgba(0, 229, 196, 0.25); }

.score-tag {
  font-size: 0.66rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}
.score-tag.medium { color: var(--muted); }

.score-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.score-card p { font-size: 0.75rem; color: var(--muted); }

.score-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
}
.score-val { color: var(--cyan); font-family: var(--font-head); font-weight: 700; }
.score-val.muted { color: var(--muted); }

.score-total {
  background: var(--surface2);
  border: 1px solid rgba(0, 229, 196, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.score-total-label { font-size: 0.7rem; color: var(--muted); margin-bottom: 0.25rem; }
.score-total-num {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--cyan);
}
.score-total-num span {
  font-size: 0.9rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 300;
}


/* Workflow nodes visual */
.workflow-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0; }

.wf-node {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface2);
  transition: border-color 0.3s, background 0.3s;
}
.wf-node.active {
  border-color: var(--cyan);
  background: rgba(0, 229, 196, 0.05);
}

.wf-connector {
  width: 1px;
  height: 10px;
  background: var(--border2);
  margin-left: 17px;
  flex-shrink: 0;
}

.wf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border2);
  flex-shrink: 0;
  transition: background 0.3s;
}
.wf-node.active .wf-dot { background: var(--cyan); }

.wf-label {
  font-size: 0.76rem;
  color: var(--muted);
  flex: 1;
  transition: color 0.3s;
}
.wf-node.active .wf-label { color: var(--white); }

.wf-badge {
  font-size: 0.62rem;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 0.1rem 0.4rem;
  color: var(--muted2);
  background: var(--black);
  white-space: nowrap;
  transition: border-color 0.3s, color 0.3s;
}
.wf-node.active .wf-badge {
  border-color: rgba(0, 229, 196, 0.3);
  color: var(--cyan);
}


/* Impact metrics visual */
.impact-body { padding: 1.2rem; }

.impact-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.impact-metric {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem;
}
.impact-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}
.impact-label { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }

.impact-bars { display: flex; flex-direction: column; gap: 0.7rem; }
.bar-item {}
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.bar-pct { color: var(--cyan); }
.bar-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 2px;
  width: 0;
  transition: width 1.5s ease;
}


/* ══════════════════════════════════════════
   CASE STUDIES
══════════════════════════════════════════ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 1rem;
}
.cases-grid .case-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.case-card {
  background: var(--card);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.case-card:hover { background: var(--surface2); }
.case-card::after {
  content: '→';
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  color: var(--cyan);
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-4px);
}
.case-card:hover::after { opacity: 1; transform: translateX(0); }

.case-industry {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 0.6rem;
  font-family: var(--font-head);
}
.case-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.case-card > p { font-size: 0.83rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.2rem; }

.case-story {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
}
.case-story-row {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.case-story-row:first-child { border-top: 1px solid var(--border); }
.case-story-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  font-family: var(--font-head);
  font-weight: 700;
  flex-shrink: 0;
  width: 62px;
  padding-top: 1px;
}
.case-story-text {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.case-result-num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan);
}
.case-result-label { font-size: 0.72rem; color: var(--muted); }


/* ══════════════════════════════════════════
   PRICING
══════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.pricing-card {
  background: var(--card);
  padding: 2.5rem 2rem;
  position: relative;
}
.pricing-card.popular {
  background: var(--surface2);
  border-top: 2px solid var(--cyan);
}

.popular-badge {
  background: var(--cyan);
  color: #04040a;
  font-size: 0.66rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-family: var(--font-head);
  display: inline-block;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.pricing-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.pricing-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
  min-height: 2.5rem;
}
.pricing-price {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.pricing-price span {
  font-size: 1rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 300;
}
.pricing-note { font-size: 0.75rem; color: var(--muted2); margin-bottom: 1.8rem; }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}
.pricing-features li {
  font-size: 0.83rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.pricing-features li::before {
  content: '✓';
  color: var(--cyan);
  flex-shrink: 0;
  font-size: 0.78rem;
  margin-top: 2px;
}

.pricing-btn {
  width: 100%;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border2);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  transition: border-color 0.2s, color 0.2s;
}
.pricing-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.pricing-btn.popular-btn {
  background: var(--cyan);
  color: #04040a;
  border-color: var(--cyan);
}
.pricing-btn.popular-btn:hover { opacity: 0.87; }


/* ─── FAQ ─── */
.faq-section { margin-top: 4rem; }
.faq-list {}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  cursor: pointer;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  gap: 1rem;
  user-select: none;
}
.faq-icon {
  color: var(--cyan);
  font-size: 1.1rem;
  transition: transform 0.25s;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding-top 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 220px; padding-top: 0.75rem; }


/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}
.contact-grid--centered {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.contact-items { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2rem; }

.contact-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-item-label {
  font-size: 0.72rem;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.1rem;
}
.contact-item-value { font-size: 0.85rem; color: var(--white); }

.contact-note p {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.8;
  padding: 1.5rem;
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  border-left: 2px solid var(--cyan);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}


/* ─── Form ─── */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-group:last-of-type { margin-bottom: 0; }

.form-group label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-head);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.9rem;
  color: var(--white);
  font-size: 0.85rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--cyan); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted2); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--card); }

.phone-input-wrap {
  display: flex;
  gap: 0.5rem;
}
.phone-input-wrap input[type="tel"] {
  flex: 1;
}

/* Dial code combobox */
.dial-combobox {
  position: relative;
  flex: 0 0 110px;
}
.dial-search {
  width: 100%;
  background: var(--surface-2, #0f0f1a);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}
.dial-search:focus {
  outline: none;
  border-color: var(--cyan);
}
.dial-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 220px;
  background: #0f0f1a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  max-height: 220px;
  overflow-y: auto;
  z-index: 200;
}
.dial-dropdown.open { display: block; }
.dial-dropdown li {
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.dial-dropdown li:hover,
.dial-dropdown li.active {
  background: rgba(29,255,212,0.08);
  color: var(--cyan);
}

.form-submit {
  width: 100%;
  background: var(--cyan);
  color: #04040a;
  border: none;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 1.2rem;
  transition: opacity 0.2s;
}
.form-submit:hover { opacity: 0.87; }

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}
.success-icon {
  font-size: 2rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.success-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.success-body { font-size: 0.85rem; color: var(--muted); font-weight: 300; }


/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.footer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

.footer-links { display: flex; gap: 1.8rem; }
.footer-links a {
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: 0.72rem; color: var(--muted2); }


/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 1rem 1.25rem; }
  .logo svg { height: 34px !important; width: auto !important; }

  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2.5rem;
    gap: 1.2rem;
  }
  .nav.menu-open .nav-cta {
    display: inline-block;
    position: absolute;
    top: calc(var(--nav-h) + 1.5rem);
    right: 2.5rem;
  }

  .services-grid,
  .cases-grid,
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }

  .phase-inner,
  .phase-inner.reverse { grid-template-columns: 1fr; gap: 2.5rem; direction: ltr; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .impact-metrics { grid-template-columns: 1fr 1fr; }
  .case-results { grid-template-columns: 1fr 1fr 1fr; }

  .hero { padding: 6rem 1.5rem 3.5rem; }
  .page-hero { padding: 6rem 1.5rem 3rem; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.5rem; }
  .cta-section { padding: 4rem 1.5rem; }

  .footer { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: 2.5rem; }
  .page-hero h1 { font-size: 2.2rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .cta-btns { flex-direction: column; align-items: center; }
  .phase-nav { max-width: 100%; }
  .impact-metrics { grid-template-columns: 1fr 1fr; }
}


/* ══════════════════════════════════════════
   SERVICES — NEW PHASE TAB SYSTEM
══════════════════════════════════════════ */

/* Tab nav bar */
.phase-tabs-wrap {
  border-bottom: 1px solid var(--border);
  background: rgba(4, 4, 10, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
}

.phase-tabs {
  display: flex;
  justify-content: center;
  gap: 4rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.phase-tab {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 1.3rem 0 1.1rem;
  position: relative;
  transition: color 0.25s;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.phase-tab sup {
  font-size: 0.6rem;
  font-style: italic;
  font-weight: 400;
  color: var(--muted2);
  transition: color 0.25s;
  font-family: var(--font-body);
  position: relative;
  top: -2px;
}

.phase-tab:hover { color: var(--white); }
.phase-tab:hover sup { color: var(--muted); }

.phase-tab.active { color: var(--white); }
.phase-tab.active sup { color: var(--cyan); }

/* Chevron indicator under active tab */
.phase-tab.active::after {
  content: '∧';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--white);
  line-height: 1;
  font-family: monospace;
}


/* Panel wrapper */
.phase-panels-wrap {
  background: var(--black);
}

/* Individual panels — hidden by default */
.phase-panel {
  display: none;
}

.phase-panel.active {
  display: block;
}

/* Panel entrance animation */
.phase-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 6rem;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem 2.5rem 6rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.phase-panel-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Services Breakdown (visual cards) ── */
.svc-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.svc-card {
  background: var(--card);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}
.svc-card:hover {
  background: var(--surface2);
}

.svc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.svc-card-num {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  opacity: 0.3;
}

.svc-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.svc-card-desc {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.svc-card-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.svc-card-outcome {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 229, 196, 0.1);
  border-radius: 50px;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}

.svc-card-outcome span {
  font-weight: 700;
  color: var(--cyan);
}

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


/* Geometric SVG illustration */
.phase-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.phase-svg {
  width: 100%;
  max-width: 340px;
  opacity: 0.85;
  animation: svgFloat 6s ease-in-out infinite;
}

@keyframes svgFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* Stagger circles/paths on enter */
.phase-panel.active .phase-svg circle,
.phase-panel.active .phase-svg polygon {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawLine 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.phase-panel.active .phase-svg circle:nth-child(1),
.phase-panel.active .phase-svg polygon:nth-child(1) { animation-delay: 0.1s; }
.phase-panel.active .phase-svg circle:nth-child(2),
.phase-panel.active .phase-svg polygon:nth-child(2) { animation-delay: 0.3s; }
.phase-panel.active .phase-svg circle:nth-child(3),
.phase-panel.active .phase-svg polygon:nth-child(3) { animation-delay: 0.5s; }
.phase-panel.active .phase-svg polygon:nth-child(4) { animation-delay: 0.7s; }

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}


/* Phase panel content */
.phase-panel-heading {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 1rem;
}

.phase-sup {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--cyan);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1;
}

.phase-panel-heading h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
}

.phase-panel-sub {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.phase-panel-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 520px;
}


/* What we do */
.wwd-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.4rem;
  line-height: 1;
}

.wwd-title em {
  font-style: normal;
  color: var(--cyan);
}

.wwd-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wwd-list li {
  display: flex;
  flex-direction: column;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: padding-left 0.2s;
}

.wwd-list li:first-child { border-top: 1px solid var(--border); }

.wwd-list li:hover {
  padding-left: 6px;
}

.wwd-list li strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
  transition: color 0.2s;
}

.wwd-list li:hover strong { color: var(--cyan); }

.wwd-list li {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
}


/* Responsive */
@media (max-width: 860px) {
  .phase-tabs { gap: 2rem; }
  .phase-tab { font-size: 0.9rem; }

  .phase-panel-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem 4rem;
  }

  .phase-illustration { padding: 1rem 2rem 0; }
  .phase-svg { max-width: 220px; }
}

@media (max-width: 540px) {
  .phase-tabs { gap: 1rem; padding: 0 1rem; }
  .phase-tab { font-size: 0.8rem; padding: 1rem 0 0.9rem; }
  .phase-tab sup { font-size: 0.55rem; }

  .phase-panel-inner { padding: 2.5rem 1.5rem 3rem; }
  .phase-illustration { padding: 0.5rem 1rem 0; }
  .phase-svg { max-width: 180px; }
}
