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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== CSS Custom Properties ===== */
:root {
  --color-text: #3a474d;
  --color-text-light: #757d80;
  --color-accent: #9ae2ff;
  --color-bg: #f0f4f8;
  --color-bg-light: #ffffff;
  --color-bg-section: #fefefe;
  --color-footer-bg: #3a474d;
  --color-footer-text: #ffffff;
  --color-border: #d6e3ef;
  --color-border-light: #f5f5f5;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --container-max: 1200px;
  --container-padding: 20px;

  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: 52px;
}

h2 {
  font-size: 42px;
}

h3 {
  font-size: 24px;
}

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

.section {
  padding: 60px 0;
}

.section--light {
  background-color: var(--color-bg-light);
}

/* ===== Button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  color: #ffffff;
  background-color: var(--color-text);
}

.btn--primary:hover {
  background-color: #2d373c;
}

.btn--outline {
  color: var(--color-text);
  background-color: #ffffff;
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  background-color: var(--color-accent);
}

.btn--accent {
  color: var(--color-text);
  background-color: var(--color-accent);
}

.btn--accent:hover {
  background-color: #7dd4f7;
}

.btn--lg {
  font-size: 16px;
  padding: 18px 36px;
  border-radius: var(--radius-lg);
}

/* ===== Responsive ===== */
@media (max-width: 1440px) {
  :root {
    --container-max: 1200px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  .section {
    padding: 40px 0;
  }
}

@media (max-width: 375px) {
  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  .section {
    padding: 30px 0;
  }

  :root {
    --container-padding: 16px;
  }
}
