/* ===========================================
   BASE.CSS — Design Tokens & Foundation
   Dark Glassmorphism Theme
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@700;800;900&display=swap');

/* --- CSS Variables (Design Tokens) --- */
:root {
  /* Colors */
  --bg-primary: #06060e;
  --bg-secondary: #0c0c1d;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-strong: rgba(255, 255, 255, 0.08);

  --text-primary: #e8e8f0;
  --text-secondary: #8888a4;
  --text-muted: #55556a;

  --accent: #ff7b00;
  --accent-dim: rgba(255, 123, 0, 0.15);

  --accent-sky: #00d4ff;
  --accent-blue: #0077ff;
  --accent-orange: #ff7b00;
  --accent-red: #ff3366;

  --gradient-accent: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-sky) 100%);
  --gradient-accent-hover: linear-gradient(135deg, #ffa24a 0%, #52e1ff 100%);

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.2);
  --border-accent: rgba(255, 123, 0, 0.25);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(255, 123, 0, 0.2);

  /* Layout */
  --container-width: 1200px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Glass */
  --blur-sm: blur(8px);
  --blur-md: blur(16px);
  --blur-lg: blur(24px);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bg-pan {
  0% { background-position: 0% center; }
  100% { background-position: -300% center; }
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #06060e;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 123, 0, 0.05), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 212, 255, 0.05), transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: #33ddff; }

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

ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { color: var(--text-secondary); }

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-title h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #a4b1cd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, #ff7b00, #00d4ff);
}
.section-title p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 12px auto 0;
  line-height: 1.6;
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --- Glass Card Mixin --- */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}
.glass:hover {
  background: var(--bg-glass-strong);
  border-color: var(--border-glass-hover);
}

/* --- Section --- */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-gradient {
  background: var(--gradient-accent);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 3s linear infinite;
}

@keyframes textShine {
  to { background-position: 200% center; }
}
