/* ============================================
   DFP-MWS Marketing Website Styles
   Clean, modern, contractor-friendly
   Dark-only visual system
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #f0f4ff;
  --color-primary-light: #c8d6f0;
  --color-accent: #00d4ff;
  --color-accent-hover: #33dfff;
  --color-accent-rgb: 0, 212, 255;
  --color-bg: #050810;
  --color-bg-alt: #0a0f1a;
  --color-bg-dark: #030508;
  --color-bg-surface: #0e1525;
  --color-text: #f0f4ff;
  --color-text-light: #8892b0;
  --color-text-on-dark: #e2e8f0;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-success: #10b981;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -4px rgba(0,0,0,0.3);
  --shadow-glow: 0 12px 40px rgba(var(--color-accent-rgb), 0.2);
  --card-bg: rgba(14, 21, 37, 0.8);
  --card-hover-border: var(--color-accent);
  --nav-bg: rgba(5, 8, 16, 0.85);
  --nav-links-bg: rgba(5, 8, 16, 0.95);
  --input-bg: rgba(14, 21, 37, 0.6);
  --hero-gradient-start: var(--color-bg-alt);
  --hero-gradient-end: var(--color-bg);
  --step-number-bg: var(--color-accent);
  --highlight-bg: rgba(14, 21, 37, 0.9);
  --icon-bg: rgba(0, 212, 255, 0.1);
  --tag-bg: rgba(14, 21, 37, 0.6);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.bg-effects {
  display: block;
}

.stars {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 200px 60px, rgba(0,212,255,0.5), transparent),
    radial-gradient(1px 1px at 250px 150px, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 300px 40px, rgba(0,212,255,0.3), transparent);
  background-size: 350px 200px;
  animation: twinkle 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.nebula {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 212, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 60% at 80% 30%, rgba(0, 212, 255, 0.05), transparent 50%),
    radial-gradient(ellipse 90% 70% at 50% 90%, rgba(0, 212, 255, 0.04), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

/* --- Layout --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: center;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto 16px;
  text-align: center;
  line-height: 1.7;
}

/* --- Static Pages --- */
.page-main {
  background: var(--color-bg);
}

.page-hero {
  padding: 152px 0 72px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.page-hero .container {
  max-width: 820px;
}

.page-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.page-hero p:last-child {
  font-size: 1.15rem;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 700px;
}

.page-section {
  padding: 72px 0 96px;
}

.page-content {
  max-width: 760px;
}

.page-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-primary);
  margin: 36px 0 10px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.75;
}

.page-content a:not(.btn) {
  color: var(--color-accent);
  font-weight: 600;
}

.page-content a:not(.btn):hover {
  color: var(--color-accent-hover);
}

.privacy-updated {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 32px;
}

.page-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.page-cta h2 {
  margin-top: 0;
}

.page-cta .btn {
  margin-top: 8px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  padding: 12px 28px;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--color-accent);
  color: #050810;
  box-shadow: 0 1px 3px rgba(var(--color-accent-rgb), 0.3);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 8px 30px rgba(var(--color-accent-rgb), 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.05);
}

/* --- Hero --- */
.hero {
  padding: 160px 0 96px;
  background: linear-gradient(180deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
  position: relative;
}

.hero-content {
  max-width: 720px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-accent);
}

/* --- Problem / Stats --- */
.problem {
  background: var(--color-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px rgba(var(--color-accent-rgb), 0.2);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--color-accent);
}

.stat-icon svg {
  width: 100%;
  height: 100%;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* --- Solution / Steps --- */
.solution {
  background: var(--color-bg-alt);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step-card {
  position: relative;
  padding: 32px 28px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-subtle);
  backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px rgba(var(--color-accent-rgb), 0.2);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--step-number-bg);
  color: #050810;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.ttfr-highlight {
  margin-top: 48px;
  text-align: center;
  padding: 32px;
  background: var(--highlight-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
}

.ttfr-highlight p {
  font-size: 1.35rem;
  color: var(--color-text-on-dark);
  font-weight: 500;
}

.ttfr-highlight strong {
  color: var(--color-accent);
  font-weight: 800;
}

/* --- How It Works --- */
.how-it-works {
  background: var(--color-bg);
}

.simple-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 48px 0 40px;
  flex-wrap: wrap;
}

.simple-step {
  text-align: center;
  padding: 32px 24px;
  max-width: 220px;
}

.simple-step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--color-accent);
  background: var(--icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.simple-step:hover .simple-step-icon {
  box-shadow: 0 0 24px rgba(var(--color-accent-rgb), 0.25);
  transform: scale(1.05);
}

.simple-step-icon svg {
  width: 100%;
  height: 100%;
}

.simple-step p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
}

.simple-step-arrow {
  width: 24px;
  height: 24px;
  color: var(--color-text-light);
  flex-shrink: 0;
}

.simple-step-arrow svg {
  width: 100%;
  height: 100%;
}

.no-hassle-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 48px;
  max-width: 520px;
  margin: 0 auto;
}

.no-hassle-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

/* --- Benefits --- */
.benefits {
  background: var(--color-bg-alt);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.benefit-card {
  padding: 32px 24px;
  background: var(--card-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px rgba(var(--color-accent-rgb), 0.2);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  color: var(--color-accent);
  margin-bottom: 16px;
  transition: transform 0.25s ease;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1);
}

.benefit-icon svg {
  width: 100%;
  height: 100%;
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.bold-statement {
  margin-top: 48px;
  text-align: center;
  padding: 32px;
  background: var(--highlight-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
}

.bold-statement p {
  font-size: 1.35rem;
  color: var(--color-text-on-dark);
  font-weight: 500;
}

.bold-statement strong {
  color: var(--color-accent);
  font-weight: 800;
}

/* --- Trust --- */
.trust {
  background: var(--color-bg);
}

.trust-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.trust-lead {
  font-size: 1.2rem;
  color: var(--color-text);
  line-height: 1.7;
  font-weight: 500;
}

.trust-divider {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: 28px auto;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(var(--color-accent-rgb), 0.3);
}

.trust-reassure {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 36px;
}

.trust-trades {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.trade-tag {
  display: inline-block;
  padding: 8px 20px;
  background: var(--tag-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.trade-tag:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--color-accent-rgb), 0.15);
}

/* --- CTA / Contact --- */
.cta {
  background: var(--color-bg-alt);
}

.contact-wrapper {
  max-width: 600px;
  margin: 40px auto 0;
  position: relative;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 40px;
  background: var(--card-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

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

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #4a5568;
}

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

.form-success {
  display: none;
  text-align: center;
  padding: 60px 40px;
  background: var(--card-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.form-success.show {
  display: block;
}

.form-success svg {
  width: 56px;
  height: 56px;
  color: var(--color-success);
  margin: 0 auto 20px;
}

.form-success h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--color-text-light);
}

/* --- Closing --- */
.closing {
  padding: 64px 0;
  background: var(--color-bg);
  text-align: center;
}

.closing-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  padding: 48px 0;
  color: var(--color-text-on-dark);
  border-top: 1px solid var(--color-border-subtle);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #8892b0;
  transition: color 0.2s ease;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 8px;
}

.footer-copy p {
  font-size: 0.8rem;
  color: #64748b;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .stats-grid,
  .steps-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero {
    padding: 120px 0 72px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .page-hero {
    padding: 120px 0 56px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .page-section {
    padding: 56px 0 72px;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .hero-bullets {
    grid-template-columns: 1fr;
  }

  /* Nav mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--nav-links-bg);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

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

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

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Grids */
  .stats-grid,
  .steps-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .simple-steps {
    flex-direction: column;
    gap: 8px;
  }

  .simple-step-arrow {
    transform: rotate(90deg);
  }

  .no-hassle-list {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .form-group-full {
    grid-column: 1;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .ttfr-highlight p,
  .bold-statement p {
    font-size: 1.1rem;
  }

  .closing-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }
}
