/* ============================================================
   QuoTrak — homepage styles
   ============================================================ */

/* ── Section base ── */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-label-navy {
  background: rgba(26,58,92,0.09);
  color: var(--navy);
}
.section-label-amber {
  background: #fff3cd;
  color: #92400e;
}
.section-label-green {
  background: #d1fae5;
  color: #065f46;
}

.section-heading {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--navy);
}
.section-sub {
  margin-top: 14px;
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 560px;
}
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Inline SVG icon helper ── */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(26,58,92,0.09);
  color: var(--navy);
}
.icon-box svg { display: block; }

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  background-color: var(--navy-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cdefs%3E%3Cpattern id='g' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Crect width='80' height='80' fill='none'/%3E%3Cpath d='M 80 0 L 0 0 0 80' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cpath d='M 20 0 L 20 80 M 40 0 L 40 80 M 60 0 L 60 80 M 0 20 L 80 20 M 0 40 L 80 40 M 0 60 L 80 60' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='0.5'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='80' cy='0' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='0' cy='80' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='80' cy='80' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='80' height='80' fill='url(%23g)'/%3E%3C/svg%3E");
  padding: 80px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

/* Left column */
.hero-copy .section-label { margin-bottom: 20px; }
.hero-badge {
  background: rgba(224,123,26,0.18);
  color: #f5a94e;
  border: 1px solid rgba(224,123,26,0.3);
}

.hero-h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: background var(--transition), border-color var(--transition);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.55);
}

.hero-trust {
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}
.hero-trust span { margin: 0 6px; opacity: 0.5; }

/* Right column — mock UI card */
.hero-visual {
  position: relative;
}

.mock-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.mock-titlebar {
  background: rgba(0,0,0,0.25);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mock-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mock-body { padding: 20px; }

.mock-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 6px;
}
.mock-row-name {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}
.mock-row-price {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-family: "SF Mono", "Fira Mono", monospace;
}

.mock-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 14px 0;
}

.mock-margin-panel {
  background: rgba(26,58,92,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.mock-margin-left {}
.mock-margin-meta {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 3px;
}
.mock-margin-value {
  font-size: 28px;
  font-weight: 900;
  color: #4ade80;
  letter-spacing: -0.5px;
  font-family: "SF Mono", "Fira Mono", monospace;
}
.mock-margin-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(74,222,128,0.15);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 100px;
  color: #4ade80;
}

.mock-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.mock-total-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.mock-total-value {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  font-family: "SF Mono", "Fira Mono", monospace;
}

/* Floating badge on hero visual */
.hero-float-badge {
  position: absolute;
  bottom: -18px;
  right: -16px;
  background: var(--white);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}
.hero-float-badge-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(74,222,128,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-float-badge-icon svg { color: #16a34a; }
.hero-float-badge-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.hero-float-badge-sub {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 400;
}

/* ============================================================
   2. CLARITY STRIP
   ============================================================ */
.clarity-strip {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}
.clarity-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.clarity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-700);
}
.clarity-item svg {
  color: var(--navy);
  flex-shrink: 0;
}

/* ============================================================
   3. FEATURES
   ============================================================ */
.features-bg { background: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-card-icon {
  width: 48px; height: 48px;
}
.feature-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.2px;
}
.feature-card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray-500);
}
.feature-card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.feature-card-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
}
.feature-card-bullets li svg {
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   4. HOW IT WORKS
   ============================================================ */
.hiw-bg { background: var(--gray-50); }

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}

/* Connector line between steps */
.hiw-grid::before {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(16.666% + 28px);
  right: calc(16.666% + 28px);
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hiw-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(26,58,92,0.3);
  flex-shrink: 0;
}

.hiw-step-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.hiw-step-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray-500);
  max-width: 240px;
}

/* ============================================================
   5. INTEGRATIONS
   ============================================================ */
.integrations-bg { background: var(--white); border-top: 1px solid var(--gray-200); }

.integrations-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 44px;
}

.integration-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
  transition: opacity var(--transition), transform var(--transition);
}
.integration-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.integration-item img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.integration-item-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
}

.integrations-more {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--gray-400);
}
.integrations-more a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.integrations-more a:hover { color: var(--orange); }

/* ============================================================
   6. FINAL CTA
   ============================================================ */
.final-cta {
  background-color: var(--navy-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cdefs%3E%3Cpattern id='g' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Crect width='80' height='80' fill='none'/%3E%3Cpath d='M 80 0 L 0 0 0 80' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cpath d='M 20 0 L 20 80 M 40 0 L 40 80 M 60 0 L 60 80 M 0 20 L 80 20 M 0 40 L 80 40 M 0 60 L 80 60' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='0.5'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='80' cy='0' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='0' cy='80' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='80' cy='80' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='80' height='80' fill='url(%23g)'/%3E%3C/svg%3E");
  padding: 100px 0;
  text-align: center;
}
.final-cta-h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.75px;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}
.final-cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.final-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.final-cta-trust {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}
.final-cta-trust span { margin: 0 6px; opacity: 0.5; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-float-badge { display: none; }
  .hero-h1 { font-size: clamp(30px, 6vw, 44px); }
  .hero-sub { max-width: 100%; }

  .features-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .clarity-inner { gap: 24px; }
  .integrations-logos { gap: 28px; }

  .hiw-grid { grid-template-columns: 1fr; gap: 40px; }
  .hiw-grid::before { display: none; }
  .hiw-step { align-items: flex-start; text-align: left; padding: 0; flex-direction: row; gap: 20px; }
  .hiw-num { margin-bottom: 0; flex-shrink: 0; width: 48px; height: 48px; font-size: 18px; }
  .hiw-step-content { flex: 1; }
  .hiw-step-desc { max-width: 100%; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .final-cta-buttons { flex-direction: column; align-items: center; }
  .final-cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }
}
