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

:root {
  --purple-900: #1c0f3f;
  --purple-800: #2a1560;
  --purple-600: #5b2ee6;
  --purple-500: #6d3df5;
  --purple-400: #8b63ff;
  --ink: #16121f;
  --ink-soft: #4d4761;
  --bg: #faf9fc;
  --card: #ffffff;
  --line: #e8e4f1;
  --gold: #f5b532;
  --radius: 20px;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h1 em, h2 em, .page-hero em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
}

.center { text-align: center; }
.light { color: #fff; }

.section { padding: clamp(4rem, 9vw, 7.5rem) clamp(1.25rem, 5vw, 4rem); max-width: 1200px; margin: 0 auto; }
.section.tight { padding-top: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  display: inline-block;
  width: 100%;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--purple-500);
  margin-bottom: 0.75rem;
}
.eyebrow.light { color: var(--purple-400); }

.section-sub { max-width: 620px; margin: 0 auto 2.5rem; color: var(--ink-soft); }
.light.section-sub { color: #c9c0e8; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--purple-600); color: #fff; box-shadow: 0 8px 24px rgba(91, 46, 230, 0.35); }
.btn-primary:hover { background: var(--purple-500); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--purple-800); }
.mt { margin-top: 2.5rem; }

/* ============ TOP LOGO BAR ============ */
.top-logo-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 1.4rem;
}
.logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.logo span { color: var(--purple-400); }

/* ============ NAV OVERLAY (page blur while menu open) ============ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.nav-overlay.active { opacity: 1; visibility: visible; }

/* ============ BOTTOM NAV — desktop floating pill ============ */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #0a0a0a;
  border-radius: 16px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 3px 6px rgba(48, 255, 151, 0.25), 0 12px 40px rgba(0,0,0,0.45);
}
.bn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #f2f0f7;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.bn-link:hover { background: rgba(255,255,255,0.08); }
.bn-icon { width: 22px; height: 22px; display: none; }
.bn-label { line-height: 1; }

.bn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #8a55ff 0%, #5b2ee6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 18px rgba(91, 46, 230, 0.5);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  margin: 0 0.35rem;
  transition: filter 0.2s ease;
}
.bn-cta:hover { filter: brightness(1.12); }
.bn-cta svg { width: 18px; height: 18px; }

/* Raised center button — mobile only */
.bn-fab { display: none; }

/* Mobile-only plain Services link */
.bn-mobile-only { display: none !important; }

/* ---- Dropdown panels (open upward) ---- */
.bn-dd { position: relative; }
.bn-dd .bn-toggle { width: 100%; }
.bn-panel {
  position: absolute;
  bottom: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  width: 560px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.bn-panel::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 3px;
}
.bn-dd.open .bn-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.bn-dd.open .bn-label { color: var(--purple-400); }
.bn-panel-list { flex: 1; min-width: 250px; }
.bn-panel-list a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.bn-panel-list a:hover { background: #f3effc; }
.bn-panel-list strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.bn-panel-list small { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.4; }
.bn-panel-media {
  width: 230px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--purple-800), var(--purple-500));
  display: flex;
  align-items: center;
  justify-content: center;
}
.bn-panel-media span {
  font-family: var(--font-accent);
  font-style: italic;
  color: rgba(255,255,255,0.9);
  font-size: 1.3rem;
}
.bn-panel.simple { width: 340px; display: block; }

/* ---- Mobile: app-style bottom tab bar with center notch ---- */
@media (max-width: 768px) {
  .bottom-nav {
    left: 0; right: 0; bottom: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    /* iOS: 16px top + 22px bottom incl. home-indicator safe area (~102px total) */
    padding: 16px 2px calc(22px + env(safe-area-inset-bottom));
    justify-content: space-around;
    gap: 0;
    animation: bn-rise-mobile 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .bottom-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    border-radius: 18px 18px 0 0;
    box-shadow: inset 0 3px 6px rgba(48, 255, 151, 0.25);
    -webkit-mask-image: radial-gradient(circle 38px at 50% 0, transparent 37px, #000 38px);
    mask-image: radial-gradient(circle 38px at 50% 0, transparent 37px, #000 38px);
    pointer-events: none;
  }
  .bn-link {
    position: relative;
    flex-direction: column;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
  }
  .bn-link:hover { background: none; }
  .bn-icon { display: block; width: 24px; height: 24px; }
  .bn-cta { display: none; }
  .bn-desktop-only { display: none !important; }
  .bn-mobile-only { display: inline-flex !important; }

  /* Chat button in the notch — iOS app-icon style rounded square */
  .bn-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -48%);
    width: 58px; height: 58px;
    border-radius: 19px;
    background: linear-gradient(180deg, #8a55ff 0%, #5b2ee6 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 20px rgba(91, 46, 230, 0.55);
    color: #fff;
    z-index: 2;
    animation: fab-pulse 3.2s ease-in-out 1.2s infinite;
  }
  .bn-fab svg { width: 26px; height: 26px; }

  /* More menu becomes a bottom sheet */
  .bn-dd { position: static; }
  .bn-panel, .bn-panel.simple {
    position: fixed;
    left: 0; right: 0;
    bottom: calc(94px + env(safe-area-inset-bottom));
    width: auto;
    transform: translateY(12px);
    border-radius: 20px 20px 0 0;
    padding: 0.5rem 0.5rem 0.75rem;
    max-height: 70vh;
    overflow-y: auto;
  }
  .bn-dd.open .bn-panel { transform: translateY(0); }
  .bn-panel::after { display: none; }
  .bn-panel-media { display: none; }
  .bn-panel-list a { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .bn-panel-list a:last-child { border-bottom: none; }
}

/* ============ HERO (home) ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #4a2bb5 0%, var(--purple-800) 45%, var(--purple-900) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(7rem, 14vw, 10rem) 1.25rem clamp(4rem, 8vw, 6rem);
}

.hero-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(139, 99, 255, 0.45), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.stars { color: var(--gold); letter-spacing: 2px; }

.hero .eyebrow { color: #c9b8ff; }
.hero-sub { max-width: 560px; margin: 1.25rem auto 2rem; color: #d5cdf0; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.trusted { margin: 3.5rem 0 1.25rem; font-size: 0.85rem; color: #b3a8d9; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

/* ============ PAGE HERO (interior pages) ============ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 130% at 50% 0%, #4a2bb5 0%, var(--purple-800) 50%, var(--purple-900) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(7rem, 13vw, 9.5rem) 1.25rem clamp(3.5rem, 7vw, 5.5rem);
}
.page-hero p { max-width: 620px; margin: 1.25rem auto 0; color: #d5cdf0; font-size: 1.05rem; }
.page-hero .hero-actions { margin-top: 2rem; }

/* ============ LOGO MARQUEE ============ */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-weight: 700;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ PROJECT FEATURE CARDS (home) ============ */
.project-list { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 3rem; }

.project-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  align-items: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.project-card:hover { box-shadow: 0 20px 50px rgba(91, 46, 230, 0.12); transform: translateY(-4px); }
.project-card.flip .project-visual { order: 2; }

.project-visual {
  border-radius: 14px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-label {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 2rem;
  color: rgba(255,255,255,0.9);
}
.grad-1 { background: linear-gradient(135deg, #ff9a62, #f5576c); }
.grad-2 { background: linear-gradient(135deg, #43e97b, #38a3d1); }
.grad-3 { background: linear-gradient(135deg, #667eea, #b465da); }
.grad-4 { background: linear-gradient(135deg, #f7b733, #fc4a1a); }
.grad-5 { background: linear-gradient(135deg, #24c6dc, #514a9d); }
.grad-6 { background: linear-gradient(135deg, #ec6ead, #3494e6); }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-600);
  background: #efe9ff;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}
.project-info h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.project-info p { color: var(--ink-soft); }

.stats { display: flex; gap: 2.5rem; margin: 1.5rem 0; }
.stats strong { display: block; font-size: 1.6rem; letter-spacing: -0.02em; }
.stats span { font-size: 0.85rem; color: var(--ink-soft); }

.client { display: flex; align-items: center; gap: 0.75rem; }
.client strong { display: block; font-size: 0.95rem; }
.client span { font-size: 0.82rem; color: var(--ink-soft); }

.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-400));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}

/* ============ STACKED PROJECT CARDS (home) ============ */
/* Pure CSS scroll-stacking: each card is sticky with a staggered top offset,
   so earlier cards' tag strips stay peeking as the next card slides over. */
.stack-cards {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}
.stack-card {
  position: sticky;
  top: calc(84px + var(--i, 0) * 56px);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
  border-radius: 20px;
  padding: 2.25rem 2.5rem 2.5rem;
  min-height: 460px;
  color: var(--ink);
}
.sc-tag {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 1.1rem;
  color: var(--ink) !important;
}
.stack-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.9rem; letter-spacing: -0.02em; }
.stack-card > div > p { color: rgba(22, 18, 31, 0.72); max-width: 46ch; }
.sc-stats { display: flex; gap: 3.5rem; margin: 1.75rem 0; }
.sc-stats span { display: block; font-size: 0.88rem; color: rgba(22, 18, 31, 0.65); }
.sc-stats strong { font-size: 1.45rem; letter-spacing: -0.02em; }
.sc-client {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  max-width: 420px;
}
.sc-client strong { display: block; font-size: 0.95rem; }
.sc-client span { font-size: 0.82rem; color: rgba(22, 18, 31, 0.65); }
.sc-client .sc-arrow { margin-left: auto; font-size: 1.1rem; }
.sc-visual {
  align-self: stretch;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 380px;
}
/* CSS-only phone mockup placeholder — swap for real screenshots later */
.sc-phone {
  width: 200px;
  height: 320px;
  background: #16121f;
  border-radius: 30px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: rotate(-4deg) translateY(24px);
}
.sc-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
}
/* Card palettes (tag-strip pastels + deeper visual tints) */
.sc-lavender { background: #c6cfff; }
.sc-lavender .sc-visual { background: #6d7cf0; }
.sc-salmon { background: #ffb8b0; }
.sc-salmon .sc-visual { background: #f0705f; }
.sc-yellow { background: #fbe8a4; }
.sc-yellow .sc-visual { background: #edb92e; }
.sc-cyan { background: #abf5ff; }
.sc-cyan .sc-visual { background: #2ec3dd; }
.sc-mint { background: #c9fff7; }
.sc-mint .sc-visual { background: #2ee0bb; }

/* ============ WORK GRID (projects page) ============ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.work-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.work-card:hover { box-shadow: 0 20px 50px rgba(91, 46, 230, 0.12); transform: translateY(-4px); }
.work-card .project-visual { border-radius: 0; min-height: 260px; }
.work-card .work-body { padding: 1.5rem 1.75rem 1.75rem; }
.work-card h3 { font-size: 1.25rem; margin: 0.25rem 0 0.5rem; }
.work-card p { color: var(--ink-soft); font-size: 0.93rem; }

/* ============ TESTIMONIALS ============ */
.testimonial-grid { columns: 3; column-gap: 1.5rem; margin-top: 3rem; }
.t-card {
  break-inside: avoid;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.t-card blockquote { color: var(--ink); font-size: 0.97rem; margin-bottom: 1.25rem; }
.t-card figcaption { display: flex; align-items: center; gap: 0.75rem; }
.t-card strong { display: block; font-size: 0.92rem; }
.t-card figcaption span { font-size: 0.8rem; color: var(--ink-soft); }

/* ============ DARK PANEL + FEATURE GRID ============ */
.ai-section {
  background: linear-gradient(160deg, var(--purple-900), var(--purple-800));
  border-radius: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.f-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.75rem;
  color: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}
.f-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.f-icon { font-size: 1.8rem; margin-bottom: 0.9rem; }
.f-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.f-card p { font-size: 0.9rem; color: #c9c0e8; }

/* Light variant */
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.icon-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.icon-card:hover { box-shadow: 0 16px 40px rgba(91, 46, 230, 0.1); transform: translateY(-4px); }
.icon-card h3 { font-size: 1.1rem; margin: 0.75rem 0 0.5rem; }
.icon-card p { font-size: 0.92rem; color: var(--ink-soft); }
.icon-card .f-icon { margin-bottom: 0; }

/* ============ SERVICES LIST ============ */
.service-list { margin-top: 3rem; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.25rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding 0.2s ease;
}
.service-row:hover { background: #f3effc; padding-left: 1.25rem; border-radius: 12px; }
.service-row h3 { font-size: 1.45rem; }
.service-row p { color: var(--ink-soft); font-size: 0.95rem; }
.arrow-circle {
  width: 48px; height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.service-row:hover .arrow-circle { background: var(--purple-600); border-color: var(--purple-600); color: #fff; transform: rotate(-45deg); }

/* ============ STAT BAND ============ */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: center;
}
.stat-band > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1rem;
}
.stat-band strong { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--purple-600); }
.stat-band span { font-size: 0.9rem; color: var(--ink-soft); }

/* ============ PROCESS STEPS ============ */
.process-steps { margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 2rem;
  color: var(--purple-400);
  line-height: 1;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ============ PRICING ============ */
.plan-toggle {
  display: inline-flex;
  gap: 0.25rem;
  background: #eee9f8;
  border-radius: 999px;
  padding: 0.3rem;
  margin: 0 auto 3rem;
}
.plan-toggle button {
  border: none;
  background: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.plan-toggle button.active { background: var(--purple-600); color: #fff; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
}
.plan-card.featured {
  background: linear-gradient(160deg, var(--purple-900), var(--purple-800));
  color: #fff;
  border: none;
  box-shadow: 0 24px 60px rgba(42, 21, 96, 0.35);
}
.plan-card.featured .plan-desc, .plan-card.featured li { color: #c9c0e8; }
.plan-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 1rem;
}
.plan-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.plan-desc { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.25rem; }
.price small { font-size: 1rem; font-weight: 500; color: inherit; opacity: 0.7; }
.plan-card ul { list-style: none; margin: 1.5rem 0 2rem; flex: 1; }
.plan-card li { padding: 0.45rem 0; font-size: 0.93rem; color: var(--ink-soft); }
.plan-card li::before { content: "✓  "; color: var(--purple-400); font-weight: 700; }

/* ============ BENEFITS ============ */
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.b-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.b-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.b-card p { color: var(--ink-soft); font-size: 0.95rem; }
.chips { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.chips span {
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: var(--bg);
}

/* ============ TEAM ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.member-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 1.5rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.member-card:hover { box-shadow: 0 16px 40px rgba(91, 46, 230, 0.12); transform: translateY(-4px); }
.member-photo {
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 4.5rem;
  margin-bottom: 1.25rem;
}
.member-card h3 { font-size: 1.05rem; }
.member-card p { font-size: 0.85rem; color: var(--ink-soft); }

/* ============ BLOG ============ */
.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 3rem;
}
.featured-post .project-visual { min-height: 280px; }
.post-meta { font-size: 0.82rem; color: var(--ink-soft); display: flex; gap: 1rem; margin-bottom: 0.75rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.post-card:hover { box-shadow: 0 16px 40px rgba(91, 46, 230, 0.12); transform: translateY(-4px); }
.post-card .project-visual { min-height: 180px; border-radius: 0; }
.post-body { padding: 1.4rem 1.5rem 1.6rem; }
.post-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.post-card p { font-size: 0.88rem; color: var(--ink-soft); }

/* Newsletter band */
.newsletter {
  background: linear-gradient(160deg, var(--purple-900), var(--purple-800));
  border-radius: 24px;
  color: #fff;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 4rem;
}
.newsletter h2 { margin-bottom: 0.5rem; font-size: 1.6rem; }
.newsletter p { color: #c9c0e8; font-size: 0.95rem; }
.newsletter form { display: flex; gap: 0.5rem; }
.newsletter input {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.newsletter input::placeholder { color: #b3a8d9; }

/* ============ CAREER ============ */
.role-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; }
.role-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  transition: box-shadow 0.2s ease;
}
.role-row:hover { box-shadow: 0 12px 32px rgba(91, 46, 230, 0.1); }
.role-row h3 { font-size: 1.15rem; }
.role-row .role-meta { font-size: 0.85rem; color: var(--ink-soft); }

/* ============ CONTACT ============ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}
.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 0.35rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.93rem;
  background: var(--bg);
  color: var(--ink);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--purple-400);
  border-color: transparent;
}
.contact-aside .b-card { margin-bottom: 1.25rem; }
.contact-aside a { color: var(--purple-600); font-weight: 600; }

/* ============ FAQ ============ */
.faq-list { max-width: 720px; margin: 3rem auto 0; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.9rem;
}
.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--purple-500); transition: transform 0.2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 0.8rem; color: var(--ink-soft); font-size: 0.95rem; }

/* ============ CTA BAND ============ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 130% at 50% 0%, #4a2bb5 0%, var(--purple-800) 50%, var(--purple-900) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 1.25rem;
  margin-top: 4rem;
}
.cta-inner { position: relative; }
.cta-band p { color: #d5cdf0; margin: 1rem 0 2rem; }

/* ============ FOOTER ============ */
.site-footer { background: var(--purple-900); color: #b3a8d9; padding: 4rem clamp(1.25rem, 5vw, 4rem) 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}
.footer-grid p { font-size: 0.9rem; margin-top: 0.75rem; max-width: 280px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-grid a { display: block; font-size: 0.9rem; padding: 0.25rem 0; transition: color 0.2s ease; }
.footer-grid a:hover { color: #fff; }
.footer-grid .logo { display: inline-block; padding: 0; }
.socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex !important;
  align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.socials a:hover { background: rgba(255,255,255,0.1); }
.copyright { text-align: center; font-size: 0.82rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; max-width: 1200px; margin: 0 auto; }

/* ============ NAV ENTRANCE & CHAT PULSE ============ */
@media (min-width: 769px) {
  .bottom-nav { animation: bn-rise-desktop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
}
@keyframes bn-rise-desktop {
  from { opacity: 0; transform: translateX(-50%) translateY(140%); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes bn-rise-mobile {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 20px rgba(91, 46, 230, 0.55), 0 0 0 0 rgba(139, 99, 255, 0.45); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 20px rgba(91, 46, 230, 0.55), 0 0 0 12px rgba(139, 99, 255, 0); }
}

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .bottom-nav, .bn-fab { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .project-card, .featured-post, .contact-wrap, .newsletter { grid-template-columns: 1fr; }
  .stack-card {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.5rem 1.5rem;
    gap: 1.5rem;
    top: calc(70px + var(--i, 0) * 48px);
    min-height: 0;
  }
  .sc-visual { min-height: 300px; }
  .sc-phone { transform: rotate(-4deg) translateY(16px); }
  .sc-stats { gap: 2rem; margin: 1.25rem 0; }
  .project-card.flip .project-visual { order: 0; }
  .testimonial-grid { columns: 2; }
  .feature-grid, .icon-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid, .stat-band { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .work-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr auto; }
  .service-row p { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .testimonial-grid { columns: 1; }
  .feature-grid, .icon-grid, .blog-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .role-row { grid-template-columns: 1fr; text-align: left; gap: 0.75rem; }
  .newsletter form { flex-direction: column; }
}

/* Keep footer content clear of the fixed mobile tab bar */
@media (max-width: 768px) {
  .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}
