/* ═══════════════════════════════════════════
   GES GLOBAL — Design Tokens & Base Styles
   assets/css/ges-global.css
═══════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --ges-bg:        #07090F;
  --ges-bg2:       #0B0E1A;
  --ges-bg3:       #0E1225;
  --ges-bg4:       #111628;
  --ges-navy:      #080D1A;
  --ges-indigo:    #4F46E5;
  --ges-purple:    #7C3AED;
  --ges-blue:      #38BDF8;
  --ges-violet:    #A78BFA;
  --ges-glass:     rgba(255,255,255,0.04);
  --ges-gb:        rgba(255,255,255,0.07);
  --ges-border:    rgba(255,255,255,0.07);
  --ges-border-md: rgba(255,255,255,0.10);
  --ges-text:      #EEF0FF;
  --ges-muted:     #8892A8;
  --ges-dim:       #545C72;
  --ges-radius-sm: 8px;
  --ges-radius-md: 12px;
  --ges-radius-lg: 16px;
  --ges-radius-xl: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ges-bg);
  color: var(--ges-text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: sans-serif;
  line-height: 1.15;
  color: var(--ges-text);
}

a {
  color: var(--ges-violet);
  text-decoration: none;
  transition: color 0.2s;
}

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

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: 'DM Sans', sans-serif;
}

/* ── UTILITY ── */
.ges-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}

.gtext {
  background: linear-gradient(120deg, #A5B4FC 0%, var(--ges-blue) 45%, #C4B5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ges-section { padding: 88px 56px; position: relative; }
.ges-section-alt { background: var(--ges-bg2); }
.ges-section-dark { background: var(--ges-bg3); }

.sec-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #A5B4FC;
  margin-bottom: 14px;
  display: block;
}

.sec-title {
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}

.sec-sub {
  font-size: 16px;
  color: var(--ges-muted);
  max-width: 500px;
  line-height: 1.8;
}

.sec-header { margin-bottom: 56px; }

.sec-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.divider {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--ges-indigo), transparent);
  border-radius: 2px;
  margin: 0 0 36px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--ges-indigo), var(--ges-purple));
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: var(--ges-radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(79,70,229,0.3);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(79,70,229,0.5);
  color: #fff;
  opacity: 0.9;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ges-glass);
  color: var(--ges-text);
  border: 1px solid var(--ges-border);
  padding: 14px 32px;
  border-radius: var(--ges-radius-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--ges-text);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #A5B4FC;
  border: 1px solid rgba(79,70,229,0.3);
  padding: 8px 18px;
  border-radius: var(--ges-radius-sm);
  transition: all 0.2s;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(79,70,229,0.1);
  border-color: rgba(79,70,229,0.5);
  color: #C4B5FD;
}

/* ── CARDS ── */
.glass-card {
  background: var(--ges-glass);
  border: 1px solid var(--ges-border);
  border-radius: var(--ges-radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
  border-color: rgba(79,70,229,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(79,70,229,0.1);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,70,229,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.glass-card:hover::before { opacity: 1; }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── PILL BADGE ── */
.hero-badge, .ges-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79,70,229,0.12);
  border: 1px solid rgba(79,70,229,0.3);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 12px;
  color: #A5B4FC;
  margin-bottom: 28px;
  letter-spacing: 0.4px;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ges-blue);
  animation: ges-blink 2s ease infinite;
  flex-shrink: 0;
}

@keyframes ges-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(1.4); }
}

/* ── GRID OVERLAY ── */
.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255,255,255,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

/* ── SCREEN READER ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .ges-container { padding: 0 32px; }
  .ges-section   { padding: 72px 32px; }
}

@media (max-width: 768px) {
  .ges-container { padding: 0 20px; }
  .ges-section   { padding: 56px 20px; }
  .sec-header-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary { padding: 13px 24px; font-size: 14px; }
}
