/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1C3D5C;
  --primary-dark: #102840;
  --accent: #00B4C6;
  --accent-hover: #009BB0;
  --accent-light: #E0F7FA;
  --text-dark: #1A2E3D;
  --text-gray: #5A6A7A;
  --bg-light: #F4F8FC;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(28, 61, 92, 0.12);
  --shadow-lg: 0 8px 40px rgba(28, 61, 92, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-gray); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 180, 198, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: 14px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  background: #2a5f8a;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(42, 95, 138, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.3));
}

.navbar-cta {
  padding: 10px 22px;
  font-size: 0.9rem;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 60%, #1e4d72 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 60% 40%, rgba(0, 180, 198, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(0, 180, 198, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero-logo {
  width: 280px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 40px;
  display: block;
  filter: drop-shadow(0 4px 24px rgba(0, 180, 198, 0.4));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-cta-hint {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge i {
  color: var(--accent);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 96px 24px;
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 64px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-label {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== GALLERY ===== */
.gallery-section {
  background: var(--primary-dark);
  padding: 80px 24px;
}

.gallery-section .section-header h2 {
  color: var(--white);
}

.gallery-section .section-label {
  background: rgba(0, 180, 198, 0.15);
}

.carousel-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.carousel-track-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  background: #000;
}

.carousel-slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top;
  opacity: 0.92;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(16, 40, 64, 0.95) 0%, transparent 100%);
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.5;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0, 180, 198, 0.5);
  border-color: var(--accent);
}

.carousel-btn-prev { left: -24px; }
.carousel-btn-next { right: -24px; }

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(28, 61, 92, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--accent);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.05);
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.feature-card p {
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ===== HOW IT WORKS ===== */
.how-section {
  background: var(--white);
}

.steps-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 16px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 120px;
  max-width: 160px;
  padding: 0 8px;
  position: relative;
}

.step-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 180, 198, 0.25);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step-number {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  margin-top: 28px;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 96px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 198, 0.12) 0%, transparent 70%);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ===== FOOTER ===== */
.footer {
  background: #2a5f8a;
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.3));
}

.footer p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.footer a {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  transition: color 0.2s;
}

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

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light);
  color: var(--text-gray);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #eee;
  color: var(--text-dark);
}

/* Progress steps */
.modal-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  align-items: center;
}

.progress-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e5e9ee;
  transition: background 0.4s ease;
}

.progress-step.active {
  background: var(--accent);
}

.progress-step.done {
  background: var(--primary);
}

/* Modal content */
.modal-step {
  display: none;
  animation: fadeInStep 0.35s ease;
}

.modal-step.active {
  display: block;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.modal-step h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.modal-step .modal-subtitle {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* Form */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e9ee;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: border-color 0.2s;
  outline: none;
  font-family: inherit;
}

.form-group input:focus {
  border-color: var(--accent);
  background: var(--white);
}

/* Qualification options */
.qual-question {
  margin-bottom: 24px;
}

.qual-question label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  padding: 10px 18px;
  border: 2px solid #e5e9ee;
  border-radius: 50px;
  background: var(--white);
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.option-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--primary);
  font-weight: 700;
}

/* Result display */
.result-summary {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.result-summary span {
  color: var(--text-dark);
  font-weight: 600;
}

.economy-number {
  text-align: center;
  padding: 32px 20px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.economy-amount {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.economy-label {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.erp-highlight {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--primary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal-question {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 14px;
  font-size: 1rem;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
}

/* Pricing boxes */
.price-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.price-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(28, 61, 92, 0.08);
}

.price-box .price-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-weight: 600;
}

.price-box .price-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.roi-callout {
  background: linear-gradient(135deg, var(--accent-light), #f0fdfe);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.roi-callout i {
  color: var(--accent);
  margin-right: 6px;
}

/* Thank you */
.thankyou-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.thankyou-icon.success {
  background: var(--accent-light);
  color: var(--accent);
}

.thankyou-icon.neutral {
  background: #f0f0f0;
  color: var(--text-gray);
}

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

.thankyou-text h3 {
  margin-bottom: 10px;
}

.thankyou-text p {
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* Error message */
.form-error {
  color: #e74c3c;
  font-size: 0.82rem;
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 180, 198, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section { padding: 64px 20px; }

  .navbar-logo { height: 34px; }
  .navbar-cta { padding: 8px 16px; font-size: 0.82rem; }

  .hero { padding: 80px 20px 48px; }
  .hero-logo { width: 200px; }

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

  .steps-flow {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .step-item {
    flex-direction: row;
    text-align: left;
    gap: 16px;
    min-width: unset;
    max-width: 100%;
    width: 100%;
    padding: 16px 0;
  }

  .step-icon-wrap {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .step-arrow {
    display: none;
  }

  .steps-flow::after {
    display: none;
  }

  .step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 36px;
    width: 2px;
    height: 24px;
    background: var(--accent-light);
  }

  .price-boxes { grid-template-columns: 1fr; }

  .modal-card { padding: 28px 20px; }
  .economy-amount { font-size: 2.2rem; }

  .carousel-btn-prev { left: -16px; }
  .carousel-btn-next { right: -16px; }

  .carousel-slide img { height: 260px; }

  .modal-actions { flex-direction: column; }
  .modal-actions .btn { flex: unset; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  .carousel-slide img { height: 220px; }

  .hero-badges { display: none; }
}

/* ===== TRUCK PHOTO SECTION ===== */
.truck-section {
  background: var(--primary-dark);
  line-height: 0;
}

.truck-img-wrap {
  position: relative;
  max-height: 480px;
  overflow: hidden;
}

.truck-photo {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.82;
}

.truck-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10, 25, 41, 0.85));
  color: #fff;
  padding: 48px 40px 28px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.01em;
}

.truck-caption i {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .truck-photo { height: 280px; }
  .truck-img-wrap { max-height: 280px; }
  .truck-caption { padding: 32px 20px 20px; font-size: 0.9rem; }
}
