/* Design Tokens */
:root {
  /* Colors */
  --color-primary: #1075ef;
  --color-primary-light: #dbeafd;
  --color-text-high: #1a3755;
  --color-text-mid: #535d6e;
  --color-bg-low: #f2f4fa;
  --color-border-low: #ccd3d9;
  --color-theme-primary: #0276f1;

  /* Font Families */
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Font Sizes */
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 48px;

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Line Heights */
  --line-height-sm: 21px;
  --line-height-md: 24px;
  --line-height-lg: 27px;
  --line-height-xl: 36px;
  --line-height-2xl: 48px;
  --line-height-3xl: 72px;

  /* Spacing */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 40px;
  --spacing-3xl: 64px;

  /* Shadows */
  --shadow-distant: 0px 8px 12px 0px rgba(12, 71, 161, 0.18);
  --shadow-shallow: 0px 0px 4px 0px rgba(0, 0, 0, 0.08);
}

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

html,
body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-text-high);
  background: #fff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  background-color: #fff;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-3xl);
}

h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-2xl);
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-xl);
}

p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  margin-bottom: var(--spacing-md);
}

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

a:hover {
  opacity: 0.8;
}

/* Header/Navigation */
.navbar {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-2xl);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  gap: var(--spacing-xl);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-shrink: 0;
}

.navbar-logo {
  height: 32px;
  width: auto;
}

.navbar-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-high);
  margin: 0;
  display: inline;
  white-space: nowrap;
}

.navbar-title-highlight {
  color: var(--color-primary);
}

.navbar-nav {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
  flex: 1;
  justify-content: center;
}

.navbar-nav a {
  color: var(--color-text-high);
  text-decoration: none;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  transition: color 0.2s;
}

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

.btn-cta {
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 100px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

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

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  height: 480px;
  padding: 31px 0 31.161px 0;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: url("/workflows/images/hero_bg.png") center center / cover no-repeat;
}

.hero::after {
  content: none;
}

.hero-wrapper {
  width: 100%;
  height: 100%;
  min-height: 480px;
  padding: 31px 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--spacing-xl);
  width: 100%;
  max-width: 1280px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  width: 480px;
}

.hero-label {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-xl);
  display: block;
}

.hero-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-3xl);
  color: var(--color-text-high);
  margin: 0;
}

.hero-description {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  color: var(--color-text-high);
  margin: 0;
}

.btn-primary {
  background: white;
  border: 2px solid var(--color-primary);
  color: var(--color-text-high);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 100px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  width: fit-content;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero-image {
  flex: 1;
  height: 417.84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Section Container */
.section {
  padding: var(--spacing-3xl) var(--spacing-2xl);
  max-width: 1280px;
  margin: 0 auto;
}

.section-center {
  text-align: center;
}

.what-is-image {
  display: block;
  width: 100%;
  max-width: 588px; /* match Figma width for the illustration */
  height: auto;
  margin: 0 auto;
}

.section-title {
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

.underline {
  height: 0;
  border-bottom: 2px solid var(--color-primary);
  width: 230px;
  margin: var(--spacing-md) auto var(--spacing-3xl);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-3xl);
}

.card {
  background: white;
  border: 4px solid white;
  border-radius: 20px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-distant);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.card-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto; /* center icon container horizontally inside card */
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-high);
  text-align: center;
}

.card-description {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  color: var(--color-text-high);
  text-align: left;
}

/* Features Section */
.features-section {
  background: white;
  padding: var(--spacing-3xl) var(--spacing-2xl);
}

.feature-card {
  background: white;
  padding: var(--spacing-2xl) var(--spacing-lg);
  box-shadow: var(--shadow-shallow);
  margin-bottom: var(--spacing-2xl);
  border-radius: 12px;
}

.feature-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--spacing-2xl);
  align-items: start;
  margin-bottom: var(--spacing-2xl);
}

.feature-number {
  color: #1075ef;
  display: flex;
  width: 148px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm, 8px);
  align-self: stretch;
  padding: var(--spacing-lg);
}

.feature-number-text {
  color: #1075ef;
  text-align: center;
  font-size: 48px;
  font-weight: 900;
  line-height: 72px;
}

.feature-number-divider {
  position: relative;
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #1075ef;
}

.divider-circle {
  position: relative;
  width: 12px;
  height: 12px;
  background: #1075ef;
  border-radius: 50%;
  z-index: 1;
}

.feature-number-label {
  color: #1075ef;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.feature-number > div:first-child {
  color: var(--Workflows-High, #1075ef);
  text-align: center;
  font-family: var(--font-family-sans-en, Inter);
  font-size: var(--font-size-3xl, 48px);
  font-style: normal;
  font-weight: var(--font-weight-900, 900);
  line-height: var(--line-height-3xl, 72px);
}

.feature-number > div:last-child {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  padding-left: 12px;
  display: flex;
  align-items: center;
}

.feature-number > div:last-child::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffffff;
  font-size: 16px;
}

.feature-info h3 {
  color: var(--color-text-high);
  font-size: var(--font-size-md);
  margin-bottom: var(--spacing-md);
}

.feature-info p {
  color: var(--color-text-high);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
}

.feature-image {
  width: 100%;
  text-align: center;
  margin-top: var(--spacing-2xl);
}

.feature-image img {
  max-width: 100%;
  height: auto;
}

/* Use Cases Section */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-3xl);
  align-items: stretch;
}

.usecase-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-shallow);
}

.usecase-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.usecase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.usecase-content {
  padding: var(--spacing-lg);
}

.usecase-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-high);
  margin-bottom: var(--spacing-md);
}

.usecase-description {
  font-size: var(--font-size-md);
  color: var(--color-text-mid);
  line-height: var(--line-height-md);
}

/* Timeline Section */
.timeline {
  max-width: 1024px;
  margin: var(--spacing-3xl) auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 117px 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.timeline-badge {
  background: var(--color-primary);
  color: white;
  border-radius: 58.5px;
  border: 6px solid var(--color-primary-light);
  font-weight: var(--font-weight-black);
  font-size: var(--font-size-lg);
  flex-shrink: 0;
  display: flex;
  width: 148px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm, 8px);
  align-self: stretch;
}

.timeline-content {
  background: white;
  padding: var(--spacing-2xl) var(--spacing-lg);
  border-radius: 8px;
  box-shadow: var(--shadow-shallow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-high);
  margin-bottom: var(--spacing-sm);
}

.timeline-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-high);
  line-height: var(--line-height-sm);
}

/* Contact Section */
.contact-section {
  background: #fafafa;
  padding: var(--spacing-3xl) var(--spacing-2xl);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.contact-info h2 {
  font-size: var(--font-size-3xl);
  color: var(--color-text-high);
  margin-bottom: var(--spacing-lg);
}

.contact-info p {
  font-size: var(--font-size-sm);
  color: var(--color-text-high);
  line-height: var(--line-height-sm);
}

.contact-form {
  background: white;
  padding: var(--spacing-xl);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.contact-form h3 {
  font-size: var(--font-size-2xl);
  color: var(--color-text-high);
  text-align: center;
}

.form-input {
  background: var(--color-bg-low);
  border: none;
  border-radius: 8px;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-md);
  color: var(--color-text-mid);
  font-family: var(--font-sans);
}

.form-input::placeholder {
  color: var(--color-text-mid);
}

.form-input:focus {
  outline: 2px solid var(--color-primary);
  background: white;
}

.btn-submit {
  background: var(--color-theme-primary);
  color: white;
  border: none;
  border-radius: 100px;
  padding: var(--spacing-md) var(--spacing-2xl);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

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

/* Intro Section */
.intro-inner {
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.intro-image-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl) var(--spacing-2xl);
}

.intro-image-col img {
  width: 268px;
  height: auto;
  aspect-ratio: 67/70;
  max-width: 100%;
}

.intro-text-col {
  flex: 1;
  padding: var(--spacing-3xl) var(--spacing-2xl);
}

.intro-text-col h2 {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
}

.intro-text-col p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-high);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 32px 0;
  }

  .hero-wrapper {
    padding: 24px;
    min-height: 0;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-text {
    width: 100%;
  }

  .hero-image {
    width: 100%;
    height: auto;
    max-height: 260px;
  }

  .contact-container,
  .usecases-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-direction: column;
    height: auto;
    gap: var(--spacing-lg);
  }

  .navbar-brand {
    width: 100%;
  }

  .section {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }

  h1 {
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-2xl);
  }

  .feature-header {
    grid-template-columns: 1fr;
  }

  .feature-number {
    width: 100%;
    flex-direction: row;
    align-self: auto;
    padding: var(--spacing-md);
  }

  .feature-number-divider {
    display: none;
  }

  .intro-inner {
    flex-direction: column;
  }

  .intro-image-col,
  .intro-text-col {
    width: 100%;
    padding: var(--spacing-xl) var(--spacing-lg);
  }

  .intro-text-col h2 {
    font-size: var(--font-size-2xl);
  }
}

/* Utility Classes (footer markup support) */
.bg-text-dark {
  background: var(--color-text-high);
}
.text-text-dark {
  color: var(--color-text-high);
}
.text-white {
  color: #fff;
}
.px-2xl {
  padding-left: var(--spacing-2xl);
  padding-right: var(--spacing-2xl);
}
.py-3xl {
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
}
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-3xl {
  gap: var(--spacing-3xl);
}
.gap-lg {
  gap: var(--spacing-lg);
}
.gap-md {
  gap: var(--spacing-md);
}
.w-full {
  width: 100%;
}
.bg-white {
  background: #fff;
}
.px-lg {
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}
.py-md {
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}
.rounded-\[1000px\] {
  border-radius: var(--Rounded, 1000px);
}
.shadow-shallow {
  box-shadow: var(--shadow-shallow);
}
.mb-0 {
  margin-bottom: 0;
}
.cert-row {
  display: flex !important;
  align-items: center !important;
  gap: var(--spacing-lg, 24px) !important;
  padding: 16px 24px !important;
  border-radius: var(--Rounded, 1000px) !important;
  background: #fff !important;
  box-shadow: var(--shadow-shallow) !important;
  flex-wrap: wrap !important;
}

@media (max-width: 768px) {
  .cert-row {
    justify-content: center;
    gap: var(--spacing-md, 16px);
  }

  .cert-row h4 {
    width: 100%;
    text-align: center;
  }
}
.font-bold {
  font-weight: var(--font-weight-bold);
}
.font-normal {
  font-weight: var(--font-weight-normal);
}
.text-lg {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-lg);
}
.text-sm {
  font-size: var(--font-size-sm);
}
.leading-sm {
  line-height: var(--line-height-sm);
}
.text-nowrap {
  white-space: nowrap;
}
.h-\[51px\] {
  height: 51px;
}
.w-\[73px\] {
  width: 73px;
}
.w-\[78px\] {
  width: 78px;
}
.h-\[50px\] {
  height: 50px;
}
.w-\[85px\] {
  width: 85px;
}
.h-\[53px\] {
  height: 53px;
}
.w-\[54px\] {
  width: 54px;
}
.w-10 {
  width: 40px;
}
.h-10 {
  height: 40px;
}
.h-full {
  height: 100%;
}

/* Mobile Menu Responsive Styles */

/* Hamburger Button */
#mobile-menu-toggle {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  height: 40px;
  width: 40px;
}

#mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 50px;
  background-color: #1a3755;
  transition: 0.2s ease;
}

/* Hamburger → X animation */
#mobile-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(-135deg);
}

#mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

#mobile-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(135deg);
}

/* Desktop nav always visible */
nav[aria-label="Main Navigation"] {
  display: flex !important;
}

/* Mobile menu: slide-down animation */
#mobile-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.2s ease;
  pointer-events: none;
}

/* Tablet and Mobile */
@media (max-width: 1024px) {
  #mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  nav[aria-label="Main Navigation"] {
    display: none !important;
  }

  #mobile-menu.is-active {
    max-height: 400px;
    pointer-events: auto;
  }
}
