/* ================================================================
   Aromi — the connected coffee platform
   Brand: leaf green on espresso + cream
   green #00af76 · espresso #17120e · cream #faf7f2 · warm steel #8a8178
   ================================================================ */

:root {
  --espresso: #17120e;
  --ink: #241c16;
  --steel: #8a8178;
  --cream: #faf7f2;
  --white: #ffffff;
  --green: #00af76;
  --green-dark: #009565;
  --line: rgba(23, 18, 14, 0.1);
  --wrap: 1140px;
  --font-display: "Inter", "Helvetica Neue", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: #453c34;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.022em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; margin-bottom: 0.6em; }
h3 { font-size: 1.28rem; font-weight: 700; }

a { color: inherit; }

:focus-visible {
  outline: 2.5px solid var(--green);
  outline-offset: 3px;
}

::selection { background: var(--green); color: var(--white); }

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

/* eyebrow: mono label led by a green bar */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 8px;
  border-radius: 4px;
  background: var(--green);
  flex: none;
}
.eyebrow-dark { color: var(--cream); }

.lede { font-size: 1.18rem; max-width: 660px; margin-bottom: 2.6rem; }

.muted { color: var(--steel); }
.accent { color: var(--green); }

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--green);
}
.text-link:hover { box-shadow: inset 0 -1.2em 0 rgba(0, 175, 118, 0.25); }

/* ---------------- brand / logo ---------------- */

.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.brand-dark { display: none; }
.nav.scrolled .brand-light { display: none; }
.nav.scrolled .brand-dark { display: block; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0.9em 1.7em;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 175, 118, 0.35);
}

.btn-line {
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}
.btn-line:hover { background: var(--white); color: var(--espresso); }

.btn-line-dark {
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-line-dark:hover { background: var(--ink); color: var(--cream); }

.btn-sm { font-size: 0.85rem; padding: 0.62em 1.2em; }

/* ---------------- nav ---------------- */
/* transparent over the dark hero (white links); frosted cream after it */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(250, 247, 242, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav.scrolled .nav-links a { color: #453c34; }
.nav.scrolled .nav-links a:hover { color: var(--ink); }

/* ---------------- hero (product on espresso gradient) ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
  background:
    radial-gradient(1100px 700px at 78% 38%, #33291f 0%, rgba(51, 41, 31, 0) 60%),
    linear-gradient(160deg, #201812 0%, var(--espresso) 55%, #100c09 100%);
}

/* soft green aura behind the machine */
.hero-glow {
  position: absolute;
  right: -6%;
  top: 18%;
  width: 56vw;
  height: 64vh;
  background: radial-gradient(closest-side, rgba(0, 175, 118, 0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 72px;
}

.hero h1 { color: var(--white); max-width: 14ch; }

.eyebrow-hero { color: rgba(255, 255, 255, 0.92); }

.hero-sub {
  font-size: 1.2rem;
  max-width: 560px;
  margin: 1.8rem 0 2.2rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
}

/* the brew line — signature. A shot of green travels the line. */
.brew-line {
  position: relative;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  margin-top: 2.2rem;
  max-width: 560px;
  overflow: visible;
}
.brew-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 84px;
  height: 3px;
  border-radius: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--green) 40%, var(--green));
  box-shadow: 0 0 18px 2px rgba(0, 175, 118, 0.6);
  animation: brew 5.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes brew {
  0%   { left: -84px; }
  50%  { left: 100%; }
  100% { left: -84px; }
}

/* ---------------- sections ---------------- */

.section { padding: 118px 0; }
.section-tight { padding: 94px 0; }
.section h2 { max-width: 24ch; }
.section-warm { background: #f3ede4; }

/* pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 3rem;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px 36px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.pillar::before {
  content: "";
  display: block;
  width: 44px;
  height: 8px;
  border-radius: 4px;
  background: var(--green);
  margin-bottom: 1.4rem;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(23, 18, 14, 0.1); }
.pillar h3 { margin-bottom: 0.7rem; }
.pillar p { font-size: 0.97rem; }

/* split */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split-media img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 26px 44px rgba(23, 18, 14, 0.22));
}
.split-copy p { margin-bottom: 1.2em; max-width: 52ch; }

/* spec list */

.spec-list {
  list-style: none;
  margin-top: 1.7rem;
  border-top: 2px solid var(--ink);
}
.spec-list li {
  display: flex;
  gap: 20px;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.spec-k {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  min-width: 118px;
  padding-top: 0.3em;
}
.spec-v { color: var(--ink); font-weight: 500; }

/* dark section */

.section-dark { background: var(--espresso); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(250, 247, 242, 0.72); }
.ref-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green) !important;
}
.split-media-dark img { filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.5)); }
.spec-list-dark { border-top-color: var(--green); }
.spec-list-dark li { border-bottom-color: rgba(250, 247, 242, 0.15); }
.spec-list-dark .spec-k { color: var(--green); }
.spec-list-dark .spec-v { color: var(--white); }

/* technology */

.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
  max-width: 980px;
}
.dev-item {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.dev-item strong { color: var(--ink); }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2.6rem;
  max-width: 860px;
}
.chips li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.5em 1em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.chips li:hover { background: var(--green); border-color: var(--green); color: var(--white); }

/* cta */

.section-cta {
  padding: 130px 0;
  background:
    linear-gradient(rgba(0, 175, 118, 0.08), transparent 55%),
    var(--cream);
  text-align: center;
}
.cta-wrap { display: flex; flex-direction: column; align-items: center; }
.cta-logo { height: 54px; width: auto; margin-bottom: 2rem; }
.section-cta .lede { text-align: center; margin-inline: auto; }

/* footer */

.footer { background: var(--espresso); padding: 72px 0 48px; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-inner img { height: 40px; width: auto; }
.footer-payoff {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 10px; }
.footer-links a {
  color: rgba(250, 247, 242, 0.65);
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); }
.footer-fine { color: rgba(250, 247, 242, 0.35); font-size: 0.82rem; margin-top: 16px; }

/* ---------------- reveals ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-now { opacity: 0; animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.reveal-now:nth-child(2) { animation-delay: 0.08s; }
.reveal-now:nth-child(3) { animation-delay: 0.18s; }
.reveal-now:nth-child(4) { animation-delay: 0.26s; }
.reveal-now:nth-child(5) { animation-delay: 0.34s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-media { order: -1; margin-top: 40px; }
  .hero-media img { max-height: 38vh; margin-inline: auto; }
  .hero-content { padding-bottom: 12px; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .section-dark .split { display: flex; flex-direction: column-reverse; }
  .pillars { grid-template-columns: 1fr; }
  .dev-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 84px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-grid { padding-top: 92px; padding-bottom: 56px; }
  .hero-media img { max-height: 32vh; }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brew-pulse { animation: none; left: 20%; }
  .reveal, .reveal-now { opacity: 1; transform: none; transition: none; animation: none; }
  .btn, .pillar, .chips li { transition: none; }
}
