/* CSS Variables */
:root {
  --navy: #0F172A;
  --teal: #0891B2;
  --teal-hover: #067c99;
  --light-grey: #E2E8F0;
  --white: #FFFFFF;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --border-color: #CBD5E1;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

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

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

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

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bg-light {
  background-color: #F8FAFC;
}

.bg-navy {
  background-color: var(--navy);
  color: var(--white);
}

.bg-navy h2, .bg-navy h3, .bg-navy h4, .bg-navy p {
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.text-left {
  text-align: left;
  margin-left: 0;
}

section {
  padding: 6rem 0;
}

/* Buttons */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #1e293b;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-secondary {
  background-color: var(--light-grey);
  color: var(--navy);
}

.btn-secondary:hover {
  background-color: #cbd5e1;
  color: var(--navy);
}

.btn-teal {
  background-color: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background-color: var(--teal-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
}

.btn-primary-outline {
  border-color: var(--navy);
  color: var(--navy);
  padding: 0.5rem 1.25rem;
}

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

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Trust Strip */
.trust-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  color: var(--light-grey);
  font-weight: 500;
  white-space: nowrap;
}

/* Header */
.site-header {
  padding: 1.25rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--light-grey);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover:not(.btn) {
  color: var(--teal);
}

.mobile-only-cta {
  display: none;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease-out;
}

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

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(8,145,178,0.05) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.subheadline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

/* Static Workflow Diagram */
.hero-visual {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.static-flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

.flow-box {
  width: 100%;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: var(--white);
  border: 2px solid var(--border-color);
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.flow-box strong {
  display: block;
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.flow-box span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.flow-box.messy {
  border-color: #94A3B8;
  border-style: dashed;
}

.flow-box.mapped {
  border-color: var(--teal);
}

.flow-box.bottleneck {
  border-color: #EF4444;
  background: #FEF2F2;
}

.flow-box.roadmap {
  background: var(--navy);
  border-color: var(--navy);
}
.flow-box.roadmap strong {
  color: var(--white);
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--teal);
  font-weight: bold;
}

/* Problem Section */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.problem-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border-color: var(--teal);
}

.problem-card .icon-svg {
  width: 40px;
  height: 40px;
  color: var(--teal);
  margin-bottom: 1rem;
}

.problem-highlight {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--navy);
  color: var(--white);
  border-radius: 0.5rem;
  font-size: 1.25rem;
  position: relative;
  overflow: hidden;
}

.problem-highlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, rgba(8,145,178,0.2) 0%, transparent 100%);
  z-index: 0;
}
.problem-highlight p {
  position: relative;
  z-index: 1;
}

/* Before & After */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.ba-card {
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
}

.ba-header {
  padding: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: var(--white);
}

.ba-card.before .ba-header {
  background: #64748B;
}

.ba-card.after .ba-header {
  background: var(--teal);
}

.ba-list {
  list-style: none;
  padding: 2rem;
}

.ba-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: var(--text-dark);
}

.ba-list li:last-child {
  margin-bottom: 0;
}

.x-mark {
  color: #EF4444;
  font-weight: bold;
}

.check-mark {
  color: #10B981;
  font-weight: bold;
}

/* Services */
.service-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-block {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.service-block:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.service-num {
  font-size: 4rem;
  font-weight: 800;
  color: var(--light-grey);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.service-block:hover .service-num {
  color: rgba(8, 145, 178, 0.1);
}

.service-block h3 {
  position: relative;
  z-index: 1;
  color: var(--teal);
  margin-bottom: 1rem;
}

/* Signature Offer */
.offer-container {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.offer-intro {
  font-size: 1.25rem;
  color: #94A3B8;
  margin-bottom: 2rem;
}

.deliverables-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.deliverables-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
}

.deliverables-list svg {
  color: var(--teal);
  width: 20px;
  height: 20px;
}

.offer-cta-box {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 0.5rem;
  text-align: center;
  position: relative;
}



.offer-cta-box h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.offer-cta-box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Method Steps */
.method-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.step {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 60px;
  height: 60px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--white);
  transition: transform 0.3s ease, background 0.3s ease;
}

.step:hover .step-circle {
  transform: scale(1.1);
  background: var(--teal);
}

.step-connector {
  flex: 1;
  height: 4px;
  background: var(--light-grey);
  margin-top: 30px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--teal);
  opacity: 0.2;
}

.method-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  background: var(--light-grey);
  padding: 1rem;
  border-radius: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Use Cases */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.use-case {
  background: var(--white);
  padding: 2rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--teal);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  display: flex;
  gap: 1rem;
}

.use-case:hover {
  transform: translateX(5px);
}

.use-case svg {
  width: 32px;
  height: 32px;
  color: var(--teal);
  flex-shrink: 0;
}

/* Why HPC */
.about-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.profile-image {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  transition: transform 0.5s ease;
}

.about-image-placeholder:hover .profile-image {
  transform: scale(1.02);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--teal);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--text-dark);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* CTA Section */
.final-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle, rgba(8,145,178,0.15) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
  border-radius: 50%;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta p {
  color: #94A3B8;
  margin-bottom: 3rem;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94A3B8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--text-muted);
  padding: 3rem 0 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--light-grey);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--teal);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .offer-container { grid-template-columns: 1fr; }
  .about-flex { grid-template-columns: 1fr; }
  .method-steps { flex-direction: column; align-items: center; gap: 2rem; }
  .step-connector { display: none; }
  .step { width: 100%; max-width: 300px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .main-nav { display: none; }
  .mobile-only-cta { display: inline-flex; }
  section { padding: 4rem 0; }
  .hero { padding: 4rem 0 3rem; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn { width: 100%; min-height: 48px; }
  .site-header .mobile-only-cta { width: auto; min-height: auto; padding: 0.5rem 1rem; }
  .ba-grid { grid-template-columns: 1fr; }
}

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