:root {
  /* Emerald Vector Flow Palette (Strictly No Blue) */
  --bg-canvas: #1c1f24;
  --bg-surface: #2a2e35;
  --bg-surface-hover: #373c45;
  --text-primary: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-primary: #10b981;
  --accent-secondary: #059669;
  --border-subtle: rgba(229, 231, 235, 0.1);
  --emerald-glow: 0 0 24px -4px var(--accent-primary);
  
  /* Advanced UI Micro-Interactions & Depth */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.25);
  --glass-backdrop: blur(16px) saturate(180%);
  --corner-radius: 20px;
}

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

html {
  lang: en;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

a:hover, a:focus-visible {
  color: var(--text-primary);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--corner-radius);
  object-fit: cover;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

/* Header & Brand (Strictly Left-Aligned Brand, Centered Nav below) */
header {
  position: relative;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 5%;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
}

.brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
  text-transform: lowercase;
}

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

.header-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-nav a:hover, .header-nav a.active {
  color: var(--accent-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: var(--bg-surface);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu a {
  padding: 0.75rem 0;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu a:hover {
  color: var(--accent-primary);
}

/* Main Container & Layout Architectures */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.content-wrapper {
  max-width: 72ch;
  margin: 0 auto;
}

/* Vertical Flow & Structural Sections */
.vertical-flow {
  position: relative;
  padding-top: 2rem;
}

.vertical-flow::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50px;
  width: 2px;
  background: var(--border-subtle);
  z-index: -1;
}

.flow-step {
  position: relative;
  padding: 4rem 5%;
  margin-bottom: 2rem;
}

.flow-number {
  position: absolute;
  left: 50px;
  top: 4rem;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--bg-canvas);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: Georgia, 'Times New Roman', serif;
  box-shadow: var(--shadow-elevation);
  z-index: 2;
}

.flow-content {
  padding-left: 80px;
}

/* Clip-path diagonal sections */
.clip-diagonal {
  background-color: var(--bg-surface);
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
  padding-top: 8vw;
  padding-bottom: 8vw;
}

.clip-curved {
  background-color: var(--bg-surface);
  clip-path: ellipse(150% 100% at 50% 100%);
  padding-bottom: 10vw;
}

/* Hero: Overlapping Images Layout */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-left: 80px; /* Offset for flow line */
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-images {
  position: relative;
  height: 500px;
}

.hero-img {
  position: absolute;
  border-radius: var(--corner-radius);
  box-shadow: var(--shadow-elevation);
  transition: transform 0.5s var(--ease-kinetic);
}

.hero-img-1 {
  width: 60%;
  top: 0;
  left: 0;
  z-index: 3;
}

.hero-img-2 {
  width: 55%;
  top: 20%;
  right: 0;
  z-index: 2;
}

.hero-img-3 {
  width: 65%;
  bottom: 0;
  left: 15%;
  z-index: 4;
}

.hero-images:hover .hero-img-1 { transform: translate(-10px, -10px); }
.hero-images:hover .hero-img-2 { transform: translate(10px, -10px); }
.hero-images:hover .hero-img-3 { transform: translate(0, 10px); }

/* List Rows (Replacing Cards) */
.list-row {
  display: flex;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 1.5rem;
  transition: background-color 0.3s var(--ease-kinetic);
}

.list-row:hover {
  background-color: var(--bg-surface-hover);
  border-radius: var(--corner-radius);
  padding-left: 1rem;
  padding-right: 1rem;
}

.list-row .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.list-row-content {
  flex-grow: 1;
}

.list-row-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

/* Pill Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
}

.btn:hover, .btn:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-elevation), var(--emerald-glow);
  color: var(--bg-canvas);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--accent-primary);
}
.btn-secondary:hover {
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
}

/* Forms (Stress Test Inquiry) */
.stress-test-form {
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--corner-radius);
  box-shadow: var(--shadow-elevation);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Footer */
footer {
  background-color: var(--bg-canvas);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 5% 2rem;
  text-align: center;
}

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

.footer-legal {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-kinetic), transform 0.7s var(--ease-kinetic);
}

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

/* Media Queries */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  .hero-images {
    height: 400px;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .vertical-flow::before {
    left: 20px;
  }
  .flow-number {
    left: 20px;
    top: 2rem;
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
  }
  .flow-content, .hero-section {
    padding-left: 45px;
  }
  .clip-diagonal {
    clip-path: polygon(0 2vw, 100% 0, 100% calc(100% - 2vw), 0 100%);
  }
  .stress-test-form {
    padding: 1.5rem;
  }
}

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