:root {
  /* Colors - Minimalist Palette */
  --color-white: #FFFFFF;
  --color-dark: #111111;
  --color-gray: #777777;
  --color-light-gray: #FAFAFC;
  --color-border: #EAEAEA;
  --color-primary: #000000; /* Primary is black for Apple-like look */
  --color-primary-hover: #333333;
  --color-accent: #2952FF; /* Just for small accents like links or icons */
  --color-alert-med: #F59E0B;
  --color-alert-high: #EF4444;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Layout */
  --container-width: 1000px; /* Narrower for editorial look */
  --section-padding: 14rem 2rem; /* Massive padding for airy look */
  --border-radius: 4px; /* Subtle corners */
  --transition-speed: 0.4s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-white);
  color: var(--color-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
}

p {
  color: var(--color-gray);
  margin-bottom: 2rem;
  font-size: 1.25rem;
  font-weight: 400;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-speed);
}

/* Layout Classes */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
}

.section {
  padding: var(--section-padding);
}

.section-light {
  background-color: var(--color-light-gray);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 500;
  border-radius: 40px; /* Pill shape for elegance */
  border: 1px solid var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(0.25, 0.1, 0.25, 1);
  text-align: center;
  font-size: 1.1rem;
}

.btn:hover, .btn:focus {
  background-color: var(--color-white);
  color: var(--color-primary);
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 2rem;
  transition: all var(--transition-speed);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-gray);
  animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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

.nav-links a {
  color: var(--color-gray);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

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

.nav-links a.btn {
  color: var(--color-white);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-dark);
}

/* Hero Vertical (Option 2) */
.hero-vertical-wrap {
  position: relative;
  width: 100%;
  background-color: var(--color-white);
  padding-top: 80px; /* Header offset */
  border-bottom: 1px solid var(--color-border);
}

.hero-message-block {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  border-bottom: 1px solid var(--color-light-gray);
}

.hero-message-block:last-child {
  border-bottom: none;
}

.hero-message-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-message-content h1, .hero-message-content h2 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--color-dark);
}

.hero-message-content p {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 3.5rem;
  color: var(--color-gray);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Features / Problem Section */
.problem-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.problem-section p {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.5;
  color: var(--color-dark);
}

/* Diagnostic Panel (Minimalist Redesign) */
.diagnostic-wrap {
  background-color: var(--color-white);
  padding: 0;
}

.diagnostic-wrap h2 {
  color: var(--color-dark);
  text-align: left;
  margin-bottom: 5rem;
}

.diag-category {
  margin-bottom: 4rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .diag-category {
    flex-direction: row;
    gap: 4rem;
  }
  .diag-category-title {
    flex: 0 0 250px;
    margin-bottom: 0;
  }
}

.diag-category-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  margin-bottom: 1.5rem;
}

.diag-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem 3rem;
}

.diag-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-light-gray);
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--color-dark);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.diag-item.scanned {
  opacity: 1;
  transform: translateX(0);
}

.diag-item .status-icon {
  font-size: 1rem;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Process Section */
.process-grid {
  display: flex;
  flex-direction: column;
  gap: 12rem; /* Much more space to force scrolling */
  margin-top: 8rem;
  padding-bottom: 5rem;
}

.process-step {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  padding: 0;
  border-bottom: none; /* Clean up the border for floating effect */
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-num {
  font-size: 3rem;
  font-weight: 200;
  color: var(--color-gray);
  width: 80px;
  line-height: 1;
}

.process-content {
  flex: 1;
  max-width: 600px;
}

.process-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.process-content p {
  font-size: 1.35rem;
  margin-bottom: 0;
  color: var(--color-gray);
  line-height: 1.8;
}

/* Why Us Section */
.why-us-content {
  text-align: left;
}

.why-us-content h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--color-dark);
  line-height: 1.2;
}

.why-us-content p {
  max-width: 700px;
}

/* Social Proof placeholder */
.social-proof {
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.logos-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  opacity: 0.3;
}
.placeholder-logo {
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--color-dark);
  letter-spacing: 0.1em;
}

/* Contact Form */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.contact-section p.text-center {
  text-align: center;
  margin-bottom: 4rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.form-control {
  width: 100%;
  padding: 1.25rem 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background-color: transparent;
  font-family: var(--font-main);
  font-size: 1.1rem;
  transition: border-color var(--transition-speed);
}

.form-control::placeholder {
  color: #CCCCCC;
}

.form-control:focus {
  outline: none;
  border-bottom-color: var(--color-dark);
}

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

.form-submit {
  width: 100%;
  font-size: 1.125rem;
  margin-top: 2rem;
}

/* Footer */
.footer {
  background-color: var(--color-light-gray);
  color: var(--color-dark);
  padding: 6rem 2rem 3rem;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.footer-col h4 {
  font-weight: 500;
  margin-bottom: 2rem;
  color: var(--color-dark);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.95rem;
  color: var(--color-gray);
}

.footer-bottom a {
  color: var(--color-gray);
}
.footer-bottom a:hover {
  color: var(--color-dark);
}

/* Generic Reveal Class */
.reveal {
  opacity: 0;
  transform: translateY(100px) scale(0.96);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-speed) cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover, .scroll-top-btn:focus {
  background-color: var(--color-primary-hover);
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  outline: none;
}

/* Responsive */
@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--color-border);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .section {
    padding: 5rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .process-grid {
    gap: 4rem;
  }
  .process-step {
    flex-direction: column;
    gap: 1rem;
  }
  .step-num {
    font-size: 2.5rem;
    width: auto;
  }
  .process-content h3 {
    font-size: 1.8rem;
  }
  .logos-grid {
    gap: 2rem;
  }
}

/* Accessibility Preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
