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

:root {
  --navy: #0b1437;
  --navy-light: #1a2550;
  --blue: #2d7ff9;
  --blue-soft: #e8f1ff;
  --orange: #f5883c;
  --orange-soft: #fff4eb;
  --green: #22c55e;
  --green-soft: #edfcf2;
  --purple: #8b5cf6;
  --purple-soft: #f3effe;
  --teal: #0ea5e9;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(11, 20, 55, 0.06);
  --shadow-md: 0 4px 24px rgba(11, 20, 55, 0.08);
  --shadow-lg: 0 12px 48px rgba(11, 20, 55, 0.12);
  --shadow-xl: 0 24px 64px rgba(11, 20, 55, 0.14);
}

html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: inherit;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5px 32px 10px;
  background: linear-gradient(170deg, #f0f5ff 0%, #fafbff 40%, #fff 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(45, 127, 249, 0.06) 0%,
    transparent 70%
  );
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(245, 136, 60, 0.05) 0%,
    transparent 70%
  );
}
.hero-inner {
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 6px 16px 6px 8px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-badge span {
  background: var(--blue);
  color: white;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 19px;
  color: var(--gray-600);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-showcase {
  margin: 60px 0px;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-showcase img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  display: block;
  max-width: 100%;
  height: auto;
}

/* SECTIONS */
.section {
  padding: 80px 32px;
}
.section-inner {
  /* max-width: 1300px; */
  margin: 0 auto;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.section-label.blue {
  color: var(--blue);
}
.section-label.blue::before {
  background: var(--blue);
}
.section-label.orange {
  color: var(--orange);
}
.section-label.orange::before {
  background: var(--orange);
}
.section-label.green {
  color: var(--green);
}
.section-label.green::before {
  background: var(--green);
}
.section-label.purple {
  color: var(--purple);
}
.section-label.purple::before {
  background: var(--purple);
}
.section-label.teal {
  color: var(--teal);
}
.section-label.teal::before {
  background: var(--teal);
}

.section-title {
  font-size: clamp(24px, 4vw, 42px);
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 640px;
  line-height: 1.7;
}
.section-subtitle.centered {
  margin: 0 auto;
  text-align: center;
}

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

.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.content-row.reverse .content-text {
  order: 2;
}
.content-row.reverse .content-visual {
  order: 1;
}

.content-text h3 {
  font-size: clamp(24px, 4vw, 42px);

  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.content-text p {
  color: var(--gray-600);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.content-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.callout-box {
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.65;
}
.callout-box.orange {
  background: var(--orange-soft);
  border-color: var(--orange);
}
.callout-box.green {
  background: var(--green-soft);
  border-color: var(--green);
}
.callout-box.purple {
  background: var(--purple-soft);
  border-color: var(--purple);
}

/* MODEL BUTTONS */
.models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.model-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  width: 100%;
}
.model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.model-card.active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.model-card[data-model="AVAT"].active {
  border-color: var(--blue);
}
.model-card[data-model="AVATA"].active {
  border-color: var(--orange);
}
.model-card[data-model="AGAM"].active {
  border-color: var(--purple);
}
.model-card[data-model="AVATAM"].active {
  border-color: var(--green);
}

.model-card .model-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.model-card .model-flow {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.model-card .model-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}
.model-card .color-dot {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  margin: 0 auto 16px;
}
.model-card[data-model="AVAT"] .model-flow {
  color: var(--blue);
}
.model-card[data-model="AVAT"] .color-dot {
  background: linear-gradient(90deg, var(--blue), var(--orange));
}
.model-card[data-model="AVATA"] .model-flow {
  color: var(--orange);
}
.model-card[data-model="AVATA"] .color-dot {
  background: linear-gradient(90deg, var(--blue), var(--orange), var(--purple));
}
.model-card[data-model="AGAM"] .model-flow {
  color: var(--purple);
}
.model-card[data-model="AGAM"] .color-dot {
  background: linear-gradient(90deg, var(--purple), var(--green));
}
.model-card[data-model="AVATAM"] .model-flow {
  color: var(--green);
}
.model-card[data-model="AVATAM"] .color-dot {
  background: linear-gradient(
    90deg,
    var(--blue),
    var(--orange),
    var(--purple),
    var(--green)
  );
}

.model-card .tap-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.model-card .tap-hint svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}
.model-card.active .tap-hint svg {
  transform: rotate(180deg);
}
.model-card.active .tap-hint {
  color: var(--navy);
}

.model-details-wrapper {
  margin-top: 32px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.model-details-wrapper.open {
  max-height: 5000px;
}
.model-detail {
  display: none;
  opacity: 0;
  transition: opacity 0.4s;
  padding-top: 32px;
}
.model-detail.active {
  display: block;
  opacity: 1;
}
.model-detail-inner {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.model-detail[data-model="AVAT"] .model-detail-inner {
  border-top: 4px solid var(--blue);
}
.model-detail[data-model="AVATA"] .model-detail-inner {
  border-top: 4px solid var(--orange);
}
.model-detail[data-model="AGAM"] .model-detail-inner {
  border-top: 4px solid var(--purple);
}
.model-detail[data-model="AVATAM"] .model-detail-inner {
  border-top: 4px solid var(--green);
}

/* DIAGNOSTIC TABLE */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}
.diagnostic-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.diagnostic-table thead th {
  background: var(--navy);
  color: var(--white);
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.3px;
}
.diagnostic-table tbody td {
  padding: 20px 24px;
  font-size: 15px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}
.diagnostic-table tbody tr:last-child td {
  border-bottom: none;
}
.diagnostic-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}
.diagnostic-table .model-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}
.model-badge.avat {
  background: var(--blue);
}
.model-badge.avata {
  background: var(--orange);
}
.model-badge.agam {
  background: var(--purple);
}
.model-badge.avatam {
  background: var(--green);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 20, 55, 0.88);
  backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.lightbox.active {
  display: flex;
}
.lightbox-content {
  max-width: 960px;
  width: 100%;
  position: relative;
}
.lightbox-content img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}
.lightbox-close {
  position: absolute;
  top: -18px;
  right: -30px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 25px;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lightbox-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-top: 16px;
}

/* CTA */
.cta-section {
  background: var(--navy);
  padding: 80px 32px;
  text-align: center !important;
}
.cta-section h2 {
  color: var(--white);
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn-primary {
  background: var(--blue);
}
.cta-section .btn-primary:hover {
  background: #1b6ef0;
}
.cta-section .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}
.cta-section .btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* KPI CARDS */
.summary-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.kpi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.kpi-card .kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin: 0 auto 14px;
}

.kpi-card .kpi-icon svg {
  width: 26px;
  height: 26px;
}
.kpi-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.kpi-card p {
  font-size: 13px;
  line-height: 1.5;
}

.kpi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.kpi-card .kpi-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.kpi-card .kpi-icon svg {
  width: 32px;
  height: 32px;
}
.kpi-icon.blue-icon {
  background: var(--blue-soft);
}
.kpi-icon.blue-icon svg {
  color: var(--blue);
}
.kpi-icon.purple-icon {
  background: var(--purple-soft);
}
.kpi-icon.purple-icon svg {
  color: var(--purple);
}
.kpi-icon.green-icon {
  background: var(--green-soft);
}
.kpi-icon.green-icon svg {
  color: var(--green);
}
.kpi-icon.orange-icon {
  background: var(--orange-soft);
}
.kpi-icon.orange-icon svg {
  color: var(--orange);
}
.kpi-card h4 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}
.kpi-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

/* FOOTER */
.footer {
  padding: 40px 32px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
}
.footer a {
  color: var(--blue);
  font-weight: 500;
}
.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .content-row.reverse .content-text {
    order: 1;
  }
  .content-row.reverse .content-visual {
    order: 2;
  }
  .kpi-strip {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 10px 20px 60px;
  }
  .section {
    padding: 64px 20px;
  }
  .models-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .model-detail-inner {
    padding: 28px 20px;
  }
  h3 {
    font-size: 2.5rem !important;
  }
  .diagnostic-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 12px;
  }

  .diagnostic-table th,
  .diagnostic-table td {
    padding: 10px;
  }

  .diagnostic-table th,
  .diagnostic-table td {
    padding: 10px;
    font-size: 12px;
  }
  /* Convert 3 columns → 1 column */
  .summary-kpi-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    margin-bottom: 32px;
  }

  /* Reduce card padding only on mobile */
  .kpi-card {
    padding: 18px 16px;
    text-align: center;
  }

  /* Scale down icon */
  .kpi-card .kpi-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
  }

  .kpi-card .kpi-icon svg {
    width: 24px;
    height: 24px;
  }

  /* Typography adjustment only */
  .kpi-card h4 {
    font-size: 15px;
  }

  .kpi-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Reduce section spacing */
  #summary .section-subtitle {
    margin-bottom: 24px !important;
  }
  /* Make layout stack vertically */
  .content-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
  }

  .content-row.reverse {
    flex-direction: column !important; /* override reverse */
  }

  .content-text {
    width: 100%;
    text-align: center;
  }

  .content-visual {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .content-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
  }

  /* KPI GRID INSIDE ADAPTABILITY */
  .content-text > div[style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* KPI CARD FIX (since you used inline padding overrides) */
  .content-text .kpi-card {
    padding: 16px !important;
  }

  .content-text .kpi-icon {
    width: 48px !important;
    height: 48px !important;
  }

  .content-text .kpi-icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  .content-text h4 {
    font-size: 14px !important;
  }

  .content-text p {
    font-size: 13px !important;
  }

  /* spacing fixes */
  .content-text p {
    margin-bottom: 10px;
  }
}
@media (max-width: 560px) {
  .models-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
