@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* Hermina home. Same neutral grays as the Cloud app (desktop/cloud-web
   globals.css): page #070707, panel #111111, raised #181818. */
:root {
  --page: #070707;
  --panel: #111111;
  --raised: #181818;
  --ink: #f5f5f3;
  --ink-2: #d7d7d4;
  --muted: #a3a39e;
  --dim: #6f6f6a;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --success: #2fa96b;
  --brand: Georgia, "Times New Roman", serif;
  --sans: Inter, Arial, Helvetica, sans-serif;
  --wrap: min(1200px, calc(100vw - 3rem));
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
button { color: inherit; font: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip-link {
  position: fixed; z-index: 200; top: .75rem; left: .75rem; padding: .6rem .9rem;
  border-radius: 10px; background: var(--ink); color: var(--page); text-decoration: none;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { clip-path: none; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed; z-index: 80; inset: 0 0 auto; display: flex; height: 4.25rem;
  align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 max(1.5rem, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--page) 70%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  transition: border-color 200ms ease, background 200ms ease;
}
.site-header.scrolled { border-color: var(--line); background: color-mix(in srgb, var(--page) 88%, transparent); }
.brand {
  font: 400 1.55rem/1 var(--brand); letter-spacing: -.055em; text-decoration: none; white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav > a:not(.nav-cta) {
  color: var(--muted); font-size: .88rem; font-weight: 500; text-decoration: none;
  transition: color 150ms ease;
}
.site-nav > a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; height: 2.25rem; align-items: center; padding: 0 1rem;
  border-radius: 999px; background: var(--ink); color: var(--page);
  font-size: .85rem; font-weight: 600; text-decoration: none;
}
.nav-cta:hover { background: #fff; }
.lang-switch { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch button {
  height: 1.75rem; padding: 0 .6rem; border: 0; border-radius: 999px; background: transparent;
  color: var(--dim); font: 700 .66rem/1 var(--sans); letter-spacing: .12em; cursor: pointer;
}
.lang-switch button.active { background: var(--raised); color: var(--ink); }
.nav-menu-button { display: none; }

.mobile-menu {
  position: fixed; z-index: 70; inset: 0; display: flex; flex-direction: column; gap: 1.25rem;
  padding: 6rem 1.5rem 2rem; background: var(--page);
  opacity: 0; pointer-events: none; transform: translateY(-.5rem);
  transition: opacity 200ms ease, transform 200ms ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu > a { font: 800 2rem/1 var(--sans); letter-spacing: -.05em; text-decoration: none; text-transform: uppercase; }
.mobile-menu .lang-switch { align-self: flex-start; margin-top: 1rem; }

/* ── Shared ─────────────────────────────────────────────── */
.section { width: var(--wrap); margin: 0 auto; padding: 7.5rem 0 0; }
.section-head { display: grid; gap: 1.6rem; max-width: 60rem; margin-bottom: 3.5rem; }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; }
.section-head.split > div:first-child { display: grid; gap: 1.1rem; }
.kicker {
  display: flex; gap: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--muted);
  font: 700 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}
.kicker span:first-child { color: var(--ink-2); }
h2 {
  font: 700 clamp(2.5rem, 5.4vw, 5.4rem)/.94 var(--sans); letter-spacing: -.066em;
  text-transform: uppercase; text-wrap: balance;
}
.section-lede { max-width: 36rem; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }

.button {
  display: inline-flex; height: 3rem; align-items: center; justify-content: center; gap: .6rem;
  padding: 0 1.35rem; border: 1px solid transparent; border-radius: 999px;
  font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.button svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 150ms ease; }
.button:hover svg { transform: translateX(2px); }
.button.primary { background: var(--ink); color: var(--page); }
.button.primary:hover { background: #fff; }
.button.secondary { border-color: var(--line-strong); color: var(--ink); }
.button.secondary:hover { border-color: rgba(255,255,255,.32); background: var(--raised); }
.button.quiet { color: var(--muted); padding: 0 .6rem; }
.button.quiet:hover { color: var(--ink); }
.text-link {
  display: inline-flex; align-items: center; gap: .5rem; color: var(--ink);
  font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: .2rem;
}
.text-link svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.text-link:hover { border-color: var(--ink); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { display: grid; width: var(--wrap); margin: 0 auto; padding: 9rem 0 5rem; gap: 4rem; }
.hero-copy { display: grid; justify-items: start; gap: 2rem; }
h1 {
  display: grid; font: 800 clamp(3.6rem, 8.4vw, 8.4rem)/.84 var(--sans); letter-spacing: -.075em;
  text-transform: uppercase;
}
h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.82); }
h1 em { font-style: normal; }
.hero-lede { max-width: 32rem; color: #c6c6c2; font-size: 1.12rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

/* The real Agent screen of Hermina Cloud (public/hermina-agent.webp). */
.product {
  margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px;
  background: var(--page); box-shadow: 0 40px 120px rgba(0,0,0,.55);
}
.product img { width: 100%; height: auto; }

/* ── Providers ──────────────────────────────────────────── */
.providers { display: grid; gap: 1.2rem; padding: 2.2rem 0; border-block: 1px solid var(--line); }
.providers-label { width: var(--wrap); margin: 0 auto; color: var(--dim); font: 700 .66rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.provider-viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.provider-track { display: flex; width: max-content; align-items: center; gap: 3.5rem; animation: provider-scroll 48s linear infinite; }
.provider-track img { height: 1.25rem; width: auto; opacity: .55; filter: grayscale(1); }
.provider-track img.tall { height: 1.7rem; }
@keyframes provider-scroll { to { transform: translateX(-50%); } }

/* ── Capabilities ───────────────────────────────────────── */
.capability-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.capability { display: grid; align-content: start; gap: .7rem; padding: 2rem 2rem 2.4rem 0; border-bottom: 1px solid var(--line); }
.capability:not(:nth-child(3n + 1)) { padding-left: 2rem; border-left: 1px solid var(--line); }
.capability code, .phone code, .system-list code {
  color: var(--dim); font: 700 .63rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.capability h3 { margin-top: 1.6rem; font-size: clamp(1.35rem, 2vw, 1.9rem); font-weight: 700; letter-spacing: -.045em; text-transform: uppercase; }
.capability p { color: var(--muted); font-size: .95rem; }

/* ── Apps ───────────────────────────────────────────────── */
.download-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.download {
  display: inline-flex; align-items: center; gap: .65rem; padding: .55rem 1rem .55rem .75rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
}
.download:hover { border-color: var(--line-strong); background: var(--raised); }
.download svg { width: 22px; height: 22px; fill: var(--ink); }
.download img { filter: brightness(0) invert(1); }
.download span { display: grid; line-height: 1.15; }
.download small { color: var(--dim); font-size: .68rem; }
.download strong { font-size: .92rem; font-weight: 600; }
.phone-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.phone { display: grid; align-content: start; gap: .55rem; }
.phone-frame {
  position: relative; overflow: hidden; margin-bottom: .7rem; aspect-ratio: 9 / 19.5;
  border: 1px solid var(--line); border-radius: 26px; background: var(--panel);
}
.phone-frame video { width: 100%; height: 100%; object-fit: cover; }
.phone h3 { font-weight: 700; letter-spacing: -.02em; }
.phone p { color: var(--muted); font-size: .92rem; }
.feature-open {
  position: absolute; right: .7rem; bottom: .7rem; display: grid; width: 2.25rem; height: 2.25rem;
  place-items: center; border: 1px solid var(--line-strong); border-radius: 50%;
  background: rgba(7,7,7,.72); backdrop-filter: blur(8px); cursor: pointer;
  opacity: 0; transition: opacity 150ms ease;
}
.phone-frame:hover .feature-open, .feature-open:focus-visible { opacity: 1; }

/* ── How it runs ────────────────────────────────────────── */
.system-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.system-list li {
  display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem; padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.system-list code { padding-top: .35rem; }
.system-list div { display: grid; gap: .5rem; max-width: 40rem; }
.system-list h3 { font: 700 clamp(1.5rem, 2.8vw, 2.6rem)/1 var(--sans); letter-spacing: -.05em; text-transform: uppercase; }
.system-list p { color: var(--muted); }

/* ── Pricing ────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.plan {
  display: flex; flex-direction: column; gap: 1.5rem; padding: 1.6rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.plan header { display: grid; gap: .45rem; }
.plan h3 { font: 700 1.9rem/1 var(--sans); letter-spacing: -.05em; }
.plan header p { color: var(--muted); font-size: .9rem; min-height: 2.8em; }
.price { display: flex; align-items: baseline; gap: .25rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.price span { color: var(--muted); font-size: 1.1rem; }
.price strong { font-size: 2.8rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.price small { color: var(--dim); font-size: .85rem; }
.plan ul { display: grid; flex: 1; align-content: start; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 1.5rem; color: var(--ink-2); font-size: .9rem; }
.plan li::before {
  position: absolute; top: .45em; left: .1rem; width: .55rem; height: .3rem;
  border-bottom: 1.5px solid var(--success); border-left: 1.5px solid var(--success);
  content: ""; transform: rotate(-45deg);
}
.plan .button { width: 100%; }
.plan.featured { border-color: var(--line-strong); background: var(--raised); }
.pricing-included {
  display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1.5rem; color: var(--muted); font-size: .9rem;
}
.pricing-included span:first-child { color: var(--ink); font-weight: 500; }

/* ── Trust ──────────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 4rem; }
.trust-copy { display: grid; gap: 1.2rem; }
.trust-copy .text-link { justify-self: start; margin-top: .4rem; }
.trust-card {
  display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); transition: border-color 150ms ease;
}
.trust-card:hover { border-color: var(--line-strong); }
.trust-card img { width: 100%; filter: grayscale(1) contrast(1.05); opacity: .9; }

/* ── Final CTA ──────────────────────────────────────────── */
.final-cta {
  display: grid; justify-items: center; gap: 1.2rem; width: var(--wrap); margin: 8rem auto 0;
  padding: 5rem 1.5rem; border-top: 1px solid var(--line); text-align: center;
}
.final-mark { width: 5rem; height: 5rem; border-radius: 22px; object-fit: cover; }
.final-cta p { color: var(--muted); }
.final-cta .button { margin-top: .6rem; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  display: flex; width: var(--wrap); margin: 0 auto; padding: 2rem 0 2.5rem;
  align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem;
}
.site-footer .brand { font-size: 1.3rem; color: var(--ink); }
.site-footer p { margin-left: auto; }
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }

/* ── Demo modal ─────────────────────────────────────────── */
.demo-modal { width: min(92vw, 980px); max-height: 92svh; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); }
.demo-modal::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(6px); }
.demo-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.demo-modal-header div { display: flex; gap: .4rem; }
.demo-modal-header button { height: 2rem; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: .8rem; }
.demo-modal video { width: 100%; max-height: calc(92svh - 3.6rem); background: #000; }

/* ── Motion ─────────────────────────────────────────────── */
.motion-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.16,1,.3,1); }
.motion-ready .reveal.visible { opacity: 1; transform: none; }
.motion-ready .reveal.delay-1 { transition-delay: 80ms; }
.motion-ready .reveal.delay-2 { transition-delay: 160ms; }
.motion-ready .reveal.delay-3 { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-ready .reveal { opacity: 1; transform: none; transition: none; }
  .provider-track { animation: none; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head.split { grid-template-columns: 1fr; }
  .download-row { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .site-nav > a, .site-nav .lang-switch { display: none; }
  .site-nav > a.nav-cta { display: inline-flex; }
  .nav-menu-button {
    position: relative; z-index: 90; display: grid; width: 2.25rem; height: 2.25rem; place-items: center;
    padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer;
  }
  .nav-menu-button i, .nav-menu-button i::before, .nav-menu-button i::after {
    display: block; width: .95rem; height: 1.5px; background: var(--ink); content: ""; transition: transform 180ms ease, opacity 180ms ease;
  }
  .nav-menu-button i { position: relative; }
  .nav-menu-button i::before { position: absolute; top: -5px; }
  .nav-menu-button i::after { position: absolute; top: 5px; }
  .nav-menu-button.open i { background: transparent; }
  .nav-menu-button.open i::before { transform: translateY(5px) rotate(45deg); }
  .nav-menu-button.open i::after { transform: translateY(-5px) rotate(-45deg); }
  .capability-grid { grid-template-columns: 1fr; }
  .capability, .capability:not(:nth-child(3n + 1)) { padding: 1.6rem 0; border-left: 0; }
  .system-list li { grid-template-columns: 1fr; gap: .6rem; }
  .trust { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  :root { --wrap: calc(100vw - 2rem); }
  .site-header { height: 3.75rem; padding: 0 1rem; }
  .brand { font-size: 1.4rem; }
  .section { padding-top: 5rem; }
  .section-head { margin-bottom: 2.25rem; }
  .hero { padding: 6.5rem 0 3.5rem; gap: 2.5rem; }
  .hero-lede { font-size: 1.02rem; }
  .hero-actions .button.primary { flex: 1; }
  .product { border-radius: 12px; }
  /* Phones scroll sideways instead of stacking four screens tall. */
  .phone-row {
    display: flex; margin: 0 -1rem; padding: 0 1rem .5rem; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .phone-row::-webkit-scrollbar { display: none; }
  .phone { flex: 0 0 72%; scroll-snap-align: center; }
  .feature-open { opacity: 1; }
  .download { flex: 1 1 calc(50% - .5rem); }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan header p { min-height: 0; }
  .final-cta { margin-top: 5rem; padding: 4rem 0; }
  .site-footer { flex-wrap: wrap; }
  .site-footer p { order: 3; width: 100%; margin: 0; }
}

@media (max-width: 640px) {
  /* Na largura do celular a tela inteira fica ilegível: mostra o chat em escala maior. */
  .product img { height: 22rem; object-fit: cover; object-position: 78% 0; }
}
