/* assets/css/components.css */

/* === Navbar === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__logo {
  width: 58px;
  height: 28px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--cyan);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 32px 24px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu__link {
  display: block;
  font-size: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
  color: var(--cyan);
}

@media (max-width: 1024px) {
  .navbar__links {
    display: none;
  }
  .navbar__hamburger {
    display: flex;
  }
  .mobile-menu {
    display: block;
  }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--cyan-light);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #0a1a3a 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--cyan {
  background: linear-gradient(135deg, var(--cyan) 0%, #009dd6 100%);
  color: var(--navy-deeper);
}

.btn--cyan:hover {
  background: linear-gradient(135deg, #009dd6 0%, #0088bb 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--text-primary);
}

.btn--outline:hover {
  background: rgba(0, 0, 0, 0.04);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan-mid);
}

.btn--ghost:hover {
  background: rgba(0, 174, 239, 0.1);
}

/* === Badge / Tag Pill === */
.badge {
  display: inline-block;
  background: var(--cyan-light);
  color: var(--navy);
  font-size: 10px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
}

.badge--pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cyan-light);
  color: var(--navy);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.badge--pill .dot {
  color: var(--cyan);
}

/* === SAP Agent Card === */
.agent-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--cyan);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(180deg, rgba(0, 174, 239, 0.03) 0%, transparent 100%);
  transition: height var(--transition-slow);
}

.agent-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.agent-card:hover::before {
  height: 100%;
}

.agent-card__icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.agent-card__title {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
}

.agent-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.agent-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* === CTA Block === */
.cta-block {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-deeper) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-block::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-block > * {
  position: relative;
  z-index: 1;
}

.cta-block__title {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-block__text {
  font-size: 16px;
  color: var(--cyan-mid);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-block__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .cta-block {
    padding: 40px 24px;
  }
  .cta-block__title {
    font-size: 24px;
  }
}

/* === Footer === */
.footer {
  background: linear-gradient(180deg, var(--navy-deeper) 0%, #060f24 100%);
  color: var(--white);
  padding: 48px 0 24px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(0, 174, 239, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

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

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  width: 28px;
  height: 22px;
}

.footer__wordmark {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--white);
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s ease;
}

.footer__link:hover {
  color: var(--cyan);
}

.footer__tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer__copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .footer__inner {
    flex-direction: column;
  }
  .footer__links {
    flex-direction: column;
    gap: 12px;
  }
}

/* === Page Header (shared sub-page header) === */
.page-header {
  background: linear-gradient(180deg, var(--grey-light) 0%, var(--white) 100%);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header__title {
  font-size: 36px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-header__subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .page-header {
    padding: 40px 0;
  }
  .page-header__title {
    font-size: 28px;
  }
}

/* === Feature Grid (4-cell joined) === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feature-grid__item {
  padding: 24px;
  border: 1px solid var(--border);
  margin: -1px;
  transition: all var(--transition-base);
}

.feature-grid__item:hover {
  background: var(--cyan-light);
}

.feature-grid__number {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.feature-grid__title {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-grid__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* === Step Flow (horizontal) === */
.step-flow {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.step-flow__step {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 200px;
}

.step-flow__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.step-flow__title {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
}

@media (max-width: 640px) {
  .step-flow {
    flex-direction: column;
  }
}

/* === Metric Card === */
.metric-card {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-2px);
}

.metric-card__number {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.metric-card__label {
  font-size: 14px;
  color: var(--text-muted);
}

/* === Why Card (cyan left border) === */
.why-card {
  background: var(--white);
  border-left: 3px solid var(--cyan);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why-card__title {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
}

.why-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === Comparison Table === */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.comparison-table th {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  color: var(--navy);
  background: linear-gradient(180deg, #f0f4f9 0%, var(--grey-light) 100%);
}

.comparison-table td:first-child {
  font-weight: 500;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr {
  transition: background var(--transition-fast);
}

.comparison-table tbody tr:hover {
  background: var(--cyan-light);
}

/* === Form Styles === */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

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

/* === Divider === */
.divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

@media (max-width: 640px) {
  .divider {
    display: none;
  }
}

/* === Badge Row === */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

/* === Two Column Layout === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* === Card Grid (2-col) === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* === Metric Row (4-col) === */
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .metric-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .metric-row {
    grid-template-columns: 1fr;
  }
}

/* === Why Grid (2x2) === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* === Stats Row (3-col) === */
.stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .stats-row {
    flex-direction: column;
    gap: 24px;
  }
}

.stat-item {
  text-align: center;
}

.stat-item__label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
