/* ===== Segmentaur Enterprise Theme ===== */
:root {
  --sg-bg: #0a0e1a;
  --sg-bg-alt: #0f1425;
  --sg-surface: #151b2e;
  --sg-surface-2: #1a2238;
  --sg-border: rgba(255,255,255,0.06);
  --sg-text: #e2e8f0;
  --sg-text-muted: #8892a4;
  --sg-accent: #00d4aa;
  --sg-accent-alt: #00b4d8;
  --sg-accent-glow: rgba(0,212,170,0.15);
  --sg-danger: #ff4d6a;
  --sg-warning: #f5a623;
  --sg-gradient: linear-gradient(135deg, #00d4aa 0%, #00b4d8 100%);
}

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

html { font-size: 16px; position: relative; min-height: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--sg-bg);
  color: var(--sg-text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; }
.text-gradient {
  background: var(--sg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--sg-text-muted) !important; }

/* ===== Navbar ===== */
.sg-navbar {
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--sg-border);
  padding: 0.75rem 0;
  transition: background 0.3s;
}
.sg-navbar .navbar-brand { font-weight: 800; font-size: 1.4rem; color: #fff !important; letter-spacing: -0.02em; }
.sg-navbar .navbar-brand .brand-icon { color: var(--sg-accent); }
.sg-navbar .nav-link { color: var(--sg-text-muted) !important; font-weight: 500; font-size: 0.9rem; transition: color 0.2s; }
.sg-navbar .nav-link:hover { color: #fff !important; }
.sg-nav-cta {
  background: var(--sg-gradient) !important;
  color: #0a0e1a !important;
  font-weight: 600 !important;
  border-radius: 6px;
  padding: 8px 22px !important;
  transition: opacity 0.15s ease;
}
.sg-nav-cta:hover { opacity: 0.9; }

/* ===== Hero ===== */
.sg-hero {
  position: relative;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,212,170,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(0,180,216,0.06) 0%, transparent 50%),
              var(--sg-bg);
  padding: 140px 0 100px;
  overflow: hidden;
}
.sg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.sg-hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.sg-hero .lead { font-size: 1.2rem; color: var(--sg-text-muted); max-width: 640px; margin: 0 auto 2rem; }

@media (max-width: 768px) {
  .sg-hero { padding: 100px 0 60px; }
  .sg-hero h1 { font-size: 2.2rem; }
}

/* ===== Buttons ===== */
.btn-accent {
  background: var(--sg-gradient);
  color: #0a0e1a;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-accent:hover { opacity: 0.9; color: #0a0e1a; }
.btn-outline-accent {
  border: 1px solid rgba(0,212,170,0.4);
  color: var(--sg-accent);
  background: transparent;
  border-radius: 8px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}
.btn-outline-accent:hover { background: var(--sg-accent-glow); border-color: var(--sg-accent); color: var(--sg-accent); }

/* ===== Stats Bar ===== */
.sg-stats {
  background: var(--sg-surface);
  border-top: 1px solid var(--sg-border);
  border-bottom: 1px solid var(--sg-border);
  padding: 3rem 0;
}
.sg-stat-number { font-size: 2.5rem; font-weight: 800; }
.sg-stat-label { color: var(--sg-text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem; }

/* ===== Sections ===== */
.sg-section { padding: 100px 0; }
.sg-section-alt { background: var(--sg-bg-alt); }
.sg-section-title { font-size: 2.2rem; margin-bottom: 0.75rem; }
.sg-section-subtitle { color: var(--sg-text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 3rem; }

/* ===== Feature Cards ===== */
.sg-feature-card {
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: border-color 0.15s ease;
}
.sg-feature-card:hover {
  border-color: rgba(0,212,170,0.25);
}
.sg-feature-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--sg-accent-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--sg-accent);
  margin-bottom: 1.25rem;
}
.sg-feature-card h4 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.sg-feature-card p { color: var(--sg-text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0; }
.sg-feature-card ul { color: var(--sg-text-muted); font-size: 0.9rem; padding-left: 1.2rem; margin-top: 0.75rem; }
.sg-feature-card ul li { margin-bottom: 0.4rem; }

/* ===== Architecture Diagram ===== */
.sg-arch-section { background: var(--sg-bg); }
.sg-arch-box {
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}
.sg-arch-box .arch-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sg-accent);
  margin-bottom: 0.5rem;
}

/* ===== How It Works ===== */
.sg-step {
  text-align: center;
  position: relative;
}
.sg-step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sg-gradient);
  color: #0a0e1a;
  font-weight: 800;
  font-size: 1.25rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.sg-step h5 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.sg-step p { color: var(--sg-text-muted); font-size: 0.9rem; }

/* ===== CTA Section ===== */
.sg-cta {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,170,0.12) 0%, transparent 60%),
              var(--sg-surface);
  border-top: 1px solid var(--sg-border);
  padding: 80px 0;
}
.sg-cta h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.sg-cta p { color: var(--sg-text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

/* ===== Pricing Cards ===== */
.sg-pricing-card {
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  height: 100%;
  transition: transform 0.2s, border-color 0.3s;
}
.sg-pricing-card:hover { border-color: rgba(0,212,170,0.2); }
.sg-pricing-featured {
  border-color: var(--sg-accent);
  box-shadow: 0 0 40px var(--sg-accent-glow);
  position: relative;
}
.sg-pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sg-gradient);
  color: #0a0e1a;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sg-pricing-header h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.25rem; }
.sg-pricing-price { margin: 1.5rem 0; }
.sg-price-amount { font-size: 3rem; font-weight: 800; }
.sg-price-period { color: var(--sg-text-muted); font-size: 1rem; }
.sg-pricing-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.sg-pricing-features li {
  padding: 0.5rem 0;
  color: var(--sg-text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--sg-border);
}
.sg-pricing-features li:last-child { border-bottom: none; }
.sg-pricing-features li i { color: var(--sg-accent); margin-right: 0.5rem; }

/* ===== FAQ ===== */
.sg-faq-item {
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
}
.sg-faq-item h5 { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.sg-faq-item p { font-size: 0.9rem; margin-bottom: 0; }

/* ===== Footer ===== */
.sg-footer {
  background: var(--sg-bg);
  border-top: 1px solid var(--sg-border);
  padding: 4rem 0 2rem;
}
.sg-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.sg-footer a { color: var(--sg-text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.sg-footer a:hover { color: var(--sg-accent); }
.sg-footer-brand { font-weight: 800; font-size: 1.3rem; color: #fff; }
.sg-footer-brand .brand-icon { color: var(--sg-accent); }
.sg-footer .footer-bottom { border-top: 1px solid var(--sg-border); padding-top: 1.5rem; margin-top: 3rem; }

/* ===== Badges ===== */
.sg-badge {
  display: inline-block;
  background: var(--sg-accent-glow);
  color: var(--sg-accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* ===== Accordion (FAQ) ===== */
.sg-accordion .accordion-item { background: var(--sg-surface); border: 1px solid var(--sg-border); margin-bottom: 0.5rem; border-radius: 8px !important; }
.sg-accordion .accordion-button { background: transparent; color: var(--sg-text); font-weight: 600; box-shadow: none; }
.sg-accordion .accordion-button:not(.collapsed) { color: var(--sg-accent); background: transparent; }
.sg-accordion .accordion-button::after { filter: invert(1); }
.sg-accordion .accordion-body { color: var(--sg-text-muted); }

/* ===== Form Card (Trial Registration) ===== */
.sg-form-card {
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: 16px;
  padding: 2.5rem;
}
.sg-form-label {
  display: block;
  color: var(--sg-text);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.sg-form-input {
  width: 100%;
  background: var(--sg-bg);
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--sg-text);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.sg-form-input:focus {
  outline: none;
  border-color: var(--sg-accent);
  box-shadow: 0 0 0 3px var(--sg-accent-glow);
}
.sg-form-input option { background: var(--sg-bg); color: var(--sg-text); }

/* ===== Utility ===== */
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }