/* ============================================================
   ThinkRadikal Technologies — Design Tokens & Base Styles
   css/tokens.css
   ============================================================ */

:root {
  /* Brand Colors */
  --color-blue:        #0055FF;
  --color-blue-mid:    #1A6FFF;
  --color-blue-light:  #3D8FFF;
  --color-blue-pale:   #99BBFF;
  --color-blue-dark:   #001A66;
  --color-blue-deep:   #000A33;

  --color-red:         #FF0022;
  --color-red-mid:     #E53935;
  --color-red-light:   #FF6B6B;
  --color-red-dark:    #660000;

  --color-gold:        #FFD600;
  --color-amber:       #FF8F00;

  /* Neutrals */
  --color-bg:          #080C1A;
  --color-bg-2:        #0D1530;
  --color-bg-3:        #111A3A;
  --color-surface:     rgba(255,255,255,0.03);
  --color-surface-2:   rgba(255,255,255,0.06);
  --color-border:      rgba(0,85,255,0.15);
  --color-border-2:    rgba(0,85,255,0.28);
  --color-white:       #FFFFFF;
  --color-grey:        #8A95B0;
  --color-grey-light:  #B0BAD0;
  --color-text:        rgba(255,255,255,0.88);
  --color-text-muted:  rgba(255,255,255,0.55);

  /* Typography */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --font-mono:     'DM Mono', 'Courier New', monospace;

  /* Spacing Scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);
  --shadow-blue: 0 0 40px rgba(0,85,255,0.25);
  --shadow-glow: 0 0 80px rgba(0,85,255,0.15);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;

  /* Layout */
  --container-max:  1280px;
  --nav-height:     72px;
  --section-pad:    120px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.display-xl { font-size: clamp(48px, 7vw, 88px); }
.display-lg { font-size: clamp(38px, 5vw, 64px); }
.display-md { font-size: clamp(28px, 3.5vw, 48px); }
.display-sm { font-size: clamp(22px, 2.5vw, 32px); }

.text-lg  { font-size: 18px; }
.text-md  { font-size: 16px; }
.text-sm  { font-size: 14px; }
.text-xs  { font-size: 12px; }

.text-muted  { color: var(--color-text-muted); }
.text-grey   { color: var(--color-grey); }
.text-blue   { color: var(--color-blue); }
.text-red    { color: var(--color-red); }
.text-gold   { color: var(--color-gold); }

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.section { padding: var(--section-pad) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col    { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.gap-4  { gap: var(--space-4); }
.gap-5  { gap: var(--space-5); }
.gap-6  { gap: var(--space-6); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  border: 2px solid var(--color-blue);
}
.btn-primary:hover {
  background: var(--color-blue-mid);
  border-color: var(--color-blue-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 13px;
}

/* ── Tag / Badge ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.tag-blue {
  background: rgba(0,85,255,0.12);
  border: 1px solid rgba(0,85,255,0.3);
  color: var(--color-blue-light);
}

.tag-red {
  background: rgba(255,0,34,0.1);
  border: 1px solid rgba(255,0,34,0.2);
  color: var(--color-red-light);
}

.tag-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Section Label ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-blue-mid);
  margin-bottom: var(--space-4);
  display: block;
}

/* ── Card ── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,85,255,0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--color-border-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--color-border);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .container { padding: 0 var(--space-6); }
  .grid-2 { grid-template-columns: 1fr; gap: var(--space-6); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --section-pad: 60px; }
  .container { padding: 0 var(--space-5); }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn { padding: 12px 22px; font-size: 14px; }
}
