/* ============================================================
   Turtles That Glitter LLC — "Deep-water shimmer"
   Dark jewel-toned twilight · ivory jewelry-box product cards
   Display: Fraunces · Body: Hanken Grotesk
   ============================================================ */

:root {
  /* Ink / twilight */
  --ink: #08151d;
  --ink-2: #0d2029;
  --aubergine: #1b1030;

  /* Cream surfaces (product cards) */
  --cream: #fbf6ec;
  --tile: #ffffff;
  --on-cream: #20303a;
  --on-cream-muted: #6d7f86;

  /* Light text on dark */
  --on-dark: #eef4f3;
  --on-dark-muted: #9fb6b6;

  /* Glitter accents */
  --gold: #e8b94e;
  --gold-soft: #f4d488;
  --aqua: #45d3c8;
  --pink: #ec6aa6;

  --line-dark: rgba(255, 255, 255, 0.12);
  --line-cream: rgba(20, 32, 40, 0.1);

  --iris: linear-gradient(110deg, #f4d488 0%, #45d3c8 38%, #ec6aa6 70%, #f4d488 100%);

  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.25), 0 22px 48px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(232, 185, 78, 0.35), 0 18px 50px rgba(69, 211, 200, 0.18);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--on-dark);
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 80% at 12% -8%, rgba(232, 185, 78, 0.16), transparent 55%),
    radial-gradient(90% 70% at 92% 4%, rgba(69, 211, 200, 0.16), transparent 55%),
    radial-gradient(120% 100% at 50% 120%, rgba(236, 106, 166, 0.14), transparent 60%),
    linear-gradient(170deg, var(--ink) 0%, var(--ink-2) 45%, var(--aubergine) 100%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--gold-soft);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Fine film grain over everything */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Shared kickers / labels */
.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 10px;
}
.kicker.center {
  display: block;
  text-align: center;
}

/* ---- Promo bar ---- */
.promo-bar {
  position: relative;
  z-index: 5;
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 9px 12px;
  color: #f3e9cf;
  background: rgba(8, 21, 29, 0.6);
  border-bottom: 1px solid var(--line-dark);
}
.promo-bar strong {
  color: var(--gold);
  font-weight: 700;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 21, 29, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 12px 0;
}
.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  filter: drop-shadow(0 2px 8px rgba(69, 211, 200, 0.45));
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 0.95;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  background: var(--iris);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
.brand-name small {
  font-family: var(--font-body);
  font-size: 0.56rem;
  letter-spacing: 0.4em;
  font-weight: 600;
  color: var(--on-dark-muted);
  -webkit-text-fill-color: var(--on-dark-muted);
  margin-top: 5px;
}
.search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  overflow: hidden;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.04);
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--on-dark);
  padding: 10px 18px;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
}
.search input::placeholder {
  color: var(--on-dark-muted);
}
.search button {
  border: 0;
  background: transparent;
  color: var(--on-dark-muted);
  padding: 0 16px;
  cursor: pointer;
}
.search:focus-within {
  border-color: var(--aqua);
}
.header-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  flex: 0 0 auto;
}
.icon-link {
  color: var(--on-dark);
  background: transparent;
  border: 0;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  gap: 3px;
  cursor: pointer;
}
.icon-link:hover {
  color: var(--gold-soft);
}
.cart-icon-wrap {
  position: relative;
}
.cart-count {
  position: absolute;
  top: -7px;
  right: -11px;
  background: var(--pink);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 0 0 2px rgba(8, 21, 29, 0.9);
  animation: pop 0.3s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.main-nav {
  border-top: 1px solid var(--line-dark);
}
.main-nav-inner {
  display: flex;
  gap: 30px;
  padding: 12px 24px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-x: auto;
}
.main-nav a {
  color: var(--on-dark-muted);
  white-space: nowrap;
  position: relative;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--on-dark);
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  background: var(--iris);
  background-size: 200% auto;
}
.main-nav a.deal {
  color: var(--pink);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
  padding: 76px 24px 92px;
}
.hero-copy {
  max-width: 36ch;
}
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
}
.hero-title em {
  font-style: italic;
  font-weight: 600;
  background: var(--iris);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--on-dark-muted);
  margin: 0 0 30px;
}
.hero-cta {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #14110b;
  background: var(--iris);
  background-size: 200% auto;
  padding: 15px 34px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(69, 211, 200, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.5s ease;
}
.hero-cta:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(236, 106, 166, 0.34);
}
.hero-meta {
  margin: 22px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.hero-logo {
  width: min(360px, 80%);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  animation: float 6s ease-in-out infinite;
}
.hero-glow {
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 211, 200, 0.4), rgba(236, 106, 166, 0.18) 45%, transparent 70%);
  filter: blur(34px);
  z-index: 1;
  animation: pulse-glow 6s ease-in-out infinite;
}

/* Sparkle field */
.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.spark {
  position: absolute;
  color: var(--gold-soft);
  font-size: 14px;
  opacity: 0;
  text-shadow: 0 0 8px rgba(244, 212, 136, 0.8);
  animation: twinkle 3.4s ease-in-out infinite;
}
.spark.s1 { left: 14%; top: 26%; font-size: 18px; animation-delay: 0s; }
.spark.s2 { left: 30%; top: 64%; animation-delay: 0.7s; color: var(--aqua); }
.spark.s3 { left: 52%; top: 18%; font-size: 12px; animation-delay: 1.3s; }
.spark.s4 { left: 63%; top: 72%; font-size: 20px; animation-delay: 0.4s; color: var(--pink); }
.spark.s5 { left: 80%; top: 32%; animation-delay: 1.8s; }
.spark.s6 { left: 88%; top: 60%; font-size: 12px; animation-delay: 1.1s; color: var(--aqua); }
.spark.s7 { left: 44%; top: 84%; font-size: 16px; animation-delay: 2.2s; }

.hero-fade {
  height: 1px;
}

/* ---- Shop ---- */
.shop {
  position: relative;
  z-index: 2;
  padding: 26px 0 20px;
}
.shop-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 16px;
}
.shop-head h2,
.benefits h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.01em;
  margin: 0;
}
.shop-count {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  padding: 6px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---- Product card (ivory jewelry box) ---- */
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  color: var(--on-cream);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.28s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow), 0 30px 60px rgba(0, 0, 0, 0.4);
}
.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .card-media img {
  transform: scale(1.045);
}
/* sheen sweep across the image on hover */
.card-media::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.card:hover .card-media::after {
  left: 130%;
}
.badge-sale {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pink);
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(236, 106, 166, 0.4);
}
.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid var(--line-cream);
}
.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.22;
  letter-spacing: -0.005em;
  margin: 0;
  min-height: 2.55em;
}
.card-color {
  margin: 0;
  color: var(--on-cream-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Stars */
.stars {
  --rating: 5;
  display: inline-block;
  font-size: 0.92rem;
  line-height: 1;
  position: relative;
  width: 5.4em;
  color: rgba(32, 48, 58, 0.18);
}
.stars::before {
  content: "★★★★★";
  letter-spacing: 0.08em;
}
.stars::after {
  content: "★★★★★";
  letter-spacing: 0.08em;
  color: var(--gold);
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  width: calc(var(--rating) / 5 * 100%);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 2px;
}
.price-sale {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--on-cream);
}
.price-was {
  text-decoration: line-through;
  color: var(--on-cream-muted);
  font-size: 0.88rem;
}

/* Size pills */
.sizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.size {
  min-width: 38px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line-cream);
  border-radius: 9px;
  background: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-cream);
  cursor: pointer;
  transition: all 0.15s ease;
}
.size:hover {
  border-color: var(--on-cream);
}
.size.active {
  border-color: transparent;
  background: var(--on-cream);
  color: var(--cream);
}

.btn-add {
  margin-top: 6px;
  width: 100%;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  background: var(--on-cream);
  border: 0;
  border-radius: 11px;
  padding: 13px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.2s ease;
}
.btn-add::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--iris);
  background-size: 200% auto;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.btn-add span,
.btn-add {
  position: relative;
}
.btn-add:hover {
  color: #14110b;
}
.btn-add:hover::before {
  opacity: 1;
}
.btn-add.added {
  color: #06231f;
}
.btn-add.added::before {
  opacity: 1;
  background: linear-gradient(110deg, var(--aqua), var(--gold-soft));
}

/* ---- Benefits ---- */
.benefits {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 64px 28px 56px;
  margin: 56px 0 64px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.benefits h2 {
  margin: 0 0 38px;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  max-width: 880px;
  margin: 0 auto;
}
.benefit-icon {
  font-size: 1.7rem;
  color: var(--gold);
  margin-bottom: 12px;
  text-shadow: 0 0 14px rgba(232, 185, 78, 0.5);
}
.benefit h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.benefit p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.92rem;
}

/* ---- Footer ---- */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-dark);
  padding-top: 48px;
  background: rgba(8, 21, 29, 0.5);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.5fr;
  gap: 30px;
  padding-bottom: 32px;
}
.footer-grid h4 {
  margin: 0 0 14px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.footer-grid a {
  display: block;
  color: var(--on-dark-muted);
  font-size: 0.88rem;
  padding: 4px 0;
}
.footer-grid a:hover {
  color: var(--on-dark);
}
.footer-brand img {
  filter: drop-shadow(0 4px 14px rgba(69, 211, 200, 0.35));
}
.footer-brand p {
  color: var(--on-dark-muted);
  font-size: 0.88rem;
  margin: 10px 0 0;
}
.footer-brand .demo-note {
  color: var(--pink);
  font-weight: 600;
}
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 20px 24px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--cream);
  color: var(--on-cream);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 13px 22px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 60;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(232, 185, 78, 0.4);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Animations ---- */
@keyframes shimmer {
  to {
    background-position: 220% center;
  }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(90deg); }
}
@keyframes pop {
  from { transform: scale(0.2); }
  to { transform: scale(1); }
}

/* Staggered load reveal (CSS-only, progressive) */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise {
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0ms);
}

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 56px 24px 64px;
  }
  .hero-copy {
    max-width: none;
  }
  .hero-art {
    order: -1;
    min-height: 220px;
  }
  .hero-logo {
    width: min(240px, 60%);
  }
  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .header-actions .icon-link > span:last-child {
    display: none;
  }
}
@media (max-width: 560px) {
  .search {
    display: none;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .card-title {
    min-height: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .brand-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rise {
    opacity: 1;
  }
  .spark {
    opacity: 0.5;
  }
}
