:root {
  /* Color Palette */
  --primary-color: #1A1C20; /* Deep Charcoal */
  --secondary-color: #005B96; /* Wet-Look Blue - ACCENT */
  --accent-color: #E0E5EC; /* Glossy Silver/Chrome */
  --neutral-color: #4A5568; /* Slate Gray */
  
  /* Background / Surface */
  --bg-color: var(--primary-color);
  --surface-color: #23262B;
  --text-main: #ffffff;
  --text-light: #E0E5EC;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Spacing Scale */
  --space-4: 0.25rem;
  --space-8: 0.5rem;
  --space-16: 1rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-48: 3rem;
  --space-64: 4rem;
  --space-80: 5rem;
  --space-120: 7.5rem;
  
  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(26, 28, 32, 0.1);
  --shadow-md: 0 4px 6px rgba(26, 28, 32, 0.1);
  --shadow-lg: 0 10px 15px rgba(26, 28, 32, 0.1);
  
  /* Transitions */
  --transition-slow: 0.4s ease;
  --transition-normal: 0.2s ease;
}

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

body, h1, h2, h3, p, ul, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px base for literary feel */
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition-normal);
}

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

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary-color);
  color: white;
  padding: 8px;
  z-index: 100;
}
.skip-link:focus {
  top: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: var(--space-16);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-24);
  color: var(--text-light);
}

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

section {
  padding: var(--space-120) 0; /* Spacious density */
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: var(--space-24) 0;
  border-bottom: 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu-toggle:hover {
  background: transparent;
  color: white;
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.login-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.login-link:hover {
  color: white;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  color: white; /* overlay on hero */
}

.logo-link:hover {
  color: var(--accent-color);
}

.site-logo {
  height: 40px;
  width: auto;
  /* filter removed */ /* make it white for hero overlay */
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.primary-nav ul {
  display: flex;
  gap: var(--space-16);
}

.primary-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: color var(--transition-normal);
}

.primary-nav a:hover {
  color: white;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transition-normal), transform var(--transition-normal), opacity var(--transition-normal);
  border: none;
  font-family: var(--font-body);
}

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

.button-primary {
  background-color: var(--secondary-color);
  color: white;
}

.button-primary:hover {
  background-color: #004470;
  color: white;
}

.button-secondary {
  color: white;
  background: rgba(26, 28, 32, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.button-secondary:hover {
  color: white;
  background: rgba(255, 255, 255, 0.14);
}

.button-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* Hero Section (Full Bleed Image Overlay) */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(26, 28, 32, 0.9) 0%, rgba(26, 28, 32, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
}

.hero-content h1 {
  color: white;
  margin-bottom: var(--space-24);
}

.hero-subheadline {
  color: var(--accent-color);
  font-size: 1.25rem;
  margin-bottom: var(--space-48);
  max-width: 600px;
}

/* Narrative Sections */
.narrative-section {
  background-color: var(--bg-color);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: center;
}

.split-layout.reverse .split-content {
  order: 2;
}

.split-layout.reverse .split-media {
  order: 1;
}

.split-content p {
  font-size: 1.25rem;
}

.split-media img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* Features */
.features-section {
  background-color: var(--surface-color);
}

.section-title {
  text-align: left;
  margin-bottom: var(--space-64);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-48);
}

.feature-card {
  background: var(--surface-color);
  padding: var(--space-32);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-icon {
  height: 48px;
  width: auto;
  margin-bottom: var(--space-24);
}

/* Pricing */
.pricing-section {
  background: linear-gradient(135deg, #17191d 0%, #202834 100%);
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: var(--space-64);
  align-items: center;
}

.pricing-copy {
  max-width: 620px;
}

.pricing-eyebrow,
.pricing-kicker {
  display: block;
  color: #69bff8;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-16);
}

.pricing-copy p {
  max-width: 560px;
  font-size: 1.2rem;
}

.pricing-card {
  padding: var(--space-48);
  border: 1px solid rgba(105, 191, 248, 0.34);
  border-radius: var(--radius-lg);
  background: rgba(35, 38, 43, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
  color: white;
  margin-bottom: var(--space-32);
}

.pricing-price strong {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
}

.pricing-price span {
  color: var(--text-light);
}

.pricing-features {
  display: grid;
  gap: 12px;
  margin-bottom: var(--space-32);
}

.pricing-features li {
  position: relative;
  padding-left: 28px;
  color: var(--text-light);
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #69bff8;
  font-weight: 700;
}

.pricing-note {
  margin: var(--space-16) 0 0;
  color: rgba(224, 229, 236, 0.7);
  font-size: 0.88rem;
}

/* Testimonials */
.testimonials-section {
  background-color: var(--bg-color);
  text-align: left;
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 var(--space-16);
}

.problem-container {
  max-width: 800px;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: var(--space-24);
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-main);
}

.testimonial-role {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* FAQ */
.faq-section {
  background-color: var(--surface-color);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-16);
}

.faq-item {
  background: var(--surface-color);
  padding: var(--space-32);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  margin-bottom: var(--space-16);
}

/* CTA */
.cta-section {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: var(--space-120) var(--space-24);
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  color: var(--accent-color);
  max-width: 600px;
  margin: 0 auto var(--space-48);
  font-size: 1.25rem;
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: var(--accent-color);
  padding: var(--space-80) 0 var(--space-32);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-64);
  margin-bottom: var(--space-64);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  margin-bottom: var(--space-16);
}

.footer-logo img {
  height: 32px;
  /* filter removed */
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: white;
}

.footer-brand p {
  color: var(--accent-color);
  max-width: 300px;
  margin-bottom: var(--space-24);
}

.social-links a {
  color: white;
}

.footer-nav {
  display: flex;
  gap: var(--space-64);
}

.footer-col h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-24);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

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

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-32);
  color: rgba(224, 229, 236, 0.5);
  font-size: 0.875rem;
}

/* Motion Philosophy: Subtle Fades */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */

@media (min-width: 769px) {
  .solution-section .split-layout {
    grid-template-columns: 1.25fr 1fr;
  }
}

@media (max-width: 768px) {
  /* We removed flex-direction: column here to keep logo and hamburger inline */

  
  .primary-nav ul {
    gap: var(--space-16);
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .pricing-layout {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .pricing-card {
    padding: var(--space-32);
  }
  
  .split-layout.reverse .split-content {
    order: 1;
  }
  
  .split-layout.reverse .split-media {
    order: 2;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: var(--space-16);
  }
}

/* Issue 7 mobile fix for features */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Issue 5: Darker hero scrim on mobile */
@media (max-width: 768px) {
  .hero-bg::after {
    background: linear-gradient(to right, rgba(26, 28, 32, 0.95) 0%, rgba(26, 28, 32, 0.85) 100%);
  }
}

/* Issue 3: Mobile menu toggle styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block !important;
  }
  .primary-nav, .header-actions {
    display: none;
    width: 100%;
    margin-top: var(--space-16);
  }
  .primary-nav.is-open, .header-actions.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 320px;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: center;
  }
  .header-container {
    flex-wrap: wrap;
  }
}

/* Issue 5: Add vertical padding to the top of the hero container on mobile */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 160px;
  }
}

/* Testimonials Mobile alignment */
@media (max-width: 768px) {
  .testimonials-section {
    text-align: left;
  }
}

/* Reduce section padding on mobile to balance spacing around mockups */
@media (max-width: 768px) {
  section {
    padding: var(--space-64) 0;
  }
}
