/* ==========================================================================
   SGF — SPECIAL GROUND FORCE
   Minimalist Editorial Redesign
   Clean, restrained, human-crafted design language
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Strict Minimalist Color Palette */
  --bg-page: #111111;
  --bg-surface: #181818;
  --bg-surface-subtle: #141414;
  --text-primary: #F2F2F2;
  --text-secondary: #A0A0A0;
  --text-muted: #6E6E6E;
  --border: #2A2A2A;
  --border-light: #333333;
  --accent-blue: #4D79D8;
  --accent-blue-hover: #3D68C4;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width: 1160px;
  --nav-height: 72px;
  --radius: 4px;

  /* Restrained Transitions */
  --transition: 0.15s ease;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: #2c2c2c #0e0e0e;
}

/* Custom Sleek Scrollbar (Chrome, Edge, Safari, Opera) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0e0e0e;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 4px;
  border: 1px solid #141414;
}

::-webkit-scrollbar-thumb:hover {
  background: #3e3e3e;
}

::-webkit-scrollbar-thumb:active {
  background: var(--accent-blue);
}

::-webkit-scrollbar-corner {
  background: #0e0e0e;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container & Section Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Eyebrow & Typography */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
}

/* Buttons & Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-surface);
  border-color: var(--border-light);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.text-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  object-fit: cover;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-blue);
}

.nav-cta {
  font-size: 0.88rem;
  padding: 0.55rem 1.15rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-menu {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 5.5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-heading {
  font-size: clamp(2.5rem, 4.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Clean Character Presentation — No artificial rectangles or glow */
.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.hero-character-img {
  width: auto;
  max-height: 540px;
  object-fit: contain;
  user-select: none;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
  padding: 5.5rem 0;
}

.about-content-wrap {
  max-width: 760px;
}

.about-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: 1.75rem;
}

.about-subtext {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ==========================================================================
   RECRUITMENT REQUIREMENTS SECTION
   ========================================================================== */
.requirements-section {
  padding: 5.5rem 0;
}

.requirements-list {
  display: flex;
  flex-direction: column;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.requirement-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.requirement-label {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.requirement-detail {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.requirement-note {
  margin-top: 1.8rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.requirement-cta-wrap {
  margin-top: 2.5rem;
}

/* ==========================================================================
   THE FORCE / CHARACTER GALLERY
   ========================================================================== */
.gallery-section {
  padding: 5.5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.gallery-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}

.gallery-card:hover {
  border-color: var(--border-light);
}

.gallery-image-frame {
  height: 320px;
  background-color: var(--bg-surface-subtle);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.gallery-img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.gallery-info {
  padding: 1.25rem;
}

.gallery-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.gallery-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   FINAL DISCORD SECTION
   ========================================================================== */
.cta-section {
  padding: 6.5rem 0;
  background-color: var(--bg-page);
}

.cta-box {
  max-width: 680px;
}

.cta-heading {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background-color: var(--bg-page);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  object-fit: cover;
}

.footer-brand-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-disclaimer-wrap {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 720px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-image-wrap {
    order: -1;
    justify-content: flex-start;
  }

  .hero-character-img {
    max-height: 420px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .nav-menu,
  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero-section {
    padding: 3.5rem 0 3rem;
  }

  .requirement-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.75rem 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Restrained & Smooth)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .promo-modal-card,
  .line-expander {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   INTERACTIVE PROMO POPUP (Expanding Horizontal Line Animation)
   ========================================================================== */
.line-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(6, 6, 6, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.line-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.line-modal-overlay.closing {
  opacity: 0;
  pointer-events: none;
}

/* 1. Thin horizontal line that expands across first */
.line-expander {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 520px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-blue) 25%, #79a1f5 50%, var(--accent-blue) 75%, transparent 100%);
  transform: translate(-50%, -50%) scaleX(0);
  pointer-events: none;
  z-index: 1000;
}

.line-modal-overlay.active .line-expander {
  animation: lineStretch 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lineStretch {
  0% {
    transform: translate(-50%, -50%) scaleX(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scaleX(1);
    opacity: 0;
  }
}

/* 2. Modal card expanding outward vertically from the center line */
.promo-modal-card {
  position: relative;
  z-index: 1001;
  width: 100%;
  max-width: 520px;
  background-color: #161616;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: scaleY(0.02) scaleX(0.95);
  transform-origin: center center;
  will-change: transform, opacity;
}

.line-modal-overlay.active .promo-modal-card {
  animation: cardExpandFromLine 0.45s 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.line-modal-overlay.closing .promo-modal-card {
  animation: cardCollapseToLine 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardExpandFromLine {
  0% {
    opacity: 0;
    transform: scaleY(0.02) scaleX(0.95);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scaleY(1) scaleX(1);
  }
}

@keyframes cardCollapseToLine {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scaleY(0.05) scaleX(0.95);
  }
}

/* Close button 'X' */
.promo-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: color var(--transition), background-color var(--transition);
}

.promo-close-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface);
}

.promo-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(77, 121, 216, 0.12);
  border: 1px solid rgba(77, 121, 216, 0.25);
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  margin-bottom: 1.2rem;
}

.promo-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-blue);
}

.promo-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.promo-logo {
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.promo-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.promo-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.promo-incentive-box {
  background-color: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.2rem;
}

.promo-incentive-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.promo-gift-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.promo-incentive-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.promo-perks-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.promo-perk-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #131313;
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  font-size: 0.82rem;
}

.promo-perk-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  background-color: rgba(77, 121, 216, 0.2);
  color: #8bb1ff;
}

.promo-perk-text {
  color: var(--text-primary);
}

.promo-body-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.promo-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.promo-cta-btn {
  flex: 1;
  padding: 0.75rem 1.25rem;
}

.promo-dismiss-btn {
  padding: 0.75rem 1.1rem;
}

@media (max-width: 600px) {
  .promo-modal-card {
    padding: 1.75rem 1.25rem;
  }
  .promo-actions {
    flex-direction: column;
    width: 100%;
  }
  .promo-cta-btn,
  .promo-dismiss-btn {
    width: 100%;
    justify-content: center;
  }
}


