/* ===== Modern Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== Base HTML ===== */
html, .inter-html {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body, .inter-body {
  min-height: 100vh;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #111111;
  background-color: #fff;
  font-optical-sizing: auto;
}

/* ===== Images ===== */
img, .inter-img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* ===== Links ===== */
a, .inter-a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible, .inter-a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

/* ===== Buttons ===== */
button, .inter-btn {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

button.inter-btn, .inter-btn.inter-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background-color: #111;
  color: #fff;
  border-radius: 0.5rem;
  transition: opacity 0.2s ease;
}

button.inter-btn:hover,
button.inter-btn:focus-visible,
.inter-btn.inter-btn:hover,
.inter-btn.inter-btn:focus-visible {
  opacity: 0.9;
}

/* ===== Main container ===== */
main, .inter-main {
  max-width: 68ch;
  margin-inline: auto;
  padding-inline: 1rem;
  padding-block: 2rem;
}

/* ===== Vertical Rhythm ===== */
:root {
  --rhythm: 1.5rem;
}

/* ===== Headings h1–h4 ===== */
h1, .inter-h1 {
  font-weight: 900;
  font-size: clamp(2rem, 2.1vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: var(--rhythm);
}

h2, .inter-h2 {
  font-weight: 800;
  font-size: clamp(1.75rem, 1.9vw, 2rem);
  line-height: 1.25;
  margin-bottom: calc(var(--rhythm) * 0.85);
}

h3, .inter-h3 {
  font-weight: 700;
  font-size: clamp(1.5rem, 1.6vw, 1.75rem);
  line-height: 1.3;
  margin-bottom: calc(var(--rhythm) * 0.7);
}

h4, .inter-h4 {
  font-weight: 600;
  font-size: clamp(1.25rem, 1.3vw, 1.5rem);
  line-height: 1.35;
  margin-bottom: calc(var(--rhythm) * 0.6);
}

/* ===== Body & Subtitle ===== */
p, .inter-body-text {
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: var(--rhythm);
}

.subtitle, .inter-subtitle {
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.4;
  margin-bottom: calc(var(--rhythm) * 0.5);
  color: #444444;
}

/* ===== Sections ===== */
section, .inter-section {
  padding-block: 2rem;
  padding-inline: 1rem;
}

/* ===== Hero Section (flex only here) ===== */
#hero, .inter-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding-block: 3rem;
  background-color: #f5f5f5;
}

/* ===== Other sections (block layout) ===== */
#features, .inter-features,
#about, .inter-about,
#testimonials, .inter-testimonials,
#cta, .inter-cta,
#footer, .inter-footer {
  display: block;
}

/* ===== CTA Section button override ===== */
#cta .inter-btn, .inter-cta .inter-btn {
  background-color: #fff;
  color: #111;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
}

/* ===== Footer Section ===== */
#footer, .inter-footer {
  padding-block: 2rem;
  text-align: center;
  background-color: #222;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.5;
}
