/* =====================================================================
   main.css — CSS variables, reset, base typography
   ===================================================================== */

:root {
  /* Colors */
  --color-bg:          #020408;
  --color-bg-card:     rgba(8, 16, 32, 0.7);
  --color-bg-card2:    rgba(15, 25, 50, 0.5);
  --color-cyan:        #00d4ff;
  --color-purple:      #7b2fff;
  --color-gold:        #f0a500;
  --color-text:        #e8edf5;
  --color-text-muted:  #8899bb;
  --color-border:      rgba(0, 212, 255, 0.15);
  --color-border2:     rgba(123, 47, 255, 0.2);

  /* Gradients */
  --grad-primary:      linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  --grad-hero-text:    linear-gradient(135deg, #ffffff 0%, var(--color-cyan) 50%, var(--color-purple) 100%);
  --grad-card-border:  linear-gradient(135deg, var(--color-cyan), var(--color-purple));

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;

  /* Typography */
  --font-family:   'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-size-xs:  0.75rem;
  --font-size-sm:  0.875rem;
  --font-size-md:  1rem;
  --font-size-lg:  1.125rem;
  --font-size-xl:  1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;
  --font-size-6xl: 5rem;

  /* Border radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-cyan:   0 0 20px rgba(0, 212, 255, 0.3);
  --shadow-purple: 0 0 20px rgba(123, 47, 255, 0.3);
  --shadow-card:   0 8px 40px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-mid:    300ms ease;
  --transition-slow:   600ms ease;

  /* Layout */
  --max-width: 1280px;
  --nav-height: 70px;
}

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

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

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

/* ---- Base typography ---- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
  color: var(--color-text-muted);
  line-height: 1.8;
}

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-purple); }

ul, ol { list-style: none; }

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; border: none; background: none; }

/* ---- Selection ---- */
::selection {
  background: rgba(0, 212, 255, 0.25);
  color: var(--color-text);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--color-cyan), var(--color-purple));
  border-radius: var(--radius-full);
}

/* ---- Utility classes ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  color: var(--color-gold);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: var(--space-md);
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-cyan);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.8;
}
