/* AGENCY OS — Public Business Website Stylesheet
   Design System: Premium B2B Dark SaaS Aesthetic (Linear + Stripe style)
*/

:root {
  --bg-page: #090d16;
  --bg-page-alt: #0b111e;
  --bg-card: #0f1626;
  --bg-card-hover: #131d33;
  --bg-card-inner: #080d18;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-active: rgba(139, 92, 246, 0.35);

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-dim: #475569;

  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-dim: rgba(139, 92, 246, 0.12);
  --purple-border: rgba(139, 92, 246, 0.25);

  --teal: #14b8a6;
  --teal-dim: rgba(20, 184, 166, 0.12);
  --teal-border: rgba(20, 184, 166, 0.25);

  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.12);

  --blue: #38bdf8;
  --blue-dim: rgba(56, 189, 248, 0.12);

  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.12);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-max: 1180px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

/* Layout Utilities */
.site-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* 1. Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.25);
}

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

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-portal {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-portal:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-portal-dashboard {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c4b5fd;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-portal-dashboard:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.7);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

.btn-primary-header {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--purple);
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px rgba(139, 92, 246, 0.3);
}

.btn-primary-header:hover {
  background: #7c3aed;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.45);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
}

/* 2. Hero Section */
.hero-section {
  padding: 100px 0 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-glow-bg {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 420px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(9, 13, 22, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-dim);
  border: 1px solid var(--purple-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 24px;
}

.badge-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}

.hero-headline {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-subheadline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  padding: 13px 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, #9061f9 0%, #8b5cf6 100%);
}

.btn-cta-secondary {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
  color: #ffffff;
}

/* Capability Badges */
.capability-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
}

.capability-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.capability-item svg {
  color: var(--teal);
  flex-shrink: 0;
}

/* 3. Section Headers */
.section-block {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-block.alt-bg {
  background-color: var(--bg-page-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px auto;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 10px;
  display: inline-block;
}

.section-title {
  font-size: 2.15rem;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* 4. Services Grid (6 Cards) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 28px 24px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.service-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.service-icon-box.purple {
  background: var(--purple-dim);
  color: var(--purple-light);
  border: 1px solid var(--purple-border);
}

.service-icon-box.teal {
  background: var(--teal-dim);
  color: #2dd4bf;
  border: 1px solid var(--teal-border);
}

.service-icon-box.blue {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.service-icon-box.green {
  background: var(--green-dim);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.service-icon-box.amber {
  background: var(--amber-dim);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.service-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.service-features-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.service-feature-item svg {
  color: var(--teal);
  flex-shrink: 0;
}

/* 5. Who We Help Section */
.who-we-help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.help-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.15s ease;
}

.help-card:hover {
  border-color: var(--border-hover);
}

.help-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.help-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  flex-shrink: 0;
}

.help-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.help-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 6. How We Work (4-Step Process) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 26px 20px;
  position: relative;
  transition: all 0.18s ease;
}

.process-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.process-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.process-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 7. About Section */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 44px 40px;
  max-width: 960px;
  margin: 0 auto;
}

.about-lead-statement {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 24px;
  border-left: 3px solid var(--purple);
  padding-left: 20px;
}

.about-body-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
}

.about-pillar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-pillar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.about-pillar-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 8. Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 40px;
  max-width: 960px;
  margin: 0 auto;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.contact-info-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 28px;
}

.contact-direct-box {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.contact-direct-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-direct-val {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--purple-light);
  font-weight: 600;
  word-break: break-all;
}

.contact-security-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 0.9rem;
  color: #ffffff;
  font-family: inherit;
  transition: all 0.15s ease;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-select {
  cursor: pointer;
}

.form-select option {
  background: #0f1626;
  color: #ffffff;
}

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

.btn-submit-contact {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--purple);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.btn-submit-contact:hover {
  background: #7c3aed;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

.btn-submit-contact:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-alert {
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  display: none;
}

.contact-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.contact-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* 9. Modals (Privacy & Terms) */
.site-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.site-modal.active {
  display: flex;
}

.modal-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.3rem;
  padding: 4px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.modal-body h4 {
  margin: 16px 0 6px 0;
  font-size: 0.95rem;
}

.modal-body p {
  margin-bottom: 12px;
}

/* 10. Footer */
.site-footer {
  padding: 60px 0 40px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-page);
  font-size: 0.85rem;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a, .footer-links button {
  color: var(--text-muted);
  background: none;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}

.footer-links a:hover, .footer-links button:hover {
  color: var(--text-primary);
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .who-we-help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-headline {
    font-size: 2.4rem;
  }
  .hero-subheadline {
    font-size: 1rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .who-we-help-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .about-pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .about-card {
    padding: 28px 20px;
  }
  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .site-header {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .header-actions .btn-portal,
  .header-actions .btn-primary-header {
    display: none !important;
  }
  .header-actions {
    gap: 8px;
  }
  .hero-section {
    overflow: hidden;
    max-width: 100vw;
  }
  .hero-glow-bg {
    max-width: 100vw;
    width: 320px;
  }
}