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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Layered background design ── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(14, 165, 233, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(3, 105, 161, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(56, 189, 248, 0.07) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

nav, section, footer, .cursor, .cursor-ring, .mobile-menu {
  position: relative;
  z-index: 1;
}

/* ── Typography ── */

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  color: var(--text-primary);
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
ul { list-style: none; }

/* ── Section layout ── */

section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px;   /* reduced from 100px */
}



.section-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.section-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-bright));
  border-radius: 99px;
  margin: 12px auto 48px;
  box-shadow: 0 0 12px var(--blue-mid);
}

.section-line.left,
.section-title.left {
  text-align: left;
  margin-left: 0;
}

/* ── Divider ── */

.divider {
  max-width: 1100px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: none;
}

.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--blue-bright);
  background: transparent;
}

.btn-outline:hover {
  background: var(--blue-glow);
  border-color: var(--blue-bright);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.btn-solid {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  color: #fff;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.5);
}

/* ── Tags ── */

.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--blue-glow);
  border: 1px solid var(--border-hover);
  color: var(--blue-bright);
  font-weight: 500;
}

/* ── Scrollbar ── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--blue-deep);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--blue-mid); }