/* ==========================================================================
   GALOTTECH — DESIGN SYSTEM & CORE STYLES
   Architecture: High-Tech / Data-Driven / Cyber-Finance Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette - Refined Obsidian & Ice Cyan */
  --bg-darkest: #05080e;
  --bg-primary: #070b12;
  --bg-secondary: #0b111c;
  --bg-card: rgba(12, 18, 30, 0.8);
  --bg-card-hover: rgba(16, 25, 42, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.03);

  /* Borders & Glows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(0, 229, 255, 0.15);
  --border-cyan-glow: rgba(0, 229, 255, 0.4);

  /* Unified Accent Palette (Clean Cyan + Deep Blue) */
  --cyan: #00e5ff;
  --cyan-dim: #00b4d8;
  --blue-accent: #0077b6;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-neon-cyan: 0 0 25px rgba(0, 229, 255, 0.25);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.8);

  /* Spacing */
  --container-max: 1200px;

  /* CFG Hub Compatibility Aliases */
  --color-brand: var(--cyan);
  --color-text: var(--text-main);
  --color-text-muted: var(--text-muted);
  --color-border-light: var(--border-subtle);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(0, 229, 255, 0.1), transparent 65%),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(0, 119, 182, 0.06), transparent 50%);
  background-attachment: fixed;
}

/* Cyber Grid Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

::selection {
  background: rgba(0, 240, 255, 0.3);
  color: #ffffff;
}

/* Containers & Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 110px 0;
  position: relative;
  z-index: 2;
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--cyan);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.section-title .gradient-cyan {
  background: linear-gradient(135deg, #ffffff 20%, #00e5ff 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Glassmorphic Panels */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--border-cyan-glow);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 229, 255, 0.1);
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.btn-primary {
  background: #00e5ff;
  color: #040812;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.35);
}

.btn-primary:hover {
  background: #33ecff;
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.55);
  color: #000000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline-cyan {
  background: rgba(0, 229, 255, 0.05);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.btn-outline-cyan:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

/* Badges & Status */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald-neon);
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald-neon);
  box-shadow: 0 0 10px var(--emerald-neon);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.7; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  70% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
  100% { transform: scale(0.95); opacity: 0.7; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Header & Sticky Nav */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 10, 16, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-smooth);
}

.main-header.scrolled {
  background: rgba(5, 7, 11, 0.92);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.brand-logo img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.brand-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-text span {
  color: var(--cyan);
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 24px;
  border-radius: 100px;
  backdrop-filter: blur(12px);
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   GLOBAL FOOTER STYLES
   ========================================================================== */
.main-footer {
  padding: 80px 0 40px 0;
  background: #04060a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--cyan);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}
