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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #fdf8fd;
  color: #1d1b20;
}

m3e-app-bar {
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a,
.hero-actions a {
  text-decoration: none;
  color: inherit;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--md-sys-color-on-surface);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 3rem;
  max-width: 600px;
}

.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  display: flex;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--md-sys-color-on-surface);
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface-variant);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-card-header h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
}

.service-icon {
  color: var(--md-sys-color-primary);
  --m3e-icon-size: 32px;
}

m3e-card [slot="content"] p {
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
}

m3e-card [slot="footer"] {
  padding-top: 0.5rem;
}


.why-section {
  padding-top: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.about-grid > .about-item:nth-child(1) { grid-column: 1 / 3; }
.about-grid > .about-item:nth-child(2) { grid-column: 3 / 5; }
.about-grid > .about-item:nth-child(3) { grid-column: 1 / 3; }
.about-grid > .about-item:nth-child(4) { grid-column: 3 / 5; }
.about-grid > .about-item:nth-child(5) { grid-column: 2 / 4; }

.about-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-icon {
  color: var(--md-sys-color-primary);
  --m3e-icon-size: 40px;
}

.about-item h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
}

.about-item p {
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
}

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--md-sys-color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--md-sys-color-outline-variant);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.8125rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form m3e-form-field {
  width: 100%;
}

.contact-form textarea {
  padding-top: 1.25rem;
}

.contact-form > m3e-button[type="submit"] {
  align-self: flex-start;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-item m3e-icon {
  color: var(--md-sys-color-primary);
  --m3e-icon-size: 28px;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
}

.form-success p {
  color: var(--md-sys-color-on-surface-variant);
}

.form-error {
  color: var(--md-sys-color-error);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* About Page */
.about-hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.about-hero p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--md-sys-color-on-surface-variant);
  margin-top: 1rem;
}

.about-approach {
  margin-bottom: 4rem;
}

.about-approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stack-section {
  margin-bottom: 4rem;
}

.stack-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.stack-group h4 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-section {
  text-align: center;
  padding: 4rem 0 2rem;
}

.cta-section h3 {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.cta-section a {
  text-decoration: none;
}

/* AI Integration Page */
.ai-hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.ai-hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--md-sys-color-on-surface-variant);
  margin-top: 1rem;
}

.ai-services {
  margin-bottom: 4rem;
}

.ai-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.ai-credibility {
  margin-bottom: 4rem;
}

.ai-credibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.ai-credibility-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.ai-credibility-item h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
}

.ai-credibility-item p {
  font-size: 0.875rem;
  color: var(--md-sys-color-on-surface-variant);
}

.ai-credibility-proof {
  text-align: center;
  font-size: 1rem;
  color: var(--md-sys-color-on-surface-variant);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-style: italic;
}

.ai-how-it-works {
  margin-bottom: 4rem;
}

.ai-stepper {
  max-width: 600px;
  margin: 0 auto;
}

.ai-step {
  display: flex;
  gap: 1.5rem;
}

.ai-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ai-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1rem;
  flex-shrink: 0;
}

.ai-step-line {
  width: 2px;
  flex: 1;
  background: var(--md-sys-color-outline-variant);
  margin: 0.5rem 0;
}

.ai-step-content {
  padding-bottom: 2rem;
}

.ai-step-content h4 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 0.5rem;
}

.ai-step-content p {
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
}

/* Responsive Design */
.mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
  }

  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--md-sys-color-surface);
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions m3e-button {
    width: 100%;
  }

  section {
    padding: 3rem 0;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
  }

  .ai-services-grid {
    grid-template-columns: 1fr;
  }

  .ai-credibility-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid > .about-item:nth-child(n) {
    grid-column: auto;
  }

  .about-approach-grid {
    grid-template-columns: 1fr;
  }

  .stack-groups {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0 1rem;
  }

  .site-footer {
    padding: 0 1rem;
  }
}
