/* ============================================
   HYPITY — Shared Stylesheet
   ============================================ */

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

:root {
  --black: #080808;
  --white: #f5f4f0;
  --accent: #e8ff47;
  --grey: #1a1a1a;
  --mid: #888;
  --border: rgba(245,244,240,0.1);
  --border-focus: rgba(232,255,71,0.5);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--mid); text-decoration: none; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase; font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--accent); color: var(--black) !important;
  padding: 10px 22px; border-radius: 2px; font-weight: 500 !important;
}
.nav-cta:hover { opacity: 0.85; }

/* ---- HAMBURGER ---- */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: all 0.3s; }

/* ---- MOBILE MENU ---- */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--black); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center; gap: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Bebas Neue', sans-serif; font-size: 48px;
  letter-spacing: 4px; color: var(--white); text-decoration: none; transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-close {
  position: absolute; top: 24px; right: 40px;
  font-size: 32px; color: var(--white); cursor: pointer;
  background: none; border: none; font-family: 'DM Sans', sans-serif;
}

/* ---- BUTTONS ---- */
.btn-primary {
  background: var(--accent); color: var(--black);
  padding: 14px 32px; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 500; text-decoration: none;
  border-radius: 2px; transition: opacity 0.2s, transform 0.2s;
  font-family: 'DM Sans', sans-serif; display: inline-block;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }

.btn-outline {
  color: var(--white); padding: 14px 32px; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--border); border-radius: 2px; transition: all 0.2s;
  font-family: 'DM Sans', sans-serif; display: inline-block;
}
.btn-outline:hover { border-color: var(--white); }

.btn-ghost {
  color: var(--white); font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--border); padding-bottom: 2px;
  transition: border-color 0.2s; font-family: 'DM Sans', sans-serif;
}
.btn-ghost:hover { border-color: var(--white); }

/* ---- SECTION BASICS ---- */
.section-tag {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; font-weight: 400;
}
.section-title {
  font-family: 'Syne', sans-serif; font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; line-height: 1.1; margin-bottom: 20px;
}
.section-sub { color: var(--mid); font-size: 15px; line-height: 1.75; max-width: 560px; margin-bottom: 56px; }

/* ---- MARQUEE ---- */
.marquee-section {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 16px 0; background: var(--grey);
}
.marquee-track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee-item {
  font-family: 'Bebas Neue', sans-serif; font-size: 16px;
  letter-spacing: 4px; white-space: nowrap; padding: 0 36px; color: var(--mid);
}
.marquee-item span { color: var(--accent); margin-right: 36px; }

/* ---- FOOTER ---- */
footer { border-top: 1px solid var(--border); padding: 48px 40px 32px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 48px; gap: 40px; flex-wrap: wrap;
}
.footer-brand p { font-size: 13px; color: var(--mid); max-width: 240px; line-height: 1.6; margin-top: 12px; }
.footer-links h4 {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--mid); margin-bottom: 20px; font-weight: 400;
}
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: var(--white); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: rgba(136,136,136,0.5); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--mid); text-decoration: none; transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--white); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  nav { padding: 18px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Marquee fix */
  .marquee-section { overflow: hidden; }

  /* Shared button fixes */
  .btn-primary, .btn-outline { display: block; text-align: center; width: 100%; }

  /* Footer */
  footer { padding: 40px 20px 24px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom-links { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  .mobile-menu a { font-size: 36px; }
}
