@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800;900&display=swap");

:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f0f1f1;
  --text: #1f2326;
  --muted: #6d7276;
  --border: #d9dcde;
  --accent: #c79a2b;
  --accent-dark: #8f6712;
  --success: #16794c;
  --shadow: rgba(31, 35, 38, 0.08);
  --danger-bg: #fff1f1;
  --danger-border: #e7b8b8;
}

.dark-mode {
  color-scheme: dark;
  --bg: #17191b;
  --surface: #222528;
  --surface-soft: #2d3135;
  --text: #f0eee8;
  --muted: #a9a49a;
  --border: #44484d;
  --accent: #d7ad45;
  --accent-dark: #f0c765;
  --success: #63d18f;
  --shadow: rgba(0, 0, 0, 0.24);
  --danger-bg: #3a2020;
  --danger-border: #6f3838;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
}

a {
  color: inherit;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-link img {
  display: block;
  width: clamp(210px, 22vw, 300px);
  height: auto;
}

.home-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.home-nav a {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-soft);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.home-nav a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.home-nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.home-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: 0 8px 18px var(--shadow);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.theme-toggle:focus-visible,
.brand-link:focus-visible,
.home-nav a:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible {
  outline: 3px solid rgba(199, 154, 43, 0.26);
  outline-offset: 3px;
}

.theme-icon {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 140ms ease, transform 140ms ease;
}

.theme-icon-moon,
.dark-mode .theme-icon-sun {
  opacity: 0;
  transform: scale(0.72) rotate(-20deg);
}

.dark-mode .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

main {
  display: grid;
  gap: 18px;
  padding: 18px clamp(16px, 4vw, 42px) 38px;
}

.hero,
.feature-band,
.steps-band,
.faq-band,
.cta-band {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 30px var(--shadow);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: 22px;
  align-items: stretch;
  margin-inline: calc(clamp(16px, 4vw, 42px) * -1);
  min-height: min(620px, calc(100vh - 112px));
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  color: #ffffff;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at center, rgba(13, 18, 22, 0.34) 0%, rgba(13, 18, 22, 0.34) 42%, rgba(13, 18, 22, 0.64) 100%),
    linear-gradient(90deg, rgba(13, 18, 22, 0.76), rgba(13, 18, 22, 0.38) 54%, rgba(13, 18, 22, 0.72));
  content: "";
}

.hero-inner,
.section-copy {
  display: grid;
  align-content: center;
  gap: 13px;
}

.eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4d06f;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 18px;
  line-height: 1.2;
}

.hero-copy,
.section-copy p,
.cta-band p,
.feature-grid p,
.faq-grid p,
.steps span {
  color: var(--muted);
  line-height: 1.55;
}

.hero-copy {
  max-width: 720px;
  font-size: clamp(17px, 1.45vw, 21px);
}

.hero .hero-copy {
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  background: var(--accent);
  color: #ffffff;
}

.primary-action:hover {
  background: var(--accent-dark);
}

.secondary-action {
  background: var(--surface-soft);
}

.hero .secondary-action {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.secondary-action:hover {
  color: var(--accent-dark);
}

.hero .secondary-action:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.hero-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.hero-panel span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.05;
}

.hero-panel dl,
.hero-panel dt,
.hero-panel dd {
  margin: 0;
}

.hero-panel dl {
  display: grid;
  gap: 10px;
}

.hero-panel dl div,
.feature-grid article,
.faq-grid article,
.steps li {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.hero-panel dl div {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.13);
}

.hero-panel dt {
  margin-bottom: 4px;
  font-weight: 900;
}

.hero-panel dd {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.feature-band,
.steps-band,
.faq-band {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.blog-band {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 30px var(--shadow);
}

.feature-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article,
.faq-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  background: var(--surface-soft);
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-blog-grid article {
  min-width: 0;
}

.home-blog-grid a {
  display: grid;
  gap: 9px;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: inherit;
  text-decoration: none;
}

.home-blog-grid a:hover {
  border-color: var(--accent);
}

.home-blog-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: var(--border);
}

.home-blog-grid span,
.home-blog-grid h3,
.home-blog-grid p {
  margin-right: 14px;
  margin-left: 14px;
}

.home-blog-grid span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-blog-grid p {
  margin-bottom: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding-top: 48px;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: 15px;
  left: 15px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--success);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  content: counter(steps);
}

.cta-band {
  display: grid;
  justify-items: start;
  gap: 11px;
  padding: clamp(22px, 3vw, 34px);
}

.home-footer {
  padding: 0 clamp(16px, 4vw, 42px) 26px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1050px) {
  .hero,
  .feature-grid,
  .faq-grid,
  .home-blog-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .home-header {
    display: grid;
    justify-items: start;
  }

  .home-header-tools {
    justify-content: start;
  }

  .home-nav {
    justify-content: flex-start;
  }

  main {
    padding: 14px;
  }

  .hero,
  .feature-band,
  .steps-band,
  .faq-band,
  .blog-band,
  .cta-band {
    padding: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
