@font-face {
  font-family: "Unbounded";
  src: url("./fonts/Unbounded-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("./fonts/Unbounded-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("./fonts/Unbounded-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("./fonts/Unbounded-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #2d1d1a;
  --bg-accent: #3b241d;
  --surface: rgba(72, 46, 40, 0.84);
  --surface-strong: rgba(82, 51, 43, 0.96);
  --border: rgba(255, 239, 229, 0.13);
  --text: #fff8f3;
  --muted: rgba(249, 232, 222, 0.68);
  --primary: #f05a2d;
  --primary-bright: #ff8e5c;
  --shadow: 0 24px 70px rgba(12, 7, 6, 0.34);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6eee9;
  --bg-accent: #ead7cb;
  --surface: rgba(255, 251, 248, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.97);
  --border: rgba(77, 48, 37, 0.15);
  --text: #382722;
  --muted: #816a5e;
  --primary: #e95123;
  --primary-bright: #c5411b;
  --shadow: 0 20px 55px rgba(73, 42, 29, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(ellipse at 10% 5%, rgba(201, 88, 49, 0.18), transparent 34%),
    radial-gradient(ellipse at 92% 78%, rgba(232, 144, 84, 0.12), transparent 30%),
    linear-gradient(135deg, var(--bg), var(--bg-accent));
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.home-page {
  display: flex;
  flex-direction: column;
  width: min(1240px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px clamp(22px, 5vw, 72px) 18px;
}

.home-header,
.home-brand {
  display: flex;
  align-items: center;
}

.home-header {
  justify-content: space-between;
  min-height: 56px;
}

.home-brand {
  gap: 12px;
  color: var(--text);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.home-brand img {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 15px;
  object-fit: cover;
}

.theme-toggle {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, background-color 180ms ease;
}

.theme-toggle:hover {
  transform: rotate(-8deg);
  background: var(--surface-strong);
}

.theme-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="dark"] .theme-icon--moon,
html[data-theme="light"] .theme-icon--sun {
  display: none;
}

.home-main {
  flex: 1;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
  align-items: center;
  gap: 40px;
  min-height: 430px;
  padding: 42px 0 46px;
}

.home-copy {
  max-width: 640px;
}

.home-copy > * {
  animation: home-rise 520ms ease both;
}

.home-copy > :nth-child(1) { animation-delay: 80ms; }
.home-copy > :nth-child(2) { animation-delay: 160ms; }
.home-copy > :nth-child(3) { animation-delay: 240ms; }
.home-copy > :nth-child(4) { animation-delay: 320ms; }
.home-copy > :nth-child(5) { animation-delay: 400ms; }

.eyebrow {
  color: var(--primary-bright);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow,
.primary-button,
.home-art__label,
.home-feature__mark,
.home-feature h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
}

.home-copy .eyebrow {
  margin-bottom: 18px;
}

.home-copy h1 {
  margin: 0;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.2;
}

.home-lead {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #db713c);
  font-weight: 800;
  cursor: pointer;
}

.home-cta {
  position: relative;
  overflow: hidden;
  min-height: 54px;
  margin-top: 28px;
  padding: 16px 22px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-copy > .home-cta {
  animation: home-rise 520ms 320ms ease both, home-button-glow 3.8s 1.1s ease-in-out infinite;
}

.home-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(226, 103, 44, 0.3);
}

.home-cta:active {
  transform: translateY(0) scale(0.98);
}

.home-art {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 28px;
  animation: home-rise 650ms 80ms ease both;
}

.home-art::before {
  position: absolute;
  z-index: -1;
  width: min(100%, 330px);
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 36% 64% 58% 42% / 49% 39% 61% 51%;
  background: radial-gradient(circle at 50% 50%, rgba(226, 103, 44, 0.16), transparent 68%);
  content: "";
  animation: home-orbit 18s ease-in-out infinite alternate;
}

.home-art img {
  display: block;
  width: min(100%, 290px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28%;
  object-fit: cover;
  box-shadow: 0 28px 64px rgba(67, 37, 22, 0.25);
  animation: home-float 5s 800ms ease-in-out infinite;
}

.home-art__label {
  position: absolute;
  right: 2px;
  bottom: 20px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-strong);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: home-pop 420ms 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding: 10px 0 34px;
}

.home-feature {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  animation: home-rise 560ms ease both;
  transition: transform 220ms ease, border-color 220ms ease;
}

.home-feature:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.home-feature:nth-child(1) { animation-delay: 420ms; }
.home-feature:nth-child(2) { animation-delay: 500ms; }
.home-feature:nth-child(3) { animation-delay: 580ms; }
.home-feature:nth-child(4) { animation-delay: 660ms; }
.home-feature:nth-child(5) { animation-delay: 740ms; }

.home-feature__mark {
  color: var(--primary-bright);
  font-size: 0.72rem;
  font-weight: 800;
}

.home-feature h2 {
  margin: 12px 0 0;
  font-size: 0.98rem;
  font-weight: 800;
}

.home-feature p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.home-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}

:focus-visible {
  outline: 3px solid var(--primary-bright);
  outline-offset: 4px;
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes home-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes home-orbit {
  from { transform: rotate(-8deg) scale(0.96); }
  to { transform: rotate(8deg) scale(1.04); }
}

@keyframes home-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes home-button-glow {
  0%, 100% {
    filter: brightness(1);
    box-shadow: 0 8px 20px rgba(226, 103, 44, 0.12);
  }
  50% {
    filter: brightness(1.08);
    box-shadow: 0 0 26px 4px rgba(240, 90, 45, 0.24), 0 14px 30px rgba(226, 103, 44, 0.2);
  }
}

@media (max-width: 850px) {
  .home-intro {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr);
    gap: 18px;
    min-height: 380px;
  }

  .home-copy h1 {
    font-size: 2.35rem;
  }

  .home-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 22px;
  }
}

@media (max-width: 600px) {
  .home-page {
    min-height: 100dvh;
    padding: 16px 22px 14px;
  }

  .home-intro {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    padding: 34px 0 18px;
  }

  .home-copy h1 {
    font-size: 1.85rem;
  }

  .home-lead {
    margin-top: 14px;
    font-size: 0.94rem;
  }

  .home-cta {
    width: 100%;
    margin-top: 20px;
  }

  .home-art {
    justify-self: center;
    width: min(100%, 250px);
    padding: 14px 24px 22px;
  }

  .home-art img {
    width: min(100%, 175px);
  }

  .home-art__label {
    right: 0;
    bottom: 10px;
  }

  .home-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
    padding-bottom: 24px;
  }

  .home-feature h2 {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
