/* ============================================
   SKILLVERRS — Design System
   Core Styles, Variables & Typography
   ============================================ */

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

/* ---- Design Tokens ---- */
:root {
  /* Colors */
  --clr-bg:           #0a0a0a;
  --clr-bg-2:         #111111;
  --clr-bg-3:         #1a1a1a;
  --clr-card:         #141414;
  --clr-card-hover:   #1c1c1c;
  --clr-border:       #222222;
  --clr-border-glow:  rgba(57, 255, 20, 0.3);

  --clr-green:        #39ff14;
  --clr-green-dim:    #2ecc11;
  --clr-green-dark:   #1a7a0a;
  --clr-green-glow:   rgba(57, 255, 20, 0.15);
  --clr-green-glow-2: rgba(57, 255, 20, 0.05);

  --clr-white:        #ffffff;
  --clr-white-90:     rgba(255,255,255,0.9);
  --clr-white-70:     rgba(255,255,255,0.7);
  --clr-white-50:     rgba(255,255,255,0.5);
  --clr-white-20:     rgba(255,255,255,0.2);
  --clr-white-10:     rgba(255,255,255,0.08);

  /* Typography */
  --font-display:     'Outfit', sans-serif;
  --font-body:        'Inter', sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-4xl:  3.5rem;
  --fs-5xl:  5rem;
  --fs-6xl:  6.5rem;

  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-extrabold:800;
  --fw-black:    900;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

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

  /* Shadows */
  --shadow-card:      0 4px 32px rgba(0,0,0,0.6);
  --shadow-glow:      0 0 40px rgba(57, 255, 20, 0.2);
  --shadow-glow-sm:   0 0 20px rgba(57, 255, 20, 0.15);
  --shadow-glow-lg:   0 0 80px rgba(57, 255, 20, 0.25);

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-normal: 0.3s ease;
  --t-slow:   0.5s ease;
  --t-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1280px;
  --nav-h:         72px;
}

/* ---- Reset & Base ---- */
*, *::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-body);
  background-color: var(--clr-bg);
  color: var(--clr-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-green-dark); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-green); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--fs-3xl), 8vw, var(--fs-5xl)); }
h2 { font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl)); }
h3 { font-size: clamp(var(--fs-xl), 3vw, var(--fs-2xl)); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-base); }

p {
  font-size: var(--fs-base);
  color: var(--clr-white-70);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ---- Layout Utilities ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

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

.section-sm {
  padding: var(--sp-20) 0;
}

/* ---- Section Labels ---- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-green);
  margin-bottom: var(--sp-4);
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--clr-green);
  border-radius: 99px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
  font-weight: var(--fw-extrabold);
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
}

.section-title span {
  color: var(--clr-green);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-white-50);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: var(--sp-16);
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-subtitle {
  margin: 0 auto;
}

.section-header.center .section-eyebrow {
  justify-content: center;
  display: flex;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  transition: all var(--t-normal);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--clr-green);
  color: #000;
  border-color: var(--clr-green);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.35);
}

.btn-primary:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 50px rgba(57, 255, 20, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border-color: var(--clr-border);
}

.btn-outline:hover {
  border-color: var(--clr-green);
  color: var(--clr-green);
  box-shadow: var(--shadow-glow-sm);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--clr-white-10);
  color: var(--clr-white);
  border-color: transparent;
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: var(--clr-green-glow);
  color: var(--clr-green);
  border-color: var(--clr-border-glow);
}

.btn-sm {
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--fs-xs);
}

.btn-lg {
  padding: var(--sp-4) var(--sp-10);
  font-size: var(--fs-md);
}

/* ---- Cards (base) ---- */
.card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: all var(--t-normal);
}

.card:hover {
  background: var(--clr-card-hover);
  border-color: var(--clr-border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ---- Glass Card ---- */
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: all var(--t-normal);
}

.glass-card:hover {
  background: rgba(57, 255, 20, 0.04);
  border-color: rgba(57, 255, 20, 0.2);
  box-shadow: 0 8px 40px rgba(57, 255, 20, 0.1);
  transform: translateY(-6px);
}

/* ---- Badge / Tag ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
}

.badge-green {
  background: rgba(57, 255, 20, 0.12);
  color: var(--clr-green);
  border: 1px solid rgba(57, 255, 20, 0.25);
}

.badge-white {
  background: var(--clr-white-10);
  color: var(--clr-white-70);
  border: 1px solid var(--clr-border);
}

/* ---- Highlight text ---- */
.text-green { color: var(--clr-green); }
.text-dim   { color: var(--clr-white-50); }
.text-white { color: var(--clr-white); }

/* ---- Divider ---- */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
  margin: var(--sp-8) 0;
}

/* ---- Grid helpers ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

/* ---- Flex helpers ---- */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-2  { gap: var(--sp-2); }
.gap-4  { gap: var(--sp-4); }
.gap-6  { gap: var(--sp-6); }
.gap-8  { gap: var(--sp-8); }

/* ---- Visibility helpers ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Green dot indicator ---- */
.dot-green {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-green);
  box-shadow: 0 0 8px var(--clr-green);
  animation: pulse-dot 2s infinite;
}

/* ---- Horizontal rule with glow ---- */
hr.glow {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57,255,20,0.4), transparent);
}
