/* ============================================================
   FITRIVAL — Dark Cinematic Web Design
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --teal:        #14b8a6;
  --teal-dim:    #0d9488;
  --teal-glow:   rgba(20, 184, 166, 0.35);
  --teal-faint:  rgba(20, 184, 166, 0.08);
  --bg:          #000000;
  --surface:     #0a0a0a;
  --surface-2:   #111111;
  --border:      rgba(255, 255, 255, 0.07);
  --border-teal: rgba(20, 184, 166, 0.25);
  --text:        #e4e4e7;
  --text-dim:    #a1a1aa;
  --muted:       #52525b;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 40px var(--teal-glow), 0 0 80px rgba(20,184,166,0.12); }
  50%       { box-shadow: 0 0 70px rgba(20,184,166,0.55), 0 0 140px rgba(20,184,166,0.18); }
}

@keyframes ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.18; }
  50%       { opacity: 0.50; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes underline-draw {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(20,184,166,0.4);
  flex-shrink: 0;
  object-fit: cover;
}

.nav-brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-link.active { color: var(--teal); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(20,184,166,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(20,184,166,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  animation: fade-up 0.8s ease both;
}

/* ── Logo Hero ────────────────────────────────────────────── */
.logo-hero {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 40px;
}

.logo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border-style: solid;
  border-color: var(--teal);
}

.logo-ring-outer {
  width: 160px;
  height: 160px;
  border-width: 1px;
  opacity: 0.28;
  animation: ring-spin 14s linear infinite;
  /* Dashed look via border-style not easy — use opacity animation instead */
}

.logo-ring-inner {
  width: 128px;
  height: 128px;
  border-width: 1px;
  animation: ring-pulse 2.5s ease-in-out infinite;
}

.logo-mark-hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 28px;
  object-fit: cover;
  animation: pulse-glow 3.5s ease-in-out infinite;
}

/* ── Hero Text ────────────────────────────────────────────── */
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 10vw, 88px);
  letter-spacing: 6px;
  color: #fff;
  line-height: 1;
  margin-bottom: 0;
}

.hero-underline {
  height: 2px;
  background: var(--teal);
  opacity: 0.7;
  max-width: 200px;
  margin: 8px auto 16px;
  animation: underline-draw 0.7s 0.5s ease-out both;
}

.hero-tagline {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 28px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
  border: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--teal);
  color: #000;
  box-shadow: 0 0 24px rgba(20,184,166,0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(20,184,166,0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--border-teal);
}

.btn-secondary:hover {
  background: var(--teal-faint);
}

.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: 96px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 48px;
}

/* ── Cards ────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--border-teal);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-faint);
  border: 1px solid var(--border-teal);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg { width: 22px; height: 22px; color: var(--teal); }

.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
  text-decoration: none;
}

.card-link:hover { gap: 10px; }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Legal Pages ──────────────────────────────────────────── */
.legal-hero {
  padding: 80px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.legal-hero .section-label { margin-bottom: 8px; }

.legal-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: 5px;
  color: #fff;
}

.legal-hero-date {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}

.legal-body h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--teal);
  margin-top: 48px;
  margin-bottom: 12px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 14px;
  line-height: 1.75;
}

.legal-body ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-body li {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: rgba(20,184,166,0.3);
}

.legal-body a:hover { text-decoration-color: var(--teal); }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 6px;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }

.footer-links .dot {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.4;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

.footer-email {
  font-size: 13px;
  color: var(--teal);
  text-decoration: none;
}

.footer-email:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { gap: 2px; }
  .nav-link { padding: 6px 10px; font-size: 13px; }
  .section { padding: 64px 20px; }
  .card { padding: 28px 24px; }
  .hero { padding: 60px 20px; }
}
