/* GSoftly — Base Reset & Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── Reset ───────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--dark);
  background-color: var(--background);
  overflow-x: hidden;
  cursor: none; /* Custom cursor replaces default */
}

/* ─── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--background-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--border-radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ─── Selection ───────────────────────────────── */
::selection {
  background: var(--primary-color);
  color: var(--white);
}
::-moz-selection {
  background: var(--primary-color);
  color: var(--white);
}

/* ─── Typography ──────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, var(--font-size-7xl)); }
h2 { font-size: clamp(2rem,   4vw, var(--font-size-5xl)); }
h3 { font-size: clamp(1.5rem, 3vw, var(--font-size-3xl)); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  color: var(--gray);
  line-height: var(--line-height);
  margin-bottom: 1em;
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

ul, ol { list-style: none; }

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-family);
}

input, textarea, select {
  cursor: auto; /* restore native cursor inside form fields — body:cursor:none cascades otherwise */
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  outline: none;
}

/* ─── Utilities ───────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section-py {
  padding: var(--section-py) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: var(--secondary-color);
  border: 1px solid rgba(37,150,190,0.3);
  border-radius: var(--border-radius-full);
  padding: 6px 16px;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--gray);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
