/* ===================================================
   Rjuhasta / ScopeDesk — Global Stylesheet (Light Mode)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* --- Design Tokens --- */
:root {
  --bg:          #F8FAFC;
  --bg-white:    #FFFFFF;
  --surface:     #FFFFFF;
  --surface-2:   #F1F5F9;
  --surface-3:   #EEF9F7;
  --navy:        #060C18;
  --teal:        #00B09C;
  --teal-bright: #00C9B1;
  --teal-dim:    rgba(0,176,156,0.1);
  --teal-glow:   rgba(0,176,156,0.2);
  --blue:        #1F6FEB;
  --blue-dim:    rgba(31,111,235,0.08);
  --text:        #0F172A;
  --text-2:      #1E3A5F;
  --muted:       #64748B;
  --border:      #E2E8F0;
  --border-teal: rgba(0,176,156,0.3);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow:      0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-teal: 0 4px 20px rgba(0,176,156,0.25);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --nav-h:       72px;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.22s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ===================================================
   NAVIGATION
   =================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 5%;
  background: rgba(248,250,252,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
  box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(0,0,0,0.06);
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.nav-logo .logo-main {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-logo .logo-main span { color: var(--teal); }
.nav-logo .logo-sub {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  background: var(--teal);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: var(--shadow-teal);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--teal-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,176,156,0.35);
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  padding: 1.5rem 5%;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 99;
  flex-direction: column;
  gap: 1.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--text); }
.nav-mobile .nav-cta { align-self: flex-start; }

/* ===================================================
   LAYOUT HELPERS
   =================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-lg { padding: 7rem 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}
.center { text-align: center; }
.center .section-desc { margin: 0 auto; }
.center .section-label { margin: 0 auto 1rem; }

/* ===================================================
   HERO BACKGROUND
   =================================================== */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,176,156,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,176,156,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -5%;
  right: -5%;
  width: 700px;
  height: 600px;
  background: radial-gradient(ellipse at 70% 30%, rgba(0,201,177,0.1) 0%, rgba(31,111,235,0.07) 40%, transparent 70%);
  pointer-events: none;
}
.hero-glow-left {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(31,111,235,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ===================================================
   ANIMATED GRADIENT HEADLINE
   =================================================== */
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.gradient-text {
  background: linear-gradient(135deg, #00B09C 0%, #1F6FEB 45%, #00B09C 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease infinite;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
  background: var(--teal-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,176,156,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
  background: var(--teal-dim);
}
.btn-dark {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 16px rgba(6,12,24,0.3);
}
.btn-dark:hover {
  background: #0f1d35;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(6,12,24,0.4);
}
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.25);
}
.btn-whatsapp:hover {
  background: #20bc5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.35);
}

/* ===================================================
   CARDS
   =================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-teal);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 48px; height: 48px;
  background: var(--teal-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.card-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===================================================
   STATS ROW
   =================================================== */
.stats-row {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat-item {
  flex: 1;
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ===================================================
   STEPS (How it works)
   =================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  opacity: 0.3;
  pointer-events: none;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}
.step-num {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0,176,156,0.3);
  flex-shrink: 0;
}
.step-title { font-weight: 600; font-size: 0.95rem; color: var(--text); margin-bottom: 0.4rem; }
.step-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }

/* ===================================================
   TESTIMONIAL
   =================================================== */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 1.75rem;
}
.testimonial-quote::before {
  content: '\201C';
  font-size: 3.5rem;
  color: var(--teal);
  line-height: 0;
  vertical-align: -1.1rem;
  margin-right: 0.1em;
  opacity: 0.5;
  font-style: normal;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.author-title { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }

/* ===================================================
   APP WINDOW MOCKUP
   =================================================== */
.app-window {
  background: #0D1B2E;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.06), 0 0 60px rgba(0,176,156,0.08);
  overflow: hidden;
  position: relative;
  max-width: 480px;
  width: 100%;
}
.app-titlebar {
  background: #060C18;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.app-dots {
  display: flex;
  gap: 6px;
}
.app-dots span {
  display: block;
  width: 12px; height: 12px;
  border-radius: 50%;
}
.app-title-text {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.app-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.app-live-strip {
  background: rgba(0,201,177,0.08);
  border: 1px dashed rgba(0,201,177,0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #00C9B1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #00C9B1;
  flex-shrink: 0;
  animation: pulse-live 1.5s ease infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.app-fields {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}
.app-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.app-field-row:last-child { border-bottom: none; }
.app-field-row:hover { background: rgba(255,255,255,0.03); }
.app-field-icon { font-size: 0.9rem; flex-shrink: 0; width: 20px; text-align: center; }
.app-field-label {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.app-field-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #00C9B1;
  font-weight: 500;
}
.app-field-value.blue { color: #6AAEFF; }
.app-generate-btn {
  background: linear-gradient(135deg, #00B09C, #1F6FEB);
  border: none;
  border-radius: 10px;
  padding: 13px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,176,156,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.app-generate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,176,156,0.4);
}
.app-frames-bar {
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  height: 4px;
  overflow: hidden;
  margin-top: 4px;
}
.app-frames-fill {
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, #00C9B1, #1F6FEB);
  border-radius: 4px;
}

/* Feature visual mockup (within feature rows) */
.feature-visual-mockup {
  background: var(--navy);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.feature-visual-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 36px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.feature-visual-mockup::after {
  content: '● ● ●';
  position: absolute;
  top: 11px;
  left: 14px;
  font-size: 0.55rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.25em;
}
.fvm-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.5rem;
}
.fvm-icon { font-size: 2.2rem; opacity: 0.7; }
.fvm-label { font-size: 0.72rem; color: rgba(255,255,255,0.4); font-family: var(--font-mono); letter-spacing: 0.06em; }

/* ===================================================
   COMPARISON TABLE
   =================================================== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.compare-table th {
  padding: 1rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}
.compare-table th:first-child {
  background: var(--surface-2);
  color: var(--muted);
  width: 30%;
}
.compare-table th.th-scopedesk {
  background: var(--teal);
  color: #fff;
}
.compare-table th.th-legacy {
  background: var(--surface-2);
  color: var(--muted);
}
.compare-table th.th-manual {
  background: var(--surface-2);
  color: var(--muted);
}
.compare-table td {
  padding: 0.9rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: #FAFCFF; }
.compare-table td:first-child {
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
  font-size: 0.83rem;
}
.compare-table td.td-yes {
  color: var(--teal);
  font-weight: 600;
}
.compare-table td.td-no { color: #E53E3E; }
.compare-table td.td-partial { color: #D97706; }
.compare-table td.td-dash { color: var(--muted); }
.check-icon { margin-right: 4px; }

/* ===================================================
   PROBLEM CARDS
   =================================================== */
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.problem-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.problem-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.problem-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ===================================================
   FEATURE DEEP-DIVE ROWS
   =================================================== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-content .feature-num {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--teal);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.feature-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.feature-content p { color: var(--muted); line-height: 1.75; margin-bottom: 0.75rem; }
.feature-tag {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 500;
  padding: 0.28rem 0.75rem;
  background: var(--teal-dim);
  color: var(--teal);
  border-radius: 20px;
  border: 1px solid var(--border-teal);
  margin: 0.2rem 0.2rem 0 0;
}

/* ===================================================
   HERO CTA STRIP
   =================================================== */
.cta-strip {
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(0,201,177,0.12), transparent 70%);
  pointer-events: none;
}
.cta-strip .cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,201,177,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,201,177,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  position: relative;
}
.cta-strip p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

/* ===================================================
   TRUST BADGES
   =================================================== */
.trust-strip {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
}
.trust-item strong { color: var(--text); }
.trust-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ===================================================
   CONTACT PAGE
   =================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-option {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.contact-option:hover {
  border-color: var(--border-teal);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.contact-option-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.contact-option-icon.teal { background: var(--teal-dim); }
.contact-option-icon.green { background: rgba(37,211,102,0.1); }
.contact-option-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.contact-option-value { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.contact-option-note { font-size: 0.82rem; color: var(--muted); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: var(--text); letter-spacing: 0.02em; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,176,156,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.75rem 1rem;
  background: var(--teal-dim);
  border: 1px solid var(--border-teal);
  border-radius: 8px;
  line-height: 1.5;
}

/* ===================================================
   COMPATIBILITY
   =================================================== */
.compat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.compat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition);
}
.compat-item:hover { border-color: var(--border-teal); transform: translateY(-2px); }
.compat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--teal-glow);
}
.compat-name { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.compat-sub { font-size: 0.75rem; color: var(--muted); }

/* ===================================================
   BADGES
   =================================================== */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 20px;
}
.badge-teal {
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid var(--border-teal);
}
.badge-blue {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(31,111,235,0.2);
}
.text-teal { color: var(--teal); }
.text-muted { color: var(--muted); }
.text-mono { font-family: var(--font-mono); }

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--navy);
  padding: 4rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo .logo-main {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}
.footer-logo .logo-main span { color: var(--teal-bright); }
.footer-logo .logo-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.4); line-height: 1.6; max-width: 280px; }
.footer-heading { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-links a:hover { color: var(--teal-bright); }
.footer-contact { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.footer-contact-item a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--teal-bright); }
.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.25);
  color: #25D366 !important;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  margin-bottom: 0.75rem;
  width: fit-content;
}
.footer-whatsapp:hover { background: rgba(37,211,102,0.2); transform: translateY(-1px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-partner { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-partner span { color: var(--teal-bright); }

/* ===================================================
   LOGO IMAGE IN NAV
   =================================================== */
.nav-logo {
  flex-direction: row !important;
  gap: 0.65rem;
  align-items: center !important;
}
.nav-logo-img {
  width: 34px; height: 34px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.footer-logo-img {
  width: 38px; height: 38px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 0.6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ===================================================
   HERO ANIMATIONS — BLOBS
   =================================================== */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  will-change: transform;
}
.hero-blob-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0,201,177,0.16), transparent 70%);
  top: -100px; right: 60px;
  animation: blob1 13s ease-in-out infinite;
}
.hero-blob-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(31,111,235,0.14), transparent 70%);
  top: 160px; right: 320px;
  animation: blob2 17s ease-in-out infinite;
  animation-delay: -6s;
}
.hero-blob-3 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(0,201,177,0.1), transparent 70%);
  bottom: 80px; right: 40px;
  animation: blob3 11s ease-in-out infinite;
  animation-delay: -9s;
}
.hero-blob-4 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(31,111,235,0.08), transparent 70%);
  top: 60%; left: 20%;
  animation: blob1 14s ease-in-out infinite reverse;
  animation-delay: -3s;
}

@keyframes blob1 {
  0%,100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(22px, -18px) scale(1.04); }
  50% { transform: translate(-12px, 14px) scale(0.97); }
  75% { transform: translate(8px, -8px) scale(1.02); }
}
@keyframes blob2 {
  0%,100% { transform: translate(0, 0) scale(1); }
  30% { transform: translate(-18px, 22px) scale(1.05); }
  60% { transform: translate(28px, -12px) scale(0.95); }
  80% { transform: translate(-5px, 12px) scale(1.03); }
}
@keyframes blob3 {
  0%,100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(14px, -18px) scale(1.06); }
  70% { transform: translate(-10px, 8px) scale(0.94); }
}

/* ===================================================
   HERO PARTICLES
   =================================================== */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--teal-bright);
  animation: particle-float linear infinite;
  will-change: transform, opacity;
}
@keyframes particle-float {
  0%   { transform: translateY(8px) scale(0); opacity: 0; }
  8%   { transform: translateY(0) scale(1); opacity: 0.55; }
  85%  { opacity: 0.15; }
  100% { transform: translateY(-110px); opacity: 0; }
}

/* ===================================================
   APP WINDOW ANIMATIONS
   =================================================== */
@keyframes app-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.app-float { animation: app-float 5s ease-in-out infinite; }

.app-scan {
  position: absolute;
  left: 36px; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,201,177,0.7) 40%, rgba(0,201,177,0.7) 60%, transparent 100%);
  animation: app-scan 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}
@keyframes app-scan {
  0%   { top: 36px; opacity: 0; }
  4%   { opacity: 1; }
  88%  { opacity: 0.5; }
  100% { top: 100%; opacity: 0; }
}

/* Ring pulse on live dot */
.live-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,201,177,0.5);
  animation: ring-pulse 1.8s ease-out infinite;
}
@keyframes ring-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ===================================================
   SCROLL FADE-UP
   =================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* staggered delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }

/* ===================================================
   COLOURED CARD ICONS
   =================================================== */
.card-icon.blue   { background: rgba(31,111,235,0.1); }
.card-icon.amber  { background: rgba(245,158,11,0.1); }
.card-icon.purple { background: rgba(139,92,246,0.1); }
.card-icon.red    { background: rgba(239,68,68,0.08); }
.card-icon.green  { background: rgba(16,185,129,0.1); }
.card-icon.rose   { background: rgba(244,63,94,0.08); }

/* ===================================================
   UPGRADED STAT COUNTER
   =================================================== */
.stat-number { transition: color 0.3s; }
.stat-item:hover .stat-number { color: var(--blue); }

/* ===================================================
   IMPROVED SECTION DIVIDERS — subtle angle
   =================================================== */
.section-angle-down {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3rem), 0 100%);
  padding-bottom: calc(5rem + 3rem) !important;
  margin-bottom: -3rem;
  position: relative;
  z-index: 1;
}
.section-angle-up {
  clip-path: polygon(0 3rem, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(5rem + 3rem) !important;
  margin-top: -3rem;
  position: relative;
  z-index: 1;
}

/* ===================================================
   HERO HEADLINE WORD REVEAL
   =================================================== */
@keyframes word-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-word {
  display: inline-block;
  animation: word-in 0.55s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-word:nth-child(1) { animation-delay: 0.1s; }
.hero-word:nth-child(2) { animation-delay: 0.2s; }
.hero-word:nth-child(3) { animation-delay: 0.3s; }
.hero-word:nth-child(4) { animation-delay: 0.4s; }
.hero-word:nth-child(5) { animation-delay: 0.5s; }
.hero-word:nth-child(6) { animation-delay: 0.6s; }

/* ===================================================
   SD (SCOPEDESK) APP MOCKUPS
   =================================================== */

/* Base window */
.sd-win {
  background: #0D1117;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.07);
  font-size: 0.72rem;
  line-height: 1.35;
  color: #e2e8f0;
  width: 100%;
}
.sd-tb {
  background: #040810;
  padding: 8px 12px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.sd-dots { display: flex; gap: 5px; flex-shrink: 0; }
.sd-dots span { display: block; width: 9px; height: 9px; border-radius: 50%; }
.sd-dots span:nth-child(1) { background: #FF5F57; }
.sd-dots span:nth-child(2) { background: #FEBC2E; }
.sd-dots span:nth-child(3) { background: #28C840; }
.sd-tb-title {
  flex: 1; text-align: center;
  font-family: var(--font-mono); font-size: 0.65rem; color: rgba(255,255,255,0.3);
}
.sd-tb-badge {
  font-size: 0.57rem; font-weight: 600; padding: 2px 7px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.sd-tb-badge.live { background: rgba(0,201,177,0.14); color: #00C9B1; border: 1px solid rgba(0,201,177,0.3); }
.sd-tb-badge.sync { background: rgba(31,111,235,0.12); color: #6aaeff; border: 1px solid rgba(31,111,235,0.2); }
.sd-tb-badge.lic  { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.38); border: 1px solid rgba(255,255,255,0.1); }
.sd-live-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: pulse-live 1.5s ease infinite; }

/* Tab bar */
.sd-nav {
  background: #08101e;
  display: flex; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0 10px;
}
.sd-tab {
  padding: 6px 12px; font-size: 0.62rem; font-weight: 600; font-family: var(--font-body);
  color: rgba(255,255,255,0.38);
  background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; white-space: nowrap; transition: all 0.15s;
}
.sd-tab.on { color: #00C9B1; border-bottom-color: #00C9B1; }
.sd-tab:hover:not(.on) { color: rgba(255,255,255,0.65); }

/* Panel header */
.sd-ph {
  font-size: 0.54rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.26); padding: 5px 9px; border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Status bar */
.sd-statusbar {
  background: #030709; padding: 4px 12px;
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.sd-sb-item { font-family: var(--font-mono); font-size: 0.55rem; color: rgba(255,255,255,0.26); }
.sd-sb-sep  { width: 1px; height: 9px; background: rgba(255,255,255,0.1); }
.sd-sb-item.hl { color: rgba(0,201,177,0.7); }

/* ── ENDOSCOPY IMAGES (CSS gradients) ── */
.endo {
  border-radius: 50%;
  box-shadow: 0 0 0 2px #000, 0 0 16px rgba(0,0,0,0.85);
  flex-shrink: 0;
  display: block;
  position: relative;
}
.endo-urs {
  background:
    radial-gradient(ellipse 22% 18% at 40% 36%, rgba(255,240,200,0.5) 0%, transparent 55%),
    radial-gradient(ellipse 12% 8% at 58% 52%, rgba(230,190,140,0.3) 0%, transparent 45%),
    radial-gradient(ellipse 95% 90% at 50% 50%,
      #e8a06a 0%, #c45930 15%, #8c3318 30%,
      #5c1a0c 48%, #2d0a06 68%, #080101 85%, #000 95%);
}
.endo-colon {
  background:
    radial-gradient(ellipse 18% 15% at 38% 34%, rgba(255,200,185,0.45) 0%, transparent 52%),
    radial-gradient(ellipse 95% 90% at 50% 50%,
      #e05a5a 0%, #c02828 18%, #8a0f0f 38%,
      #500707 60%, #180303 80%, #000 95%);
}
.endo-gastro {
  background:
    radial-gradient(ellipse 20% 16% at 41% 37%, rgba(255,245,185,0.42) 0%, transparent 52%),
    radial-gradient(ellipse 95% 90% at 50% 50%,
      #d49050 0%, #b06028 18%, #854018 38%,
      #551808 58%, #200b04 78%, #000 95%);
}
.endo-urs::after, .endo-colon::after, .endo-gastro::after {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(ellipse 3% 28% at 55% 28%, rgba(80,10,10,0.55) 0%, transparent 100%),
    radial-gradient(ellipse 28% 3% at 32% 56%, rgba(60,8,8,0.4) 0%, transparent 100%);
  pointer-events: none;
}
/* Wrapper for showing endo inside rectangular area */
.endo-frame {
  width: 100%; height: 100%; background: #000;
  display: flex; align-items: center; justify-content: center;
}

/* ── 1. CAPTURE VIEW ── */
.sd-cap { display: grid; grid-template-columns: 128px 1fr 88px; }
.sd-sbl {
  border-right: 1px solid rgba(255,255,255,0.06);
  background: #070f1a; display: flex; flex-direction: column;
}
.sd-field { display: flex; flex-direction: column; gap: 2px; padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.sd-fl { font-size: 0.53rem; color: rgba(255,255,255,0.27); }
.sd-fv { font-size: 0.67rem; color: rgba(255,255,255,0.82); font-family: var(--font-mono); }
.sd-fv.teal  { color: #00C9B1; }
.sd-fv.blue  { color: #6aaeff; }
.sd-fv.amber { color: #fbbf24; }
.sd-fv.sm    { font-size: 0.58rem; line-height: 1.4; }
.sd-macro-btn {
  margin: 6px 8px; border: 1px dashed rgba(0,201,177,0.33);
  border-radius: 5px; padding: 5px 8px; text-align: center;
  font-size: 0.59rem; color: rgba(0,201,177,0.8); cursor: pointer;
  background: rgba(0,201,177,0.04); margin-top: auto;
}
.sd-vpane {
  position: relative; background: #000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; min-height: 200px;
}
.sd-vid-overlay {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 5px 8px; display: flex; align-items: center; gap: 6px;
  background: linear-gradient(rgba(0,0,0,0.65), transparent); z-index: 2;
}
.sd-vid-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 5px 8px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(transparent, rgba(0,0,0,0.75)); z-index: 2;
}
.sd-recbadge {
  font-size: 0.56rem; font-weight: 700; padding: 2px 6px; border-radius: 3px;
  background: #e82222; color: #fff; display: inline-flex; align-items: center; gap: 4px;
}
.sd-keyhint {
  font-family: var(--font-mono); font-size: 0.54rem; color: rgba(255,255,255,0.38);
  border: 1px solid rgba(255,255,255,0.15); padding: 2px 5px; border-radius: 3px;
}
.sd-sbr {
  border-left: 1px solid rgba(255,255,255,0.06);
  background: #070f1a; display: flex; flex-direction: column;
}
.sd-thumb {
  margin: 4px; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 16/9; position: relative;
}
.sd-thumb.sel { border-color: #00C9B1; }
.sd-open-editor {
  margin: 4px; font-size: 0.57rem; padding: 5px 4px; text-align: center;
  background: rgba(31,111,235,0.13); border: 1px solid rgba(31,111,235,0.25);
  border-radius: 4px; color: #6aaeff; cursor: pointer; font-family: var(--font-body);
  margin-top: auto;
}

/* ── 2. ANNOTATION VIEW ── */
.sd-annot-body { display: grid; grid-template-columns: 36px 1fr; }
.sd-annot-tools {
  background: #070f1a; border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px;
}
.sd-atool {
  width: 26px; height: 26px; border-radius: 5px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem; cursor: pointer;
}
.sd-atool.on { background: rgba(0,201,177,0.18); border-color: rgba(0,201,177,0.4); }
.sd-atool-sep { width: 60%; height: 1px; background: rgba(255,255,255,0.08); margin: 2px 0; }
.sd-annot-canvas {
  position: relative; background: #000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; min-height: 220px;
}
.sd-annot-hdr {
  position: absolute; top: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.72); padding: 5px 8px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.07); z-index: 3;
}
.sd-at-btn {
  font-size: 0.59rem; padding: 3px 8px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7);
  cursor: pointer; font-family: var(--font-body);
}
.sd-at-btn.save {
  background: linear-gradient(135deg,#00B09C,#1F6FEB);
  border-color: transparent; color: #fff; font-weight: 600;
}
.sd-annot-arrow {
  position: absolute; height: 2px; background: #ffd700;
  transform-origin: left center; border-radius: 1px; z-index: 2;
}
.sd-annot-arrow::after {
  content: ''; position: absolute; right: -1px; top: -5px;
  border-left: 9px solid #ffd700;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.sd-annot-circle {
  position: absolute; border: 2px solid #00C9B1; border-radius: 50%; z-index: 2;
}
.sd-annot-label {
  position: absolute; font-family: var(--font-mono); font-size: 0.59rem;
  color: #ffd700; background: rgba(0,0,0,0.78); padding: 2px 5px;
  border-radius: 3px; white-space: nowrap; z-index: 2;
}

/* ── 3. MACRO PICKER ── */
.sd-macro-body { display: grid; grid-template-columns: 120px 1fr; }
.sd-macro-list { background: #070f1a; border-right: 1px solid rgba(255,255,255,0.06); }
.sd-macro-item {
  padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background 0.12s;
}
.sd-macro-item.on { background: rgba(0,201,177,0.1); border-left: 2px solid #00C9B1; padding-left: 8px; }
.sd-macro-item:hover:not(.on) { background: rgba(255,255,255,0.03); }
.sd-macro-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.2); flex-shrink: 0; }
.sd-macro-item.on .sd-macro-dot { background: #00C9B1; }
.sd-macro-n { font-size: 0.64rem; color: rgba(255,255,255,0.78); }
.sd-macro-s { font-size: 0.56rem; color: rgba(255,255,255,0.3); }
.sd-macro-preview { padding: 10px; background: #0a1220; display: flex; flex-direction: column; gap: 8px; }
.sd-mp-lbl { font-size: 0.55rem; color: rgba(255,255,255,0.27); text-transform: uppercase; letter-spacing: 0.1em; }
.sd-mp-text {
  font-size: 0.66rem; color: rgba(255,255,255,0.78); line-height: 1.65;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px; padding: 8px; flex: 1; min-height: 90px;
}
.sd-mp-insert {
  background: linear-gradient(135deg, #00B09C, #1F6FEB);
  border: none; color: #fff; border-radius: 6px; padding: 8px 12px;
  font-size: 0.67rem; font-weight: 600; cursor: pointer; font-family: var(--font-body);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}

/* ── 4. VOICE DICTATION ── */
.sd-voice-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.sd-voice-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(0,201,177,0.07); border: 1px solid rgba(0,201,177,0.2);
}
.sd-voice-mic-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,201,177,0.18); border: 1.5px solid rgba(0,201,177,0.4);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  animation: mic-glow 2.2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes mic-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,201,177,0.28); }
  50%      { box-shadow: 0 0 0 7px rgba(0,201,177,0); }
}
.sd-voice-lbl { font-size: 0.7rem; font-weight: 600; color: #00C9B1; }
.sd-voice-sub { font-size: 0.59rem; color: rgba(255,255,255,0.35); }
.sd-waveform  {
  display: flex; align-items: center; justify-content: center; gap: 3px; height: 28px;
}
.sd-wave-bar {
  width: 3px; border-radius: 3px; background: rgba(0,201,177,0.55);
  animation: wave 0.8s ease-in-out infinite;
}
@keyframes wave {
  0%,100% { transform: scaleY(0.25); }
  50%      { transform: scaleY(1); }
}
.sd-transcript-box {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 8px 10px; font-size: 0.66rem;
  color: rgba(255,255,255,0.78); line-height: 1.7; flex: 1; min-height: 80px;
}
.sd-cursor {
  display: inline-block; width: 2px; height: 11px;
  background: #00C9B1; margin-left: 2px; vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── 5. PROCEDURE REGISTER ── */
.sd-reg-body { padding: 8px; }
.sd-reg-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 8px; }
.sd-rstat {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px; padding: 6px; text-align: center;
}
.sd-rstat-v { font-family: var(--font-mono); font-size: 1rem; color: #00C9B1; line-height: 1; margin-bottom: 2px; }
.sd-rstat-l { font-size: 0.52rem; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.05em; }
.sd-search-bar {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px; padding: 5px 9px; margin-bottom: 6px; font-size: 0.64rem;
  color: rgba(255,255,255,0.25); font-family: var(--font-mono);
}
.sd-stbl { width: 100%; border-collapse: collapse; }
.sd-stbl th {
  padding: 4px 7px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.54rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.09em; color: rgba(255,255,255,0.27);
}
.sd-stbl td { padding: 5px 7px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.sd-stbl tr:last-child td { border-bottom: none; }
.sd-stbl tr:hover td { background: rgba(255,255,255,0.025); }
.sd-tname { font-size: 0.65rem; color: rgba(255,255,255,0.82); }
.sd-tproc { font-size: 0.62rem; color: #6aaeff; }
.sd-tdoc  { font-size: 0.61rem; color: rgba(255,255,255,0.44); }
.sd-tdate { font-size: 0.59rem; color: rgba(255,255,255,0.3); font-family: var(--font-mono); }
.sd-tdone {
  font-size: 0.57rem; font-weight: 600; padding: 2px 5px; border-radius: 3px;
  background: rgba(0,201,177,0.1); border: 1px solid rgba(0,201,177,0.25); color: #00C9B1;
  white-space: nowrap;
}

/* ── 6. METRICS DASHBOARD ── */
.sd-dash-body { padding: 8px; }
.sd-dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 8px; }
.sd-dstat {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px; padding: 6px; text-align: center;
}
.sd-dstat-v { font-family: var(--font-mono); font-size: 0.95rem; color: #00C9B1; line-height: 1; margin-bottom: 2px; }
.sd-dstat-l { font-size: 0.51rem; color: rgba(255,255,255,0.29); text-transform: uppercase; letter-spacing: 0.05em; }
.sd-charts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 6px; }
.sd-chart-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px; padding: 7px;
}
.sd-chart-ttl { font-size: 0.55rem; color: rgba(255,255,255,0.27); text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 5px; }
.sd-lchart { height: 55px; }
.sd-lchart svg { width: 100%; height: 100%; }
.sd-bars { display: flex; align-items: flex-end; gap: 3px; height: 50px; }
.sd-bar  { flex: 1; border-radius: 3px 3px 0 0; min-height: 5px; background: rgba(0,176,156,0.4); }
.sd-bar.hi { background: #00C9B1; }
.sd-donut-wrap { display: flex; align-items: center; justify-content: center; padding: 4px; }
.sd-donut { position: relative; width: 56px; height: 56px; }
.sd-donut svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.sd-donut-lbl {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.62rem; color: #00C9B1; line-height: 1;
}
.sd-donut-sub { font-size: 0.47rem; color: rgba(255,255,255,0.29); margin-top: 2px; }

/* ── 7. VIDEO EDITOR ── */
.sd-veditor-body { display: grid; grid-template-columns: 100px 1fr; }
.sd-vlib { background: #070f1a; border-right: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; }
.sd-vclip {
  margin: 4px; border-radius: 5px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07); cursor: pointer; transition: border-color 0.12s;
}
.sd-vclip.on { border-color: #00C9B1; }
.sd-vclip-thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.sd-vclip-info { padding: 3px 5px; background: rgba(4,8,18,0.75); }
.sd-vclip-name { font-size: 0.56rem; color: rgba(255,255,255,0.65); font-family: var(--font-mono); }
.sd-vclip-dur  { font-size: 0.52rem; color: rgba(255,255,255,0.3); }
.sd-vedit { display: flex; flex-direction: column; }
.sd-vpreview {
  flex: 1; background: #000; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; min-height: 140px;
}
.sd-vplay {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.14); border: 1.5px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; cursor: pointer; z-index: 2; position: relative;
}
.sd-vtimeline {
  height: 50px; background: #050c1a; border-top: 1px solid rgba(255,255,255,0.07);
  padding: 6px 8px; display: flex; flex-direction: column; gap: 4px;
}
.sd-vtl-row { display: flex; align-items: center; gap: 6px; }
.sd-vtl-btn {
  width: 20px; height: 20px; border-radius: 4px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; cursor: pointer; color: rgba(255,255,255,0.6); flex-shrink: 0;
}
.sd-vtl-time { font-family: var(--font-mono); font-size: 0.57rem; color: rgba(255,255,255,0.38); white-space: nowrap; }
.sd-vtl-track {
  flex: 1; height: 16px; border-radius: 4px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.07);
  position: relative; overflow: hidden;
}
.sd-vtl-clip {
  position: absolute; top: 1px; bottom: 1px; border-radius: 3px;
  background: rgba(0,176,156,0.55); border: 1px solid rgba(0,201,177,0.45);
}
.sd-vtl-head {
  position: absolute; top: -2px; bottom: -2px; width: 2px;
  background: #00C9B1; border-radius: 1px;
}

/* ── 8. PDF REPORT VIEW ── */
.sd-pdf-body { display: grid; grid-template-columns: 110px 1fr 86px; }
.sd-fmtlist { background: #070f1a; border-right: 1px solid rgba(255,255,255,0.06); }
.sd-fmtitem {
  padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer; transition: background 0.12s;
}
.sd-fmtitem.on { background: rgba(0,201,177,0.1); border-left: 2px solid #00C9B1; padding-left: 8px; }
.sd-fmtitem:hover:not(.on) { background: rgba(255,255,255,0.03); }
.sd-fmt-name { font-size: 0.64rem; color: rgba(255,255,255,0.75); }
.sd-fmt-sub  { font-size: 0.56rem; color: rgba(255,255,255,0.3); }
.sd-pdf-canvas {
  background: #12192a; padding: 10px;
  display: flex; align-items: flex-start; justify-content: center;
}
.sd-pdf-page {
  background: #fff; border-radius: 3px; padding: 9px;
  width: 100%; max-width: 190px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.5);
}
.sd-pdf-hdr {
  display: flex; align-items: center; gap: 5px;
  padding-bottom: 5px; border-bottom: 2px solid #00B09C; margin-bottom: 6px;
}
.sd-pdf-logo-sq { width: 18px; height: 18px; border-radius: 3px; background: #1F6FEB; flex-shrink: 0; }
.sd-pdf-hname { font-size: 0.55rem; font-weight: 700; color: #0f172a; line-height: 1.2; }
.sd-pdf-hsub  { font-size: 0.47rem; color: #64748b; }
.sd-pdf-title { font-size: 0.59rem; font-weight: 800; color: #0f172a; text-align: center; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
.sd-pdf-row { display: flex; gap: 3px; margin-bottom: 2px; }
.sd-pdf-k { font-size: 0.49rem; color: #64748b; white-space: nowrap; min-width: 42px; }
.sd-pdf-v { font-size: 0.49rem; color: #0f172a; font-weight: 500; }
.sd-pdf-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 5px 0; }
.sd-pdf-imgbox { aspect-ratio: 4/3; border-radius: 2px; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
.sd-pdf-findings-h { font-size: 0.51rem; font-weight: 700; color: #0f172a; margin: 3px 0 2px; }
.sd-pdf-findings-t { font-size: 0.48rem; color: #475569; line-height: 1.4; }
.sd-pdf-sig { margin-top: 5px; padding-top: 4px; border-top: 1px solid #e2e8f0; display: flex; flex-direction: column; align-items: flex-end; }
.sd-pdf-sigline { font-size: 0.49rem; color: #1e40af; font-style: italic; }
.sd-pdf-signame { font-size: 0.49rem; color: #0f172a; font-weight: 600; }
.sd-report-props {
  border-left: 1px solid rgba(255,255,255,0.06);
  background: #070f1a; padding: 8px; display: flex; flex-direction: column; gap: 6px;
}
.sd-rp-lbl { font-size: 0.54rem; color: rgba(255,255,255,0.27); text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 2px; }
.sd-rp-val {
  font-size: 0.62rem; color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; padding: 3px 6px;
}
.sd-rp-gen {
  margin-top: auto; background: linear-gradient(135deg,#00B09C,#1F6FEB);
  border: none; color: #fff; border-radius: 5px; padding: 7px 6px;
  font-size: 0.59rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); text-align: center; width: 100%;
}

/* ===================================================
   RESPONSIVE
   =================================================== */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .steps::before { display: none; }
  .feature-row { gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  /* SD: hide the right props panel at tablet, 3 columns is too cramped */
  .sd-report-props { display: none; }
  .sd-pdf-body { grid-template-columns: 110px 1fr; }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Nav */
  .nav { padding: 0 4%; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile a { font-size: 1rem; }

  /* Hero: reliable collapse via class (not fragile attribute selector) */
  .hero-cols {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .hero-blob-2, .hero-blob-4 { display: none; }
  .app-window { max-width: 100%; margin: 0 auto; }
  .sd-win.app-float { margin: 0 auto; }

  /* Core grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Stats: 2×2 grid looks far better than a vertical list */
  .stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: unset;
  }
  .stat-item {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1rem;
  }
  .stat-item:nth-child(2n)      { border-right: none; }
  .stat-item:nth-child(n + 3)   { border-bottom: none; }

  /* Steps: keep 2-col on mobile — 1 col is too stretched */
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  /* Feature rows */
  .feature-row { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 0; }
  .feature-row.reverse { direction: ltr; }

  /* SD mockups — internal columns simplified */
  .sd-cap { grid-template-columns: 96px 1fr; }
  .sd-sbr { display: none; }                /* gallery hidden */
  .sd-pdf-body { grid-template-columns: 1fr; }
  .sd-fmtlist { display: none; }            /* format list hidden */
  .sd-report-props { display: none; }
  .sd-reg-stats { grid-template-columns: repeat(2, 1fr); }
  .sd-dash-stats { grid-template-columns: repeat(2, 1fr); }
  .sd-charts { grid-template-columns: 1fr; }
  .sd-macro-body { grid-template-columns: 1fr; }
  .sd-macro-list { display: none; }
  .sd-veditor-body { grid-template-columns: 1fr; }
  .sd-vlib { display: none; }
  /* Hide Doctor + Date columns in register table on mobile */
  .sd-stbl th:nth-child(3), .sd-stbl td:nth-child(3),
  .sd-stbl th:nth-child(4), .sd-stbl td:nth-child(4) { display: none; }

  /* Sections */
  .section    { padding: 3.5rem 0; }
  .section-lg { padding: 4rem 0; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Testimonial */
  .testimonial { padding: 1.75rem 1.5rem; border-radius: var(--radius); }

  /* Comparison table: scrollable on mobile */
  .compare-table { font-size: 0.78rem; }
  .compare-table th, .compare-table td { padding: 0.65rem 0.85rem; }
  .compare-table th:nth-child(3), .compare-table td:nth-child(3) { display: none; }

  /* Compatibility */
  .compat-grid { grid-template-columns: 1fr 1fr !important; }

  /* Trust strip */
  .trust-items { gap: 1rem; flex-wrap: wrap; }
  .trust-item  { font-size: 0.78rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .footer-tagline { max-width: 100%; }

  /* CTA strip buttons */
  .cta-strip .cta-buttons { flex-direction: column; align-items: center; }
  .cta-strip .cta-buttons .btn { width: 100%; max-width: 380px; justify-content: center; }
}

/* ── Small phones (≤ 480px) ── */
@media (max-width: 480px) {
  :root { --nav-h: 56px; }

  .container { padding: 0 4%; }
  .nav      { padding: 0 4%; }
  .section  { padding: 2.75rem 0; }
  .section-sm { padding: 2rem 0; }

  /* Hero pill tags — stack nicely */
  #hero .cta-buttons { flex-direction: column; align-items: stretch; }
  #hero .cta-buttons .btn { justify-content: center; }

  /* Buttons */
  .btn-lg { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { justify-content: center; }

  /* Stats */
  .stat-item   { padding: 1.25rem 0.75rem; }
  .stat-number { font-size: 1.6rem; }

  /* Steps: single column on very small screens */
  .steps { grid-template-columns: 1fr; gap: 2rem; }

  /* SD mockups — tighten further */
  .sd-cap { grid-template-columns: 80px 1fr; }
  .sd-sbl .sd-field:nth-child(n + 5) { display: none; } /* keep only 4 fields */
  .sd-macro-btn { display: none; }
  .sd-vpane     { min-height: 150px; }
  .sd-annot-canvas { min-height: 160px; }
  .sd-vpreview  { min-height: 110px; }
  .sd-statusbar { display: none; } /* hide tiny status bar on very small screens */
  .sd-nav .sd-tab:nth-child(n + 3) { display: none; } /* show max 2 tabs */

  /* Compat */
  .compat-grid { grid-template-columns: 1fr; }

  /* Compare table: full horizontal scroll */
  .compare-table { display: block; overflow-x: auto; font-size: 0.74rem; }
  .compare-table th:nth-child(3), .compare-table td:nth-child(3) { display: table-cell; }

  /* Testimonial */
  .testimonial { padding: 1.5rem 1.25rem; }
  .testimonial-quote { font-size: 1rem; }

  /* Trust: vertical list on tiny screens */
  .trust-items { flex-direction: column; gap: 0.65rem; align-items: flex-start; }

  /* Footer */
  .footer { padding: 3rem 0 0; }
  .footer-bottom { gap: 0.35rem; }

  /* Misc */
  .problem-card { padding: 1.5rem; }
  .compat-item  { padding: 1rem; }
}
