/* ============================================================
   AIENKA — Portable Coffee Makers & Grinders
   Coleman-inspired outdoor brand aesthetic
   ============================================================ */

:root {
  --espresso: #1d1610;
  --espresso-2: #2a2018;
  --cream: #f7f2ea;
  --paper: #fffdf9;
  --amber: #118DC3;
  --amber-dark: #0C6F9C;
  --forest: #3d4a33;
  --text: #241b12;
  --muted: #6f6357;
  --line: #e6dccc;
  --amber-light: #5FB8E0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 22, 16, 0.10);
  --shadow-lg: 0 22px 50px rgba(29, 22, 16, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3, .family-title {
  font-family: "Barlow Condensed", "Arial Narrow", "Impact", sans-serif;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
}

/* ---------- topbar ---------- */
.topbar {
  background: var(--espresso);
  color: #d8cdbf;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 7px 0;
}
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(29,22,16,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800; font-size: 30px; letter-spacing: 0.06em;
  color: var(--espresso); text-decoration: none;
}
.logo-dot { color: var(--amber); }
.logo-light { color: var(--cream); }
.logo img { height: 36px; width: auto; display: block; }
.footer .logo img { height: 32px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none; color: var(--text);
  font-weight: 600; font-size: 14.5px; letter-spacing: 0.03em;
  position: relative; padding: 4px 0;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--amber); transition: width 0.25s;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--espresso); color: var(--cream) !important;
  padding: 10px 18px !important; border-radius: 999px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--amber-dark); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--espresso); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 32% 42%; }
.hero-overlay {
  position: absolute; inset: 0;
  /* dark on the RIGHT where text sits, clear on the LEFT so the subject stays visible */
  background: linear-gradient(to left, rgba(18,12,7,0.82) 0%, rgba(18,12,7,0.40) 36%, rgba(18,12,7,0.04) 72%, rgba(18,12,7,0) 100%);
}
.hero-content {
  position: relative; z-index: 2; color: #fff;
  margin-left: auto; margin-right: clamp(20px, 5vw, 64px);
  max-width: 440px; padding: 40px 0;
  text-align: right;
}
.hero-kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #BFE4F2;
  border: 1px solid rgba(191, 228, 242, 0.55); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 22px; backdrop-filter: blur(4px);
  background: rgba(29,22,16,0.25);
}
/* 字号上限压到 88px：Google Fonts 不通时会回退到 Arial Narrow，字形更宽，
   104px 时最长的 "WHEREVER" 会撑破 440px 文字框并被 .hero 的 overflow:hidden 裁掉右边缘 */
.hero h1 { font-size: clamp(52px, 7.2vw, 88px); font-weight: 800; text-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.hero-sub { max-width: 560px; font-size: 18px; margin: 20px 0 30px; color: #f3e9dc; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-weight: 700;
  font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-dark); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.7); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.24); }
.btn-outline { background: transparent; color: var(--espresso); border-color: var(--espresso); font-size: 15px; padding: 10px 22px; }
.btn-outline:hover { background: var(--espresso); color: var(--cream); }
.btn-lg { font-size: 19px; padding: 16px 38px; }

/* ---------- trust strip ---------- */
.trust { background: var(--espresso); color: var(--cream); }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust-item {
  text-align: center; padding: 22px 10px;
  border-right: 1px solid rgba(247, 242, 234, 0.12);
  display: flex; flex-direction: column; gap: 2px;
}
.trust-item:last-child { border-right: 0; }
.trust-item strong { font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-size: 24px; letter-spacing: 0.05em; color: #5FB8E0; }
.trust-item span { font-size: 12.5px; color: #bfb2a2; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--espresso); color: var(--cream); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 52px); margin: 10px 0 14px; }
.section-sub { color: var(--muted); font-size: 16.5px; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber);
  border-bottom: 2px solid var(--amber); padding-bottom: 6px;
}
.eyebrow-amber { color: #5FB8E0; border-color: #5FB8E0; }

/* ---------- family cards ---------- */
.family-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 64px; }
.family-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: 38px 34px; text-decoration: none; color: var(--cream);
  background: linear-gradient(135deg, var(--espresso-2), var(--forest));
  box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s;
}
.family-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.family-card::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 170px; height: 170px; border-radius: 50%;
  background: rgba(217, 123, 41, 0.16);
}
.family-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; background: var(--amber); color: #fff;
  border-radius: 999px; padding: 5px 13px; margin-bottom: 16px;
}
.family-card h3 { font-size: 40px; margin-bottom: 10px; }
.family-card p { color: #cfc3b2; font-size: 15px; margin-bottom: 18px; }
.family-link { font-weight: 700; color: #5FB8E0; font-size: 14.5px; letter-spacing: 0.05em; }

.family-title {
  font-size: 30px; color: var(--espresso);
  border-left: 5px solid var(--amber); padding-left: 14px;
  margin: 0 0 26px;
}

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 70px; }
.product-grid.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; margin-inline: auto; }
.product-grid.grid-2 { margin-bottom: 0; }

.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-media { aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--cream); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-flag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; background: var(--forest); color: #fff; border-radius: 4px; padding: 4px 10px;
}
.flag-road { background: #7a5c3e; }
.flag-new { background: var(--amber); }
.product-body h4 { font-size: 19px; letter-spacing: 0.01em; }
.product-body p { color: var(--muted); font-size: 14.5px; flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  font-size: 12px; font-weight: 600; color: var(--espresso);
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px;
}

/* ---------- technology ---------- */
.tech-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.tech-copy h2 { font-size: clamp(34px, 4.4vw, 50px); margin: 12px 0 18px; }
.tech-lead { font-size: 17px; color: #d8cdbf; margin-bottom: 26px; }
.tech-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.tech-list li { padding-left: 26px; position: relative; color: #e9e0d2; font-size: 15.5px; }
.tech-list li::before {
  content: "▸"; position: absolute; left: 0; color: var(--amber); font-weight: 700;
}
.tech-list strong { color: #fff; }

.tech-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 26px 18px; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 46px; color: #5FB8E0; }
.stat-num small { font-size: 18px; letter-spacing: 0.08em; margin-left: 4px; }
.stat-label { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #bfb2a2; }

/* ---------- use cases ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.scene {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.scene:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.scene-media { height: 210px; overflow: hidden; background: #f1eee8; }
.scene-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.55s ease;
}
.scene:hover .scene-media img { transform: scale(1.06); }
.scene figcaption { padding: 18px 20px 20px; }
.scene h4 {
  font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 7px; color: var(--text);
}
.scene p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ---------- how it works ---------- */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.flow-step { border-top: 2px solid var(--line); padding-top: 18px; transition: border-color 0.25s; }
.flow-step:hover { border-color: var(--amber); }
.flow-num {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800; font-size: 42px; line-height: 1;
  color: var(--amber); letter-spacing: 0.02em; margin-bottom: 12px;
}
.flow-step h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.flow-step p { font-size: 14px; line-height: 1.62; color: var(--muted); }

/* ---------- custom & odm ---------- */
.custom-block { margin-bottom: 72px; }
.block-note { color: var(--muted); font-size: 15px; margin: -8px 0 26px; }

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

.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 0;
  transition: transform 0.25s, box-shadow 0.25s;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tile:hover .tile-media img { transform: scale(1.045); }
.tile-media {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.tile-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.4s ease;
}
.cols-3 .tile-media { height: 300px; }
.tile figcaption {
  padding: 13px 16px 15px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px; text-align: center;
}
.tile-name {
  font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-weight: 700;
  font-size: 17px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text); line-height: 1.15;
}
.tile-note { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.block-foot { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

.odm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.odm-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
}
.odm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.odm-media { aspect-ratio: 4 / 3; overflow: hidden; }
.odm-media img { width: 100%; height: 100%; object-fit: cover; }
.step-num {
  position: absolute; top: 12px; left: 12px;
  font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 15px;
  background: var(--amber); color: #fff; border-radius: 6px; padding: 3px 10px;
}
.odm-card h5 { padding: 14px 16px; font-size: 15.5px; border-top: 1px solid var(--line); }
.custom-cta { text-align: center; margin-top: 8px; }

/* ---------- specs table ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.spec-table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14px; }
.spec-table th, .spec-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table thead th {
  background: var(--espresso); color: var(--cream);
  font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-size: 19px; letter-spacing: 0.06em;
}
.spec-table thead th:first-child { border-radius: 14px 0 0 0; }
.spec-table thead th:last-child { border-radius: 0 14px 0 0; }
.spec-table tbody td:first-child { font-weight: 700; color: var(--espresso); white-space: nowrap; }
.spec-table tbody tr:nth-child(even) { background: var(--cream); }
.spec-table small { color: var(--muted); }
.table-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 18px; }

/* ---------- cta ---------- */
.section-cta {
  background:
    radial-gradient(circle at 15% 20%, rgba(17,141,195,0.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(61,74,51,0.55), transparent 50%),
    var(--espresso);
  color: var(--cream); text-align: center;
}
.cta-inner h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 14px; }
.cta-inner p { color: #d8cdbf; max-width: 560px; margin: 0 auto 32px; font-size: 17px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { background: #120d08; color: #a89a89; padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h6 {
  color: var(--cream); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 14px;
}
.footer a { display: block; color: #a89a89; text-decoration: none; font-size: 14px; padding: 4px 0; transition: color 0.2s; }
.footer a:hover { color: var(--amber); }
.footer-tag { font-size: 14px; margin-top: 8px; color: #7d7160; }
.certs {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  border: 1px solid #4a3d2e; color: #c9bba7; border-radius: 4px;
  padding: 3px 10px; margin: 0 6px 8px 0;
}
.footer-note { font-size: 12.5px; margin-top: 16px; color: #6b604f; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(18, 13, 8, 0.62); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  position: relative; background: #fff; border-radius: var(--radius);
  max-width: 620px; width: 100%; max-height: 84vh; overflow-y: auto;
  padding: 40px 38px; box-shadow: var(--shadow-lg);
  animation: pop 0.25s ease;
}
@keyframes pop { from { transform: translateY(16px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: 0;
  font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted);
}
.modal h3 { font-size: 30px; margin-bottom: 6px; }
.modal .modal-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.modal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.modal table td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.modal table td:first-child { font-weight: 700; color: var(--espresso); width: 42%; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-item:nth-child(3) { border-right: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-wrap { grid-template-columns: 1fr; gap: 40px; }
  .tile-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cols-3 .tile-media { height: 260px; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .scene-media { height: 220px; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .odm-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0; z-index: 99;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.3s ease;
    padding-bottom: 14px;
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 6%; width: 100%; }
  .nav-cta { margin: 10px 6% 0; text-align: center; }
  .burger { display: block; }
  .burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .hero { min-height: 78vh; }
  .hero-content { margin-left: 0; margin-right: 0; max-width: none; text-align: left; padding: 36px 0 30px; }
  .family-cards { grid-template-columns: 1fr; }
  .tile-grid.cols-3 { grid-template-columns: 1fr; gap: 14px; }
  .cols-3 .tile-media { height: 250px; }
  .scene-grid { grid-template-columns: 1fr; }
  .scene-media { height: 240px; }
  .flow-grid { grid-template-columns: 1fr; gap: 20px; }
  .odm-grid { grid-template-columns: 1fr; }
  .product-grid, .product-grid.grid-2 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: 0 !important; border-bottom: 1px solid rgba(247,242,234,0.12); }
  .section { padding: 68px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
