/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --bg-color: #0A0D14;
  --surface-color: #111625;
  --surface-hover: #1A2035;
  --border-color: #1F2937;
  
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  --primary-red: #E11D48;
  --primary-red-hover: #BE123C;
  --accent-gold: #D97706;
  --accent-gold-hover: #B45309;
  
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --container-width: 900px;
  --header-height: 70px;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.85rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.35rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--accent-gold);
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

ul, ol {
  margin-bottom: 1.25rem;
  margin-left: 1.5rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--text-primary);
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Accessibility Outlines */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
}

/* Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header & Navigation */
header {
  height: var(--header-height);
  background-color: rgba(10, 13, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-link img {
  height: 42px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.9rem 1.15rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1 1 520px;
}

.nav-links a {
  color: var(--text-secondary);
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition-speed);
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: none;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--text-primary);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  color: var(--text-primary);
}

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

.btn-secondary:hover {
  background-color: var(--surface-color);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.5rem;
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Landing Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 1.5rem 40px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 3rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(11,15,25,0.6) 0%, rgba(11,15,25,0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero .btn-cta {
  padding: 0.85rem 2.25rem;
  font-size: 1.15rem;
  background-color: var(--primary-red);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4);
  font-weight: 700;
}

.hero .btn-cta:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  color: var(--text-secondary);
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

/* Main Content Area */
main {
  flex-grow: 1;
  padding-top: var(--header-height); /* Ensure spacing below fixed header */
}

.main-content {
  padding: 2rem 0 5rem;
}

.main-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin: 2.5rem auto;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}


/* Call to Action blocks inside pages */
.content-cta-section {
  background: linear-gradient(135deg, var(--surface-color) 0%, #1a1e2e 100%);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  margin: 4rem 0 2rem;
}

.content-cta-section h3 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

.content-cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Table formatting */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--accent-gold);
  font-family: var(--font-headings);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Inline links in content */
.main-content a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent-gold);
  font-weight: 500;
}

.main-content a:not(.btn):hover {
  color: var(--text-primary);
}

/* Footer */
footer {
  background-color: #05070A;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
  margin-left: 0;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile Nav Overlay */
@media (max-width: 992px) {
  .mobile-nav-toggle {
    display: block;
    z-index: 1001;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--surface-color);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 2rem 2rem;
    gap: 2rem;
    transition: right var(--transition-speed);
    z-index: 1000;
  }
  
  nav.open {
    right: 0;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1.5rem;
    flex: 0 0 auto;
    justify-content: flex-start;
  }
  
  .auth-buttons {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    margin-top: 1rem;
    margin-left: 0;
    padding-left: 0;
  }
  
  .auth-buttons .btn {
    width: 100%;
  }
}
