/* ============================================================
   REPLORA — Design System
   AI Solutions for Real Business
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg:        #05070B;
  --bg-2:      #080C14;
  --surface:   #0D121C;
  --surface-2: #101828;
  --elevated:  #121A2B;

  /* Text */
  --text:      #F5F7FA;
  --muted:     #8B95A7;
  --muted-2:   #667085;

  /* Accents */
  --blue:      #2563FF;
  --blue-600:  #1D4ED8;
  --cyan:      #00D9FF;
  --purple:    #7C3AED;

  /* Lines & glass */
  --border:      rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);
  --border-hi:   rgba(255, 255, 255, 0.16);
  --glass:       rgba(255, 255, 255, 0.03);
  --glass-2:     rgba(255, 255, 255, 0.05);

  /* Effects */
  --glow-blue: 0 0 40px rgba(37, 99, 255, 0.35);
  --glow-cyan: 0 0 40px rgba(0, 217, 255, 0.25);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 16px 40px -12px rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle grain + radial ambient light */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 80% -5%, rgba(37, 99, 255, 0.10), transparent 60%),
    radial-gradient(700px 500px at 5% 10%, rgba(124, 58, 237, 0.08), transparent 55%),
    radial-gradient(600px 500px at 50% 100%, rgba(0, 217, 255, 0.05), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: rgba(37, 99, 255, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section { padding: 110px 0; position: relative; }
.section--tight { padding: 80px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }

.h2 { font-size: clamp(30px, 4.4vw, 50px); }
.h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.01em; }

.lede { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: linear-gradient(180deg, #2f6bff, var(--blue));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(37, 99, 255, 0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(37, 99, 255, 0.8), inset 0 1px 0 rgba(255,255,255,0.25); }

.btn-ghost {
  background: var(--glass-2);
  color: var(--text);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.07); }

.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Chips / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  font-size: 13px; color: var(--muted);
  backdrop-filter: blur(6px);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.tag {
  font-size: 12px; font-weight: 500;
  padding: 5px 10px; border-radius: 8px;
  background: rgba(37, 99, 255, 0.10);
  border: 1px solid rgba(37, 99, 255, 0.22);
  color: #a9c2ff;
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-hi); }

.card-index {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.icon-box {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,255,0.18), rgba(0,217,255,0.10));
  border: 1px solid rgba(37,99,255,0.22);
  margin-bottom: 18px;
}
.icon-box svg { width: 22px; height: 22px; color: #bcd0ff; }

.card h3 + p, .card .h3 + p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transform: translateY(-12px);
  animation: navReveal 0.7s var(--ease) 0.15s forwards;
}
@keyframes navReveal { to { opacity: 1; transform: translateY(0); } }

.nav.scrolled {
  padding: 12px 0;
  background: rgba(6, 9, 15, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px; flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 21px; letter-spacing: -0.03em;
  color: #fff;
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--glass-2); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--glass); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 3px auto; border-radius: 2px; transition: 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(5, 7, 11, 0.96);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.drawer.open { transform: translateX(0); }
.drawer a { font-family: var(--font-display); font-size: 30px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.drawer .btn { margin-top: 24px; }

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.loader-logo { display: flex; align-items: center; gap: 12px; }
.loader-logo .brand-name { font-size: 30px; }
.loader-star { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.5; transform: scale(0.9);} 50% { opacity: 1; transform: scale(1.1);} }
.loader-text { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.loader-bar { width: 160px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; }
.loader-bar::after { content:""; display:block; height:100%; width:40%; background: linear-gradient(90deg, var(--blue), var(--cyan)); animation: loadbar 1.1s var(--ease) infinite; }
@keyframes loadbar { 0%{ transform: translateX(-120%);} 100%{ transform: translateX(320%);} }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 170px 0 90px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0.9; }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }

.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 18px 0; }
.hero h1 .grad { background: linear-gradient(100deg, #fff 20%, #9fc0ff 55%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { max-width: 540px; }

.hero-actions { display: flex; gap: 14px; margin: 30px 0 20px; flex-wrap: wrap; }
.hero-sub { font-size: 13.5px; color: var(--muted-2); letter-spacing: 0.02em; }
.hero-sub strong { color: var(--muted); font-weight: 600; }

.hero-trust { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust .stat b { font-family: var(--font-display); font-size: 24px; color: #fff; display: block; letter-spacing: -0.02em; }
.hero-trust .stat span { font-size: 12.5px; color: var(--muted); }

/* hero visual (floating cards over canvas) */
.hero-visual { position: relative; height: 460px; }
.orb-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #4a86ff, #1636b8 60%, #0a1330);
  box-shadow: 0 0 90px 10px rgba(37,99,255,0.55), inset 0 0 30px rgba(0,217,255,0.4);
  display: grid; place-items: center;
  animation: floaty 6s ease-in-out infinite;
}
.orb-core svg { width: 46px; height: 46px; color: #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,0.6)); }

.float-card {
  position: absolute; z-index: 3;
  background: rgba(13, 18, 28, 0.8);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  padding: 13px 15px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 11px;
  animation: floaty 7s ease-in-out infinite;
}
.float-card .fc-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.float-card .fc-ico svg { width: 17px; height: 17px; }
.float-card b { font-size: 13.5px; display: block; }
.float-card small { font-size: 11.5px; color: var(--muted); }
.fc-1 { top: 8%; left: -4%; animation-delay: 0s; }
.fc-2 { top: 36%; right: -6%; animation-delay: 1.2s; }
.fc-3 { bottom: 8%; left: 4%; animation-delay: 2.1s; }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--muted-2); display: inline-flex; align-items: center; gap: 46px; letter-spacing: -0.01em; }
.marquee-track span::after { content: "◆"; color: rgba(37,99,255,0.5); font-size: 9px; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ============================================================
   PILLARS
   ============================================================ */
.pillar { padding: 30px; }
.pillar .card-index { font-size: 15px; }

/* ============================================================
   CALLING CRM SHOWCASE
   ============================================================ */
.flagship { position: relative; }
.flagship::before {
  content:""; position:absolute; inset: 10% 30% auto; height: 300px;
  background: radial-gradient(60% 100% at 50% 0, rgba(37,99,255,0.14), transparent 70%);
  z-index: 0; pointer-events: none;
}
.product-label {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,99,255,0.16), rgba(0,217,255,0.08));
  border: 1px solid rgba(37,99,255,0.3);
  font-size: 13px; font-weight: 600; color: #c7d8ff; margin-bottom: 20px;
}

/* browser frame + dashboard mock */
.browser {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hi);
  background: var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(37,99,255,0.06);
  overflow: hidden;
  transform: perspective(1400px) rotateX(4deg);
  transition: transform 0.6s var(--ease);
}
.flagship-visual:hover .browser { transform: perspective(1400px) rotateX(0deg); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2b3444; display: block; }
.browser-url { margin-left: 12px; font-size: 12px; color: var(--muted-2); background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 5px 12px; flex: 1; max-width: 320px; }

/* dashboard */
.dash { display: grid; grid-template-columns: 190px 1fr; min-height: 460px; }
.dash-side { background: var(--bg-2); border-right: 1px solid var(--border); padding: 16px 12px; }
.dash-brand { padding: 8px 10px 16px; border-bottom: 1px solid var(--border-soft); margin-bottom: 12px; }
.dash-brand b { font-family: var(--font-display); font-size: 15px; display: block; }
.dash-brand small { font-size: 11px; color: var(--muted-2); }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.dash-nav a.active { background: rgba(37,99,255,0.14); color: #cddcff; border: 1px solid rgba(37,99,255,0.2); }
.dash-nav a svg { width: 15px; height: 15px; opacity: 0.8; }

.dash-main { padding: 20px; }
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-top h4 { font-family: var(--font-display); font-size: 18px; }
.dash-code { font-size: 11px; color: var(--muted-2); border: 1px solid var(--border); border-radius: 6px; padding: 4px 9px; }

.dash-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metric { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 13px; }
.metric span { font-size: 11px; color: var(--muted); display: block; margin-bottom: 6px; }
.metric b { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.metric .up { font-size: 11px; color: #34d399; margin-left: 6px; font-weight: 600; }

.dash-lower { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.panel-h { display:flex; align-items:center; justify-content: space-between; margin-bottom: 12px; }
.panel-h b { font-size: 13px; }
.panel-h small { font-size: 11px; color: var(--muted-2); }

.chart { display: flex; align-items: flex-end; gap: 5px; height: 96px; }
.chart .bar { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--blue), rgba(37,99,255,0.25)); position: relative; }
.chart .bar::after { content:""; position:absolute; inset: auto 0 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(0,217,255,0.35)); border-radius: 0 0 4px 4px; }

.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.funnel-row span:first-child { width: 78px; color: var(--muted); flex-shrink: 0; }
.funnel-bar { height: 8px; border-radius: 5px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.funnel-row b { font-size: 12px; margin-left: auto; }

.live-list { display: flex; flex-direction: column; gap: 9px; }
.live-item { display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border-soft); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; flex-shrink: 0; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.live-item small { color: var(--muted-2); margin-left: auto; }

.demo-note { font-size: 11px; color: var(--muted-2); margin-top: 12px; text-align: right; }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.feat { padding: 22px; }
.feat .card-index { margin-bottom: 12px; }
.feat h3 { font-size: 16px; font-family: var(--font-display); font-weight: 600; }
.feat p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.ind-card { padding: 22px; }
.ind-card h3 { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.ind-flow { display: flex; flex-wrap: wrap; gap: 6px; }
.ind-flow .step { font-size: 11.5px; padding: 4px 9px; border-radius: 7px; background: var(--glass-2); border: 1px solid var(--border); color: var(--muted); }
.ind-flow .arrow { color: var(--blue); font-size: 12px; align-self: center; }
.ind-card.feature { background: linear-gradient(180deg, rgba(37,99,255,0.10), var(--glass)); border-color: rgba(37,99,255,0.25); }
.ind-badge { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan); font-weight: 600; }

/* ============================================================
   FLOW / ARCHITECTURE
   ============================================================ */
.flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.flow-node {
  padding: 14px 20px; border-radius: 12px;
  background: var(--glass-2); border: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  position: relative;
}
.flow-node.hot { background: linear-gradient(135deg, rgba(37,99,255,0.2), rgba(0,217,255,0.12)); border-color: rgba(37,99,255,0.35); color: #dae7ff; }
.flow-arrow { color: var(--muted-2); flex-shrink: 0; }
.flow-arrow svg { width: 20px; height: 20px; }

/* ============================================================
   AUTOMATION / CALLING SEQUENCE
   ============================================================ */
.seq { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.seq-step { text-align: center; padding: 20px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--border); position: relative; }
.seq-step .num { width: 30px; height: 30px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(37,99,255,0.15); border: 1px solid rgba(37,99,255,0.3); font-size: 13px; font-weight: 700; color: #bcd0ff; font-family: var(--font-display); }
.seq-step b { font-size: 13.5px; display: block; font-family: var(--font-display); }
.seq-step small { font-size: 11.5px; color: var(--muted); }

/* waveform */
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 60px; margin-top: 8px; }
.wave i { width: 4px; border-radius: 3px; background: linear-gradient(180deg, var(--cyan), var(--blue)); animation: waveA 1.1s ease-in-out infinite; }
@keyframes waveA { 0%,100% { height: 12px; } 50% { height: 46px; } }

/* ============================================================
   PROBLEMS
   ============================================================ */
.prob { padding: 24px; }
.prob .card-index { color: #ff7a7a; }
.prob p { font-size: 15px; color: var(--text); font-weight: 500; }

/* ============================================================
   ECOSYSTEM
   ============================================================ */
.eco-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.eco-chip { padding: 14px 22px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--border); font-family: var(--font-display); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s var(--ease); }
.eco-chip:hover { border-color: var(--border-hi); transform: translateY(-3px); background: rgba(37,99,255,0.08); }
.eco-chip svg { width: 17px; height: 17px; color: var(--blue); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quote { padding: 28px; }
.quote .sample { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; display: inline-block; margin-bottom: 16px; }
.quote p { font-size: 16px; line-height: 1.6; color: var(--text); }
.quote-by { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); flex-shrink: 0; }
.quote-by b { font-size: 14px; display: block; }
.quote-by small { font-size: 12px; color: var(--muted); }

/* ============================================================
   PRICING
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price-card { padding: 30px; }
.price-card.pop { background: linear-gradient(180deg, rgba(37,99,255,0.12), var(--glass)); border-color: rgba(37,99,255,0.35); box-shadow: var(--glow-blue); }
.price-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.price-tag { font-family: var(--font-display); font-size: 34px; font-weight: 700; margin: 14px 0 4px; letter-spacing: -0.02em; }
.price-tag small { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.price-feats { display: flex; flex-direction: column; gap: 11px; margin: 20px 0 24px; }
.price-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.price-feats svg { width: 17px; height: 17px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.pop-badge { position: absolute; top: -11px; right: 22px; font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--cyan)); color: #04121f; }

/* comparison table (pricing page) */
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare th { font-family: var(--font-display); }
.compare thead th { color: var(--muted); font-weight: 600; font-size: 13px; }
.compare tbody td:not(:first-child) { text-align: center; }
.compare td:first-child { color: var(--text); }
.compare .yes { color: var(--cyan); }
.compare .no { color: var(--muted-2); }
.compare tr:hover td { background: var(--glass); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-band { position: relative; text-align: center; padding: 90px 40px; border-radius: var(--radius-lg); border: 1px solid var(--border-hi); background: linear-gradient(180deg, var(--surface), var(--bg-2)); overflow: hidden; }
.cta-band::before { content:""; position:absolute; top: -60%; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(37,99,255,0.28), transparent 60%); animation: pulseGlow 5s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
.cta-band h2 { position: relative; font-size: clamp(30px, 4.5vw, 48px); }
.cta-band p { position: relative; color: var(--muted); margin: 16px auto 32px; max-width: 480px; font-size: 17px; }
.cta-actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 70px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 16px 0; max-width: 280px; }
.footer-col h5 { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; border-top: 1px solid var(--border-soft); font-size: 13px; color: var(--muted-2); flex-wrap: wrap; gap: 14px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; transition: 0.25s var(--ease); }
.footer-social a:hover { border-color: var(--border-hi); background: var(--glass-2); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; color: var(--muted); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal { padding: 150px 0 90px; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.legal .updated { color: var(--muted-2); font-size: 14px; margin-bottom: 20px; }
.legal-note { padding: 16px 20px; border-radius: 12px; background: rgba(37,99,255,0.08); border: 1px solid rgba(37,99,255,0.2); font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 40px 0 14px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin-bottom: 12px; }
.legal ul { padding-left: 22px; list-style: disc; }
.legal ul li { margin-bottom: 8px; }
.legal a { color: #9fc0ff; }

/* page hero for subpages */
.page-hero { padding: 150px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(36px, 5.5vw, 58px); margin-bottom: 16px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; margin-top: 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .seq { grid-template-columns: repeat(3, 1fr); }
  .dash-lower { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .section { padding: 76px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .price-grid { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 60px; }
  .hero-trust { gap: 20px; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-metrics { grid-template-columns: repeat(2, 1fr); }
  .browser { transform: none; }
  .seq { grid-template-columns: repeat(2, 1fr); }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .compare-wrap { overflow-x: auto; }
  .compare { min-width: 620px; }
  .cta-band { padding: 60px 24px; }
}

@media (max-width: 400px) {
  .container { padding: 0 18px; }
  .dash-metrics { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  #hero-canvas { display: none; }
}

/* ============================================================
   CALLING CRM HERO + PRODUCT SHOWCASE (real screenshots)
   ============================================================ */
.hero--center { padding: 150px 0 70px; }
.hero-head { text-align: center; max-width: 780px; margin: 0 auto 44px; position: relative; z-index: 2; }
.hero--center h1 { font-size: clamp(40px, 6.2vw, 72px); margin: 22px 0 18px; }
.hero--center .lede { margin: 0 auto; max-width: 640px; }
.hero--center .hero-actions { justify-content: center; margin: 30px 0 0; }
.badge-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border: 1px solid var(--border-hi); border-radius: 999px; background: var(--glass); font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.badge-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.showcase { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; }
.showcase::before { content: ""; position: absolute; inset: -6% 8% auto; height: 55%; background: radial-gradient(60% 100% at 50% 0, rgba(37,99,255,0.28), transparent 70%); filter: blur(30px); z-index: -1; }
.showcase-tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.showcase-tabs button { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--border); background: var(--glass); color: var(--muted); font-size: 14px; font-weight: 600; transition: color .2s, background .2s, border-color .2s; }
.showcase-tabs button:hover { color: var(--text); border-color: var(--border-hi); }
.showcase-tabs button.active { color: #fff; background: rgba(37,99,255,0.22); border-color: rgba(37,99,255,0.5); }
.browser--shot { transform: none; }
.shot-stage { position: relative; background: #0d0d1a; aspect-ratio: 2880 / 1700; }
.shot-stage .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .4s var(--ease); }
.shot-stage .shot.active { opacity: 1; }
.showcase .demo-note { text-align: center; }

.hero-proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1120px; margin: 44px auto 0; position: relative; z-index: 2; }
.hero-proof li { padding-left: 16px; border-left: 2px solid rgba(37,99,255,0.5); }
.hero-proof b { display: block; font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; }
.hero-proof span { font-size: 13px; color: var(--muted); }

/* product tour rows */
.tour { display: flex; flex-direction: column; gap: 90px; }
.tour-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.tour-row.flip { grid-template-columns: 1.2fr 0.8fr; }
.tour-row.flip .tour-copy { order: 2; }
.tour-copy p { color: var(--muted); margin-top: 14px; font-size: 16px; line-height: 1.7; }
.tour-shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-hi); box-shadow: var(--shadow-lg); background: #0d0d1a; }
.tour-shot img { width: 100%; height: auto; display: block; }

@media (max-width: 1024px) {
  .tour-row, .tour-row.flip { grid-template-columns: 1fr; gap: 28px; }
  .tour-row.flip .tour-copy { order: 0; }
  .hero-proof { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero--center { padding: 120px 0 50px; }
  .tour { gap: 60px; }
  .showcase-tabs button { padding: 0 16px; }
}
