/* ============================================================
   HONEYCOMB DESIGN SYSTEM
   Shared styles across all pages
   ============================================================ */

:root {
  --ink: #0D0F14;
  --ink-2: #14171E;
  --ink-3: #1C2028;
  --ink-4: #252A35;
  --line: #2A2F3B;
  --line-2: #353B4A;
  --paper: #F5F1E8;
  --paper-2: #E8E2D3;
  --paper-3: #DDD5C2;
  --text: #ECE8DC;
  --text-2: #A8A293;
  --text-3: #6E6A60;
  --amber: #E89B3C;
  --amber-2: #C77D24;
  --amber-deep: #8B5614;
  --amber-glow: rgba(232, 155, 60, 0.08);
  --pos: #6FCF97;
  --neg: #E26D6D;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ HONEYCOMB PATTERN ============ */
.hex-bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'><path d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z M28 66 L56 82 L56 100 L28 84 L0 100 L0 82 Z' fill='none' stroke='%23E89B3C' stroke-width='0.5'/></svg>");
  background-size: 56px 100px;
  pointer-events: none;
  z-index: 0;
}
.hex-bg.light {
  opacity: 0.08;
}

/* ============ NAV ============ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo-mark {
  width: 28px;
  height: 28px;
}
.logo-mark svg, .logo-mark img { width: 100%; height: 100%; }
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--amber);
  margin-top: 6px;
}
.nav-login {
  border: 1px solid var(--line);
  padding: 10px 20px;
  border-radius: 2px;
  font-weight: 600 !important;
  color: var(--text) !important;
}
.nav-login:hover { border-color: var(--amber); color: var(--amber) !important; }
.nav-cta {
  background: var(--amber);
  color: var(--ink) !important;
  padding: 10px 20px;
  border-radius: 2px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #F2A848; }

/* Nav dropdown */
.nav-item-dropdown {
  position: relative;
}
.nav-item-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-item-dropdown > a::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0.6;
  transition: transform 0.2s;
}
.nav-item-dropdown:hover > a::after {
  transform: rotate(225deg) translate(-1px, -1px);
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  margin-top: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  z-index: 200;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown a {
  display: block;
  padding: 14px 16px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-dropdown a:hover {
  background: var(--ink-3);
}
.nav-dropdown a .dd-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.nav-dropdown a .dd-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  display: block;
}
.nav-dropdown a .dd-desc {
  font-size: 12px;
  color: var(--text-2);
  display: block;
  line-height: 1.4;
}
.nav-dropdown a.bb .dd-eyebrow {
  color: #5B9BD5;
}

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--amber);
  color: var(--ink);
  padding: 16px 32px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover { background: #F2A848; transform: translateX(2px); }
.btn-primary.dark { background: var(--ink); color: var(--paper); }
.btn-primary.dark:hover { background: var(--ink-3); }

.btn-secondary {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-bottom-color: var(--amber); }
.btn-secondary.dark { color: var(--ink); border-bottom-color: rgba(0,0,0,0.2); }
.btn-secondary.dark:hover { border-bottom-color: var(--amber-2); }

/* ============ SECTIONS ============ */
section { position: relative; }
.section-pad {
  padding: 120px 48px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-pad.compact {
  padding: 80px 48px;
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 800px;
}
.section-title em {
  font-style: italic;
  color: var(--amber);
}
.section-intro {
  font-size: 18px;
  color: var(--text-2);
  max-width: 640px;
  margin-bottom: 72px;
  line-height: 1.5;
}

/* ============ PAGE HERO (smaller than homepage hero) ============ */
.page-hero {
  position: relative;
  padding: 100px 48px 80px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--amber);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  max-width: 900px;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--amber);
  font-weight: 300;
}
.page-hero-sub {
  font-size: 20px;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 680px;
}

/* Light page hero variant */
.page-hero.light {
  background: var(--paper);
  border-bottom: 1px solid var(--paper-2);
}
.page-hero.light h1 { color: var(--ink); }
.page-hero.light h1 em { color: var(--amber-2); }
.page-hero.light .page-hero-eyebrow { color: var(--amber-deep); }
.page-hero.light .page-hero-eyebrow::before { background: var(--amber-deep); }
.page-hero.light .page-hero-sub { color: #4A453B; }

/* ============ DARK SECTION DEFAULTS ============ */
.dark-section {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.dark-section.alt {
  background: var(--ink-2);
}

/* ============ LIGHT SECTION ============ */
.light-section {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--paper-2);
}
.light-section .section-label { color: var(--amber-deep); }
.light-section .section-title { color: var(--ink); }
.light-section .section-title em { color: var(--amber-2); }
.light-section .section-intro { color: #4A453B; }

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  padding: 64px 48px 32px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p {
  color: var(--text-2);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.55;
  margin-top: 16px;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 13px;
}
.footer-bottom a { color: var(--text-3); text-decoration: none; margin-left: 24px; }
.footer-bottom a:hover { color: var(--text); }

/* ============ GRID UTILITIES ============ */
.bordered-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.bordered-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.bordered-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.bordered-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.bordered-grid > div {
  background: var(--ink);
  padding: 40px 32px;
}

.light-section .bordered-grid {
  background: var(--paper-2);
  border-color: var(--paper-2);
}
.light-section .bordered-grid > div {
  background: var(--paper);
}

/* ============ FEATURE LIST ============ */
.feature-list {
  list-style: none;
}
.feature-list li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  align-items: start;
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  padding-top: 4px;
}
.feature-list .body h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.feature-list .body p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}

.light-section .feature-list li { border-top-color: var(--paper-2); }
.light-section .feature-list li:last-child { border-bottom-color: var(--paper-2); }
.light-section .feature-list .num { color: var(--amber-deep); }
.light-section .feature-list .body p { color: #4A453B; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .section-title { font-size: 40px; }
  .page-hero h1 { font-size: 48px; }
  .bordered-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .bordered-grid.cols-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav { padding: 16px 24px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta):not(.nav-login) { display: none; }
  .nav-item-dropdown { display: none; }
  .section-pad, .page-hero { padding-left: 24px; padding-right: 24px; }
  .section-title { font-size: 32px; }
  .page-hero h1 { font-size: 36px; }
  .bordered-grid.cols-4, .bordered-grid.cols-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .footer-bottom a { margin-left: 0; margin-right: 16px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
