/* ============================================================================
   StewAIrd Marketing Site - Enterprise CSS
   Deep navy, refined blue, clean typography, professional polish
   ============================================================================ */

:root {
  --dark-navy: #0F1B2D;
  --primary-blue: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --secondary-blue: #1E40AF;
  --accent-gray: #F8FAFC;
  --text-dark: #1F2937;
  --text-medium: #6B7280;
  --text-light: #9CA3AF;
  --border-light: #E5E7EB;
  --white: #FFFFFF;
  --success: #10B981;
  --success-light: #D1FAE5;
}

/* ============================================================================
   Global Styles
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-navy);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
}

h3 {
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  color: var(--text-medium);
  margin-bottom: 1rem;
  line-height: 1.7;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: none;
  font-family: 'Inter', sans-serif;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-blue);
  border: 1.5px solid var(--border-light);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background-color: var(--accent-gray);
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.btn-large {
  padding: 14px 40px;
  font-size: 1rem;
}

.cta-button {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* ============================================================================
   Navigation
   ============================================================================ */

.navbar {
  position: sticky;
  top: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark-navy);
}

.logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-medium);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.nav-links a.active {
  color: var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
    margin-top: 0.5rem;
    text-align: center;
  }

  .navbar {
    position: relative;
  }

  .nav-container {
    position: relative;
  }
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  min-height: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--dark-navy);
}

.hero-content > p {
  font-size: 1.125rem;
  color: var(--text-medium);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

/* Geometric pattern background */
.geometric-pattern {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%),
              repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(37, 99, 235, 0.03) 2px, rgba(37, 99, 235, 0.03) 4px),
              repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(37, 99, 235, 0.02) 2px, rgba(37, 99, 235, 0.02) 4px);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 24px rgba(15, 27, 45, 0.06);
  position: relative;
  overflow: hidden;
}

.geometric-pattern::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  top: -50px;
  right: -50px;
}

.geometric-pattern::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -30px;
  left: 10%;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 2rem;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

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

  .hero-visual {
    height: 300px;
  }
}

/* ============================================================================
   Value Pillars Section
   ============================================================================ */

.value-pillars {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 2rem;
  background-color: var(--accent-gray);
}

.value-pillars h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.pillar {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  border-left: 3px solid var(--primary-blue);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(15, 27, 45, 0.08);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
}

.pillar h3 {
  margin-bottom: 0.75rem;
  color: var(--dark-navy);
  font-size: 1.25rem;
}

.pillar p {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ============================================================================
   Platform Section
   ============================================================================ */

.platform {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 2rem;
}

.platform h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.flow-step {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  border-top: 3px solid var(--primary-blue);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--primary-blue);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.flow-step:hover {
  box-shadow: 0 8px 24px rgba(15, 27, 45, 0.08);
}

.step-number {
  display: inline-block;
  width: 44px;
  height: 44px;
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  line-height: 44px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.flow-step h3 {
  margin-bottom: 0.75rem;
  color: var(--dark-navy);
  font-size: 1.2rem;
}

.flow-step p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.step-visual {
  background-color: var(--accent-gray);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.rule-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rule-label {
  display: block;
  font-weight: 600;
  color: var(--dark-navy);
  font-size: 0.95rem;
}

.rule-source {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.assessment-box,
.routing-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.assess-item,
.route-item {
  padding: 0.75rem 1rem;
  background-color: var(--primary-light);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--primary-blue);
}

.timeline-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.timeline-item {
  padding: 0.75rem 1.25rem;
  background-color: var(--success);
  color: var(--white);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  flex: 1;
  text-align: center;
}

.timeline-arrow {
  color: var(--primary-blue);
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ============================================================================
   Solutions Section
   ============================================================================ */

.solutions {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 2rem;
  background-color: var(--accent-gray);
}

.solutions h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.solution-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(15, 27, 45, 0.08);
}

.solution-icon {
  width: 56px;
  height: 56px;
  background-color: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

.solution-icon svg {
  width: 24px;
  height: 24px;
}

.solution-card h3 {
  margin-bottom: 0.75rem;
  color: var(--dark-navy);
  font-size: 1.25rem;
}

.solution-card p {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  flex-grow: 1;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: fit-content;
}

.solution-link:hover {
  color: var(--primary-dark);
  gap: 6px;
}

.solution-link::after {
  content: '→';
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.solution-link:hover::after {
  transform: translateX(4px);
}

/* ============================================================================
   Why StewAIrd Section
   ============================================================================ */

.why-stewaird {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 2rem;
}

.why-stewaird h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.feature {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  display: inline-block;
  width: 56px;
  height: 56px;
  background-color: var(--success-light);
  color: var(--success);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--dark-navy);
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ============================================================================
   Testimonials Section
   ============================================================================ */

.testimonials {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 2rem;
  background-color: var(--accent-gray);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.testimonial {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  border-left: 3px solid var(--primary-blue);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.testimonial:hover {
  box-shadow: 0 8px 24px rgba(15, 27, 45, 0.08);
}

.quote {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
}

.quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-light);
  position: absolute;
  top: -15px;
  left: -10px;
}

.testimonial-author {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.testimonial-author .name {
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.testimonial-author .title {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================================================
   Stats Section
   ============================================================================ */

.stats {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat {
  padding: 2.5rem 2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.stat p {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 0;
}

/* ============================================================================
   CTA Section
   ============================================================================ */

.cta-final {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(37, 99, 235, 0.03) 100%);
  border-radius: 16px;
  margin-bottom: 4rem;
  border: 1px solid var(--border-light);
}

.cta-final h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark-navy);
}

.cta-final > p {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
  background-color: var(--dark-navy);
  color: var(--white);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: #B0BCD4;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-blue);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #8699B0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 60px 2rem;
    min-height: auto;
  }

  .hero-visual {
    max-height: 300px;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .hero {
    padding: 48px 1.5rem;
    text-align: center;
  }

  .hero-content > p {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-visual {
    display: none;
  }

  .btn {
    width: 100%;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .solutions-grid,
  .pillars-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .process-flow {
    grid-template-columns: 1fr;
  }

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

  .value-pillars,
  .platform,
  .solutions,
  .why-stewaird,
  .testimonials {
    padding: 56px 1.5rem;
  }

  .pillar,
  .solution-card,
  .flow-step {
    padding: 2rem;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-final {
    padding: 56px 1.5rem;
    margin: 0 1rem 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  .hero {
    padding: 36px 1rem;
  }

  .hero-content > p {
    font-size: 0.95rem;
  }

  .value-pillars,
  .platform,
  .solutions,
  .why-stewaird,
  .testimonials {
    padding: 40px 1rem;
  }

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

  .stat-number {
    font-size: 2rem;
  }

  .cta-final {
    padding: 40px 1rem;
  }
}

/* ============================================================================
   Animations
   ============================================================================ */

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

.pillar,
.solution-card,
.feature,
.testimonial,
.flow-step {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.pillar {
  animation-delay: 0.1s;
}

.pillar:nth-child(2) {
  animation-delay: 0.2s;
}

.pillar:nth-child(3) {
  animation-delay: 0.3s;
}
