/* Farstar Global — 1688-inspired B2B trade site */

:root {
  --orange: #ff6600;
  --orange-dark: #e55a00;
  --orange-deep: #d4380d;
  --orange-light: #fff4eb;
  --orange-mid: #ff8533;
  --blue: #1a6fb5;
  --ink: #222;
  --ink-soft: #555;
  --muted: #888;
  --line: #eee;
  --line-strong: #e5e5e5;
  --bg: #f5f5f5;
  --white: #fff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 20px rgba(255, 102, 0, 0.15);
  --radius: 4px;
  --header-h: 72px;
  --font: "Noto Sans TC", "Source Sans 3", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 36px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--orange);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Top bar */
.topbar {
  background: #333;
  color: #ccc;
  font-size: 12px;
  line-height: 1;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.topbar a {
  color: #ddd;
}

.topbar a:hover {
  color: var(--orange);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar .sep {
  color: #666;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid #555;
  border-radius: 2px;
  overflow: hidden;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #ccc;
  font: inherit;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--orange);
  color: #fff;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo:hover {
  color: inherit;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.logo-text strong {
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.logo-text small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--orange);
  background: var(--orange-light);
}

.nav-cta {
  background: var(--orange) !important;
  color: #fff !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--orange-dark) !important;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: var(--radius);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #ff8533 0%, #ff6600 100%);
  color: #fff;
  box-shadow: 0 2px 0 #d45500;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ff944d 0%, #ff751a 100%);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-ghost:hover {
  background: #fff;
  color: var(--orange);
}

.btn-block {
  width: 100%;
}

/* Hero — 1688 marketplace banner feel */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 460px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(212, 56, 13, 0.92) 0%, rgba(255, 102, 0, 0.88) 45%, rgba(255, 140, 40, 0.85) 100%),
    repeating-linear-gradient(
      -25deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.03) 18px,
      rgba(255, 255, 255, 0.03) 36px
    ),
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(255, 255, 255, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(0, 0, 0, 0.15), transparent 50%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 40px;
  width: 420px;
  height: 420px;
  border: 40px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 56px 0 48px;
}

.hero-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  border-radius: 2px;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.hero-brand {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-en {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 600;
  opacity: 0.92;
  letter-spacing: 0.02em;
}

.hero-desc {
  max-width: 620px;
  font-size: 16px;
  opacity: 0.95;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
}

.hero-stats li {
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 14px 12px;
  text-align: center;
  border-radius: var(--radius);
}

.hero-stats strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 2px;
}

.hero-stats span {
  font-size: 12px;
  opacity: 0.9;
}

/* Quick categories — 1688 entry icons */
.quick-cats {
  margin-top: -28px;
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  background: var(--white);
  padding: 18px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius);
  transition: 0.2s ease;
}

.quick-item:hover {
  background: var(--orange-light);
  color: var(--orange);
  transform: translateY(-2px);
}

.qi-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--orange-light);
  position: relative;
}

.qi-icon::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--orange);
  opacity: 0.9;
}

.qi-office::before {
  clip-path: polygon(15% 20%, 85% 20%, 85% 80%, 15% 80%);
  border-radius: 2px;
  background:
    linear-gradient(#fff 0 0) 50% 35% / 60% 3px no-repeat,
    linear-gradient(#fff 0 0) 50% 50% / 60% 3px no-repeat,
    linear-gradient(#fff 0 0) 50% 65% / 40% 3px no-repeat,
    var(--orange);
}

.qi-home::before {
  clip-path: polygon(50% 10%, 90% 45%, 90% 90%, 10% 90%, 10% 45%);
}

.qi-daily::before {
  border-radius: 50%;
  inset: 13px;
}

.qi-trade::before {
  clip-path: polygon(10% 70%, 30% 30%, 50% 55%, 70% 20%, 90% 70%);
}

.qi-quality::before {
  clip-path: polygon(50% 5%, 61% 35%, 95% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 5% 35%, 39% 35%);
}

.qi-service::before {
  border-radius: 50% 50% 50% 8%;
  inset: 12px 14px 10px;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--white);
}

.section-orange {
  background: linear-gradient(135deg, #ff6600 0%, #ff8533 50%, #ff9a4d 100%);
  color: #fff;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head.left {
  text-align: left;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-head:not(.light):not(.left) h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin: 12px auto 0;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 560px;
  margin-inline: auto;
}

.section-head.left p {
  margin-inline: 0;
}

.section-head.light p {
  color: rgba(255, 255, 255, 0.9);
}

.section-head.light h2::after {
  background: #fff;
}

/* Category cards */
.cat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.cat-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #ffd0b0;
  transform: translateY(-3px);
}

.cat-visual {
  height: 140px;
  position: relative;
}

.cv-office {
  background:
    linear-gradient(135deg, #ffe8d6, #ffc8a0),
    repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(255, 102, 0, 0.08) 20px, rgba(255, 102, 0, 0.08) 21px);
}

.cv-home {
  background: linear-gradient(135deg, #ffe0c8, #ffb380);
}

.cv-daily {
  background: linear-gradient(135deg, #ffd4b0, #ff9a4d);
}

.cat-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 60%, rgba(255, 255, 255, 0.5), transparent 40%),
    radial-gradient(circle at 75% 35%, rgba(255, 102, 0, 0.25), transparent 35%);
}

.cat-body {
  padding: 20px;
}

.cat-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
}

.cat-body h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--orange);
  margin-right: 8px;
  vertical-align: -2px;
}

.cat-body > p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.cat-body ul {
  display: grid;
  gap: 6px;
}

.cat-body li {
  font-size: 13px;
  padding-left: 14px;
  position: relative;
  color: var(--ink);
}

.cat-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 1px;
}

/* Products */
.prod-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.prod-tab {
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 2px;
  cursor: pointer;
}

.prod-tab:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.prod-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.prod-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.2s ease;
}

.prod-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-hover);
}

.prod-card[hidden] {
  display: none;
}

.prod-thumb {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: #fff9f4;
}

.prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.prod-card:hover .prod-thumb img {
  transform: scale(1.06);
}

.prod-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff8533, #ff6600);
  padding: 4px 8px;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(229, 90, 0, 0.35);
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prod-info {
  padding: 12px;
}

.prod-info h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  min-height: 40px;
}

.prod-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.prod-tag {
  color: var(--orange);
  font-weight: 700;
}

.prod-moq {
  color: var(--muted);
}

.prod-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}

/* Advantages */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.adv-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px 20px;
  border-radius: var(--radius);
  transition: 0.2s ease;
}

.adv-card:hover {
  border-color: #ffc8a0;
  box-shadow: var(--shadow);
}

.adv-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--orange);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 10px;
}

.adv-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.adv-card p {
  font-size: 13px;
  color: var(--ink-soft);
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.process-steps li {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 20px 14px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}

.step-idx {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--orange);
  font-weight: 900;
  font-size: 14px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.process-steps h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.process-steps p {
  font-size: 12px;
  opacity: 0.92;
}

/* Markets */
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mkt-card {
  background: var(--white);
  border-top: 3px solid var(--orange);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
}

.mkt-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.mkt-card p {
  font-size: 13px;
  color: var(--ink-soft);
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.about-copy > p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 14px;
}

.about-facts {
  margin-top: 24px;
  display: grid;
  gap: 12px;
  background: var(--bg);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.about-facts div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  font-size: 14px;
}

.about-facts dt {
  color: var(--muted);
  font-weight: 500;
}

.about-facts dd {
  margin: 0;
  font-weight: 600;
}

.about-panel {
  background: linear-gradient(160deg, #fff4eb, #ffe0c8);
  border: 1px solid #ffd0b0;
  padding: 28px 24px;
  border-radius: var(--radius);
}

.about-panel h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--orange-deep);
}

.about-panel ul {
  margin-bottom: 24px;
  display: grid;
  gap: 10px;
}

.about-panel li {
  font-size: 14px;
  padding-left: 22px;
  position: relative;
}

.about-panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--orange);
  font-weight: 700;
  font-size: 18px;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  margin-top: -4px;
  padding-top: 12px;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: var(--radius);
}

.contact-card-wide {
  grid-column: 1 / -1;
}

.cc-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-card strong {
  font-size: 15px;
  word-break: break-word;
}

.contact-card a {
  color: var(--orange);
}

.inquiry-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.inquiry-form h3 {
  font-size: 18px;
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inquiry-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fafafa;
  width: 100%;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
}

.form-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.form-success {
  margin-top: 10px;
  padding: 10px;
  background: #e8f8ef;
  color: #1a7a45;
  font-size: 13px;
  text-align: center;
  border-radius: var(--radius);
}

/* Footer */
.footer {
  background: #2b2b2b;
  color: #bbb;
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-bottom: 36px;
}

.footer .logo-text strong {
  color: #fff;
}

.footer .logo-text small {
  color: #999;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 13px;
}

.footer h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
}

.footer ul {
  display: grid;
  gap: 8px;
}

.footer a {
  color: #bbb;
  font-size: 13px;
}

.footer a:hover {
  color: var(--orange);
}

.footer p {
  font-size: 13px;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid #3a3a3a;
  padding: 16px 0;
  font-size: 12px;
  color: #888;
}

/* Float CTA */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 28px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff8533, #ff6600);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.45);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cat-cards,
  .adv-grid {
    grid-template-columns: 1fr 1fr;
  }

  .prod-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .mkt-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 640px) {
  .topbar-welcome {
    display: none;
  }

  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cat-cards,
  .adv-grid,
  .prod-grid,
  .process-steps,
  .mkt-grid,
  .footer-grid,
  .form-row,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .section {
    padding: 48px 0;
  }

  .float-cta {
    right: 14px;
    bottom: 18px;
    width: 50px;
    height: 50px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .float-cta {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
