/* ============================================================
   CSS Custom Properties — mirrors Pencil design variables
============================================================ */
:root {
  --bg-dark:       #0A0A14;
  --bg-card:       #13131F;
  --bg-card-2:     #1A1A2E;
  --accent-purple: #A855F7;
  --accent-blue:   #3B82F6;
  --accent-pink:   #EC4899;
  --text-primary:  #FFFFFF;
  --text-secondary:#A1A1AA;
  --text-muted:    #71717A;
  --border:        #2D2D3D;

  --grad-purple-blue: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  --grad-hero-bg:     linear-gradient(135deg, #0A0A14 0%, #1A0A2E 50%, #0A0A14 100%);
  --grad-cta-bg:      linear-gradient(135deg, #1A0A2E 0%, #0A1A2E 50%, #1A0A2E 100%);

  --font: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   Layout Helpers
============================================================ */
.container {
  width: min(1280px, calc(100% - 128px));
  margin-inline: auto;
}

@media (max-width: 768px) {
  .container { width: calc(100% - 48px); }
}

.section {
  padding-block: 80px;
}
.section-dark  { background-color: var(--bg-dark); }
.section-card  { background-color: var(--bg-card); }

/* ============================================================
   Section Headers
============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-purple);
  text-transform: uppercase;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
}

.large-title { font-size: 40px; font-weight: 800; }

/* ============================================================
   Buttons
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gradient {
  background: var(--grad-purple-blue);
  color: var(--text-primary);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-lg  { padding: 16px 32px; font-size: 16px; }
.btn-xl  { padding: 20px 48px; font-size: 18px; font-weight: 700; }
.btn-sm  { padding: 8px 16px; font-size: 13px; }

/* ============================================================
   Cards (base)
============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: rgba(168,85,247,0.4); transform: translateY(-2px); }

.card-dark {
  background: var(--bg-dark);
}
.card-inner {
  background: var(--bg-card-2);
}

.card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.card-link {
  font-size: 13px;
  font-weight: 600;
  transition: opacity var(--transition);
  margin-top: auto;
}
.card-link:hover { opacity: 0.75; }

/* Icon colours */
.icon-purple { color: var(--accent-purple); }
.icon-blue   { color: var(--accent-blue); }
.icon-pink   { color: var(--accent-pink); }

.link-purple { color: var(--accent-purple); }
.link-blue   { color: var(--accent-blue); }
.link-pink   { color: var(--accent-pink); }

/* ============================================================
   Grids
============================================================ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,20,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.navbar-scrolled {
  background: rgba(10,10,20,0.93);
  border-bottom-color: var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: min(1280px, calc(100% - 128px));
  margin-inline: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-logo-image {
  width: 154px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: 18px;
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta { padding: 10px 20px; font-size: 14px; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .navbar-inner { width: calc(100% - 48px); }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-cta { display: none; }
  .nav-hamburger { display: block; }
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero-section {
  background: var(--grad-hero-bg);
  padding-block: 80px;
  padding-top: calc(72px + 80px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 60px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-purple);
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-purple);
  flex-shrink: 0;
}

.hero-h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
}

.hero-para {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero right — visual card */
.hero-right { height: 480px; }

.hero-visual-card {
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.hero-visual-card::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.2), transparent 70%);
}
.hero-visual-card::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 70%);
}

.hero-visual-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 80px;
}
.flow-node i { width: 24px; height: 24px; }

.flow-node-purple { border-color: rgba(168,85,247,0.4); }
.flow-node-purple i { color: var(--accent-purple); }
.flow-node-blue   { border-color: rgba(59,130,246,0.4); }
.flow-node-blue i { color: var(--accent-blue); }
.flow-node-pink   { border-color: rgba(236,72,153,0.4); }
.flow-node-pink i { color: var(--accent-pink); }

.flow-arrow { color: var(--accent-purple); }
.flow-arrow i { width: 20px; height: 20px; }

.flow-stats {
  display: flex;
  gap: 32px;
  z-index: 1;
}
.flow-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-value {
  font-size: 24px;
  font-weight: 800;
  background: var(--grad-purple-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 12px; color: var(--text-muted); }

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-h1 { font-size: 42px; }
  .hero-right { height: 360px; }
}
@media (max-width: 600px) {
  .hero-h1 { font-size: 32px; }
  .hero-section { padding-top: calc(72px + 48px); }
  .flow-stats { gap: 16px; }
}

/* ============================================================
   VALUE PROPS
============================================================ */
.vp-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   SERVICES GRID
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
}
.svc-card .card-icon { width: 28px; height: 28px; }
.svc-card .card-title { font-size: 16px; }
.svc-card .card-desc { font-size: 13px; line-height: 1.5; }

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

/* ============================================================
   USE CASES
============================================================ */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.uc-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
}

.uc-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.uc-icon-wrap i { width: 22px; height: 22px; color: #fff; }

.icon-wrap-purple { background: rgba(168,85,247,0.2); border: 1px solid rgba(168,85,247,0.3); }
.icon-wrap-blue   { background: rgba(59,130,246,0.2);  border: 1px solid rgba(59,130,246,0.3); }
.icon-wrap-pink   { background: rgba(236,72,153,0.2);  border: 1px solid rgba(236,72,153,0.3); }

.icon-wrap-purple i { color: var(--accent-purple); }
.icon-wrap-blue i   { color: var(--accent-blue); }
.icon-wrap-pink i   { color: var(--accent-pink); }

.uc-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.uc-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .use-cases-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HOW IT WORKS
============================================================ */
.hiw-steps {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.hiw-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 32px 24px;
}

.hiw-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-purple-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
}

.hiw-desc { text-align: center; }

.hiw-arrow {
  display: flex;
  align-items: center;
  color: var(--accent-purple);
  flex-shrink: 0;
  margin-top: 80px;
}
.hiw-arrow i { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .hiw-steps {
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
  }
  .hiw-arrow {
    justify-content: center;
    margin-top: 0;
    transform: rotate(90deg);
  }
}

/* ============================================================
   DEMO SECTION
============================================================ */
.demo-frame {
  width: min(900px, 100%);
  height: 480px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.demo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(168,85,247,0.15), transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(59,130,246,0.12), transparent 50%);
}

.demo-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
}
.demo-play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--grad-purple-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.demo-frame:hover .demo-play-icon {
  transform: scale(1.1);
  box-shadow: 0 0 32px rgba(168,85,247,0.5);
}
.demo-play-icon i { width: 28px; height: 28px; color: #fff; }
.demo-play-label { font-size: 14px; color: var(--text-secondary); }

.demo-btn {
  display: flex;
  margin: 24px auto 0;
}

@media (max-width: 600px) {
  .demo-frame { height: 280px; }
}

/* ============================================================
   TESTIMONIALS
============================================================ */
.test-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.test-stars {
  color: #F59E0B;
  font-size: 16px;
  letter-spacing: 2px;
}
.test-quote {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.6;
  flex: 1;
}
.test-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.test-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}
.avatar-purple-blue { background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue)); }
.avatar-blue-pink   { background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink)); }
.avatar-pink-purple { background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple)); }

.test-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.test-role { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   FINAL CTA SECTION
============================================================ */
.section-cta {
  background: var(--grad-cta-bg);
  padding-block: 100px;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168,85,247,0.12);
  border: 1px solid var(--accent-purple);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-purple);
}
.cta-badge i { width: 14px; height: 14px; }

.cta-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  max-width: 800px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

@media (max-width: 768px) {
  .cta-title { font-size: 36px; }
  .cta-subtitle { font-size: 16px; }
}

/* ============================================================
   PAGE HERO (inner pages)
============================================================ */
.page-hero {
  padding-top: calc(72px + 80px);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nav active state */
.nav-active { color: var(--accent-purple) !important; font-weight: 600 !important; }

/* Check list */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-list li { font-size: 14px; color: var(--text-secondary); }

/* Service pill buttons */
.svc-pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  width: fit-content;
  margin-top: auto;
  transition: opacity 0.2s;
}
.svc-pill-btn:hover { opacity: 0.75; }
.pill-purple { background: rgba(168,85,247,0.08); border: 1px solid var(--accent-purple); color: var(--accent-purple); }
.pill-blue   { background: rgba(59,130,246,0.08);  border: 1px solid var(--accent-blue);   color: var(--accent-blue); }
.pill-pink   { background: rgba(236,72,153,0.08);  border: 1px solid var(--accent-pink);   color: var(--accent-pink); }

/* Service detail page */
.svc-detail-intro {
  background: var(--bg-card);
  padding: 48px 0;
}
.svc-benefits {
  background: var(--bg-dark);
  padding: 40px 0;
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.benefit-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.benefit-desc  { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.stats-bar {
  background: var(--bg-card);
  padding: 40px 0;
}
.stat-box {
  background: var(--bg-dark);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.stat-box-num  { font-size: 30px; font-weight: 800; color: var(--text-primary); }
.stat-box-label{ font-size: 13px; color: var(--text-secondary); }

.process-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.process-list li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.process-list li strong { color: var(--text-primary); }

.use-cases-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.use-cases-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: 8px;
  border-left: 3px solid var(--accent-purple);
}

.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pain-list li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pain-list li::before {
  content: '✖';
  color: var(--accent-pink);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.integrations-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.faq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover, .faq-item.open { border-color: rgba(168,85,247,0.45); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
}
.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-purple);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.explore-other {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}
.explore-other a { color: var(--accent-purple); }

/* Contact form */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-input, .form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 16px;
  height: 48px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  width: 100%;
  transition: border-color 0.2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
}
.form-textarea {
  height: 120px;
  padding: 16px;
  resize: vertical;
}

.contact-info-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  /* service detail two-column sections */
  .container [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .container [style*="grid-template-columns:1fr 380px"] {
    grid-template-columns: 1fr !important;
  }
  .container [style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  .container [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 600px) {
  .page-hero { min-height: 300px; padding-top: calc(72px + 48px); }
  .page-hero h1 { font-size: 36px !important; }
  .container [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  .hiw-steps { flex-direction: column; }
  .cta-title { font-size: 32px !important; }
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-block: 64px;
}

.footer-brand {
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 64px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 24px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }
}
@media (max-width: 480px) {
  .footer-links { flex-direction: column; gap: 24px; }
}

/* Demo slider (home page) */
.demo-slider-outer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.demo-slider-wrap {
  flex: 1;
  overflow: hidden;
}
.demo-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  align-items: stretch;
}
.demo-slider-track .demo-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 0;
}
.slider-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}
.slider-btn:hover:not(:disabled) { border-color: var(--accent-purple); color: var(--text-primary); }
.slider-btn:disabled { opacity: 0.25; cursor: default; }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.active { background: var(--accent-purple); transform: scale(1.4); }
@media (max-width: 900px) {
  .demo-slider-track .demo-card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 600px) {
  .demo-slider-track .demo-card { flex: 0 0 100%; }
  .demo-slider-outer { gap: 8px; }
  .slider-btn { width: 36px; height: 36px; }
}

/* Demo cards */
.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.demo-card:hover { border-color: rgba(168,85,247,0.4); transform: translateY(-2px); }
.demo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.demo-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-purple);
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.25);
  padding: 4px 10px;
  border-radius: 20px;
}
.demo-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.demo-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.demo-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.demo-step {
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text-secondary);
}
.demo-tools {
  font-size: 12px;
  color: var(--text-muted);
}
.demo-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* Demo detail step-by-step layout */
.demo-step-block {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
}
.demo-step-num {
  font-size: 28px;
  font-weight: 800;
  color: rgba(168,85,247,0.25);
  line-height: 1;
  min-width: 40px;
  flex-shrink: 0;
}
.demo-step-content { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.demo-step-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo-step-icon { width: 20px; height: 20px; flex-shrink: 0; }
.demo-step-title { font-size: 17px; font-weight: 700; margin: 0; }
.demo-step-tool {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  margin-left: auto;
}
.demo-step-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.demo-step-connector {
  display: flex;
  justify-content: center;
  padding: 6px 0;
  color: rgba(168,85,247,0.4);
}
.demo-step-connector i { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .demo-step-block { flex-direction: column; gap: 12px; padding: 20px; }
  .demo-step-num { font-size: 20px; }
  .demo-step-tool { margin-left: 0; }
}

/* Solutions page */
.blueprint-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blueprint-problem {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 4px;
}
.blueprint-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.blueprint-solution {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.blueprint-result {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-purple);
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 8px;
  padding: 10px 14px;
}
.blueprint-tools {
  font-size: 12px;
  color: var(--text-muted);
}

/* Service pill cards (solutions page) */
.service-pill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.service-pill-card:hover { border-color: rgba(168,85,247,0.4); color: var(--text-primary); }

/* Consultation quiz */
.quiz-wrap {
  max-width: 680px;
  margin: 0 auto;
}
.quiz-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 40px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  border-radius: 2px;
  transition: width 0.4s ease;
}
.quiz-step {
  display: none;
}
.quiz-step.active {
  display: block;
}
.quiz-q-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-purple);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.quiz-q-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 28px;
  line-height: 1.3;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.quiz-option {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
  width: 100%;
}
.quiz-option:hover, .quiz-option.selected {
  border-color: var(--accent-purple);
  background: rgba(168,85,247,0.08);
  color: var(--text-primary);
}
.quiz-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}
.quiz-counter {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
}
.quiz-collect-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quiz-result {
  text-align: center;
  padding: 40px 0;
}
.quiz-result-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.quiz-result-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.quiz-result-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
