/* BizFlow Systems — High-Translucency Glassmorphism
   Themes: Alpine Teal (default dark) & Polar Frost (light toggle) */

:root,
[data-theme="alpine-teal"] {
  --bg-base: #06181c;
  --bg-gradient: radial-gradient(circle at 15% 15%, #0e3a42 0%, #06181c 55%, #030d10 100%);
  --orb-1: rgba(20, 184, 166, 0.34);
  --orb-2: rgba(56, 189, 248, 0.24);
  --orb-3: rgba(16, 185, 129, 0.22);

  --glass-bg: rgba(10, 38, 44, 0.48);
  --glass-bg-hover: rgba(14, 52, 60, 0.64);
  --glass-border: rgba(153, 246, 228, 0.22);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);

  --text-primary: #ecfeff;
  --text-secondary: #a5d8dd;
  --text-muted: #7ab3ba;

  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --accent-text: #042f2e;
  --danger: #fda4af;
  --success: #6ee7b7;
}

[data-theme="polar-frost"] {
  --bg-base: #eef6f8;
  --bg-gradient: radial-gradient(circle at 18% 12%, #ffffff 0%, #e0f2fe 52%, #cffafe 100%);
  --orb-1: rgba(20, 184, 166, 0.26);
  --orb-2: rgba(56, 189, 248, 0.28);
  --orb-3: rgba(94, 234, 212, 0.26);

  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-hover: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(13, 148, 136, 0.22);
  --glass-shadow: 0 18px 42px rgba(15, 76, 92, 0.12);

  --text-primary: #082f36;
  --text-secondary: #1e4e56;
  --text-muted: #4b747c;

  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-text: #ffffff;
  --danger: #be123c;
  --success: #047857;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-base);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -80px;
  left: -60px;
  background: var(--orb-1);
}

.orb-2 {
  width: 380px;
  height: 380px;
  top: 32%;
  right: -80px;
  background: var(--orb-2);
}

.orb-3 {
  width: 340px;
  height: 340px;
  bottom: -90px;
  left: 30%;
  background: var(--orb-3);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  width: min(1120px, calc(100% - 2rem));
  margin: 0.75rem auto 0;
  border-radius: 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text small {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-hover);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero */
.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-card {
  padding: clamp(1.75rem, 4vw, 3.25rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  max-width: 18ch;
}

.hero-sub {
  margin: 0 0 1.75rem;
  max-width: 62ch;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

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

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-strong);
}

.btn-secondary {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
  border-color: var(--glass-border);
}

.btn-block {
  width: 100%;
  margin-top: auto;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.metric-item strong {
  display: block;
  font-size: 1.2rem;
  color: var(--accent);
}

.metric-item span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.15rem;
}

.feature-card,
.pricing-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.step-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.feature-card h3,
.pricing-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.pricing-card.featured {
  border-color: var(--accent);
}

.badge {
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}

.badge.subtle {
  background: var(--glass-bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.price-line {
  margin: 0.25rem 0;
}

.price {
  font-size: 2rem;
  font-weight: 800;
}

.period {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.setup-note {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.scope-list {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.scope-list li + li {
  margin-top: 0.45rem;
}

/* Guided Inquiry */
.inquiry-card {
  padding: clamp(1.35rem, 3.5vw, 2.25rem);
}

.progress-bar-wrap {
  margin-bottom: 1.5rem;
}

.progress-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.step-pill {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.step-pill.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--glass-bg-hover);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.25s ease;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-step {
  display: none;
  border: 0;
  margin: 0;
  padding: 0;
}

.form-step.active {
  display: block;
}

.form-step legend {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.sub-legend {
  margin-top: 1.35rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.choice-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-hover);
  cursor: pointer;
  font-weight: 500;
}

.choice-pill:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}

.choice-pill input {
  accent-color: var(--accent);
}

.select-wrap,
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}

.glass-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-hover);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.glass-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-status {
  margin-top: 1.1rem;
  min-height: 1.4rem;
  font-size: 0.93rem;
  font-weight: 600;
}

.form-status.error {
  color: var(--danger);
}

.form-status.success {
  color: var(--success);
}

.form-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.footer-meta {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}
