:root {
  --color-primary: #0066CC;
  --color-primary-hover: #0052A3;
  --color-secondary: #F5F5F5;
  --color-secondary-hover: #E8E8E8;
  --color-text: #1a1a1a;
  --color-text-light: #666;
  --color-border: #E0E0E0;
  --color-bg: #FFFFFF;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --radius: 8px;
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-16) 0;
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: clamp(28px, 6vw, 48px); }
h2 { font-size: clamp(24px, 5vw, 36px); }
h3 { font-size: clamp(20px, 4vw, 28px); }
h4 { font-size: 18px; }

p {
  margin: 0 0 var(--space-16) 0;
  color: var(--color-text-light);
}

.muted {
  color: var(--color-text-light);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-20);
  width: 100%;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-24);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Header */
.header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-16) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 28px;
  width: auto;
}

.header nav {
  display: flex;
  gap: var(--space-24);
  flex: 1;
}

.header nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.header nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.actions {
  display: flex;
  gap: var(--space-12);
  align-items: center;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-secondary-hover);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-8);
  margin: calc(var(--space-8) * -1);
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Sections */
.hero {
  padding: clamp(40px, 10vh, 80px) 0;
  text-align: center;
}

.hero h1 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-20);
}

.hero p {
  max-width: 600px;
  margin: 0 auto var(--space-32);
  font-size: clamp(16px, 3vw, 18px);
}

.badge {
  display: inline-block;
  background: #E3F2FD;
  color: var(--color-primary);
  padding: var(--space-8) var(--space-16);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: var(--space-20);
}

.cta-row {
  display: flex;
  gap: var(--space-12);
  justify-content: center;
  margin-bottom: var(--space-32);
  flex-wrap: wrap;
}

.section {
  padding: clamp(40px, 8vh, 60px) 0;
}

.section .kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-8);
}

.section h2 {
  max-width: 700px;
}

.section > .container > p:nth-of-type(2) {
  max-width: 700px;
  margin-bottom: var(--space-32);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-24);
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(16px, 4vw, 24px);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.card h3 {
  margin-top: 0;
  font-size: 18px;
}

.card p {
  margin: 0;
}

.card-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-24);
  align-items: center;
  justify-content: space-between;
}

.cta-actions {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: #F9F9F9;
  border-top: 1px solid var(--color-border);
  padding: clamp(32px, 8vh, 48px) 0;
  margin-top: var(--space-32);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-24);
  margin-bottom: var(--space-24);
}

.footer h4 {
  margin-top: 0;
  font-size: 14px;
  font-weight: 600;
}

.footer ul.clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul.clean li {
  margin-bottom: var(--space-8);
  border: none;
}

.footer ul.clean a {
  font-size: 14px;
  color: var(--color-text-light);
}

.footer ul.clean a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom small {
  color: var(--color-text-light);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-16);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-12);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Contact & Signup */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-32);
}

.contact-form {
  max-width: 500px;
}

.contact-info {
  background: var(--color-secondary);
  padding: var(--space-24);
  border-radius: var(--radius);
}

.contact-info h3 {
  margin-top: 0;
}

.signup-form {
  max-width: 400px;
  margin: 0 auto;
}

.pricing-card {
  max-width: 500px;
  margin: 0 auto;
}

.price {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 700;
  margin: var(--space-24) 0;
}

.per-location {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-light);
}

.faqs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-24);
}

.faq {
  background: var(--color-secondary);
  padding: var(--space-20);
  border-radius: var(--radius);
}

.faq h4 {
  margin-top: 0;
}

.faq p {
  margin: 0;
}

/* Responsive Design */

/* Tablets and small screens */
@media (max-width: 768px) {
  .header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-16) var(--space-20);
    gap: var(--space-16);
    margin: 0;
    z-index: 99;
  }

  .header nav.active {
    display: flex;
  }

  .header nav a {
    font-size: 16px;
    padding: var(--space-8) 0;
  }

  .menu-toggle {
    display: flex;
  }

  .header .actions {
    flex-direction: column;
    width: 100%;
    gap: var(--space-8);
  }

  .header .actions .btn {
    width: 100%;
  }

  .header .nav-wrapper {
    flex-wrap: wrap;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }

  .card-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    width: 100%;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .hero picture {
    margin-top: var(--space-32);
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-16);
  }

  h1 { font-size: 24px; }
  h2 { font-size: 20px; }

  .hero {
    padding: 24px 0 40px;
  }

  .section {
    padding: 24px 0 40px;
  }

  .badge {
    font-size: 11px;
    padding: var(--space-4) var(--space-12);
  }

  .cta-row {
    flex-direction: column;
    gap: var(--space-8);
  }

  .btn {
    padding: var(--space-12) var(--space-16);
    font-size: 13px;
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .card {
    padding: var(--space-16);
  }

  .price {
    font-size: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* iPad & Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-32);
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .btn {
    padding: var(--space-16) var(--space-24);
  }

  .card {
    padding: var(--space-20);
  }
}

/* Dark mode (optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #F5F5F5;
    --color-text-light: #B0B0B0;
    --color-bg: #1a1a1a;
    --color-border: #333;
    --color-secondary: #2a2a2a;
    --color-secondary-hover: #333;
  }

  .badge {
    background: rgba(0, 102, 204, 0.2);
  }

  .footer {
    background: #0f0f0f;
    border-top-color: #333;
  }

  .contact-info {
    background: var(--color-secondary);
  }

  .faq {
    background: var(--color-secondary);
  }
}
