/* =========================================================
   B777 — Beyond Average.
   Black & white luxury-tech aesthetic. Dark mode only.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #000000;
  --bg-soft:   #0a0a0a;
  --surface:   #101011;
  --line:      #1f1f22;
  --ink:       #ffffff;
  --ink-dim:   #a0a0a5;
  --ink-faint: #5c5c62;
  --glow:      rgba(255, 255, 255, 0.06);

  --display: "Space Grotesk", sans-serif;
  --body:    "Inter", sans-serif;

  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Shared section rhythm ---------- */
section { padding: 140px 0; position: relative; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 56px;
}

/* =========================================================
   SCROLL PROGRESS
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #444, #fff);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  backdrop-filter: blur(0px);
  background: transparent;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--ink-dim);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  /* animated underline */
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 950;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  overflow: hidden;
  /* subtle radial gradient over near-black */
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #141416 0%, #000 70%);
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* floating glowing accent behind hero */
.hero-glow {
  position: absolute;
  top: 44%; left: 50%;
  width: 640px; height: 640px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.09) 0%, transparent 62%);
  filter: blur(30px);
  z-index: 0;
  animation: floatGlow 9s ease-in-out infinite;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50%      { transform: translate(-50%, -54%) scale(1.08); opacity: 1; }
}

.hero-content { position: relative; z-index: 2; }

.hero-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4.5rem, 18vw, 12rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  background: linear-gradient(180deg, #fff 0%, #8a8a90 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-top: 12px;
}

.hero-statement {
  margin-top: 36px;
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}

.hero-actions {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 34px;
  border-radius: 100px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-solid {
  background: var(--ink);
  color: #000;
}
.btn-solid:hover { transform: translateY(-3px); background: #e6e6e6; }
.btn-outline {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-outline:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  background: rgba(255,255,255,0.04);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1px solid var(--ink-faint);
  border-radius: 14px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  background: var(--ink-dim);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(14px); }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-body { max-width: 620px; }
.about-body p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--ink-dim);
  margin-bottom: 24px;
}
.about-date {
  font-family: var(--display);
  color: var(--ink) !important;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* =========================================================
   PHILOSOPHY — three cards
   ========================================================= */
.cards-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 44px 36px;
  background: linear-gradient(180deg, var(--surface), #060607);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              background 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: #333;
  background: linear-gradient(180deg, #16161a, #08080a);
}
.card-num {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.card-num sup { font-size: 0.7rem; }
.card h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.card p { color: var(--ink-dim); font-size: 1rem; }

/* =========================================================
   VALUES — seven cards
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.value-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 26px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 150px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              color 0.4s var(--ease);
}
.value-card span {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  font-weight: 400;
}
.value-card:hover {
  transform: translateY(-6px);
  border-color: #333;
}
/* seventh card spans wider on the 4-col grid for balance */
.value-card:nth-child(7) { grid-column: span 1; }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manifesto-lines p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 5.5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink-dim);
  transition: color 0.5s var(--ease);
}
.manifesto-lines p:hover { color: var(--ink); }
.manifesto-final {
  color: var(--ink) !important;
  margin-top: 20px;
  background: linear-gradient(90deg, #fff, #7a7a80);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 100px 0 60px;
  text-align: center;
}
.footer-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.02em;
}
.footer-tag { color: var(--ink-dim); margin-top: 8px; }
.footer-greet {
  font-family: var(--display);
  color: var(--ink);
  margin-top: 20px;
  letter-spacing: 0.04em;
}
.footer-copy {
  color: var(--ink-faint);
  font-size: 0.8rem;
  margin-top: 40px;
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  section { padding: 100px 0; }

  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    padding: 0 40px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.3rem; }
  .hamburger { display: flex; }

  .cards-three { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 22px; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
