/* ==========================================================================
   PERFECTOO PROTECTOR — PROTECTION FEATURES
   The page's one deep, saturated moment: a teal panel whose four stacked
   glass layers illustrate "layers of protection". The benefit cards around
   it stay light, quiet and disciplined.
   ========================================================================== */

/* ---------- 1. Tokens (identical to the other sections; move to :root later) ---------- */
.protection-features {
  --bg:#F2F6F9; --bg-tint:#E4EEF4; --surface:#FFFFFF;
  --ink:#10202C; --ink-2:#46586A; --ink-3:#7A8B9A; --line:#D5E1EA;
  --accent:#0A6B78; --accent-soft:#D8EEF0; --signal:#E8A33D;
  --deep:#06323A; --deep-2:#0A5560;          /* panel gradient */
  --font-display:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;
  --font-body:"Instrument Sans","Segoe UI",system-ui,sans-serif;
  --r-md:16px; --r-lg:26px; --r-xl:32px;
  --ease:cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Shell ---------- */
.protection-features {
  position: relative;
  padding: clamp(56px, 8vw, 120px) clamp(20px, 5vw, 80px);
  background:
    radial-gradient(45% 40% at 0% 100%, var(--accent-soft) 0%, transparent 70%),
    #FFFFFF;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.protection-features *, .protection-features *::before, .protection-features *::after { box-sizing: border-box; }
.protection-features .section-inner { max-width: 1360px; margin: 0 auto; }

/* ---------- 3. Header ---------- */
.protection-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 600; color: var(--accent);
}
.protection-eyebrow-mark { width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

.protection-header-layout {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 5vw, 96px); align-items: end; margin-top: 22px;
}
.protection-heading-wrap h2 {
  margin: 0; max-width: 14ch;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 4.8vw, 4.3rem);
  line-height: 1; letter-spacing: -.04em; text-wrap: balance;
}
.protection-intro p {
  margin: 0; max-width: 46ch;
  font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.7; color: var(--ink-2);
  text-wrap: pretty;
}
.protection-intro-line {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 22px; padding-top: 16px; max-width: 46ch;
  border-top: 1px solid var(--line);
  font-size: .875rem; font-weight: 500; color: var(--ink-3);
}
.protection-intro-arrow { color: var(--accent); font-size: 1.1rem; }

/* ---------- 4. Layout ---------- */
.protection-layout {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr);
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: clamp(36px, 5vw, 72px);
  align-items: stretch;
}

/* ---------- 5. Side panel: the memorable moment ---------- */
.protection-side-panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 520px;
  padding: 26px;
  border-radius: var(--r-xl);
  color: #fff;
  background:
    radial-gradient(80% 50% at 80% 0%, rgba(120,220,230,.35) 0%, transparent 60%),
    linear-gradient(165deg, var(--deep-2) 0%, var(--deep) 100%);
  box-shadow: 0 2px 4px rgba(6,50,58,.15), 0 50px 80px -40px rgba(6,50,58,.7);
}
.protection-panel-top, .protection-panel-bottom {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8125rem; font-weight: 500; color: rgba(255,255,255,.72);
}
.protection-panel-bottom {
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18);
}
.protection-panel-bottom span:last-child { color: var(--signal); font-size: 1rem; }

/* Four glass panes stacked on a diagonal = layers of protection */
.protection-panel-symbol { position: relative; flex: 1; min-height: 190px; margin: 14px 0; }
.protection-panel-symbol span {
  position: absolute; width: 58%; aspect-ratio: 1.15;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.4);
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 20px 30px -18px rgba(0,0,0,.45);
  transition: transform .6s var(--ease);
}
.protection-panel-symbol span:nth-child(1) { left: 2%;  top: 38%; opacity: .45; }
.protection-panel-symbol span:nth-child(2) { left: 14%; top: 26%; opacity: .62; }
.protection-panel-symbol span:nth-child(3) { left: 26%; top: 14%; opacity: .8; }
.protection-panel-symbol span:nth-child(4) { left: 38%; top: 2%;  opacity: 1; border-color: rgba(232,163,61,.8); }
.protection-side-panel:hover .protection-panel-symbol span:nth-child(1) { transform: translate(-6px, 6px); }
.protection-side-panel:hover .protection-panel-symbol span:nth-child(2) { transform: translate(-2px, 2px); }
.protection-side-panel:hover .protection-panel-symbol span:nth-child(4) { transform: translate(6px, -6px); }

.protection-panel-copy { position: relative; z-index: 2; margin-bottom: 24px; }
.protection-panel-small { font-size: .875rem; font-weight: 600; color: var(--signal); }
.protection-panel-copy h3 {
  margin: 10px 0 0;
  font: 800 clamp(1.9rem, 3vw, 2.7rem)/1.02 var(--font-display); letter-spacing: -.035em;
}
.protection-panel-copy p {
  margin: 14px 0 0; max-width: 32ch;
  font-size: .9375rem; line-height: 1.6; color: rgba(255,255,255,.78);
}

/* ---------- 6. Feature cards ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.feature-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 250px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .3s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.feature-card:nth-child(4n+1), .feature-card:nth-child(4n) { background: var(--bg); } /* checker rhythm */
.feature-card::before { /* top edge that draws in on hover */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.feature-card:hover {
  border-color: rgba(10,107,120,.4);
  box-shadow: 0 30px 50px -32px rgba(10,107,120,.45);
  transform: translateY(-3px);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card-top { display: flex; justify-content: space-between; align-items: center; }
.feature-card-number {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font: 700 .875rem/1 var(--font-display);
}
.feature-card-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-2); font-size: .9rem;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.feature-card:hover .feature-card-icon { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }

.feature-card-content { margin: 28px 0 22px; }
.feature-card-content h3 { margin: 0; font: 700 1.4rem/1.15 var(--font-display); letter-spacing: -.025em; }
.feature-card-content p {
  margin: 10px 0 0; max-width: 34ch;
  font-size: .9375rem; line-height: 1.65; color: var(--ink-2);
}
.feature-card-bottom {
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: .8125rem; font-weight: 500; color: var(--ink-3);
}
.feature-card-marker { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }

/* ---------- 7. Footer ---------- */
.protection-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  margin-top: clamp(32px, 4.5vw, 56px); padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
}
.protection-footer-label { display: inline-flex; align-items: center; gap: 14px; }
.protection-footer-label > span { width: 48px; height: 1px; background: var(--ink-3); }
.protection-footer-right span { color: var(--accent); }

/* ---------- 8. Responsive ---------- */
@media (max-width: 1100px) {
  .protection-layout { grid-template-columns: 1fr; }
  .protection-side-panel { min-height: 420px; }
}
@media (max-width: 860px) {
  .protection-header-layout { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 620px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .protection-side-panel { min-height: 380px; padding: 20px; }
  .protection-footer-label > span { display: none; }
}

/* ---------- 9. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .feature-card, .feature-card::before, .feature-card-icon, .protection-panel-symbol span { transition: none; }
  .feature-card:hover { transform: none; }
}