/* ========================================
   Polara Labs — Minerva-Inspired Warm Minimal
   ======================================== */

:root {
  --bg: #f1ece6;
  --bg-alt: #e8e2d9;
  --bg-trust: #e3ddd4;
  --fg: #1a1a1a;
  --fg-75: rgba(26, 26, 26, 0.75);
  --fg-50: rgba(26, 26, 26, 0.50);
  --fg-45: rgba(26, 26, 26, 0.45);
  --fg-40: rgba(26, 26, 26, 0.40);
  --fg-35: rgba(26, 26, 26, 0.35);
  --fg-30: rgba(26, 26, 26, 0.30);
  --fg-25: rgba(26, 26, 26, 0.25);
  --fg-10: rgba(26, 26, 26, 0.10);
  --fg-06: rgba(26, 26, 26, 0.06);
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 72rem;
  --max-w-narrow: 44rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-narrow {
  max-width: var(--max-w-narrow);
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(241, 236, 230, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--fg-06);
  height: 64px;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.logo-icon {
  width: 26px;
  height: 26px;
  color: var(--fg);
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-50);
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--fg);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 1px;
  transition: var(--transition);
}

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: opacity var(--transition);
  letter-spacing: 0.01em;
}

.btn:hover {
  opacity: 0.8;
}

.arrow {
  opacity: 0.5;
  transition: opacity var(--transition);
}

.btn:hover .arrow {
  opacity: 1;
}

/* ---- Hero ---- */
.hero {
  padding: 100px 0 72px;
}

.hero-single {
  max-width: 680px;
}

.hero-single h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--fg-50);
  line-height: 1.7;
  letter-spacing: 0;
  margin-bottom: 40px;
  max-width: 520px;
}


/* ---- Proof Bar ---- */
.proof-bar {
  padding: 48px 0;
  border-top: 1px solid var(--fg-06);
  border-bottom: 1px solid var(--fg-06);
}

.proof-items {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.proof-num {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.proof-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-40);
  letter-spacing: 0.02em;
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-35);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 700px;
}

.section-desc {
  font-size: 1rem;
  color: var(--fg-50);
  line-height: 1.75;
  max-width: 560px;
}

/* ---- Workflow Comparison ---- */
.workflow-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: start;
}

.workflow-col {
  background: var(--bg-alt);
  border: 1px solid var(--fg-06);
  border-radius: 16px;
  overflow: hidden;
}

.workflow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--fg-06);
}

.workflow-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wf-before .workflow-badge {
  color: var(--fg-50);
}

.wf-after .workflow-badge {
  color: #2d6a4f;
}

.workflow-time {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.wf-before .workflow-time {
  color: var(--fg-50);
}

.wf-after .workflow-time {
  color: #2d6a4f;
}

.workflow-steps {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wf-step-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.wf-step-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-75);
}

.wf-step-hrs {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg-40);
  white-space: nowrap;
}

.wf-step-hrs.wf-saved {
  color: #2d6a4f;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.check-icon {
  width: 12px;
  height: 12px;
  color: #40916c;
}

.wf-bar {
  height: 8px;
  background: var(--fg-06);
  border-radius: 4px;
  overflow: hidden;
}

.wf-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-manual {
  background: var(--fg-35);
}

.wf-ai {
  background: linear-gradient(90deg, #40916c, #52b788);
}

.wf-human {
  background: #95d5b2;
}

.wf-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  border-top: 1px solid var(--fg-06);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-50);
}

.wf-total-num {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.wf-total-before .wf-total-num {
  color: var(--fg-50);
}

.wf-total-after .wf-total-num {
  color: #2d6a4f;
}

.wf-col-after {
  border-color: rgba(45, 106, 79, 0.2);
}

.wf-col-after .workflow-header {
  background: rgba(45, 106, 79, 0.04);
}

/* Impact Banner */
.impact-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 48px 40px;
  margin-top: 48px;
  background: var(--fg);
  border-radius: 20px;
  color: var(--bg);
}

.impact-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.impact-num {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #95d5b2;
}

.impact-suffix {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #95d5b2;
}

.impact-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(241, 236, 230, 0.5);
  letter-spacing: 0.02em;
  max-width: 180px;
}

.impact-divider {
  width: 1px;
  height: 56px;
  background: rgba(241, 236, 230, 0.12);
}

/* Timeline Animation */
.wf-step {
  transition: opacity 0.6s ease, transform 0.4s ease;
}

.wf-col-before .wf-step.struck {
  opacity: 0.35;
}

.wf-col-before .wf-step.struck .wf-step-label {
  text-decoration: line-through;
  text-decoration-color: var(--fg-35);
  text-decoration-thickness: 1.5px;
}

.wf-col-before .wf-step.struck .wf-bar-fill {
  background: var(--fg-10) !important;
  transition: background 0.6s ease, width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-col-after .wf-step {
  opacity: 0.3;
  transform: translateX(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.wf-col-after .wf-step.lit {
  opacity: 1;
  transform: translateX(0);
}

.wf-col-after .wf-step.lit .wf-saved {
  animation: checkPop 0.4s ease forwards;
}

@keyframes checkPop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.wf-total-before.struck-total {
  opacity: 0.35;
}

.wf-total-before.struck-total .wf-total-num {
  text-decoration: line-through;
  text-decoration-color: var(--fg-35);
}

.wf-total-after.lit-total .wf-total-num {
  animation: numGlow 0.6s ease forwards;
}

@keyframes numGlow {
  0% { opacity: 0.3; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* Arrow */
.workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
}

.arrow-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-circle svg {
  width: 20px;
  height: 20px;
  color: var(--bg);
}

/* Savings Callout */
.workflow-savings {
  margin-top: 48px;
}

.savings-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 48px;
  background: #2d6a4f;
  border-radius: 20px;
  color: white;
}

.savings-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.savings-num {
  font-family: var(--serif);
  font-size: 3rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: white;
}

.savings-per {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.savings-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.savings-detail {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.savings-btn {
  background: white;
  color: #2d6a4f;
  padding: 14px 28px;
  font-size: 0.8rem;
  font-weight: 600;
}

.savings-btn:hover {
  opacity: 0.9;
}

@media (max-width: 900px) {
  .workflow-compare {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .workflow-arrow {
    padding-top: 0;
  }

  .arrow-circle {
    transform: rotate(90deg);
  }

  .impact-banner {
    flex-direction: column;
    gap: 32px;
    padding: 40px 32px;
  }

  .impact-divider {
    width: 60px;
    height: 1px;
  }

  .savings-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
  }
}

/* ---- Solutions Grid ---- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.solution-card {
  display: flex;
  flex-direction: column;
}

.solution-visual {
  aspect-ratio: 4 / 3;
  background: var(--bg);
  border: 1px solid var(--fg-06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.solution-card:hover .solution-visual {
  background: var(--bg-trust);
}

.solution-icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-icon-wrap svg {
  width: 48px;
  height: 48px;
  color: var(--fg-40);
  transition: color 0.4s ease;
}

.solution-card:hover .solution-icon-wrap svg {
  color: var(--fg);
}

.solution-card h3 {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.solution-card p {
  font-size: 0.8rem;
  color: var(--fg-45);
  line-height: 1.65;
}

/* ---- Case Studies ---- */
.cases-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 56px;
}

.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--fg-06);
  align-items: start;
}

.case-card:last-child {
  border-bottom: 1px solid var(--fg-06);
}

.case-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-40);
  padding: 5px 12px;
  background: var(--fg-06);
  border-radius: 4px;
  margin-bottom: 16px;
}

.case-left h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.case-left p {
  font-size: 0.875rem;
  color: var(--fg-45);
  line-height: 1.75;
}

.case-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.case-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--fg-40);
  font-weight: 500;
}

/* ---- Process ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.process-step {
  display: flex;
  flex-direction: column;
}

.step-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--fg-25);
  margin-bottom: 16px;
  line-height: 1;
}

.process-step h3 {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.process-step p {
  font-size: 0.8rem;
  color: var(--fg-45);
  line-height: 1.7;
}

/* ---- CTA ---- */
.section-cta {
  padding: 120px 0 140px;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 1rem;
  color: var(--fg-50);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 40px;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--fg-06);
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  color: var(--fg-40);
  font-size: 0.8rem;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-30);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.8rem;
  color: var(--fg-45);
  transition: color var(--transition);
}

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

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--fg-06);
}

.footer-bottom p {
  font-size: 0.7rem;
  color: var(--fg-25);
}

/* ---- Animations ---- */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }

/* ---- Mobile Menu ---- */
.nav-right.open {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(241, 236, 230, 0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 999;
}

.nav-right.open a {
  font-size: 1.2rem;
  color: var(--fg);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .nav-right:not(.open) {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-left h1 {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .section {
    padding: 72px 0;
  }

  .section-cta {
    padding: 80px 0 100px;
  }

  .proof-items {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .solutions-grid {
    gap: 24px;
  }

  .solution-visual {
    aspect-ratio: 16 / 9;
  }

  .metric-num {
    font-size: 2rem;
  }
}
