:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eef2ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #1e3a8a;
  --indigo: #4f46e5;
  --orange: #f97316;
  --green: #16a34a;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

svg {
  display: block;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section-pad {
  padding: 96px 0;
}

.section-compact {
  padding: 28px 0 44px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--blue);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: #fff;
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.28);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-menu a {
  padding: 8px 0;
  transition: color 180ms ease;
}

.nav-menu a:hover {
  color: var(--indigo);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  width: 19px;
  height: 2px;
  display: block;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

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

.btn svg {
  width: 18px;
  height: 18px;
}

.btn path,
.icon-button path,
.modal-close path,
.product-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 28px rgba(30, 58, 138, 0.18);
}

.btn-primary:hover {
  background: #172f73;
}

.btn-accent {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.26);
}

.btn-accent:hover {
  background: #ea580c;
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn-ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--blue);
}

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 148px;
  padding-bottom: 48px;
  background:
    radial-gradient(circle at 18% 24%, rgba(249, 115, 22, 0.28), transparent 25%),
    linear-gradient(135deg, #0f172a 0%, var(--blue) 48%, var(--indigo) 100%);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), var(--bg));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 62px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 7px 12px;
  color: #e0e7ff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow.dark {
  border-color: rgba(79, 70, 229, 0.16);
  background: #eef2ff;
  color: var(--indigo);
}

.hero h1,
.section-heading h2,
.final-cta h2 {
  margin: 18px 0 18px;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: 4rem;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: #dbeafe;
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-demo {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(18px);
}

.demo-topbar {
  display: flex;
  gap: 8px;
  margin: 4px 0 16px;
}

.demo-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.54);
}

.search-card {
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  color: var(--text);
}

.search-card label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
}

.search-row input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--text);
  outline: none;
}

.search-row input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.icon-button {
  width: 48px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.ai-response {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 86px;
  margin-top: 16px;
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  padding: 14px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  min-width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12);
}

.supplier-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  border-radius: 20px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.6);
}

.supplier-strip div {
  display: grid;
  gap: 2px;
}

.supplier-strip span {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.metrics {
  position: relative;
  z-index: 2;
}

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

.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.metric-card strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.align-left {
  margin-inline: 0;
  text-align: left;
}

.section-heading h2,
.final-cta h2 {
  color: var(--text);
  font-size: 2.55rem;
}

.section-heading p,
.final-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.market-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.filters-panel,
.product-card,
.chat-mockup,
.step-card,
.benefit-card,
.business-card,
.timeline-item,
.modal-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.filters-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-heading h3,
.filter-group h4,
.product-card h3,
.step-card h3,
.benefit-card h3,
.business-card h3,
.timeline-item h3 {
  margin: 0;
  line-height: 1.2;
}

.panel-heading span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.76rem;
  font-weight: 900;
}

.filter-group {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.filter-group h4 {
  color: #334155;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.filter-pill {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
}

.filter-pill.active {
  border-color: var(--indigo);
  background: #eef2ff;
  color: var(--indigo);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-weight: 700;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.filter-note {
  margin-top: 22px;
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.9rem;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover,
.step-card:hover,
.benefit-card:hover,
.business-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(249, 115, 22, 0.12));
  border-bottom-left-radius: 100%;
}

.product-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
}

.product-icon svg {
  width: 25px;
  height: 25px;
}

.product-icon.textile {
  background: var(--indigo);
}

.product-icon.cotton {
  background: var(--green);
}

.product-icon.zipper {
  background: var(--orange);
}

.product-icon.thread {
  background: var(--blue);
}

.tag {
  display: inline-flex;
  margin-top: 18px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.product-card h3 {
  margin-top: 14px;
  font-size: 1.32rem;
}

.price {
  margin: 14px 0 4px;
  color: var(--blue);
  font-size: 1.55rem;
  font-weight: 900;
}

.price span,
.stock {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.stock {
  margin: 0;
}

.product-meta {
  display: grid;
  gap: 6px;
  margin: 20px 0;
  color: #475569;
  font-size: 0.94rem;
  font-weight: 700;
}

.product-meta span::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-section {
  background: linear-gradient(180deg, #fff, #eef2ff);
}

.ai-grid,
.supplier-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 54px;
}

.chat-mockup {
  padding: 22px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 900;
}

.chat-header .status-dot {
  margin-top: 0;
}

.message {
  width: fit-content;
  max-width: 82%;
  margin: 12px 0;
  border-radius: 20px;
  padding: 13px 16px;
  font-weight: 700;
}

.message.user {
  margin-left: auto;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.message.ai {
  background: #f1f5f9;
  color: #334155;
  border-bottom-left-radius: 6px;
}

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

.step-card {
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.step-card span {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 7px 11px;
  background: #eef2ff;
  color: var(--indigo);
  font-weight: 900;
}

.step-card p,
.benefit-card p,
.business-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.supplier-section {
  background: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.benefit-card {
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.benefit-card:last-child {
  grid-column: 1 / -1;
  border-color: rgba(249, 115, 22, 0.28);
  background: #fff7ed;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.business-card {
  min-height: 220px;
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.business-card.featured {
  border-color: rgba(79, 70, 229, 0.28);
  background: linear-gradient(180deg, #ffffff, #eef2ff);
}

.roadmap {
  background: #fff;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline-item {
  padding: 24px;
}

.timeline-item span {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin-top: 12px;
  font-size: 1.08rem;
}

.final-cta {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 58, 138, 0.9)),
    linear-gradient(135deg, var(--blue), var(--indigo));
  color: #fff;
}

.final-cta-inner {
  max-width: 860px;
  text-align: center;
}

.final-cta .eyebrow {
  margin-inline: auto;
}

.final-cta h2,
.final-cta p {
  color: #fff;
}

.final-cta p {
  color: #dbeafe;
}

.final-cta .hero-actions {
  justify-content: center;
}

.site-footer {
  padding: 34px 0;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-grid strong {
  color: #fff;
}

.footer-grid p {
  margin: 6px 0 0;
}

.footer-grid a {
  color: #fff;
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-dialog h2 {
  margin: 18px 54px 4px 0;
  line-height: 1.1;
}

.modal-product {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.quote-form {
  display: grid;
  gap: 14px;
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 800;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  outline: none;
  resize: vertical;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 900;
  text-align: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 14px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    border-radius: 12px;
    padding: 12px;
  }

  .nav-menu a:hover {
    background: #f8fafc;
  }

  .nav-cta {
    display: none;
  }

  .hero-grid,
  .ai-grid,
  .supplier-grid,
  .market-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .filters-panel {
    position: static;
  }

  .metrics-grid,
  .steps-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .section-pad {
    padding: 70px 0;
  }

  .section-compact {
    padding-top: 8px;
  }

  .nav {
    min-height: 70px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .nav-menu {
    top: 70px;
  }

  .hero {
    padding-top: 92px;
    padding-bottom: 8px;
  }

  .hero h1 {
    margin: 14px 0 12px;
    font-size: 2rem;
  }

  .hero-copy p,
  .section-heading p,
  .final-cta p {
    font-size: 0.98rem;
  }

  .hero-copy p {
    line-height: 1.5;
  }

  .section-heading h2,
  .final-cta h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .card-actions,
  .footer-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-demo {
    padding: 10px;
    border-radius: 22px;
  }

  .hero-grid {
    gap: 22px;
  }

  .search-card {
    padding: 12px;
    border-radius: 18px;
  }

  .search-card label {
    margin-bottom: 8px;
    font-size: 0.76rem;
  }

  .demo-topbar {
    margin-bottom: 10px;
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .search-row input {
    min-height: 44px;
  }

  .ai-response {
    min-height: auto;
    margin-top: 10px;
    padding: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .supplier-strip {
    display: none;
  }

  .metrics-grid,
  .product-grid,
  .steps-grid,
  .benefits-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .benefit-card:last-child {
    grid-column: auto;
  }

  .message {
    max-width: 92%;
  }

  .modal {
    padding: 12px;
  }

  .modal-dialog {
    max-height: calc(100vh - 24px);
    padding: 22px;
  }
}
