/* ============ RESET / BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #1b2431;
  --navy-deep: #161d28;
  --ink: #232c39;
  --body: #5b6472;
  --line: #e4e7ec;
  --page: #f4f5f7;
  --card: #ffffff;
  --lilac: #dfe3f5;
  --lilac2: #e4e0f2;
  --yellow: #f5c518;
  --orange: #e8a887;
  --orange-deep: #de9770;
  --green-pale: #dde8d3;
  --radius: 18px;
  font-size: 16px;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; }

/* ============ BUTTONS ============ */
.btn {
  border-radius: 999px;
  font-weight: 600;
  font-size: .875rem;
  padding: .8rem 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .8rem; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #2a3547; }
.btn-dark { background: var(--navy-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid #c6ccd6; }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-dark { background: transparent; color: var(--ink); border: 1.5px solid rgba(35,44,57,.4); }
.btn-outline-dark:hover { border-color: var(--ink); }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink); background: #fff; border: 1px solid var(--line);
  transition: background .15s;
}
.icon-btn:hover { background: #eef0f3; }

.circle-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid #c6ccd6; color: var(--ink);
  font-size: 1.25rem; line-height: 1;
  display: grid; place-items: center;
  transition: all .15s;
}
.circle-btn:hover { border-color: var(--ink); }
.circle-btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ============ HERO WRAP ============ */
.hero-wrap { background: var(--navy-deep); padding: clamp(12px, 3vw, 36px); }
.hero-panel {
  background: linear-gradient(160deg, #eef1f6 0%, #e6eaf1 60%, #dfe4ec 100%);
  border-radius: 22px;
  padding: clamp(16px, 3vw, 32px) clamp(16px, 4vw, 48px) clamp(32px, 5vw, 64px);
  max-width: 1400px; margin: 0 auto;
  overflow: hidden;
}

/* Navbar */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-bottom: clamp(24px, 4vw, 48px);
}
.logo {
  font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: .45rem;
}
.logo-mark {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--navy); display: inline-block;
  box-shadow: 0 0 0 3px rgba(27,36,49,.15);
}
.logo.light { color: #fff; }
.logo.light .logo-mark { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }

.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: .35rem;
  opacity: .85; transition: opacity .15s;
}
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* Hero layout */
.hero {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) 1.4fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800; letter-spacing: -.03em; color: var(--ink);
  margin-bottom: 1rem;
}
.hero-copy > p {
  color: var(--body); font-size: .95rem; max-width: 42ch;
  margin-bottom: 1.5rem;
}
.hero-btns { display: flex; gap: .75rem; margin-bottom: 1.75rem; flex-wrap: wrap; }

.hero-social { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.avatars { display: flex; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #fff; margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.avatar.a1 { background: linear-gradient(135deg, #d7a97c, #a9744b); }
.avatar.a2 { background: linear-gradient(135deg, #8fa3b8, #5c7185); }
.avatar.a3 { background: linear-gradient(135deg, #c98a8a, #9c5f5f); }
.social-text { display: flex; flex-direction: column; line-height: 1.2; }
.social-text strong { font-size: .95rem; }
.social-text span { font-size: .75rem; color: var(--body); }

.trust { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--body); }
.trust strong { color: var(--ink); }
.trust-star { color: #00b67a; font-size: 1rem; }
.stars {
  background: #00b67a; color: #fff; font-size: .7rem;
  padding: .15rem .4rem; border-radius: 4px; letter-spacing: 2px;
}

/* Hero face cards */
.hero-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.face-card {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #cfd6e0;
}
.face-card img { width: 100%; height: 100%; object-fit: cover; }
.face-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .9rem 1rem;
  background: linear-gradient(transparent, rgba(20,26,36,.75));
  color: #fff; display: flex; justify-content: space-between; align-items: flex-end;
}
.face-card figcaption strong { font-size: .95rem; line-height: 1.2; }
.face-card figcaption span { font-size: .7rem; opacity: .85; }
.face-card:nth-child(2) { transform: translateY(-22px); }

/* ============ SECTIONS COMMON ============ */
.section { max-width: 1400px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px); }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem;
}
.section-head.center { flex-direction: column; gap: .5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.02em; }
.see-all { font-size: .875rem; font-weight: 600; color: var(--ink); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.sub { color: var(--body); font-size: .9rem; }

/* ============ PRODUCT CARDS ============ */
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  position: relative; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: 0 12px 32px rgba(22,29,40,.1); transform: translateY(-3px); }
.card-top { display: flex; justify-content: space-between; font-size: .72rem; color: var(--body); margin-bottom: .5rem; }
.tag { font-weight: 600; color: var(--ink); }
.product-img {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  overflow: hidden; border-radius: 10px; margin-bottom: .9rem;
  background: #fafafa;
}
/* Source photos carry generous margin around the frame (floating product-shot
   style); cover alone leaves a visible dead band above/below, so crop in
   further to fill the card with the glasses themselves. */
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.35);
  transition: transform .3s ease;
}
.product-card:hover .product-img img { transform: scale(1.42); }
.card-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.card-bottom h3 { font-size: .95rem; }
.card-bottom p { font-size: .78rem; color: var(--body); }
.price { font-weight: 700; font-size: .95rem; }
.expand {
  position: absolute; right: 1rem; bottom: 3.4rem;
  color: #98a1ad; font-size: .9rem;
  transition: color .15s;
}
.expand:hover { color: var(--ink); }

/* ============ PERSONALIZED ============ */
.personalized { text-align: center; }
.personalized h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: .6rem; }
.accent-i { color: #e2574c; }
.personalized .sub { margin-bottom: 2.25rem; }
.persona-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; text-align: left;
}
.persona-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.4rem 1.7rem;
  transition: box-shadow .2s ease, transform .2s ease;
}
.persona-card:hover { box-shadow: 0 12px 32px rgba(22,29,40,.08); transform: translateY(-3px); }
.p-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.p-teal .p-icon { background: #e2f4f0; color: #1c9c85; }
.p-blue .p-icon { background: #e4ecfb; color: #3568d4; }
.p-orange .p-icon { background: #fdeee3; color: #e07a2f; }
.p-pink .p-icon { background: #fce9ef; color: #d44a77; }
.persona-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.persona-card p { font-size: .8rem; color: var(--body); }

/* ============ EXCELLENCE / BENTO ============ */
.excellence .section-head { margin-bottom: 2.5rem; }
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.bento-card {
  border-radius: var(--radius); padding: 1.7rem 1.6rem;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .7rem;
  min-height: 280px;
}
.bento-card h3 { font-size: 1.3rem; letter-spacing: -.01em; max-width: 18ch; }
.bento-card > p { font-size: .85rem; color: rgba(35,44,57,.75); max-width: 34ch; }
.bento-card .btn { align-self: flex-start; margin-top: .25rem; }
.bento-img { margin-top: auto; border-radius: 12px; overflow: hidden; }
.bento-img img { width: 100%; height: 100%; object-fit: cover; }

.b-lilac  { background: var(--lilac); }
.b-yellow { background: var(--yellow); }
.b-yellow > p { color: rgba(35,44,57,.8); }
.b-green  { background: var(--green-pale); }
.b-lilac2 { background: var(--lilac2); }

.b-lilac .bento-img { aspect-ratio: 21 / 9; }
.b-yellow .bento-img { aspect-ratio: 21 / 10; }
.b-green .bento-img { aspect-ratio: 21 / 10; }
.b-lilac2 .bento-img { aspect-ratio: 21 / 10; }

/* Orange wide lens card */
.b-orange {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  grid-column: 1 / -1;
  flex-direction: row; align-items: stretch; gap: 1.5rem;
  min-height: 240px;
}
.lens-copy { display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.lens-copy h3 { color: #fff; }
.lens-note {
  background: #fff; border-radius: 12px; padding: .9rem 1rem;
  max-width: 320px;
}
.lens-note h4 { font-size: .85rem; margin-bottom: .3rem; }
.lens-note p { font-size: .72rem; color: var(--body); }
.lens-line {
  font-size: .8rem; color: rgba(255,255,255,.9);
  border-top: 1px solid rgba(255,255,255,.35); padding-top: .5rem;
  max-width: 320px;
}
.lens-img { flex: 1.2; margin-top: 0; align-self: center; border-radius: 14px; }

/* mini social inside exam card */
.mini-social { display: flex; align-items: center; gap: .6rem; margin-top: .9rem; }
.mini-social .avatar { width: 28px; height: 28px; }

/* ============ BESTSELLER ============ */
.carousel-btns { display: flex; gap: .5rem; }

/* ============ FOOTER ============ */
.footer { background: var(--navy-deep); color: #aeb6c2; margin-top: 40px; }
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 48px clamp(16px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  text-align: center;
}
.footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer nav a { font-size: .85rem; transition: color .15s; }
.footer nav a:hover { color: #fff; }
.footer p { font-size: .75rem; opacity: .6; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-cards { max-width: 640px; }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .b-orange { flex-direction: column; }
  .face-card:nth-child(2) { transform: none; }
}
@media (max-width: 480px) {
  .persona-grid { grid-template-columns: 1fr; }
  .hero-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ============ FOCUS-REVEAL HERO ============ */
.focus-in {
  filter: blur(14px);
  opacity: .2;
  transform: scale(1.015);
  transition: filter 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.focus-in--ready { filter: blur(0); opacity: 1; transform: scale(1); }
.focus-in--instant { filter: none; opacity: 1; transform: none; transition: none; }

/* ============ LENS LOUPE ============ */
.loupe {
  position: fixed;
  width: 190px; height: 190px;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow:
    0 0 0 2px rgba(27,36,49,.15),
    0 18px 40px rgba(22,29,40,.35),
    inset 0 0 24px rgba(255,255,255,.5);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  z-index: 60;
  transition: opacity .15s ease;
  will-change: left, top, background-position;
}
.loupe::after {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), rgba(255,255,255,0) 45%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .focus-in { filter: none; opacity: 1; transform: none; transition: none; }
  .loupe { display: none; }
}
@media (hover: none) {
  .loupe { display: none; }
}
