@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

/* ==========================================================================
   1. VARIABLES & GLOBAL STYLES
   ========================================================================== */
:root {
  --bg: #051018;
  --bg-card: rgba(13, 34, 48, 0.7);
  --bg-card-hover: rgba(18, 45, 64, 0.85);
  --border: rgba(91, 211, 230, 0.15);
  --text: #edf8fa;
  --muted: #94b2ba;
  --cyan: #5bd3e6;
  --teal: #2196a6;
  --gold: #f3c26b;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

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

html { 
  scroll-behavior: smooth; 
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 15% 0%, rgba(33, 150, 166, 0.18), transparent 35rem),
    radial-gradient(circle at 85% 30%, rgba(91, 211, 230, 0.1), transparent 30rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: pageFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

a { 
  color: inherit; 
  text-decoration: none; 
  transition: 0.2s ease; 
}

ul { 
  list-style: none; 
}

.container { 
  width: min(1140px, calc(100% - 40px)); 
  margin: 0 auto; 
}

/* ==========================================================================
   2. NAVIGATION
   ========================================================================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 16, 24, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-wrapper {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #051018;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.nav-links { 
  display: flex; 
  gap: 28px; 
  font-size: 15px; 
  font-weight: 500; 
  color: var(--muted); 
}

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

.mobile-btn { 
  display: none; 
  background: none; 
  border: none; 
  color: white; 
  font-size: 24px; 
  cursor: pointer; 
}

/* ==========================================================================
   3. TYPOGRAPHY & HERO SECTIONS
   ========================================================================== */
.page-hero { 
  padding: 80px 0 40px; 
  border-bottom: 1px solid var(--border); 
}

.eyebrow { 
  color: var(--cyan); 
  font-weight: 700; 
  font-size: 13px; 
  text-transform: uppercase; 
  letter-spacing: 2px; 
}

h1 { 
  font-family: 'Outfit', sans-serif; 
  font-weight: 800; 
  font-size: clamp(36px, 5vw, 56px); 
  margin: 10px 0 15px; 
  line-height: 1.1; 
}

h2 { 
  font-family: 'Outfit', sans-serif; 
  font-weight: 700; 
  font-size: 28px; 
  margin-bottom: 8px; 
}

.lead { 
  color: var(--muted); 
  font-size: 18px; 
  max-width: 720px; 
}

/* ==========================================================================
   4. BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn-group { 
  display: flex; 
  gap: 14px; 
  flex-wrap: wrap; 
  margin-top: 25px; 
}

.btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.25s ease, 
              background 0.2s ease, 
              border-color 0.2s ease,
              opacity 0.2s ease;
  will-change: transform;
}

.btn-primary { 
  background: linear-gradient(135deg, var(--cyan), #38bdf8); 
  color: #051018; 
  border: none; 
}

.btn-primary:hover { 
  opacity: 0.95; 
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(91, 211, 230, 0.35);
}

.btn-secondary { 
  background: rgba(255, 255, 255, 0.05); 
}

.btn-secondary:hover { 
  background: rgba(255, 255, 255, 0.1); 
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border-color: rgba(91, 211, 230, 0.4);
}

.btn:active,
.submit-btn:active {
  transform: scale(0.96) translateY(0) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.08s ease !important;
}

/* ==========================================================================
   5. LAYOUT GRIDS & CARDS
   ========================================================================== */
section { 
  padding: 60px 0; 
}

.grid-3 { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
}

.grid-2 { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px; 
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { 
  border-color: rgba(91, 211, 230, 0.4); 
  transform: translateY(-4px); 
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.card-icon { 
  font-size: 30px; 
  margin-bottom: 15px; 
  display: block; 
}

.card h3 { 
  font-family: 'Outfit', sans-serif; 
  font-size: 22px; 
  margin-bottom: 8px; 
}

.card p { 
  color: var(--muted); 
  font-size: 15px; 
}

/* Hero Image Banner Styling */
.hero-image-wrapper {
  width: 100%;
  max-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.02);
}

/* Management & Ranks */
.rank-section { 
  margin-top: 30px; 
}

.rank-title { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  border-bottom: 1px solid var(--border); 
  padding-bottom: 8px; 
  margin-bottom: 15px; 
}

.rank-title h3 { 
  font-family: 'Outfit', sans-serif; 
  color: var(--cyan); 
  font-size: 20px; 
}

.member-list { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
  gap: 12px; 
  margin-bottom: 30px; 
}

.member-item { 
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid var(--border); 
  padding: 12px 16px; 
  border-radius: 8px; 
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.member-item:hover {
  border-color: rgba(91, 211, 230, 0.3);
  transform: translateY(-2px);
}

.member-name { 
  font-weight: 700; 
  color: #fff; 
}

.member-role { 
  font-size: 13px; 
  color: var(--muted); 
}

/* Callout Banner */
.bot-banner {
  background: linear-gradient(135deg, rgba(91, 211, 230, 0.1), rgba(33, 150, 166, 0.05));
  border: 1px solid var(--cyan);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ==========================================================================
   6. CONTACT FORM UI
   ========================================================================== */
.form-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px;
  background: rgba(10, 26, 38, 0.85);
}

.form-desc {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 15px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.3px;
  display: block;
}

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(4, 12, 19, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.2s ease;
  display: block;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:hover,
.form-group textarea:hover {
  background: rgba(6, 18, 28, 0.95);
  border-color: rgba(91, 211, 230, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(6, 18, 28, 1);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(91, 211, 230, 0.15);
  transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #5d7e8a;
  opacity: 1;
}

.submit-btn {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 14px;
  margin-top: 8px;
}

/* ==========================================================================
   7. LEGAL & PRIVACY DOCUMENT STYLING
   ========================================================================== */
.legal-document {
  padding: 40px;
  background: rgba(8, 22, 33, 0.9);
}

.doc-header h2 {
  font-size: 30px;
  margin-top: 6px;
  color: #fff;
}

.doc-meta {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
}

.doc-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.doc-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.doc-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.doc-section p {
  color: #d1e4e8;
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.65;
}

.doc-section ul {
  list-style-type: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

.doc-section li {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 6px;
}

.doc-section code {
  background: rgba(91, 211, 230, 0.15);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.doc-agreement {
  background: linear-gradient(135deg, rgba(91, 211, 230, 0.08), rgba(33, 150, 166, 0.04));
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  padding: 24px;
  border-radius: 12px;
  margin-top: 16px;
}

.doc-agreement h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.doc-agreement p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.doc-signoff {
  margin-top: 16px;
  color: var(--text) !important;
}

/* ==========================================================================
   8. ANIMATIONS & ENTRANCE EFFECTS
   ========================================================================== */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.page-hero,
.card,
.rank-section,
.bot-banner,
.legal-document {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Staggered load delays for cards */
.grid-3 > .card:nth-child(1),
.grid-2 > .card:nth-child(1) { animation-delay: 0.08s; }

.grid-3 > .card:nth-child(2),
.grid-2 > .card:nth-child(2) { animation-delay: 0.16s; }

.grid-3 > .card:nth-child(3) { animation-delay: 0.24s; }

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
footer { 
  margin-top: auto; 
  border-top: 1px solid var(--border); 
  padding: 40px 0; 
  background: #030a10; 
  color: var(--muted); 
  font-size: 14px; 
}

.footer-wrapper { 
  display: flex; 
  justify-content: space-between; 
  gap: 20px; 
  flex-wrap: wrap; 
}

.footer-links { 
  display: flex; 
  gap: 20px; 
}

.footer-links a:hover { 
  color: #fff; 
}

/* ==========================================================================
   10. MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links { 
    display: none; 
    flex-direction: column; 
    position: absolute; 
    top: 76px; 
    left: 0; 
    right: 0; 
    background: #051018; 
    padding: 20px; 
    border-bottom: 1px solid var(--border); 
  }
  
  .nav-links.active { 
    display: flex; 
  }
  
  .mobile-btn { 
    display: block; 
  }
  
  .grid-3, .grid-2 { 
    grid-template-columns: 1fr; 
  }
  
  .bot-banner { 
    flex-direction: column; 
    align-items: flex-start; 
  }

  .form-card {
    padding: 22px;
  }

  .legal-document {
    padding: 24px 18px;
  }
}
