/* ============================================================
   MOCO Automation — Shared Design System
   Dark industrial theme: Deep Navy #0F172A + Sky Blue #0EA5E9
   Single stylesheet for the full 7-page static B2B website
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

/* ============================================================
   COLOR SYSTEM
   ============================================================ */
:root {
  --bg-primary: #0F172A;
  --bg-card: #1E293B;
  --bg-card-hover: #263348;
  --border: #334155;
  --border-light: #1E293B;
  --accent: #0EA5E9;
  --accent-hover: #38BDF8;
  --accent-dim: rgba(14, 165, 233, 0.15);
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --danger: #EF4444;
  --gap: clamp(1rem, 3vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

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

ul {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

h5 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav .logo .accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .subtitle {
  max-width: 660px;
  margin: 0 auto 2rem;
}

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
.section {
  padding: 5rem clamp(1rem, 3vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-family: inherit;
  text-align: center;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.3);
}

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

.btn-ghost:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.35s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.08);
}

.card.card-accent {
  border-left: 3px solid var(--accent);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1rem 0 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   SPEC TABLES
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table thead {
  background: var(--bg-card);
}

.spec-table thead th {
  padding: 0.85rem 1rem;
  text-align: left;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--accent);
  white-space: nowrap;
}

.spec-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.spec-table tbody tr:hover {
  background: rgba(14, 165, 233, 0.05);
}

.spec-table tbody td {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   STAT CARD
   ============================================================ */
.stat-card {
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ============================================================
   TAGS
   ============================================================ */
.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 4rem var(--gap) 3rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 2;
}

footer h5 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

footer ul li a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

/* ============================================================
   FOUNDER SECTION
   ============================================================ */
.founder-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.founder-text h2 {
  margin-bottom: 1.5rem;
}

.founder-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.founder-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.founder-signature {
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
  margin-top: 2rem;
}

.founder-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.founder-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ============================================================
   PROOF CARDS
   ============================================================ */
.proof-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.proof-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
  transition: background 0.3s;
}

.proof-card:hover {
  background: var(--bg-card-hover);
}

.proof-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.proof-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.3rem 0;
}

.proof-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  opacity: 0;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================================
   PRODUCT DETAIL LAYOUT (Hydraulic Presses)
   ============================================================ */
.cat-heading {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.detail-grid img {
  max-width: 100%;
  border-radius: 8px;
}

.img-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.img-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.img-row-2 img,
.img-row-3 img {
  width: 100%;
  border-radius: 8px;
}

.full-img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
}

.option-text {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

.back-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 1rem;
  font-weight: 500;
}

.back-link:hover {
  color: var(--accent-hover);
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .img-row-3 {
    grid-template-columns: 1fr;
  }
  .img-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .founder-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  footer {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: 2.2rem;
  }

  .hero {
    min-height: 70vh;
    padding: 5rem 1.5rem 3rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 480px) {
  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 3rem 1rem;
  }

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

  .founder-section {
    gap: 2rem;
  }
}

