/* =========================================
   AutoFlow AI — Design System
   Based on Figma: New Marketing Website
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #020618;
  color: #cad5e2;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* --- Tokens --- */
:root {
  /* Brand Colors */
  --blue:          #49657A;
  --blue-dark:     #2E4A5C;
  --blue-darker:   #1A2F3D;
  --orange:        #DF6F6D;
  --orange-dark:   #c45a58;
  --yellow:        #FABF71;
  --black:         #0a0a0a;

  /* Backgrounds */
  --bg-main:       #020618;
  --bg-footer:     #050b0f;
  --bg-card-overlay: #0f172b;
  --bg-input:      #1d293d;
  --bg-alt:        rgba(73, 101, 122, 0.18);
  --bg-card:       #1E2020;
  --border:        rgba(73, 101, 122, 0.28);
  --border-header: rgba(73, 101, 122, 0.22);

  /* Text */
  --text-primary:  #ffffff;
  --text-heading:  #cad5e2;
  --text-body:     #c0ced8;
  --text-muted:    #8a9fae;
  --text-light:    #c0ced8;
  --text-blue:     #6B8FA8;
  --text-badge:    #FABF71;

  /* Gradients */
  --grad-brand:    linear-gradient(90deg, #49657A 0%, #DF6F6D 100%);
  --grad-btn:      linear-gradient(90deg, #49657A 0%, #DF6F6D 100%);
  --grad-step:     linear-gradient(135deg, #49657A 0%, #DF6F6D 100%);
  --grad-hero:     #121414;
  --grad-cta:      #121414;

  --radius-sm:     8px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --radius-full:   9999px;

  --shadow-hero:   0 25px 50px -12px rgba(0,0,0,0.4);
}

/* --- Layout --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* --- Typography --- */
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
  padding: 8px 16px;
  letter-spacing: -0.15px;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: transparent;
}
.btn-outline {
  background: transparent;
  color: #0a0a0a;
  border-color: var(--border);
  background-color: #fff;
}
.btn-outline-dark {
  background: #fff;
  color: #0a0a0a;
  border-color: var(--border);
}
.btn-white {
  background: #fff;
  color: #0f172b;
  border-color: transparent;
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.btn-blue {
  background: var(--blue);
  color: #fff;
  border-color: transparent;
  font-size: 14px;
  padding: 8px 14px;
  height: 36px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.btn-large {
  font-size: 20px;
  padding: 12px 36px;
  height: 48px;
  letter-spacing: -0.5px;
  border-radius: 11px;
}
.btn-full { width: 100%; }

.btn-icon {
  width: 16px;
  height: 16px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(2, 6, 24, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  height: 80px;
}

.nav {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-container {
  height: 40px;
  width: 207px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-img {
  width: 168px;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: -0.2px;
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text-light); }
.nav-link.active {
  color: var(--text-light);
}

.nav .btn-primary {
  font-size: 15px;
  padding: 10px 22px;
  height: 42px;
  border-radius: 9px;
}

/* --- Nav Dropdown --- */
.nav-item {
  position: relative;
  list-style: none;
  padding-bottom: 16px;
  margin-bottom: -16px;
}

.nav-link--has-dropdown {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.dropdown-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-item--dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 0.9;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(14, 17, 22, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(24px);
  padding: 14px 6px 6px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
  pointer-events: none;
}

.nav-item--dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  transition: background 0.15s;
  color: var(--text-light);
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: rgba(73, 101, 122, 0.18);
}

.nav-dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(30, 32, 32, 0.9);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.nav-dropdown-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.nav-dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.nav-dropdown-text span {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: -0.1px;
  line-height: 1.3;
}

/* --- Hero --- */
.hero {
  min-height: min(100vh, 1040px);
  background: #121414;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 48px 80px;
  min-height: calc(100vh - 80px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-visual {
  flex: 0 0 460px;
  height: 460px;
  border-radius: 16px;
  border: 1px dashed rgba(73, 101, 122, 0.35);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-visual:has(img) {
  border: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-value-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 48px;
  background: #121414;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-value-inner {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 48px 80px;
  max-width: 1280px;
  width: 100%;
}

.hero-value-text {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 35px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.07px;
  color: #ffffff;
}

.hero-title {
  font-size: 58px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: 0.12px;
  margin-bottom: 24px;
}

.text-coral {
  color: var(--orange);
}

.text-white {
  color: #ffffff;
}

.hero-tagline {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.6;
  letter-spacing: 0.07px;
  margin-bottom: 48px;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0;
}

.hero-apps-wrap {
  display: none;
}

.hero-app-tile {
  background: #0f172b;
  border-radius: 16px;
  width: 136px;
  height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.hero-app-logo {
  position: absolute;
  top: 8px;
  left: 6px;
  width: 90%;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
}

.hero-app-line1,
.hero-app-line2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  text-transform: lowercase;
  position: relative;
  z-index: 1;
}
.hero-app-line1 { font-size: 11px; }
.hero-app-line2 { font-size: 13px; }

.hero-app-brand {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
  line-height: 1;
  z-index: 1;
}
.hero-app-brand-pipe { color: var(--orange); }

/* Subtitle moved to .hero-value-bar (.hero-value-text) per Figma */

/* --- Sections --- */
.section {
  padding: 120px 0;
  background: #121414;
}
.section-alt {
  background: #121414;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}
.section-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.35px;
  margin-bottom: 16px;
  line-height: 1.1;
   color: var(--text-primary);
}
.section-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  letter-spacing: -0.45px;
}

#marketplace .section-subtitle {
  font-size: 25px;
  line-height: 1.28;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.section-subtitle strong {
  font-weight: 700;
}
.subtitle-accent {
  color: var(--orange);
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
}

/* --- Cards (shared) --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  letter-spacing: -0.31px;
}

/* --- Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1024px;
  margin: 0 auto;
}

.step-card {
  position: relative;
  padding: 24px;
  min-height: 222px;
  background: #1E2020;
}

.step-number-bg {
  display: none;
}

.step-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 16px;
  letter-spacing: -0.45px;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.45px;
}

/* --- Marketplace --- */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #1E2020;
}

.product-image-wrap {
  position: relative;
  height: 192px;
  overflow: hidden;
  background: #1E2020;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 24px;
  gap: 16px;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #1E2020 0%, transparent 100%);
  pointer-events: none;
}

/* Logo-style card images */
.product-image-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.product-image-wrap--dual {
  gap: 4px;
}
.product-image-wrap--dual .product-image-logo {
  height: 140px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin: 0 -25px;
}
.product-image-logo--right {
  transform: translateY(-4px);
}
.product-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #1E2020 0%, transparent 100%);
}

.product-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.45px;
}
.product-title a {
  color: inherit;
  transition: color 0.2s;
}
.product-title a:hover { color: var(--yellow); }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 24px;
  flex: 1;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: -0.15px;
}
.check-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(58%) sepia(40%) saturate(700%) hue-rotate(305deg) brightness(87%);
}

.marketplace-footer {
  text-align: center;
  margin-top: 48px;
}

/* --- Benefits --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #1E2020;
}

.benefit-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.benefit-icon {
  width: 32px;
  height: 32px;
}

.benefit-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.45px;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stars {
  display: flex;
  gap: 4px;
}
.star {
  width: 20px;
  height: 20px;
}

.testimonial-quote {
  font-size: 16px;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.6;
  letter-spacing: -0.31px;
  flex: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.author-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.31px;
}
.author-role {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: -0.15px;
}

/* --- Why Choose logo inline --- */
.why-choose-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #ffffff;
}

.why-choose-logo-wrap {
  height: 52px;
  border-radius: var(--radius-md);

  display: inline-flex;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.why-choose-logo {
  height: 52px;
  width: auto;
  display: block;
}

/* --- CTA Section --- */
.cta-section {
  padding: 120px 48px;
  background: #121414;
}

.cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 540px;
  width: 100%;
}

.cta-visual {
  flex: 0 0 460px;
  height: 460px;
  border-radius: 16px;
  border: 1px dashed rgba(73, 101, 122, 0.35);
  position: relative;
  overflow: hidden;
}

.cta-visual:has(img) {
  border: none;
}

.cta-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cta-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.1;
  letter-spacing: 0.35px;
}

.cta-subtitle {
  font-size: 20px;
  color: var(--text-light);
  letter-spacing: -0.45px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
}

/* --- Footer --- */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-header);
  padding-top: 48px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo-img {
  width: 140px;
  height: auto;
  object-fit: contain;
  display: block;
  margin-left: -16px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: -0.15px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.31px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: -0.15px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-blue); }

.footer-newsletter-desc {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: -0.15px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.newsletter-input {
  flex: 1;
  height: 38px;
  background: #1d293d;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-input:focus { border-color: var(--blue); }

.footer-bottom {
  border-top: 1px solid var(--border-header);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: -0.15px;
}

/* --- Pricing Enquiry Form --- */
.pricing-enquiry-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.pricing-enquiry-card {
  padding: 40px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus { border-color: var(--blue); }

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

/* --- Responsive --- */
@media (max-width: 1200px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-title { font-size: 48px; }
  #marketplace .section-subtitle { font-size: 20px; }
  .steps-grid,
  .marketplace-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .cta-section { padding: 80px 24px; }
  .container { padding: 0 24px; }
  .cta-inner { flex-direction: column; }
  .cta-visual { display: none; }
  .hero-inner { min-height: unset; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 36px; }
  .hero-value-text { font-size: 18px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .section-title { font-size: 32px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .cta-buttons .btn { width: 100%; }
  .cta-title { font-size: 32px; }
}
