/* ========================================
   snakio.ai — shared stylesheet
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0f0f10;
  background: #ffffff;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f5;
  --bg-dark: #0f0f10;
  --text: #0f0f10;
  --text-mute: #5b5b60;
  --text-light: #9a9a9f;
  --border: #e8e8e6;
  --accent: #ff5a1f;
  --accent-dark: #e64a14;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1240px;
  --header-h: 76px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.5vw, 3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 18px;
}
.lead { font-size: 1.075rem; color: var(--text-mute); max-width: 640px; }

/* ---------- Header ---------- */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.3s ease, background 0.3s ease;
}
header.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255,255,255,0.95);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 0.9rem;
  position: relative; overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
  opacity: 0.9;
}
.logo-mark span { position: relative; z-index: 1; }

nav.primary ul {
  display: flex;
  gap: 32px;
  list-style: none;
}
nav.primary a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-mute);
  transition: color 0.2s ease;
  position: relative;
}
nav.primary a:hover, nav.primary a.is-active { color: var(--text); }
nav.primary a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg);
}
.lang-toggle button {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  color: var(--text-mute);
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
}
.lang-toggle button.active {
  background: var(--bg-dark);
  color: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(255,90,31,0.25);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-dark { background: var(--bg-dark); color: white; }
.btn-dark:hover { background: #2a2a2e; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-light:hover { background: var(--bg-alt); }
.btn-arrow::after { content: '→'; display: inline-block; transition: transform 0.2s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  align-items: center; justify-content: center;
  background: var(--bg-alt);
  transition: background 0.2s ease;
}
.menu-btn:hover { background: var(--border); }
.menu-btn span {
  display: block; width: 18px; height: 2px;
  background: var(--text);
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease;
}
.menu-btn span::before, .menu-btn span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, top 0.25s ease;
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
body.nav-open .menu-btn span { background: transparent; }
body.nav-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
body.nav-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 80px) 0 100px;
  background:
    radial-gradient(circle at 85% 30%, rgba(255,90,31,0.06), transparent 50%),
    radial-gradient(circle at 10% 70%, rgba(15,15,16,0.04), transparent 60%),
    #ffffff;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .dim { color: var(--text-light); font-weight: 800; }
.hero p.lead {
  margin-top: 28px;
  font-size: 1.15rem;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-meta-item .num {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-meta-item .label {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-top: 2px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 5% 10%;
  background: linear-gradient(135deg, #f6f6f5, #ececea);
  border-radius: 30px;
  z-index: 0;
}
.hero-machine-svg {
  position: relative;
  z-index: 2;
  width: 78%;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.18));
}
.floating-tag {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
}
.floating-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #28c76f;
  box-shadow: 0 0 0 4px rgba(40,199,111,0.18);
}
.tag-1 { top: 12%; left: -2%; animation: float 6s ease-in-out infinite; }
.tag-2 { bottom: 18%; right: -4%; animation: float 6s ease-in-out infinite 1.5s; }
.tag-3 { bottom: 6%; left: 8%; animation: float 6s ease-in-out infinite 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Logo bar ---------- */
.logo-bar {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.logo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.logo-bar-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
}
.logo-bar-logos {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.55;
}
.logo-item {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}

/* ---------- Section base ---------- */
section { padding: 110px 0; }
.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { color: var(--text-mute); font-size: 1.075rem; }

/* ---------- About ---------- */
.about { background: var(--bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1a1a1c 0%, #2a2a2e 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,90,31,0.25), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 30px);
}
.about-image-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  padding: 40px;
  text-align: center;
}
.about-image-inner svg { width: 60%; max-width: 240px; opacity: 0.9; }
.about-image-stat {
  position: absolute;
  bottom: 30px; left: 30px; right: 30px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 18px 22px;
  color: white;
  text-align: left;
}
.about-image-stat .v { font-size: 1.5rem; font-weight: 700; }
.about-image-stat .l { font-size: 0.82rem; opacity: 0.7; }
.about-content h2 { margin-bottom: 24px; }
.about-content p { color: var(--text-mute); margin-bottom: 18px; font-size: 1.05rem; }
.about-features {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.about-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.about-feature .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,90,31,0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800;
  margin-top: 3px;
}
.about-feature .t {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

/* ---------- Why us / Value props ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.value-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.value-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  margin-bottom: 22px;
}
.value-icon svg { width: 22px; height: 22px; }
.value-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.value-card p { color: var(--text-mute); font-size: 0.93rem; line-height: 1.55; }

/* ---------- Solutions (homepage) ---------- */
.solutions {
  background: var(--bg-dark);
  color: white;
}
.solutions h2 { color: white; }
.solutions .section-head p { color: rgba(255,255,255,0.6); }
.solutions .eyebrow { color: var(--accent); }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.solutions-grid > .solution-card:nth-last-child(1):nth-child(odd) {
  grid-column: span 2;
}
.solution-card {
  position: relative;
  background: linear-gradient(135deg, #1a1a1c, #232327);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 40px 36px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.solution-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,90,31,0.3);
}
.solution-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 70%; height: 200%;
  background: radial-gradient(circle, rgba(255,90,31,0.08), transparent 60%);
}
.solution-num {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.solution-card h3 {
  font-size: 1.65rem;
  margin: 16px 0 14px;
  color: white;
  position: relative;
}
.solution-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.97rem;
  line-height: 1.6;
  position: relative;
  margin-bottom: 24px;
}
.solution-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 24px;
}
.solution-tag {
  padding: 7px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.solution-link {
  position: relative;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s ease;
}
.solution-link:hover { gap: 14px; }
.solution-link::after { content: '→'; }

/* ---------- Machine Types ---------- */
.machines { background: var(--bg); }
.machines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.machine-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease;
}
.machine-card:hover {
  transform: translateY(-4px);
  background: white;
  box-shadow: var(--shadow-md);
}
.machine-visual {
  aspect-ratio: 1/1.15;
  margin-bottom: 22px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.10), transparent 55%),
    linear-gradient(180deg, #fafaf8 0%, #ececea 100%);
  border-radius: var(--radius-sm);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 22px 18px 14px;
  overflow: hidden;
  position: relative;
}
.machine-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
  pointer-events: none;
}
.machine-visual svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.18)) drop-shadow(0 4px 6px rgba(0,0,0,0.12));
}
.machine-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.machine-card p { font-size: 0.85rem; color: var(--text-mute); }

/* ---------- Smart Tech ---------- */
.tech { background: linear-gradient(180deg, var(--bg-alt) 0%, #ffffff 100%); }
.tech-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.tech-features {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.tech-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tech-feature:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.tech-feature-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-dark);
  color: white;
  display: flex; align-items: center; justify-content: center;
}
.tech-feature-icon svg { width: 20px; height: 20px; }
.tech-feature h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.tech-feature p { font-size: 0.9rem; color: var(--text-mute); margin: 0; }
.tech-visual {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.tech-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,90,31,0.4), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(40,199,111,0.2), transparent 50%);
}
.tech-screen {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  aspect-ratio: 9/16;
  background: #0a0a0c;
  border-radius: 24px;
  border: 8px solid #1f1f22;
  padding: 22px 18px;
  color: white;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.tech-screen-time { font-size: 0.7rem; text-align: center; margin-bottom: 14px; color: rgba(255,255,255,0.7); }
.tech-screen-title { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.tech-screen-amount { font-size: 1.6rem; font-weight: 700; margin-bottom: 18px; }
.tech-screen-card {
  background: linear-gradient(135deg, var(--accent), #ff8c4a);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}
.tech-screen-card .l { font-size: 0.7rem; opacity: 0.85; }
.tech-screen-card .v { font-size: 0.85rem; font-weight: 600; }
.tech-screen-pay {
  background: white;
  color: black;
  text-align: center;
  padding: 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- CTA / Request ---------- */
.request { background: var(--bg); padding: 110px 0; }
.request-card {
  background: var(--bg-dark);
  color: white;
  border-radius: 24px;
  padding: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  overflow: hidden;
}
.request-card::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,31,0.18), transparent 60%);
}
.request-info { position: relative; }
.request-info .eyebrow { color: var(--accent); }
.request-info h2 { color: white; margin-bottom: 22px; }
.request-info p { color: rgba(255,255,255,0.65); font-size: 1rem; margin-bottom: 28px; }
.request-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.request-info li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
.request-info li::before {
  content: '✓';
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
}

.request-form {
  background: white;
  border-radius: 16px;
  padding: 36px;
  color: var(--text);
  position: relative;
}
.request-form h3 { font-size: 1.15rem; margin-bottom: 22px; }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.93rem;
  background: var(--bg-alt);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.request-form button {
  width: 100%;
  padding: 14px;
  background: var(--bg-dark);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease;
  margin-top: 8px;
}
.request-form button:hover { background: var(--accent); }

/* ---------- Locations ---------- */
.locations { background: var(--bg-alt); }
.locations-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
@media (max-width: 1180px) {
  .locations-grid { grid-template-columns: repeat(4, 1fr); }
}
.location-card {
  background: white;
  padding: 36px 22px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.location-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.location-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.location-icon svg { width: 26px; height: 26px; }
.location-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.location-card p { font-size: 0.82rem; color: var(--text-mute); }

/* ---------- Testimonials / Trusted ---------- */
.trusted { background: var(--bg); }
.trusted-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 38px 34px;
  position: relative;
}
.testimonial-quote-mark {
  position: absolute;
  top: 26px; right: 30px;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
}
.testimonial-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 28px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff8c4a);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.9rem;
}
.testimonial-name { font-weight: 600; font-size: 0.92rem; }
.testimonial-role { font-size: 0.78rem; color: var(--text-mute); }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { color: white; margin-bottom: 18px; }
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  max-width: 320px;
  margin-bottom: 22px;
}
.footer-socials { display: flex; gap: 10px; }
.social {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s ease, color 0.2s ease;
}
.social:hover { background: var(--accent); color: white; }
.social svg { width: 16px; height: 16px; }

.footer-col h5 {
  color: white;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ========================================
   SOLUTION SUBPAGE STYLES
   ======================================== */

/* Page hero (subpages) */
.page-hero {
  padding: calc(var(--header-h) + 80px) 0 90px;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.page-hero.dark {
  background: var(--bg-dark);
  color: white;
}
.page-hero.dark h1 { color: white; }
.page-hero.dark .lead { color: rgba(255,255,255,0.65); }
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -150px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,31,0.10), transparent 60%);
  pointer-events: none;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin: 16px 0 22px;
}
.page-hero .lead {
  font-size: 1.13rem;
  margin-bottom: 32px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-bottom: 8px;
  flex-wrap: wrap;
  row-gap: 4px;
}
.page-hero.dark .breadcrumb { color: rgba(255,255,255,0.55); }
.breadcrumb a { transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { opacity: 0.4; }
.breadcrumb .current { color: var(--text); font-weight: 500; }
.page-hero.dark .breadcrumb .current { color: white; }

.page-hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #ececea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.page-hero.dark .page-hero-visual {
  background: linear-gradient(135deg, #1a1a1c 0%, #0a0a0c 100%);
  border: 1px solid rgba(255,255,255,0.06);
}
.page-hero-visual svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.18));
}

/* Overview section */
.overview {
  background: var(--bg);
  padding: 110px 0;
}
.overview-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.overview-grid h2 { margin-bottom: 8px; }
.overview-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 30px;
  margin-top: 20px;
}
.overview-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.overview-feature p {
  font-size: 0.92rem;
  color: var(--text-mute);
  line-height: 1.55;
  margin: 0;
}
.overview-feature .num {
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,90,31,0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* Products grid */
.products {
  background: var(--bg-alt);
  padding: 110px 0;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 22px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.product-visual {
  aspect-ratio: 1/1;
  margin-bottom: 14px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.06), transparent 55%),
    linear-gradient(180deg, #fafaf8 0%, #efefec 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.product-visual::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
  pointer-events: none;
}
.product-visual svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.12));
  position: relative;
  z-index: 1;
}
.product-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.product-card p {
  font-size: 0.78rem;
  color: var(--text-mute);
  line-height: 1.4;
}
.product-card .product-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  background: rgba(255,90,31,0.10);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Image gallery (multiple machine angles / scene shots) */
.gallery {
  background: var(--bg);
  padding: 110px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1c, #0a0a0c);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: white;
}
.gallery-item.bg-light {
  background: linear-gradient(135deg, #ffffff, #ececea);
  color: var(--text);
}
.gallery-item.bg-orange {
  background: linear-gradient(135deg, var(--accent), #ff8c4a);
  color: white;
}
.gallery-item-1 { grid-row: span 2; }
.gallery-item svg {
  width: 100%; height: 100%;
  max-height: 100%;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.25));
}
.gallery-item .gallery-label {
  position: absolute;
  bottom: 18px; left: 22px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  z-index: 2;
}
.gallery-item .gallery-label .accent { color: var(--accent); margin-right: 6px; }
.gallery-item.bg-orange .gallery-label .accent { color: white; }

/* Mini CTA between sections */
.mini-cta {
  background: var(--bg-dark);
  color: white;
  padding: 60px 0;
}
.mini-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.mini-cta h3 {
  color: white;
  font-size: 1.5rem;
  margin: 0;
}
.mini-cta p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin: 6px 0 0;
}

/* ---------- Mobile menu (CSS-driven) ---------- */
.mobile-nav-overlay {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(15,15,16,0.55);
  backdrop-filter: blur(6px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
body.nav-open .mobile-nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Tablet (≤ 980px) ---------- */
@media (max-width: 980px) {
  nav.primary {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 95;
    padding: 18px 0;
  }
  body.nav-open nav.primary { transform: translateY(0); }
  nav.primary ul {
    flex-direction: column;
    gap: 0;
    padding: 0 28px;
  }
  nav.primary li { border-bottom: 1px solid var(--border); }
  nav.primary li:last-child { border-bottom: none; }
  nav.primary a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
  }
  nav.primary a.is-active::after { display: none; }
  .menu-btn { display: flex; }

  .hero-grid, .about-grid, .tech-grid, .page-hero-grid, .overview-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .request-card { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
  .machines-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .trusted-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solutions-grid > .solution-card:nth-last-child(1):nth-child(odd) { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  section { padding: 72px 0; }
  .hero, .page-hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; }
  .about-features, .overview-features { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 240px 240px; gap: 14px; }
  .gallery-item-1 { grid-row: span 1; grid-column: span 2; }
  .page-hero-visual { padding: 28px; aspect-ratio: 4/3; }
}

/* ---------- Phone (≤ 600px) ---------- */
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .container { padding: 0 18px; }

  /* Header tightening */
  .nav-inner { gap: 10px; }
  .nav-actions { gap: 8px; }
  .logo { font-size: 1rem; }
  .logo-mark { width: 28px; height: 28px; font-size: 0.8rem; }
  .lang-toggle button { padding: 5px 10px; font-size: 0.7rem; letter-spacing: 0.04em; }
  .nav-actions .btn-primary {
    padding: 9px 14px;
    font-size: 0.78rem;
  }

  /* Typography */
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2rem); }

  /* Sections */
  section { padding: 56px 0; }
  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 50px; }
  .page-hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 50px; }
  .section-head { margin-bottom: 40px; }
  .hero-meta { gap: 18px; flex-wrap: wrap; }
  .hero-meta-item .num { font-size: 1.5rem; }

  /* Hero visual */
  .hero-visual { aspect-ratio: 5/4; }
  .hero-visual::before { inset: 5% 4%; border-radius: 20px; }
  .hero-machine-svg { width: 70%; }
  .floating-tag { font-size: 0.72rem; padding: 7px 11px; }
  .tag-1 { top: 6%; left: 2%; }
  .tag-2 { bottom: 14%; right: 2%; }
  .tag-3 { bottom: 4%; left: 4%; }

  /* Page-hero visual */
  .page-hero-visual { padding: 20px; aspect-ratio: 5/4; border-radius: 18px; }

  /* Grids */
  .machines-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .machine-card { padding: 18px 14px 22px; }
  .locations-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .location-card { padding: 24px 14px; }
  .location-icon { width: 46px; height: 46px; margin-bottom: 12px; }
  .location-card h4 { font-size: 0.92rem; }
  .location-card p { font-size: 0.76rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .request-card { padding: 28px 20px; border-radius: 18px; gap: 30px; }

  /* Hero CTA stacks */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { justify-content: center; padding: 14px 22px; }

  /* Solutions cards padding */
  .solution-card { padding: 32px 26px; min-height: 280px; }
  .solution-card h3 { font-size: 1.4rem; }

  /* Value cards / overview */
  .value-card { padding: 26px 22px; }
  .tech-feature { padding: 18px; }

  /* Gallery to single column */
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; grid-template-rows: none; gap: 12px; }
  .gallery-item-1 { grid-column: span 1; grid-row: span 1; }
  .gallery-item { padding: 22px; }
  .gallery-item .gallery-label { bottom: 14px; left: 18px; font-size: 0.7rem; }

  /* Products */
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card { padding: 14px 14px 18px; }
  .product-card h4 { font-size: 0.88rem; }
  .product-card p { font-size: 0.74rem; }

  /* Testimonials full width */
  .testimonial { padding: 28px 24px; }
  .testimonial-text { font-size: 0.98rem; }

  /* Mini CTA stack */
  .mini-cta { padding: 44px 0; }
  .mini-cta-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .mini-cta h3 { font-size: 1.2rem; }
  .mini-cta-inner .btn { width: 100%; justify-content: center; }

  /* Logo-bar */
  .logo-bar { padding: 32px 0; }
  .logo-bar-inner { gap: 18px; }
  .logo-bar-logos { gap: 22px; }
  .logo-item { font-size: 0.9rem; }

  /* About image more compact */
  .about-image { aspect-ratio: 3/4; }
  .about-image-stat { bottom: 20px; left: 20px; right: 20px; padding: 14px 16px; }
  .about-image-stat .v { font-size: 1.2rem; }

  /* Tech screen smaller */
  .tech-visual { aspect-ratio: 4/3; }
  .tech-screen { width: 50%; padding: 16px 12px; }

  /* Form */
  .request-form { padding: 24px; border-radius: 14px; }
  .form-group input, .form-group textarea { padding: 11px 12px; font-size: 0.92rem; }
  .request-form button { padding: 13px; }

  /* Smaller eyebrow on phones (avoid overflow on long labels) */
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.10em; }
  .breadcrumb { font-size: 0.74rem; gap: 6px; }

  /* Stats / compare / flavor / diagram cards (subpages) */
  .stat-card { padding: 24px 20px; }
  .stat-card .stat-num { font-size: 2rem; }
  .compare-card { padding: 26px 22px; }
  .flavor-card { padding: 28px 20px; }
  .diagram-card { padding: 28px 22px; }
}

/* ---------- Tiny phones (≤ 380px) ---------- */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .nav-actions .btn-primary { display: none; }
  .machines-grid, .products-grid, .locations-grid { gap: 10px; }
  .machine-card { padding: 16px 12px 20px; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
