:root {
  /* Dark Mode Palette */
  --bg: #020617;
  /* Slate 950 */
  --surface: rgba(30, 41, 59, 0.7);
  /* Slate 800 @ 70% */
  --border: rgba(148, 163, 184, 0.1);
  --ink: #f8fafc;
  /* Slate 50 */
  --muted: #94a3b8;
  /* Slate 400 */

  --brand: #22d3ee;
  /* Cyan 400 */
  --brand-glow: rgba(34, 211, 238, 0.5);
  --brand-deep: #0891b2;
  /* Cyan 600 */

  --accent: #a78bfa;
  /* Violet 400 */
  --accent-glow: rgba(167, 139, 250, 0.5);

  --radius: 12px;
  --font-head: "Outfit", sans-serif;
  --font-body: "DM Sans", sans-serif;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  /* Subtle Grid Background */
  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: 40px 40px;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--brand-deep);
  text-shadow: 0 0 8px var(--brand-glow);
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: white;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Nav */
.topbar {
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  letter-spacing: -0.03em;
}

.menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.menu a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.menu a:hover {
  color: white;
  text-shadow: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  /* Pill shape */
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary,
a.btn-primary,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active {
  background: var(--brand);
  color: #0f172a !important;
  /* Dark text on bright button */
  box-shadow: 0 0 20px -5px var(--brand-glow);
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 30px -5px var(--brand-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 15px -5px var(--brand-glow);
}

/* Hero */
.hero {
  padding: 8rem 0 0;
  position: relative;
  overflow: hidden;
}

/* Glow effect behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero p {
  max-width: 650px;
  font-size: 1.35rem;
  line-height: 1.6;
  margin-top: 1.75rem;
}

/* Sections */
section {
  padding: 6rem 0;
}

/* First section after hero — less top breathing room needed */
#services {
  padding-top: 3.5rem;
}

/* Cards (Glassmorphism) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card h3 {
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.card a {
  display: inline-block;
  font-weight: 600;
  font-family: var(--font-head);
  margin-top: auto;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: 0 0 30px -10px var(--brand-glow);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0;
  background: rgba(2, 6, 23, 0.5);
  color: var(--muted);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--brand);
  color: #0f172a;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .btn,
  a {
    transition: none;
  }

  .hamburger span {
    transition: none;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 1rem 0;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    align-items: center;
    margin-top: 1rem;
    order: 3;
  }

  .menu.open {
    display: flex;
  }

  .menu a:not(.btn) {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .menu a:not(.btn):last-of-type {
    border-bottom: none;
  }

  .menu .btn {
    width: 100%;
    margin-top: 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }
}

/* Desktop: hide hamburger */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

/* Highlight Section */
.highlight-section {
  background: rgba(30, 41, 59, 0.4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.highlight-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.highlight-section .container {
  position: relative;
  z-index: 2;
}

/* Trust Signal */
.trust-signal {
  margin-top: 2.75rem;
  margin-bottom: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* Steps Grid (How It Works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.step-card {
  position: relative;
}

.step-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}

.step-card h3 {
  margin-top: 0;
}

/* Pricing */
.pricing-grid {
  margin-top: 2.5rem;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: visible;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.pricing-featured {
  border-color: var(--brand);
  box-shadow: 0 0 40px -10px var(--brand-glow);
}

.pricing-tag {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.pricing-price {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.pricing-card p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.5rem;
  flex: 1;
}

.pricing-features li {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* Industries Grid (Nashville Social Proof) */
.industries-grid {
  margin-top: 2.5rem;
}

.industry-card {
  text-align: left;
}

.industry-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.industry-card-link:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.08);
  text-decoration: none;
  color: inherit;
}

.industry-cta {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: gap 0.2s;
}

.industry-card-link:hover .industry-cta {
  text-decoration: underline;
}

.industry-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.industry-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

/* Audit Form (Lead Capture) */
.audit-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.audit-form input,
.audit-form select,
.audit-form textarea {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.audit-form input:focus,
.audit-form select:focus,
.audit-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.audit-form input::placeholder,
.audit-form textarea::placeholder {
  color: rgba(148, 163, 184, 0.4);
}

.audit-form select option {
  background: #1e293b;
  color: var(--ink);
}

.audit-form textarea {
  resize: vertical;
  min-height: 88px;
}

.audit-submit {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 1rem 2rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Case Study: Embedded Demo Iframes */
@media (max-width: 768px) {
  .container iframe {
    height: 520px !important;
  }
}

/* Print styles */
@media print {
  .topbar,
  .hamburger,
  .btn,
  footer nav {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  h1, h2, h3 {
    color: black;
    -webkit-text-fill-color: black;
    background: none;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  .card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  section {
    padding: 1rem 0;
  }
}