/* ==========================================================================
   Base — resets, typography, layout primitives, buttons
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container-custom {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (max-width: 480px) {
  .container-custom { padding-inline: 18px; }
}

.wrapper-custom {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
}

section {
  position: relative;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--color-text);
  line-height: 1.15;
}

.section-title .underline {
  display: block;
  width: 64px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  margin-top: 18px;
}

.section-desc {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------------------------------------------------------------- Buttons */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-custom:hover {
  transform: translateY(-2px);
}

.btn-primary-custom {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

.btn-primary-custom:hover {
  background-color: var(--color-primary-hover);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

.btn-outline-custom {
  background-color: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline-custom:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

.btn-sm-pill {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
}

/* ------------------------------------------------------------ Animations */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35); }
  100% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); }
}

@media (max-width: 767px) {
  .section-title { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  .btn-custom {
    flex: 1 1 auto;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.9rem;
  }
}
