/* ============================================================================
   Cadence Clinical (cadenceclinical.com) — Brand & Platform Website Styles
   Spacious Antigravity-inspired motion canvas + crisp clinical typography
   ============================================================================ */

:root {
  --bg-deep: #060B14;
  --bg-navy: #0B1424;
  --bg-card: rgba(15, 27, 45, 0.68);
  --bg-card-solid: #0F1B2D;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-mint: rgba(127, 231, 208, 0.26);

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;

  --sky: #5BB8F5;
  --cobalt: #4F7DF9;
  --mint: #7FE7D0;
  --teal: #1FA98C;
  --teal-deep: #17937B;

  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --max-w: 1160px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  background: rgba(127, 231, 208, 0.11);
  border: 1px solid rgba(127, 231, 208, 0.22);
  color: var(--mint);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ---------------- Top Glass Navigation ---------------- */

.cc-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 18px 28px;
  transition: background 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.cc-nav.scrolled {
  padding: 12px 28px;
  background: rgba(6, 11, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border-subtle);
}

.cc-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cc-brand-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cc-brand-link:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 18px rgba(127, 231, 208, 0.22));
}

.cc-brand-logo {
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(91, 184, 245, 0.16));
  transition: height 0.25s ease;
}

.cc-nav.scrolled .cc-brand-logo {
  height: 50px;
}

.cc-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.cc-nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.cc-nav-link:hover,
.cc-nav-link.active {
  color: #ffffff;
}

.cc-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc-mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

/* ---------------- Buttons ---------------- */

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.cc-btn:hover {
  transform: translateY(-1px);
}

.cc-btn-sm {
  padding: 9px 17px;
  font-size: 13.5px;
}

.cc-btn-lg {
  padding: 15px 28px;
  font-size: 15.5px;
}

.cc-btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--cobalt) 100%);
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(31, 169, 140, 0.28);
}

.cc-btn-primary:hover {
  box-shadow: 0 12px 34px rgba(79, 125, 249, 0.38);
}

.cc-btn-mint {
  background: var(--mint);
  color: #060B14;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(127, 231, 208, 0.22);
}

.cc-btn-mint:hover {
  background: #9bf0dd;
  box-shadow: 0 12px 34px rgba(127, 231, 208, 0.34);
}

.cc-btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.cc-btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(127, 231, 208, 0.45);
}

/* ---------------- Interactive Particle Hero ---------------- */

.cc-hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 132px 24px 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(31, 169, 140, 0.11) 0%, transparent 52%),
    radial-gradient(circle at 76% 22%, rgba(79, 125, 249, 0.12) 0%, transparent 46%),
    linear-gradient(180deg, #060B14 0%, #091220 100%);
}

.cc-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Soft center vignette keeps headline crisp while surrounding particles shimmer */
.cc-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 42% at 50% 48%, rgba(6, 11, 20, 0.72) 0%, rgba(6, 11, 20, 0.18) 65%, transparent 100%);
}

.cc-hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.cc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(127, 231, 208, 0.09);
  border: 1px solid rgba(127, 231, 208, 0.28);
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.cc-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.cc-hero-title {
  margin: 0 0 22px;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.cc-gradient-text {
  background: linear-gradient(95deg, #5BB8F5 0%, #7FE7D0 55%, #4FD6B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cc-hero-lead {
  margin: 0 auto 36px;
  max-width: 670px;
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.62;
  color: var(--text-secondary);
  font-weight: 400;
}

.cc-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------------- Sections & Layout ---------------- */

.cc-section {
  position: relative;
  padding: 96px 24px;
}

.cc-section-alt {
  background: linear-gradient(180deg, rgba(15, 27, 45, 0.45) 0%, rgba(6, 11, 20, 0.9) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cc-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.cc-section-header {
  max-width: 700px;
  margin-bottom: 56px;
}

.cc-section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cc-section-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--mint);
  margin-bottom: 10px;
}

.cc-section-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.cc-section-sub {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------------- 3-Pillar Philosophy Cards ---------------- */

.cc-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cc-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(14px);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.cc-pillar-card:hover {
  border-color: var(--border-mint);
  transform: translateY(-3px);
}

.cc-pillar-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--sky);
  background: rgba(91, 184, 245, 0.1);
  border: 1px solid rgba(91, 184, 245, 0.24);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.cc-pillar-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.cc-pillar-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------------- Home Platform Teaser Banner ---------------- */

.cc-bridge-card {
  background:
    radial-gradient(circle at 88% 20%, rgba(79, 125, 249, 0.22), transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(31, 169, 140, 0.20), transparent 55%),
    var(--bg-card-solid);
  border: 1px solid var(--border-mint);
  border-radius: var(--radius-xl);
  padding: 48px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.cc-bridge-copy {
  max-width: 620px;
}

.cc-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(31, 169, 140, 0.16);
  border: 1px solid rgba(127, 231, 208, 0.35);
  color: var(--mint);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

/* ---------------- Platform Page: Product Showcase ---------------- */

.cc-page-hero {
  position: relative;
  padding: 150px 24px 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(79, 125, 249, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 20% 70%, rgba(31, 169, 140, 0.12) 0%, transparent 50%),
    var(--bg-deep);
  border-bottom: 1px solid var(--border-subtle);
}

.cc-product-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-mint);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.cc-product-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.cc-product-name {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.cc-product-tagline {
  font-size: 18px;
  font-weight: 600;
  color: var(--sky);
  margin: 0 0 16px;
}

.cc-product-desc {
  margin: 0 0 26px;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text-secondary);
}

.cc-product-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Mockup Preview Card inside Platform Page */
.cc-ui-preview {
  background: #08101E;
  border: 1px solid rgba(127, 231, 208, 0.22);
  border-radius: 18px;
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.45);
}

.cc-ui-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

.cc-ui-dots {
  display: flex;
  gap: 6px;
}

.cc-ui-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.cc-ui-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.cc-ui-kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
}

.cc-ui-kpi-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.cc-ui-kpi-val {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 3px;
}

.cc-ui-kpi-val.mint { color: var(--mint); }
.cc-ui-kpi-val.sky { color: var(--sky); }

.cc-ui-curve-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
}

.cc-ui-curve-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

/* How It Works 4-Step Grid */
.cc-how-header {
  margin: 36px 0 22px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mint);
}

.cc-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cc-step-card {
  background: rgba(6, 11, 20, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
}

.cc-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(31, 169, 140, 0.18);
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cc-step-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.cc-step-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-muted);
}

/* Pipeline Note Card */
.cc-roadmap-note {
  margin-top: 36px;
  background: rgba(15, 27, 45, 0.45);
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------------- Footer ---------------- */

.cc-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 44px 24px;
  background: #040810;
}

.cc-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cc-footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.cc-footer-links a:hover {
  color: #ffffff;
}

.cc-footer-copy {
  font-size: 13px;
  color: #64748b;
}

/* ---------------- Request a Demo Modal ---------------- */

.cc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 7, 15, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cc-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cc-modal {
  width: 100%;
  max-width: 500px;
  background: #0D1829;
  border: 1px solid var(--border-mint);
  border-radius: 22px;
  padding: 30px 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  transform: translateY(10px);
  transition: transform 0.22s ease;
}

.cc-modal-backdrop.open .cc-modal {
  transform: translateY(0);
}

.cc-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.cc-modal-close {
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
}

.cc-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.cc-field input,
.cc-field textarea,
.cc-field select {
  width: 100%;
  background: rgba(6, 11, 20, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 11px;
  padding: 11px 13px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.16s ease;
}

.cc-field input:focus,
.cc-field textarea:focus,
.cc-field select:focus {
  border-color: var(--mint);
}

.cc-demo-success {
  display: none;
  text-align: center;
  padding: 18px 8px 8px;
}

.cc-modal-sub {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.cc-login-error {
  display: none;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.38);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.5;
  color: #fecaca;
}

.cc-login-error-cta {
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  color: var(--mint);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.cc-modal-switch {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
}

.cc-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--mint);
  font-weight: 700;
  font-size: inherit;
  cursor: pointer;
}

.cc-link-btn:hover {
  text-decoration: underline;
}

.cc-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cc-type-option {
  position: relative;
  cursor: pointer;
}

.cc-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cc-type-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(6, 11, 20, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.cc-type-option input[type="radio"]:checked + .cc-type-pill {
  border-color: var(--mint);
  background: rgba(127, 231, 208, 0.12);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(127, 231, 208, 0.25);
}

/* ---------------- Scroll Reveal Animation ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 920px) {
  .cc-pillars-grid {
    grid-template-columns: 1fr;
  }
  .cc-bridge-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 28px;
  }
  .cc-product-top {
    grid-template-columns: 1fr;
  }
  .cc-steps-grid {
    grid-template-columns: 1fr;
  }
  .cc-product-showcase {
    padding: 28px 22px;
  }
}

@media (max-width: 760px) {
  .cc-nav {
    padding: 14px 18px;
  }
  .cc-brand-logo,
  .cc-nav.scrolled .cc-brand-logo {
    height: 44px;
  }
  .cc-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .cc-nav-links {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    background: rgba(11, 20, 36, 0.97);
    border: 1px solid var(--border-mint);
    border-radius: 18px;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .cc-nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .cc-nav-actions {
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
  }
  .cc-form-row {
    grid-template-columns: 1fr;
  }
}
