/* BeeHive — shared site styles */

:root {
  --navy: #0F1B33;
  --navy-deep: #091120;
  --panel: #16233F;
  --gold: #FAC775;
  --gold-soft: #E8B562;
  --cream: #F1EFE8;
  --cream-dim: #B8C0D4;
  --wing: #2C2C2A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------------------------------------------------------------- Nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: rgba(9, 17, 32, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(250, 199, 117, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand .hex-mark {
  width: 28px;
  height: 28px;
}

.brand-logo {
  height: 39px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--cream-dim);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--gold); }

/* ------------------------------------------------------------ Hex icon (quiet login) */

.hex-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.72;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.hex-icon:hover {
  opacity: 1;
  transform: scale(1.08);
}

.hex-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(250, 199, 117, 0.18));
}

/* --------------------------------------------------------------- Hero */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -15% 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(9,17,32,0.35) 0%, rgba(9,17,32,0.65) 55%, var(--navy) 100%),
    url('BeeHiveBackground.png');
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-content, .hero-scroll {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  section.block::before { transform: none !important; }
}

.hero-content {
  max-width: 640px;
  padding: 0 2rem;
  margin-left: 4vw;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: 1.1rem;
  color: var(--cream-dim);
  max-width: 480px;
}

.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream-dim);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ------------------------------------------------------------ Sections */

section.block {
  --parallax-shift: 0px;
  position: relative;
  isolation: isolate;
  max-width: 1080px;
  margin: 0 auto;
  padding: 5.5rem 2rem;
}

section.block::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8%;
  left: 50%;
  width: 100vw;
  height: 82%;
  pointer-events: none;
  transform: translate3d(-50%, var(--parallax-shift), 0);
  background:
    radial-gradient(circle at 16% 35%, rgba(250, 199, 117, 0.075), transparent 28%),
    radial-gradient(circle at 84% 65%, rgba(52, 88, 147, 0.12), transparent 32%);
  will-change: transform;
}

section.block:nth-of-type(even)::before {
  background:
    radial-gradient(circle at 80% 30%, rgba(250, 199, 117, 0.07), transparent 27%),
    radial-gradient(circle at 18% 72%, rgba(52, 88, 147, 0.11), transparent 34%);
}

section.block + section.block::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(76vw, 780px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(250, 199, 117, 0.22), transparent);
}

.section-head {
  max-width: 620px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head .eyebrow { display: inline-block; margin: 0 0 0.6rem; }

.section-head h1,
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin: 0 0 0.9rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0.75rem 1rem 0.65rem;
  }

  .brand-logo { height: 32px; }

  .nav-links {
    order: 2;
    width: 100%;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.78rem;
  }

  .nav-links a { white-space: nowrap; }
  .nav-links .hex-icon { width: 24px; height: 24px; }
}

.section-head p { color: var(--cream-dim); margin: 0; }

/* ------------------------------------------------------------- Story */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story p { color: var(--cream-dim); margin: 0 0 1.1rem; }
.story p:last-child { margin-bottom: 0; }

.story-art {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(250, 199, 117, 0.15);
}

.story-art img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 800px) {
  .story { grid-template-columns: 1fr; }
  .story-art { order: -1; }
}

/* --------------------------------------------------------- Hex feature grid */

.hex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.hex-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(250, 199, 117, 0.14);
  border-radius: 16px;
  padding: 2rem 1.6rem;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.hex-card:hover {
  border-color: rgba(250, 199, 117, 0.4);
  transform: translateY(-3px);
}

.hex-card .hex-icon-lg {
  width: 56px;
  height: 48px;
  margin: 0 auto 1.1rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(250, 199, 117, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-card .hex-icon-lg svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 1.6; }

.hex-card .hex-icon-lg.icon-art {
  width: 72px;
  height: 72px;
  clip-path: none;
  background: transparent;
}

.hex-card .hex-icon-lg.icon-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(250, 199, 117, 0.16));
}

.project-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 1.1rem;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.hex-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.hex-card p { margin: 0; color: var(--cream-dim); font-size: 0.92rem; }

.beta-ribbon::after {
  content: "Beta";
  position: absolute;
  top: 18px;
  right: -35px;
  width: 145px;
  padding: 0.28rem 0;
  transform: rotate(35deg);
  background: linear-gradient(90deg, #e8b562, #fac775);
  color: var(--navy-deep);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

/* ---------------------------------------------------------- Brand grid */

.brand-group { margin-bottom: 3rem; }
.brand-group:last-child { margin-bottom: 0; }

.brand-group h3 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.2rem;
  text-align: center;
}

.brand-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.brand-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: var(--panel);
  border: 1px solid rgba(250, 199, 117, 0.14);
  border-radius: 14px;
  padding: 1.4rem 1rem;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.brand-tile:hover {
  border-color: rgba(250, 199, 117, 0.45);
  transform: translateY(-3px) scale(1.03);
  background: #1B2B4D;
}

.brand-tile img {
  height: 32px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
}

.brand-tile img.product-logo {
  height: 52px;
  max-width: 132px;
}

.brand-tile img.product-logo-symbol {
  height: 58px;
}

.brand-tile img.product-logo-square {
  height: 64px;
  border-radius: 8px;
}

.brand-tile img.product-logo-light {
  height: 40px;
  max-width: 126px;
  mix-blend-mode: screen;
  filter: invert(1) brightness(2.15) contrast(1.15);
}

.brand-tile img.product-logo-reolink {
  height: 42px;
  max-width: 126px;
  mix-blend-mode: screen;
  filter: invert(1) brightness(1.45) saturate(0.75);
}

.brand-tile .brand-fallback {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.brand-tile span.brand-name {
  font-size: 0.78rem;
  color: var(--cream-dim);
}

.brand-tile.pending {
  opacity: 0.55;
  border-style: dashed;
}

.brand-tile-coming-soon::after {
  content: "Coming soon";
  position: absolute;
  top: 18px;
  right: -35px;
  width: 145px;
  padding: 0.28rem 0;
  transform: rotate(35deg);
  background: linear-gradient(90deg, #e8b562, #fac775);
  color: var(--navy-deep);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- Blog */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.post-card {
  background: var(--panel);
  border: 1px solid rgba(250, 199, 117, 0.14);
  border-radius: 16px;
  padding: 1.8rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.post-card:hover { border-color: rgba(250, 199, 117, 0.4); transform: translateY(-3px); }

.post-date {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.post-card h3 { margin: 0.6rem 0 0.6rem; font-size: 1.2rem; line-height: 1.3; }
.post-card p { margin: 0; color: var(--cream-dim); font-size: 0.95rem; }
.post-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--cream-dim);
  border: 1px solid rgba(241, 239, 232, 0.18);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

/* ---------------------------------------------------------- Post page */

.post-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 4.5rem 2rem 2rem;
  text-align: center;
}

.post-header h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin: 0.8rem 0; }

article.post-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  color: var(--cream-dim);
  font-size: 1.08rem;
}

article.post-body h2 { color: var(--cream); font-size: 1.4rem; margin-top: 2.4rem; }
article.post-body p { margin: 0 0 1.3rem; }
article.post-body a { color: var(--gold); border-bottom: 1px solid rgba(250, 199, 117, 0.35); }

.back-link {
  display: inline-block;
  margin: 0 auto;
  color: var(--gold-soft);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------- Gear notes */

.gear-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 6.5rem 2rem 4rem;
  text-align: center;
}

.gear-hero h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.gear-hero > p {
  max-width: 690px;
  margin: 0 auto;
  color: var(--cream-dim);
  font-size: 1.08rem;
}

.gear-hero .gear-draft-note {
  margin-top: 1.2rem;
  color: var(--gold-soft);
  font-size: 0.9rem;
}

.gear-notes {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.gear-note {
  scroll-margin-top: 90px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2.2rem;
  align-items: start;
  margin: 0 0 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(250, 199, 117, 0.16);
  border-radius: 18px;
  background: rgba(22, 35, 63, 0.78);
}

.gear-note:target {
  border-color: rgba(250, 199, 117, 0.55);
  box-shadow: 0 0 0 1px rgba(250, 199, 117, 0.12), 0 18px 44px rgba(0, 0, 0, 0.22);
}

.gear-note-mark {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  border-radius: 14px;
  background: rgba(9, 17, 32, 0.72);
}

.gear-note-mark img {
  max-height: 72px;
  max-width: 112px;
  object-fit: contain;
}

.gear-note-mark-square img { max-height: 96px; border-radius: 8px; }
.gear-note-mark-wide img { max-width: 130px; }

.gear-note-mark-byd img {
  mix-blend-mode: screen;
  filter: invert(1) brightness(2.15) contrast(1.15);
}

.gear-note-mark-reolink img {
  mix-blend-mode: screen;
  filter: invert(1) brightness(1.45) saturate(0.75);
}

.gear-note h2 {
  margin: 0.25rem 0 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.gear-note p { color: var(--cream-dim); }
.gear-note .gear-lede { margin-top: 0; color: var(--cream); font-weight: 650; }

.gear-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.4rem 0;
}

.gear-gallery img {
  width: 100%;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(250, 199, 117, 0.14);
}

.gear-gallery .gear-gallery-feature {
  grid-column: 1 / -1;
  height: clamp(220px, 34vw, 390px);
}

.owner-note {
  position: relative;
  margin: 1.5rem 0;
  padding: 1.35rem 1.45rem 1.35rem 1.7rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(250, 199, 117, 0.075);
}

.owner-note::before {
  content: "Owner's note";
  display: block;
  margin-bottom: 0.65rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.owner-note p { margin: 0 0 0.8rem; color: var(--cream); }
.owner-note p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .gear-gallery { grid-template-columns: 1fr; }
  .gear-gallery .gear-gallery-feature { grid-column: auto; }
  .gear-gallery img,
  .gear-gallery .gear-gallery-feature { height: 220px; }
}

.gear-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.4rem;
}

.gear-facts span {
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(250, 199, 117, 0.22);
  border-radius: 999px;
  color: var(--cream-dim);
  font-size: 0.78rem;
}

.official-link {
  display: inline-flex;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  background: rgba(250, 199, 117, 0.12);
  color: var(--gold);
  font-weight: 650;
  transition: background 0.2s ease, transform 0.2s ease;
}

.official-link:hover { background: rgba(250, 199, 117, 0.2); transform: translateY(-1px); }

.gear-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.official-link-secondary {
  border: 1px solid rgba(250, 199, 117, 0.22);
  background: transparent;
}

@media (max-width: 680px) {
  .gear-note { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.5rem; }
  .gear-note-mark { min-height: 96px; }
}

/* ---------------------------------------------------------------- Footer */

footer {
  border-top: 1px solid rgba(250, 199, 117, 0.12);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--cream-dim);
  font-size: 0.85rem;
}

footer .foot-hex { opacity: 0.35; }
footer .foot-hex:hover { opacity: 1; }
