/* ============================================================
   Hamsho Technology — pneumatic coffee bean distribution
   Dark industrial theme: matte black frames, copper accents,
   clear-acrylic highlights. Single committed look (dark only).
   ============================================================ */

:root {
  --bg:          #0b0a09;
  --bg-2:        #121010;
  --bg-3:        #1a1716;
  --bg-4:        #221e1b;
  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text:        #f6f2ed;
  --muted:       #a89e93;
  --muted-2:     #7d746b;

  --copper:      #c87a45;
  --copper-lit:  #e39a62;
  --copper-deep: #8f5228;
  --copper-wash: rgba(200, 122, 69, 0.12);

  --glass:       rgba(255, 255, 255, 0.045);

  --maxw:        1200px;
  --radius:      14px;
  --radius-sm:   9px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 650;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--bg-2); }

/* ---------- Shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper-lit);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--copper);
}

.section-title {
  font-size: clamp(28px, 4.2vw, 44px);
  max-width: 20ch;
}
.section-lead {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18.5px);
  max-width: 62ch;
  margin: 20px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s,
              box-shadow 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--copper-lit); outline-offset: 3px; }

.btn--primary {
  background: linear-gradient(135deg, var(--copper-lit), var(--copper-deep));
  color: #1a0f06;
  box-shadow: 0 8px 26px rgba(200, 122, 69, 0.28);
}
.btn--primary:hover { box-shadow: 0 12px 34px rgba(200, 122, 69, 0.42); }

.btn--ghost {
  background: var(--glass);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--copper); }

.btn--wa { background: #25d366; color: #04240f; }
.btn--wa:hover { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.34); }

.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- Header ---------- */

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: rgba(11, 10, 9, 0.86);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.hdr__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo__txt b { font-size: 15.5px; font-weight: 680; letter-spacing: -0.015em; }
.logo__txt span {
  font-size: 9.5px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); }

.hdr__cta { flex: none; }

.burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  margin: 3.5px auto;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 72px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,10,9,0.80) 0%, rgba(11,10,9,0.62) 42%, var(--bg) 97%),
    linear-gradient(100deg, rgba(11,10,9,0.92) 8%, rgba(11,10,9,0.30) 62%);
}
.hero__in { position: relative; z-index: 1; width: 100%; }
.hero__copy { max-width: 660px; }

.hero h1 {
  font-size: clamp(38px, 6.6vw, 74px);
  font-weight: 680;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--copper-lit), #f0c08d 55%, var(--copper));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  color: #cdc4b9;
  font-size: clamp(16.5px, 2vw, 20px);
  margin: 26px 0 0;
  max-width: 55ch;
}
.hero__btns { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 38px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 620px;
}
.hero__meta div { font-size: 13.5px; color: var(--muted); }
.hero__meta b {
  display: block;
  color: var(--text);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 1px;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-hint i {
  width: 1px; height: 34px;
  background: linear-gradient(var(--copper), transparent);
  animation: drop 2.1s var(--ease) infinite;
}
@keyframes drop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- Flow / how it works ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 58px;
  counter-reset: step;
}
.flow__step {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.flow__step:hover {
  border-color: rgba(200, 122, 69, 0.5);
  transform: translateY(-4px);
  background: var(--bg-4);
}
/* connector line between steps */
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 47px;
  right: -19px;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--copper), transparent);
  z-index: 1;
}
.flow__ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--copper-wash);
  border: 1px solid rgba(200, 122, 69, 0.28);
  margin-bottom: 18px;
  color: var(--copper-lit);
}
.flow__ico svg { width: 22px; height: 22px; }
.flow__step h3 { font-size: 16.5px; margin-bottom: 8px; }
.flow__step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.flow__n {
  position: absolute;
  top: 18px; right: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}

/* ---------- Components ---------- */

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.35s var(--ease);
}
.card:hover { border-color: rgba(200, 122, 69, 0.45); transform: translateY(-5px); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-4); }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card__media img { transform: scale(1.055); }
.card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,10,9,0.55));
}
.card__body { padding: 24px 24px 26px; }
.card__body h3 { font-size: 18.5px; margin-bottom: 10px; }
.card__body p { margin: 0; font-size: 14.5px; color: var(--muted); }
.card__tag {
  position: absolute;
  z-index: 2;
  top: 14px; left: 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(11, 10, 9, 0.72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  color: var(--copper-lit);
}

/* ---------- Split feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--flip .split__media { order: -1; }
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.split__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.split__media--wide img { aspect-ratio: 4 / 3; }

.checks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 15px; }
.checks li {
  display: flex;
  gap: 13px;
  font-size: 15.5px;
  color: #d7cfc5;
  align-items: flex-start;
}
.checks svg { width: 19px; height: 19px; flex: none; color: var(--copper-lit); margin-top: 2px; }
.checks b { color: var(--text); font-weight: 600; }

/* ---------- Video ---------- */

.videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.vid {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  position: relative;
}
.vid video { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; background: #000; }
.vid figcaption {
  padding: 15px 18px 17px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--bg-3);
  border-top: 1px solid var(--line);
}
.vid figcaption b { display: block; color: var(--text); font-size: 15px; margin-bottom: 3px; font-weight: 600; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 52px;
}
.gallery button {
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.gallery button:hover { border-color: var(--copper); transform: scale(1.02); }
.gallery button:focus-visible { outline: 2px solid var(--copper-lit); outline-offset: 2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery button:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 5, 5, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  place-items: center;
  padding: 28px;
}
.lb.is-open { display: grid; }
.lb img { max-width: 100%; max-height: 88vh; border-radius: var(--radius-sm); object-fit: contain; }
.lb__close {
  position: absolute;
  top: 22px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.lb__close:hover { border-color: var(--copper); }

/* ---------- Spec / build strip ---------- */

.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 52px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.specs div { background: var(--bg-3); padding: 30px 26px; }
.specs dt {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 10px;
}
.specs dd { margin: 0; font-size: 15.5px; color: var(--text); font-weight: 500; }

/* ---------- CTA band ---------- */

.band {
  background:
    radial-gradient(120% 160% at 88% 12%, rgba(200, 122, 69, 0.20), transparent 62%),
    var(--bg-3);
  border-block: 1px solid var(--line);
  padding: 88px 0;
}
.band__in { display: flex; gap: 44px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2 { font-size: clamp(26px, 3.6vw, 40px); max-width: 17ch; }
.band p { color: var(--muted); margin: 16px 0 0; max-width: 46ch; }
.band__btns { display: flex; gap: 13px; flex-wrap: wrap; }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; margin-top: 52px; }

.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact__list a, .contact__list div {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, background 0.25s;
}
.contact__list a:hover { border-color: var(--copper); background: var(--bg-4); }
.contact__ico {
  width: 40px; height: 40px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--copper-wash);
  border: 1px solid rgba(200, 122, 69, 0.26);
  color: var(--copper-lit);
}
.contact__ico svg { width: 19px; height: 19px; }
.contact__list span { display: block; font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.contact__list b { font-size: 15.5px; font-weight: 550; }

.form {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 17px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 108px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px var(--copper-wash);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.form__note { font-size: 12.5px; color: var(--muted-2); margin: 14px 0 0; text-align: center; }
.form .btn { width: 100%; }

/* ---------- Footer ---------- */

.ftr { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 34px; }
.ftr__in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ftr__brand { max-width: 330px; }
.ftr__brand p { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.ftr__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.ftr__col h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.ftr__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr__col a { font-size: 14.5px; color: var(--muted); transition: color 0.2s; }
.ftr__col a:hover { color: var(--copper-lit); }
.ftr__btm {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted-2);
}

/* ---------- Floating WhatsApp ---------- */

.fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 95;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #04240f;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease);
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 27px; height: 27px; }

/* ---------- Reveal on scroll ----------
   Content is visible by default. The hidden starting state is applied ONLY when
   the inline head script has confirmed JS is running (html.js). Without that
   guard, any JS failure — or a browser that never fires IntersectionObserver —
   leaves every section stuck at opacity:0 and the page reads as blank. The
   animation is an enhancement; it must never be load-bearing for legibility. */

.rv { opacity: 1; transform: none; }

.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1040px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow__step:not(:last-child)::after { display: none; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 44px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }

  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 10, 9, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 22px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .burger { display: grid; }
  .hdr__cta { display: none; }

  .split, .contact { grid-template-columns: 1fr; gap: 34px; }
  .split--flip .split__media { order: 0; }
  .split__media img, .split__media--wide img { aspect-ratio: 4 / 3; }

  .videos { grid-template-columns: 1fr; }
  .vid video { aspect-ratio: 16 / 11; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery button:nth-child(1) { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }

  .form { padding: 26px 22px; }
  .hero { min-height: auto; padding: 132px 0 84px; }
  .hero__meta { gap: 18px 26px; }
  .scroll-hint { display: none; }
}

@media (max-width: 560px) {
  .flow, .grid-cards, .specs, .form__row { grid-template-columns: 1fr; }
  .wrap { padding-inline: 18px; }
  .btn { width: 100%; }
  .hero__btns { flex-direction: column; align-items: stretch; }
  .band__btns { width: 100%; }
  .ftr__cols { gap: 34px; }
}
