/* ═══════════════════════════════════════════════════════════════════
   Peribott v12 — Design System
   Cooler off-white palette, generous whitespace, editorial typography,
   heavy motion infrastructure.
   ═══════════════════════════════════════════════════════════════════ */

@font-face { font-display: swap; }

:root {
  /* ── Palette (cooler than v11) ── */
  --bg:           #FAFBFC;   /* was #FAFAF9 — slightly cool */
  --bg-alt:       #F4F5F7;   /* was #F3F2EF */
  --bg-white:    #FFFFFF;
  --bg-dark:      #0E1116;   /* deep navy-black for accents only */
  --surface:     #FFFFFF;

  --text:         #0E1116;   /* near-black with blue undertone */
  --text-2:       #5A6573;
  --text-3:       #98A2B0;

  --accent:       #FF6B35;   /* terracotta — kept */
  --accent-dark:  #E55427;
  --accent-soft:  rgba(255,107,53,0.06);

  --border:       #E5E8EC;   /* cool light gray */
  --border-2:    #D1D6DE;
  --border-dark: rgba(255,255,255,0.12);

  /* ── Typography ── */
  --font-d:       'Fraunces', 'Times New Roman', Georgia, serif;
  --font-s:       'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-m:       'JetBrains Mono', 'SF Mono', 'Consolas', monospace;

  /* ── Spacing scale ── */
  --s-1:  4px;
  --s-2:  8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* ── Layout ── */
  --radius:       12px;
  --radius-sm:     8px;
  --radius-lg:    20px;
  --radius-pill: 999px;
  --nav-h:        72px;
  --maxw:       1240px;

  /* ── Motion ── */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    180ms;
  --dur-base:    320ms;
  --dur-slow:    560ms;
  --dur-scene:   1200ms;
}

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

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-s);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ─────────────────────────────────────────────────────────────────
   Typography
   ─────────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow.muted { color: var(--text-2); }
.eyebrow .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }

h1, .h1 {
  font-family: var(--font-d);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--text);
}
h1 em, .h1 em, .italic-accent {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

h2, .h2 {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
h2 em, .h2 em { font-style: italic; font-weight: 400; color: var(--accent); }

h3, .h3 {
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h4 {
  font-family: var(--font-s);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

p { color: var(--text-2); line-height: 1.7; }
.lead { font-size: 1.15rem; color: var(--text-2); line-height: 1.6; max-width: 56ch; }

/* ─────────────────────────────────────────────────────────────────
   Layout
   ─────────────────────────────────────────────────────────────── */
.ctr { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-6); }
@media (max-width: 768px) { .ctr { padding: 0 var(--s-5); } }

.section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-8) 0; }
@media (max-width: 768px) {
  .section { padding: var(--s-8) 0; }
  .section-tight { padding: var(--s-7) 0; }
}

.divider { height: 1px; background: var(--border); margin: 0; }

/* ─────────────────────────────────────────────────────────────────
   Buttons
   ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  font-family: var(--font-s);
  transition: all var(--dur-base) var(--ease-out);
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}
.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 8px 4px;
}
.btn-ghost:hover { color: var(--accent); }
.btn .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ─────────────────────────────────────────────────────────────────
   Navigation
   ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250, 251, 252, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--dur-base) var(--ease-out);
}
.nav.scrolled {
  background: rgba(250, 251, 252, 0.92);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo img { height: 28px; width: auto; }
.nav-logo .tm {
  font-family: var(--font-s);
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  vertical-align: super;
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  transition: all var(--dur-base) var(--ease-out);
}
.nav-cta:hover {
  background: var(--accent);
  color: #fff !important;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--dur-base) var(--ease-out);
}
.hamburger span:nth-child(1) { top: 11px; }
.hamburger span:nth-child(2) { top: 16px; }
.hamburger span:nth-child(3) { top: 21px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg); top: 16px; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); top: 16px; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: var(--s-6);
    gap: var(--s-5);
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
  }
  .nav-links.open a { font-size: 22px; font-family: var(--font-d); color: var(--text); }
  .nav-links.open .nav-cta { font-size: 16px; }
}

/* ─────────────────────────────────────────────────────────────────
   Hero patterns
   ─────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + var(--s-7));
  padding-bottom: var(--s-8);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--s-8);
  align-items: center;
  width: 100%;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero { padding-top: calc(var(--nav-h) + var(--s-5)); }
}

.hero-title {
  margin-bottom: var(--s-5);
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn var(--dur-slow) var(--ease-out) 0.2s forwards;
}
.hero-lead {
  margin-bottom: var(--s-6);
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn var(--dur-slow) var(--ease-out) 0.4s forwards;
}
.hero-cta {
  display: flex;
  gap: var(--s-3);
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn var(--dur-slow) var(--ease-out) 0.6s forwards;
  flex-wrap: wrap;
}
.hero-eyebrow {
  margin-bottom: var(--s-5);
  opacity: 0;
  animation: fadeIn var(--dur-base) var(--ease-out) 0.05s forwards;
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-scene {
  opacity: 0;
  animation: sceneIn var(--dur-scene) var(--ease-out) 0.3s forwards;
}
@keyframes sceneIn {
  to { opacity: 1; }
}

/* Chrome strip — bottom of every hero */
.chrome-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
  margin-top: var(--s-7);
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-2);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn var(--dur-slow) var(--ease-out) 0.8s forwards;
}
.chrome-strip .chip { display: inline-flex; align-items: center; gap: 8px; }
.chrome-strip .chip::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─────────────────────────────────────────────────────────────────
   Reveal-on-scroll utilities (heavy motion baseline)
   ─────────────────────────────────────────────────────────────── */
.rv,
.rv-up,
.rv-left,
.rv-right,
.rv-scale,
.rv-stagger > * {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.rv-up { transform: translateY(40px); }
.rv-left { transform: translateX(-40px); }
.rv-right { transform: translateX(40px); }
.rv-scale { transform: scale(0.96); }
.rv-stagger > * { transform: translateY(30px); }

.rv.vis,
.rv-up.vis,
.rv-left.vis,
.rv-right.vis,
.rv-scale.vis {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.rv-stagger.vis > * { opacity: 1; transform: translateY(0); }
.rv-stagger.vis > *:nth-child(1) { transition-delay: 0ms; }
.rv-stagger.vis > *:nth-child(2) { transition-delay: 80ms; }
.rv-stagger.vis > *:nth-child(3) { transition-delay: 160ms; }
.rv-stagger.vis > *:nth-child(4) { transition-delay: 240ms; }
.rv-stagger.vis > *:nth-child(5) { transition-delay: 320ms; }
.rv-stagger.vis > *:nth-child(6) { transition-delay: 400ms; }
.rv-stagger.vis > *:nth-child(7) { transition-delay: 480ms; }
.rv-stagger.vis > *:nth-child(8) { transition-delay: 560ms; }

/* Word-split reveal (for editorial headlines) */
.split-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  margin-right: 0.22em;
}
.split-words.vis .word { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────────────────────────────
   Section: editorial 2-column
   ─────────────────────────────────────────────────────────────── */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 920px) {
  .editorial { grid-template-columns: 1fr; gap: var(--s-5); }
}
.editorial-meta {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  position: sticky;
  top: calc(var(--nav-h) + var(--s-5));
}
.editorial-meta .label { display: block; color: var(--accent); margin-bottom: var(--s-2); }

/* ─────────────────────────────────────────────────────────────────
   Product cards (used on homepage + index pages)
   ─────────────────────────────────────────────────────────────── */
.p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 980px) { .p-grid { grid-template-columns: 1fr; } }

.p-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  text-decoration: none;
  color: inherit;
  min-height: 460px;
}
.p-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-soft) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-base);
  pointer-events: none;
}
.p-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: 0 20px 40px -20px rgba(14, 17, 22, 0.12);
}
.p-card:hover::before { opacity: 1; }

.p-card .scene-wrap {
  height: 220px;
  margin: calc(-1 * var(--s-6)) calc(-1 * var(--s-6)) var(--s-5);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.p-card .scene-wrap svg { width: 100%; height: 100%; }

.p-card .tag {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.p-card h3 {
  font-family: var(--font-d);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
}
.p-card .desc {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: var(--s-4);
}
.p-card .specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.p-card .specs span {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.04em;
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--text-2);
}
.p-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-top: auto;
}
.p-card .more .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}
.p-card:hover .more { color: var(--accent); }
.p-card:hover .more .arrow { transform: translateX(4px); }

/* ─────────────────────────────────────────────────────────────────
   Footer
   ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--s-9) 0 var(--s-5);
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-d);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: var(--s-3);
}
.footer-logo img { height: 24px; filter: brightness(0) invert(1); }
.footer-logo .tm { font-family: var(--font-s); font-size: 9px; font-weight: 700; color: var(--accent); vertical-align: super; }
.footer-tag {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: var(--s-4);
}
.footer-col h5 {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--s-4);
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--dur-fast) var(--ease-out);
}
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────────────
   Reusable bits
   ─────────────────────────────────────────────────────────────── */
.go-top {
  position: fixed;
  bottom: var(--s-5);
  left: var(--s-5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur-base) var(--ease-out);
  z-index: 50;
}
.go-top.show { opacity: 1; pointer-events: auto; }
.go-top:hover { background: var(--accent); transform: translateY(-3px); }
.go-top svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity var(--dur-slow) var(--ease-out);
  mix-blend-mode: multiply;
}
@media (hover: none), (max-width: 920px) {
  .cursor-glow { display: none; }
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 200;
  width: 0%;
  transition: width 100ms linear;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 88px;
  right: var(--s-5);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 8px 30px -8px rgba(37, 211, 102, 0.5);
  transition: transform var(--dur-base) var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 26px; height: 26px; }

/* Product card real photos (replaces SVG mini-scenes) */
.p-card .scene-wrap .p-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.16,1,.3,1); }
.p-card:hover .scene-wrap .p-photo { transform: scale(1.05); }


/* Product shots on white — full robot, centered, never cropped */
.shot-contain { object-fit: contain !important; background: #ffffff !important; padding: 7% !important; box-sizing: border-box !important; }
