/* ============================================================
   TyraTag Home v4 — "Gruns flow" rebuilt in TyraTag brand
   Screen-by-screen. Reuses tokens/buttons/footer from site.css.
   ============================================================ */

:root {
  --gn-peri-deep: #33356f;   /* deep indigo — used sparingly on dark band */
  --gn-peri: #6a72d6;        /* periwinkle */
  --gn-peri-mid: #8b91e0;
  --gn-peri-soft: #eceefb;   /* light periwinkle band */
  --gn-nav: #eef0fb;         /* nav surface */
  --gn-line: #e0e3f4;        /* cool hairline */
  --gn-card-grad: linear-gradient(158deg, #383b83 0%, #6a72d6 50%, #bbc1ee 118%);
}

/* ---------------- announcement bar ---------------- */
.gn-announce {
  background: #e3e6f6;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  padding: 9px 0;
  overflow: hidden;
}
.gn-announce .spark { color: var(--chestnut); font-size: 12px; }
.gn-announce b { color: var(--chestnut); }
.gn-announce .gn-am-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 30px;
  white-space: nowrap;
}

/* ---------------- marquee engine ---------------- */
.gn-marquee { width: 100%; overflow: hidden; }
.gn-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: gn-scroll var(--gn-marq-dur, 34s) linear infinite;
}
.gn-marquee:hover .gn-marquee-track { animation-play-state: paused; }
@keyframes gn-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .gn-marquee-track { animation: none; justify-content: center; }
}

/* ---------------- nav ---------------- */
.gn-nav {
  background: var(--gn-nav);
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--gn-line);
}
.gn-nav-inner {
  max-width: 1560px;
  margin: 0 auto;
  height: 66px;
  padding: 0 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.gn-nav-left { display: flex; gap: 12px; }
.gn-pill {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 15px;
  border: 1.5px solid color-mix(in oklab, var(--ink) 22%, transparent);
  border-radius: 999px;
  transition: border-color 160ms ease, background 160ms ease;
  white-space: nowrap;
}
.gn-pill:hover { border-color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); }

/* bracket-corner FX pill (nav) */
.gn-pill.fx-btn {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  border-radius: 8px;
  padding: 9px 18px;
  display: inline-flex;
  justify-content: center;
}
.gn-pill.fx-btn:hover { background: color-mix(in oklab, var(--ink) 5%, transparent); border-color: transparent; }
.gn-pill.fx-btn .fx-label { position: relative; z-index: 2; }
.gn-pill.fx-btn .fx-shine {
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: rgba(255,255,255,0.55);
  transform: rotate(12deg);
  filter: blur(10px);
  z-index: 1;
  transition: left 1000ms ease-in-out;
}
.gn-pill.fx-btn:hover .fx-shine { left: 125%; }
.gn-pill.fx-btn .fx-corner {
  position: absolute;
  width: 50%;
  border: 0 solid var(--ink);
  transition: height 300ms ease;
}
.gn-pill.fx-btn .fx-corner.tl { top: 0; left: 0;  height: 22%; border-left-width: 2px; border-top-width: 2px;    border-top-left-radius: 8px; }
.gn-pill.fx-btn .fx-corner.tr { top: 0; right: 0; height: 60%; border-right-width: 2px; border-top-width: 2px;   border-top-right-radius: 8px; }
.gn-pill.fx-btn .fx-corner.bl { bottom: 0; left: 0; height: 60%; border-left-width: 2px; border-bottom-width: 2px;  border-bottom-left-radius: 8px; }
.gn-pill.fx-btn .fx-corner.br { bottom: 0; right: 0; height: 22%; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 8px; }
.gn-pill.fx-btn:hover .fx-corner.tr,
.gn-pill.fx-btn:hover .fx-corner.bl { height: 90%; }

.gn-logo {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.gn-logo .logo-mark { height: 26px; color: var(--ink); }
.gn-logo .logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.035em;
  line-height: 1;
}
.gn-logo .logo-word .tyra { color: var(--ink); }
.gn-logo .logo-word .tag { color: var(--chestnut); }

.gn-nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}
.gn-account {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.92;
}
.gn-account:hover { opacity: 1; }
.gn-cart {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background 160ms ease;
}
.gn-cart:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); }

/* hamburger (placeholder — mobile only) */
.gn-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  transition: background 160ms ease;
}
.gn-burger:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); }
.gn-burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------------- hero ---------------- */
.gn-hero {
  background: #FAFBFF;
  overflow: clip;
}
.gn-hero-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 44px 44px 52px;
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  align-items: center;
  gap: 40px;
  min-height: min(66vh, 600px);
}

/* left column — centered stack */
.gn-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* left column */
.gn-hero-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--ink-75);
}
.gn-hero-rating .stars { color: var(--chestnut); letter-spacing: 1px; font-size: 16px; }
.gn-hero-rating b { color: var(--ink); }

.gn-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 18px auto 0;
  max-width: 14ch;
}
.gn-hero h1 .accent { color: var(--chestnut); }

.gn-hero-cta {
  margin-top: 30px;
  font-size: 18px;
  padding: 17px 32px;
  white-space: nowrap;
  background: var(--gn-peri);
  color: #fff;
}
.gn-magnetic { display: inline-block; transition: transform 0.35s cubic-bezier(0.2, 0.85, 0.25, 1); will-change: transform; }
.gn-hero-cta:hover { background: color-mix(in oklab, var(--gn-peri) 86%, #000); }
.gn-hero-trust {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-75);
}
.gn-hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.gn-hero-trust svg { color: var(--chestnut); flex: none; }

.gn-stats {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 34px;
}
.gn-stat { text-align: center; max-width: 130px; }
.gn-stat .ring {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--fur-light);
  color: var(--ink-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
  box-shadow: 0 14px 26px -14px color-mix(in oklab, var(--chestnut) 70%, transparent);
}
.gn-stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.gn-stat small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-60);
}

/* right column — product card */
.gn-hero-card {
  position: relative;
  border-radius: 30px;
  background:
    radial-gradient(120% 90% at 78% 14%, color-mix(in oklab, #ffffff 50%, transparent), transparent 60%),
    var(--gn-card-grad);
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(27, 15, 45, 0.55);
}
.gn-hero-card .gn-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gn-hero-card .prod-main {
  position: absolute;
  width: 60%;
  left: 50%;
  top: 50%;
  transform: translate(-46%, -50%) rotate(7deg);
  filter: drop-shadow(0 28px 40px rgba(0,0,0,0.4));
  z-index: 3;
}
.gn-hero-card .prod-back {
  position: absolute;
  width: 42%;
  left: 14%;
  top: 30%;
  transform: rotate(-12deg);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.35));
  z-index: 2;
}
.gn-hero-card .float {
  position: absolute;
  width: 46px;
  opacity: 0.95;
  z-index: 4;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.3));
}
.gn-hero-card .f1 { top: 14%; right: 12%; transform: rotate(16deg); width: 54px; }
.gn-hero-card .f2 { bottom: 16%; right: 20%; transform: rotate(-18deg); width: 40px; }
.gn-hero-card .f3 { bottom: 22%; left: 12%; transform: rotate(24deg); width: 36px; }
.gn-hero-badge {
  position: absolute;
  top: 22px; left: 22px;
  z-index: 5;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  transform: rotate(-6deg);
  box-shadow: 0 10px 20px -8px rgba(0,0,0,0.4);
  white-space: nowrap;
}

/* ---------------- responsive ---------------- */
@media (max-width: 840px) {
  .gn-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .gn-hero-card { order: -1; max-width: 440px; margin: 0 auto; width: 100%; }
  .gn-nav-left .gn-pill:nth-child(2) { display: none; }
}
@media (max-width: 560px) {
  .gn-stats { gap: 16px; justify-content: space-between; }
  .gn-stat .ring { width: 64px; height: 64px; font-size: 21px; }
  .gn-nav-left { display: none; }
  /* logo hard-left, controls hard-right, hamburger placeholder */
  .gn-nav-inner { display: flex; align-items: center; justify-content: space-between; }
  .gn-logo { justify-self: start; }
  .gn-account { display: none; }
  .gn-burger { display: flex; }
}
