:root {
  /* font */
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  box-sizing: border-box;
  padding: 0;
  margin: 0;
  color: var(--text-color);
  background-color: var(--bg-color);

  /* colors */
  --main-color: #1153c0;
  --secendry-color: #ef4c4f;
  --secendry-hover-color: #d82326;
  --bg-color: #242424;
  --text-color: #eaeaec;

  color-scheme: light dark;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}

a:hover {
  color: #535bf2;
}

body {
  padding: 8px;
}

h1 {
  font-size: 2rem;
}

p {
  font-size: 1rem;
}

/* logo style */
.logo {
  height: fit-content;
  will-change: filter;
  transition: filter 300ms;
}

.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}

.logo.vanilla:hover {
  filter: drop-shadow(0 0 2em #f7df1eaa);
}
/* end logo style */

/* button style */
button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: var(--secendry-color);
  cursor: pointer;
  transition: border-color 0.25s;
}

button:hover {
  background-color: var(--secendry-hover-color);
}

button:focus,
button:focus-visible {
  outline: none;
}
/* end button style */

/* header */
.header {
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
}
/* header */

/* hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  max-width: 1100px;
  margin: auto;
  transform: translateY(30%);
}

.hero-text h1 {
  font-size: 2rem;
}

.box-button {
  display: flex;
  gap: 18px;
}

.hero-tex-bold {
  color: var(--secendry-color);
}

/* responsive */
/* ---------- Breakpoints ---------- */

/* Large tablets / small desktops */
@media (max-width: 1024px) {
  :root {
    --gap-lg: 28px;
  }
  .hero {
    gap: var(--gap-md);
    max-width: 920px;
    transform: translateY(18%);
  }
  .logo {
    max-height: 56px;
  }
}

/* Tablets and large phones */
@media (max-width: 768px) {
  :root {
    --gap-lg: 20px;
    --gap-md: 16px;
  }

  /* stack hero vertically for narrow screens */
  .hero {
    flex-direction: column-reverse; /* text then media (or adjust as needed) */
    align-items: flex-start;
    justify-content: center;
    gap: var(--gap-md);
    transform: none; /* remove translate to avoid overflow */
    padding: 1.5rem;
  }

  .hero-text {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .hero-img {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  /* typography */
  .hero-text h1 {
    font-size: clamp(1.4rem, 4.2vw, 2rem);
  }
  p {
    font-size: clamp(0.95rem, 2.8vw, 1rem);
  }

  /* logo */
  .logo {
    max-height: 48px;
  }

  /* buttons become full-width vertical stack */
  .box-button {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  button {
    width: 100%;
    min-width: 0;
    padding: 0.85em 1rem;
    font-size: 1rem;
  }
}

/* Mobile (small phones) */
@media (max-width: 480px) {
  :root {
    --gap-md: 12px;
    --gap-sm: 10px;
  }

  body {
    padding: 0;
    margin: 0;
  }

  .header {
    padding: 6px 8px;
  }

  .logo {
    max-height: 40px;
  }

  .hero {
    padding: 1rem;
    gap: var(--gap-sm);
  }
  .hero-img img {
    width: 100%;
  }

  .hero-text h1 {
    font-size: 1.5rem;
    line-height: 1.15;
  }
  p {
    font-size: 0.95rem;
  }

  .box-button {
    gap: 10px;
  }
  button {
    padding: 0.8em;
    font-size: 0.98rem;
  }
}

/* Optional utility: center content for very wide screens */
@media (min-width: 1600px) {
  .header,
  .hero {
    max-width: 1400px;
  }
}

/* small accessibility hint: focus-visible outline */
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(100, 108, 255, 0.18);
  outline-offset: 3px;
  border-radius: 8px;
}

/* End responsive additions */
