/* ── Reset & variables ───────────────────────────────────────────────────── */
:root {
  --bg:      #0e0b08;
  --panel:   #1c140c;
  --panel-2: #241a0f;
  --border:  #2f2317;
  --cream:   #f5ecd9;
  --muted:   #a6957c;
  --amber:   #e8a33d;
  --honey:   #f4c56b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Hex canvas ──────────────────────────────────────────────────────────── */
#hex-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(14, 11, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--cream);
}

.nav-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber), 0 0 14px rgba(232,163,61,0.6);
  animation: nav-pulse 2.2s ease-in-out infinite;
}

@keyframes nav-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--amber), 0 0 14px rgba(232,163,61,0.6); }
  50%       { box-shadow: 0 0 3px var(--amber), 0 0 6px rgba(232,163,61,0.3);  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cream); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
}

.hero-inner { max-width: 740px; }

/* eyebrow pill */
.hero-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--amber);
  border: 1px solid rgba(232,163,61,0.35);
  border-radius: 999px;
  padding: 0.35rem 1.05rem;
  margin-bottom: 2rem;
}

/* headline */
.hero-headline {
  display: flex;
  flex-direction: column;
  font-size: clamp(3rem, 8.5vw, 5.75rem);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 1.85rem;
}

.hero-line { display: block; }

/* sub */
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.72;
}

/* CTA button */
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amber);
  color: #0e0b08;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.85rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.hero-btn:hover {
  background: var(--honey);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,163,61,0.28);
}

/* accent colour */
.accent { color: var(--amber); }

/* ── Hero stagger animation ───────────────────────────────────────────────── */
.hero-anim {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-rise 0.72s cubic-bezier(0.22,1,0.36,1) forwards;
  animation-delay: calc(var(--i, 0) * 0.13s + 0.15s);
}

@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll cue ──────────────────────────────────────────────────────────── */
.scroll-cue {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(166,149,124,0.45);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.scroll-cue-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: scroll-bounce 1.9s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%   { transform: translateY(0);    opacity: 0.9; }
  65%  { transform: translateY(17px); opacity: 0.2; }
  100% { transform: translateY(0);    opacity: 0.9; }
}

/* ── Shared section helpers ──────────────────────────────────────────────── */
.section-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--amber);
  margin-bottom: 0.7rem;
}

.section-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  line-height: 1.15;
}

/* ── Apps section ────────────────────────────────────────────────────────── */
.apps-section {
  position: relative;
  z-index: 1;
  padding: 7rem 0;
}

/* Tab bar */
.tab-list {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tab:hover { color: var(--cream); }
.tab.active {
  color: var(--cream);
  border-bottom-color: var(--amber);
}

.tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Panels */
.tab-panels { position: relative; }

.tab-panel {
  display: none;
  align-items: center;
  gap: 2.5rem;
  padding: 2.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.tab-panel.active {
  display: flex;
  animation: panel-appear 0.32s ease;
}
@keyframes panel-appear {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.app-swatch {
  width: 108px;
  height: 108px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.app-info h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}

.app-info p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.1rem;
  max-width: 480px;
  font-size: 0.95rem;
}

.app-link {
  color: var(--amber);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.app-link:hover { color: var(--honey); }

/* ── Philosophy section ──────────────────────────────────────────────────── */
.philosophy-section {
  position: relative;
  z-index: 1;
  padding: 8rem 0;
  text-align: center;
}

.philosophy-lines {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.philosophy-line {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

/* stagger each philosophy line */
.philosophy-lines .reveal:nth-child(1) { transition-delay: 0s;    }
.philosophy-lines .reveal:nth-child(2) { transition-delay: 0.13s; }
.philosophy-lines .reveal:nth-child(3) { transition-delay: 0.26s; }
.philosophy-lines .reveal:nth-child(4) { transition-delay: 0.39s; }

/* ── Footer / Connect ────────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--cream);
}

.footer-socials {
  display: flex;
  gap: 0.85rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.social-btn:hover {
  color: var(--amber);
  border-color: rgba(232,163,61,0.45);
  background: rgba(232,163,61,0.07);
  box-shadow: 0 0 14px rgba(232,163,61,0.15);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Scroll-reveal (shared) ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.2rem; }

  .tab-panel { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .app-swatch { width: 80px; height: 80px; font-size: 2rem; border-radius: 16px; }
}
