/* ==========================================================================
   R.A.W. Automations — Soft Circuitry Stylesheet
   Single static site. Open index.html in any browser to run.
   ========================================================================== */

:root {
  --ink: #0A1330;
  --indigo: #0B2A6B;
  --sky: #3B82F6;
  --sky-lt: #7CAFFF;
  --cloud: #E8F1FF;
  --white: #FFFFFF;
  --border: rgba(124, 175, 255, 0.18);
  --border-strong: rgba(124, 175, 255, 0.4);
  --text: #E8F1FF;
  --muted: #8FA3CC;
  --surface: #0F1B44;
  --surface-2: #13246B;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* === CUSTOM CURSOR === */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 60%);
  pointer-events: none; z-index: 1;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sky-lt);
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 20px var(--sky);
}
.cursor-dot.hover { width: 40px; height: 40px; background: rgba(124, 175, 255, 0.3); }
@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor-glow, .cursor-dot { display: none; }
}

/* === SCROLL PROGRESS === */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sky-lt));
  z-index: 100; width: 0%;
  box-shadow: 0 0 10px var(--sky);
}

/* === NAV === */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 19, 48, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; max-width: var(--max); margin: 0 auto;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--text); background: rgba(124, 175, 255, 0.08); }
@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600; font-size: 14px;
  border: none; cursor: none;
  transition: all 0.25s var(--ease);
  position: relative;
  font-family: inherit;
}
@media (max-width: 900px) { .btn { cursor: pointer; } }
.btn-primary {
  background: linear-gradient(135deg, var(--sky), var(--sky-lt));
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(59, 130, 246, 0.55); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(124, 175, 255, 0.08); border-color: var(--sky-lt); }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-content { width: 100%; position: relative; z-index: 3; }
.hero-content h1 {
  text-shadow:
    0 2px 20px rgba(10, 19, 48, 0.95),
    0 0 40px rgba(10, 19, 48, 0.7);
}
.hero-content .subhead,
.hero-content .hero-pillars {
  text-shadow: 0 2px 12px rgba(10, 19, 48, 0.85);
}

/* Pillars strip under the H1 */
.hero-pillars {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto 40px;
}
.hero-pillars span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: rgba(124, 175, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--cloud);
  backdrop-filter: blur(10px);
  transition: all 0.25s var(--ease);
}
.hero-pillars span:hover {
  border-color: var(--sky-lt);
  background: rgba(124, 175, 255, 0.14);
  transform: translateY(-2px);
}
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.hero-gradient {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 20% 30%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(700px 400px at 80% 70%, rgba(11, 42, 107, 0.5), transparent 60%),
    radial-gradient(600px 600px at 50% 100%, rgba(124, 175, 255, 0.1), transparent 60%);
  animation: gradientShift 20s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(2deg); }
}
.hero-content { text-align: center; position: relative; z-index: 3; }
.hero-logo { display: inline-block; margin-bottom: 32px; position: relative; }
.hero-logo img {
  width: 140px; height: auto;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 60px rgba(59, 130, 246, 0.4));
}
.hero-logo::before {
  content: ""; position: absolute; inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
  animation: pulse 4s ease-in-out infinite;
  z-index: -1;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.1); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(124, 175, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--cloud);
  margin-bottom: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 10px #22c55e;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

h1 {
  font-size: clamp(36px, 6.2vw, 72px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -2px;
  max-width: 1000px;
  margin: 0 auto 24px;
}
h1 .grad, h2 .grad {
  background: linear-gradient(90deg, var(--sky), var(--sky-lt), var(--cloud));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: textShine 5s linear infinite;
}
@keyframes textShine { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

.subhead {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 40px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 80px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 900px; margin: 0 auto;
  padding: 32px;
  background: rgba(15, 27, 68, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.stat { text-align: center; }
.stat .num {
  font-size: 36px; font-weight: 800;
  background: linear-gradient(180deg, var(--cloud), var(--sky-lt));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -1px;
}
.stat .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
@media (max-width: 768px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* === SECTIONS === */
section { padding: 120px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 72px; max-width: 780px; margin-left: auto; margin-right: auto; }
.section-label {
  display: inline-block; padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px; letter-spacing: 2px;
  color: var(--sky-lt);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 18px; }

/* === ABOUT === */
.about-section { background: var(--ink); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

.about-copy .section-label { margin-bottom: 18px; }
.about-copy h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px; }
.about-copy p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.about-copy strong { color: var(--cloud); font-weight: 600; }
.about-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.chip {
  display: inline-block;
  padding: 6px 14px; border: 1px solid var(--border-strong);
  border-radius: 999px; font-size: 12px; color: var(--sky-lt);
  letter-spacing: 0.5px;
}
.about-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Monitor visual */
.about-visual { display: flex; justify-content: center; }
.monitor { position: relative; width: 100%; max-width: 520px; }
.monitor-frame {
  position: relative;
  background: linear-gradient(180deg, #1A2A5C, #0F1B44);
  border: 2px solid rgba(124, 175, 255, 0.35);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 40px 80px rgba(59, 130, 246, 0.25);
}
.monitor-screen {
  position: relative;
  background: linear-gradient(180deg, #F6F9FF, #E8F1FF);
  border-radius: 10px;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px;
}
.monitor-logo { width: 80px; height: auto; margin-bottom: 8px; filter: drop-shadow(0 8px 24px rgba(59,130,246,0.3)); }
.monitor-brand {
  font-size: clamp(20px, 3vw, 30px); font-weight: 800;
  color: #3B82F6; letter-spacing: -0.5px;
}
.monitor-tag {
  font-size: clamp(9px, 1.1vw, 12px); color: #7CAFFF;
  letter-spacing: 3px; text-transform: uppercase; margin-top: 8px; font-weight: 600;
}
.monitor-stand {
  width: 60px; height: 36px; background: linear-gradient(180deg, #1A2A5C, #0F1B44);
  margin: 0 auto; border-radius: 0 0 6px 6px;
}
.monitor-base {
  width: 200px; height: 10px;
  background: linear-gradient(180deg, #1A2A5C, #0F1B44);
  margin: 0 auto; border-radius: 999px;
}

.fly {
  position: absolute; font-size: 26px;
  filter: drop-shadow(0 4px 10px rgba(59,130,246,0.4));
  animation: flyDrift 7s ease-in-out infinite;
}
.fly-1 { left: 8%;  top: 12%; animation-delay: 0s;   }
.fly-2 { right: 8%; top: 10%; animation-delay: 0.6s; }
.fly-3 { left: 6%;  top: 68%; animation-delay: 1.2s; }
.fly-4 { right: 6%; top: 72%; animation-delay: 1.8s; }
.fly-5 { left: 14%; top: 40%; animation-delay: 0.9s; }
.fly-6 { right: 14%; top: 42%; animation-delay: 1.5s; }
.fly-7 { left: 42%; top: 8%;  animation-delay: 0.3s; }
.fly-8 { left: 58%; bottom: 10%; animation-delay: 2.1s; }
@keyframes flyDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  25%      { transform: translate(4px, -8px) scale(1.05); opacity: 1; }
  50%      { transform: translate(-3px, 4px) scale(0.98); opacity: 0.8; }
  75%      { transform: translate(5px, 2px) scale(1.02); opacity: 1; }
}

/* === PAIN POINTS === */
.pain-points { background: linear-gradient(180deg, var(--ink), var(--surface), var(--ink)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .pain-grid { grid-template-columns: 1fr; } }
.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
  display: flex; flex-direction: column;
}
.pain-card:hover { transform: translateY(-4px); border-color: var(--sky); }
.pain-icon { font-size: 32px; margin-bottom: 16px; }
.pain-card h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.3; }
.pain-card p { color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1; margin-bottom: 18px; }
.pain-fix {
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--sky-lt); border: 1px solid var(--border-strong);
  padding: 6px 10px; border-radius: 999px; display: inline-block; align-self: flex-start;
}

/* === HOW IT WORKS === */
.how-it-works { background: var(--ink); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1000px; margin: 0 auto; position: relative; }
@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } }
.steps-grid::before {
  content: ""; position: absolute; top: 38px; left: 15%; right: 15%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--sky-lt), var(--sky-lt) 4px, transparent 4px, transparent 8px);
  opacity: 0.5;
}
@media (max-width: 768px) { .steps-grid::before { display: none; } }
.step { text-align: center; position: relative; z-index: 2; }
.step-num {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--sky-lt));
  color: var(--ink); font-weight: 800; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; box-shadow: 0 20px 40px rgba(59, 130, 246, 0.35);
  position: relative;
}
.step-num::before {
  content: ""; position: absolute; inset: -8px;
  background: radial-gradient(circle, rgba(59,130,246,0.3), transparent 70%);
  border-radius: 50%; z-index: -1; filter: blur(10px);
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; max-width: 280px; margin: 0 auto; }

/* === MODULES === */
.modules-section { background: linear-gradient(180deg, var(--ink), var(--surface), var(--ink)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.module-filters {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 40px;
}
.mf-btn {
  background: rgba(124, 175, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 16px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: none;
  font-family: inherit;
  transition: all 0.2s;
}
@media (max-width: 900px) { .mf-btn { cursor: pointer; } }
.mf-btn:hover { border-color: var(--sky-lt); color: var(--cloud); }
.mf-btn.active {
  background: linear-gradient(135deg, var(--sky), var(--sky-lt));
  color: var(--ink); border-color: transparent;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .modules-grid { grid-template-columns: 1fr; } }
.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
  animation: modIn 0.3s ease-out;
}
@keyframes modIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.module-card:hover { transform: translateY(-3px); border-color: var(--sky); }
.module-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sky), transparent);
  transform: translateX(-100%); transition: transform 0.6s;
}
.module-card:hover::before { transform: translateX(100%); }
.module-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.module-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(124,175,255,0.15));
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.module-cat { font-size: 10px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }
.module-card h3 { font-size: 15px; margin-bottom: 8px; line-height: 1.3; }
.module-card p { color: var(--muted); font-size: 13px; line-height: 1.55; margin-bottom: 16px; }
.module-price {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted);
}
.module-price b { color: var(--cloud); font-weight: 700; }

/* === TIERS === */
.tiers-section { background: var(--ink); }
.pricing-toggle {
  display: flex; justify-content: center; margin-bottom: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  width: fit-content; margin-left: auto; margin-right: auto;
}
.pt-btn {
  background: transparent; border: none;
  color: var(--muted);
  padding: 10px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: none;
  transition: all 0.3s;
  font-family: inherit;
}
@media (max-width: 900px) { .pt-btn { cursor: pointer; } }
.pt-btn.active {
  background: linear-gradient(135deg, var(--sky), var(--sky-lt));
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
.pt-btn .save {
  font-size: 10px; background: #22c55e; color: var(--ink);
  padding: 2px 6px; border-radius: 4px; margin-left: 6px;
}
.tiers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .tiers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .tiers-grid { grid-template-columns: 1fr; } }
.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.3s;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.tier-card:hover { transform: translateY(-4px); border-color: var(--sky); }
.tier-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sky), transparent);
  transform: translateX(-100%); transition: transform 0.6s;
}
.tier-card:hover::before { transform: translateX(100%); }
.tier-card.featured {
  border-color: var(--sky);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2), 0 0 0 1px var(--sky);
}
.tag {
  position: absolute; top: 18px; right: 18px;
  background: linear-gradient(135deg, var(--sky), var(--sky-lt));
  color: var(--ink); font-size: 10px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  letter-spacing: 1px; text-transform: uppercase;
}
.tier-card h3 { font-size: 18px; margin-bottom: 6px; }
.tier-target { font-size: 12px; color: var(--muted); margin-bottom: 20px; min-height: 34px; }
.tier-price { margin-bottom: 10px; }
.tier-monthly { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.price-main {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(180deg, var(--cloud), var(--sky-lt));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
  display: inline-block;
}
.tier-monthly .price-main { font-size: 22px; }
.price-sub { font-size: 11px; color: var(--muted); margin-left: 6px; }
.tier-card ul { list-style: none; margin-bottom: 18px; flex: 1; }
.tier-card li {
  font-size: 13px; color: var(--cloud);
  padding: 8px 0 8px 24px;
  border-top: 1px solid var(--border);
  position: relative;
  line-height: 1.4;
}
.tier-card li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--sky-lt));
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}
.tier-card li::after {
  content: "✓"; position: absolute; left: 3px; top: 8px;
  font-size: 10px; font-weight: 900; color: var(--ink);
}
.tier-replaces { font-size: 11px; color: var(--muted); font-style: italic; margin-bottom: 18px; border-top: 1px solid var(--border); padding-top: 14px; }

/* HIPAA addon */
.hipaa-addon {
  max-width: 780px; margin: 64px auto 0;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 32px;
}
.hipaa-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hipaa-head h3 { font-size: 20px; }
.hipaa-price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 640px) { .hipaa-price { grid-template-columns: 1fr; } }
.hipaa-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--sky-lt); margin-bottom: 4px; }
.hipaa-val { font-size: 16px; font-weight: 600; color: var(--cloud); }
.hipaa-addon ul { list-style: none; margin-bottom: 16px; }
.hipaa-addon li { font-size: 13px; color: var(--cloud); padding: 6px 0 6px 18px; position: relative; }
.hipaa-addon li::before { content: "•"; position: absolute; left: 0; color: var(--sky-lt); font-size: 16px; }
.hipaa-gate { font-size: 12px; color: var(--muted); font-style: italic; border-top: 1px solid var(--border); padding-top: 14px; }

/* === INDUSTRIES === */
.industries-section { background: linear-gradient(180deg, var(--ink), var(--surface), var(--ink)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.industries-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1100px) { .industries-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .industries-grid { grid-template-columns: 1fr; } }
.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
@media (max-width: 900px) { .industry-card { cursor: pointer; } }
.industry-card:hover { transform: translateY(-3px); border-color: var(--sky); }
.industry-card::after {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.industry-card:hover::after { opacity: 1; }
.industry-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(124,175,255,0.15));
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 14px;
  position: relative; z-index: 2;
}
.industry-card h3 { font-size: 14px; line-height: 1.3; margin-bottom: 6px; position: relative; z-index: 2; }
.industry-pain { font-size: 12px; color: var(--muted); margin-bottom: 12px; position: relative; z-index: 2; line-height: 1.4; }
.industry-tier { font-size: 10px; color: var(--sky-lt); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; position: relative; z-index: 2; }

/* === CHATBOT === */
.demo-section {
  background: var(--ink);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.chatbot-demo {
  max-width: 520px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(59, 130, 246, 0.15);
}
.chat-header {
  padding: 16px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--sky-lt));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--ink);
  position: relative;
}
.chat-avatar::after {
  content: ""; position: absolute; bottom: 0; right: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; border: 2px solid var(--surface-2);
}
.chat-header-info .name { font-weight: 600; font-size: 14px; }
.chat-header-info .status { font-size: 11px; color: #22c55e; }
.chat-body {
  padding: 20px; height: 360px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface);
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.msg {
  max-width: 78%; padding: 10px 14px;
  font-size: 14px; line-height: 1.5;
  animation: msgIn 0.4s var(--ease);
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.msg.bot { background: var(--surface-2); border-radius: 14px 14px 14px 4px; align-self: flex-start; }
.msg.user {
  background: linear-gradient(135deg, var(--sky), var(--sky-lt));
  color: var(--ink); font-weight: 500;
  border-radius: 14px 14px 4px 14px; align-self: flex-end;
}
.msg.typing { display: flex; gap: 4px; padding: 14px; }
.msg.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sky-lt);
  animation: typing 1.4s ease-in-out infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-quick {
  padding: 12px 20px; display: flex; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--border); background: var(--surface-2);
}
.chat-quick button {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; cursor: none;
  transition: all 0.2s;
  font-family: inherit;
}
@media (max-width: 900px) { .chat-quick button { cursor: pointer; } }
.chat-quick button:hover { background: var(--sky); color: var(--ink); border-color: var(--sky); }
.chat-input-row {
  padding: 14px 20px; display: flex; gap: 10px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.chat-input-row input {
  flex: 1; background: var(--ink);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px; border-radius: 999px;
  font-size: 14px; font-family: inherit;
}
.chat-input-row input:focus { outline: none; border-color: var(--sky); }
.chat-send {
  background: linear-gradient(135deg, var(--sky), var(--sky-lt));
  color: var(--ink); border: none;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 18px; cursor: none;
  transition: transform 0.2s;
}
@media (max-width: 900px) { .chat-send { cursor: pointer; } }
.chat-send:hover { transform: scale(1.08); }

/* === WORKFLOW BUILDER === */
.workflow-section { background: var(--ink); }
.workflow-canvas {
  position: relative;
  max-width: 1000px; margin: 0 auto;
  height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08), transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(124, 175, 255, 0.05) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(124, 175, 255, 0.05) 40px);
  overflow: hidden;
}
.wf-node {
  position: absolute;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  min-width: 160px;
  opacity: 0; transform: scale(0.8);
  transition: all 0.6s var(--ease);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.wf-node.active {
  opacity: 1; transform: scale(1);
  border-color: var(--sky);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.wf-node.pulse { animation: nodePulse 2s ease-in-out infinite; }
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(59, 130, 246, 0.15); }
  50% { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(59, 130, 246, 0.1); }
}
.wf-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, var(--sky), var(--sky-lt));
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
#wf-svg { position: absolute; inset: 0; pointer-events: none; }
.wf-line {
  stroke: var(--sky); stroke-width: 2; fill: none;
  stroke-dasharray: 5 5; opacity: 0;
  transition: opacity 0.4s;
}
.wf-line.active { opacity: 1; animation: flow 1.5s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -10; } }
.wf-controls {
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 24px; flex-wrap: wrap;
}
.wf-controls button {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 500; cursor: none;
  font-family: inherit;
  transition: all 0.2s;
}
@media (max-width: 900px) { .wf-controls button { cursor: pointer; } }
.wf-controls button:hover { background: var(--sky); color: var(--ink); }
.wf-controls button.active { background: var(--sky); color: var(--ink); border-color: var(--sky); }

/* === ROI CALCULATOR === */
.roi-section { background: linear-gradient(180deg, var(--ink), var(--surface), var(--ink)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.roi-wrap {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
@media (max-width: 900px) { .roi-wrap { grid-template-columns: 1fr; padding: 32px; } }
.roi-inputs h3 { font-size: 22px; margin-bottom: 20px; }
.slider-group { margin-bottom: 22px; }
.slider-group label {
  display: flex; justify-content: space-between;
  font-size: 14px; color: var(--muted); margin-bottom: 10px;
}
.slider-group label span { color: var(--sky-lt); font-weight: 700; }
.slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: var(--surface-2);
  outline: none; cursor: none;
}
@media (max-width: 900px) { .slider { cursor: pointer; } }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--sky-lt));
  cursor: none;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  transition: transform 0.15s;
}
@media (max-width: 900px) { .slider::-webkit-slider-thumb { cursor: pointer; } }
.slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--sky), var(--sky-lt));
  cursor: pointer;
}
.roi-output {
  background: linear-gradient(135deg, var(--surface-2), var(--indigo));
  border-radius: var(--radius-sm);
  padding: 32px;
  text-align: center;
  display: flex; flex-direction: column; justify-content: center;
  border: 1px solid var(--border-strong);
}
.roi-output .label { font-size: 12px; color: var(--sky-lt); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.roi-number {
  font-size: clamp(38px, 6.5vw, 58px); font-weight: 800;
  background: linear-gradient(180deg, var(--cloud), var(--sky-lt));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -2px;
  line-height: 1;
  transition: transform 0.3s;
}
.roi-sub { margin-top: 14px; color: var(--muted); font-size: 13px; }
.roi-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.roi-cell {
  background: rgba(10, 19, 48, 0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
.roi-cell .v { font-size: 18px; font-weight: 700; color: var(--cloud); }
.roi-cell .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* === TESTIMONIALS === */
.testimonials { background: var(--ink); }
.test-viewport { max-width: 780px; margin: 0 auto; position: relative; overflow: hidden; height: 260px; }
.test-track { display: flex; transition: transform 0.6s var(--ease); }
.test-card {
  min-width: 100%; padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.test-quote { font-size: 18px; line-height: 1.6; color: var(--cloud); margin-bottom: 24px; font-style: italic; }
.test-author { display: flex; justify-content: center; align-items: center; gap: 12px; }
.test-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--sky-lt));
  color: var(--ink); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.test-name { font-weight: 600; }
.test-role { font-size: 12px; color: var(--muted); }
.test-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.test-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-strong); cursor: none;
  transition: all 0.3s;
}
@media (max-width: 900px) { .test-dot { cursor: pointer; } }
.test-dot.active { width: 28px; border-radius: 999px; background: linear-gradient(90deg, var(--sky), var(--sky-lt)); }

/* === FAQ === */
.faq { background: linear-gradient(180deg, var(--ink), var(--surface), var(--ink)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-q {
  padding: 20px 24px;
  cursor: none;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 15px;
  user-select: none;
}
@media (max-width: 900px) { .faq-q { cursor: pointer; } }
.faq-q::after {
  content: "+"; font-size: 22px; color: var(--sky-lt);
  transition: transform 0.3s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
  color: var(--muted); font-size: 14px; line-height: 1.7;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 20px; }

/* === CONTACT === */
.contact { background: var(--ink); }
.contact-wrap {
  max-width: 720px; margin: 0 auto;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
@media (max-width: 640px) { .contact-wrap { padding: 28px; } }
.contact-wrap::before {
  content: ""; position: absolute; top: -80px; right: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 60%);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 12px; color: var(--sky-lt); margin-bottom: 8px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
input, textarea, select {
  width: 100%; padding: 14px 16px;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
textarea { min-height: 120px; resize: vertical; }
.submit-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; flex-wrap: wrap; gap: 12px; }
.submit-row small { color: var(--muted); font-size: 11px; max-width: 60%; }
.form-success {
  display: none; background: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e; color: #22c55e;
  padding: 16px; border-radius: 10px; margin-top: 16px; font-size: 14px;
}
.form-success.show { display: block; animation: msgIn 0.4s; }

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--ink);
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 32px; }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--sky-lt); margin-bottom: 14px; }
.footer-col a {
  display: block; color: var(--muted); font-size: 14px;
  padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  color: var(--muted); font-size: 12px;
}

/* === REVEAL ANIMATIONS === */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* =============================================================
   FIXED-SCENE BACKDROP OVERRIDES
   The #particle-canvas sits fixed behind everything. To let the
   scene show through as the user scrolls, each section gets a
   slightly translucent dark wash instead of a solid fill. Content
   cards inside sections stay fully opaque for readability.
   ============================================================= */
header.nav,
section,
footer {
  position: relative;
  z-index: 2;
}

.hero { background: transparent; }
.hero .hero-gradient { z-index: 0; opacity: 0.55; }

.about-section,
.how-it-works,
.tiers-section,
.workflow-section,
.demo-section,
.testimonials,
.contact,
footer,
.services {
  background: rgba(10, 19, 48, 0.78);
}

.pain-points,
.modules-section,
.industries-section,
.roi-section,
.faq {
  background: linear-gradient(180deg,
    rgba(10, 19, 48, 0.80),
    rgba(15, 27, 68, 0.78),
    rgba(10, 19, 48, 0.80));
}

/* Nav bar: slightly stronger tint so logo/links read against the moving scene */
header.nav { background: rgba(10, 19, 48, 0.82); }
