/* ==========================================================================
   PERFECTOO PROTECTOR — HERO
   Concept: optical glass. Cool, clear, precise. A single glare sweeps across
   the product panel on load, like light crossing a freshly fitted screen.
   ========================================================================== */

/* ---------- 1. Design tokens (retheme by editing only this block) ---------- */
.hero {
  --bg:            #F2F6F9;   /* glass-white page base */
  --bg-tint:       #E4EEF4;   /* pale frost, used in gradients */
  --surface:       #FFFFFF;   /* cards, pills, buttons */
  --ink:           #10202C;   /* headlines, primary text */
  --ink-2:         #46586A;   /* body copy */
  --ink-3:         #7A8B9A;   /* captions, meta */
  --line:          #D5E1EA;   /* hairlines */
  --accent:        #0A6B78;   /* deep lens teal: primary action */
  --accent-hover:  #085862;
  --accent-soft:   #D8EEF0;   /* accent wash */
  --signal:        #E8A33D;   /* amber: used once, the status dot */
  --success:       #17894F;   /* WhatsApp / positive */
  --warn:          #B7791F;
  --error:         #C0392B;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-xl: 36px;
  --shadow-lift: 0 1px 2px rgba(16,32,44,.06), 0 18px 40px -18px rgba(16,32,44,.28);
  --shadow-panel: 0 2px 4px rgba(16,32,44,.05), 0 50px 90px -40px rgba(10,107,120,.35);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Section shell ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 72px) clamp(20px, 5vw, 80px) 28px;
  background:
    radial-gradient(60% 70% at 85% 20%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(50% 60% at 0% 100%, var(--bg-tint) 0%, transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.hero *, .hero *::before, .hero *::after { box-sizing: border-box; }

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
}

/* ---------- 3. Copy column ---------- */
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8125rem; font-weight: 500; color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(16,32,44,.04);
}
.hero-eyebrow-mark {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero-eyebrow-divider { color: var(--ink-3); }

.hero-title {
  margin: 28px 0 0;
  max-width: 15ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.8vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-desc {
  margin: 26px 0 0;
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 26px;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn-arrow {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.05rem;
  transition: transform .3s var(--ease), background-color .25s var(--ease);
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(10,107,120,.7);
}
.btn-primary .btn-arrow { background: rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 14px 28px -10px rgba(10,107,120,.75); }
.btn-secondary {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  padding: 9px 9px 9px 25px;
}
.btn-secondary .btn-arrow { background: var(--bg-tint); }
.btn-secondary:hover { border-color: var(--accent); box-shadow: var(--shadow-lift); }
.btn:hover .btn-arrow { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }

.hero a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.hero-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px;
  font-size: .95rem; font-weight: 600; color: var(--success);
  text-decoration: none;
}
.hero-whatsapp-icon {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(23,137,79,.12);
  font-size: .8rem;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.hero-whatsapp:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-whatsapp:hover .hero-whatsapp-icon { background: var(--success); color: #fff; }

.hero-copy-bottom {
  display: flex; align-items: center; gap: 14px;
  margin-top: clamp(32px, 5vw, 56px);
  font-size: .875rem; font-weight: 500; color: var(--ink-3);
}
.hero-copy-bottom-line { width: 48px; height: 1px; background: var(--ink-3); }

/* ---------- 4. Visual panel ---------- */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 5.6;
  min-height: 380px;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-panel);
}
.hero-visual-background {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 38%, #FFFFFF 0%, rgba(255,255,255,0) 70%),
    linear-gradient(160deg, #E9F4F6 0%, #CFE5EC 55%, #B9D8E2 100%);
}
.hero-visual-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,107,120,.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,107,120,.09) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
          mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
}
/* Concentric rings read as impact absorption radiating from the screen */
.hero-visual-ring {
  position: absolute; top: 45%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(10,107,120,.22);
  transform: translate(-50%, -50%);
}
.hero-ring-one { width: 62%; aspect-ratio: 1; }
.hero-ring-two { width: 92%; aspect-ratio: 1; border-style: dashed; border-color: rgba(10,107,120,.16); }

.hero-image {
  position: relative; z-index: 2;
  max-width: 74%; max-height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 34px 34px rgba(16,32,44,.28));
}

.hero-placeholder { position: relative; z-index: 2; }
.hero-placeholder-inner {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 40px 48px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--r-md);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lift);
}
.hero-placeholder-logo {
  font: 800 clamp(3rem, 7vw, 5rem)/1 var(--font-display);
  letter-spacing: -.05em; color: var(--accent);
}
.hero-placeholder-text { font-size: .875rem; font-weight: 500; color: var(--ink-3); }

/* Floating glass chips */
.hero-visual-badge,
.hero-visual-counter,
.hero-visual-label {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(16,32,44,.05), 0 12px 24px -14px rgba(16,32,44,.3);
}
.hero-visual-badge {
  top: 22px; left: 22px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px;
  border-radius: var(--r-md);
  font: 600 .8125rem/1.3 var(--font-body); color: var(--ink);
}
.hero-badge-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(232,163,61,.25);
}
.hero-visual-counter {
  top: 22px; right: 22px;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: .75rem; font-weight: 600; color: var(--ink-2);
}
.hero-counter-line { width: 22px; height: 1px; background: var(--ink-3); }
.hero-visual-label {
  left: 22px; bottom: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .8125rem; font-weight: 500; color: var(--ink-2);
}

/* The one orchestrated moment: a single glare sweep on load */
.hero-visual::after {
  content: "";
  position: absolute; inset: -20% auto -20% -60%;
  width: 45%; z-index: 4; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.75) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: hero-glare 1.8s .5s var(--ease) 1 forwards;
}
@keyframes hero-glare { to { left: 130%; } }

/* ---------- 5. Bottom bar ---------- */
.hero-bottom-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  max-width: 1360px;
  margin: clamp(36px, 5vw, 64px) auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .875rem; color: var(--ink-3);
}
.hero-bottom-brand { font: 800 1.35rem/1 var(--font-display); letter-spacing: -.04em; color: var(--ink); }
.hero-bottom-brand span { color: var(--accent); }
.hero-bottom-message { text-align: center; color: var(--ink-2); font-weight: 500; }
.hero-bottom-index { justify-self: end; font-weight: 500; color: var(--ink-2); }
.hero-bottom-index span { color: var(--accent); }

/* ---------- 6. Responsive ---------- */
@media (max-width: 1000px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-title { max-width: 18ch; }
  .hero-visual { aspect-ratio: 4 / 3.6; }
}
@media (max-width: 640px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .hero-visual { aspect-ratio: 1 / 1.05; border-radius: 26px; }
  .hero-visual-counter { display: none; }
  .hero-bottom-bar { grid-template-columns: 1fr auto; }
  .hero-bottom-message { display: none; }
}

/* ---------- 7. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-visual::after { animation: none; display: none; }
  .btn, .btn-arrow, .hero-whatsapp-icon { transition: none; }
}