.home-page {
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 6%, rgba(201, 164, 92, 0.20), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.10), transparent 28rem),
    linear-gradient(145deg, #050505 0%, #111111 48%, #060606 100%);
}

.home-container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.home-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 5, 5, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.home-nav {
  width: min(1180px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: env(safe-area-inset-top);
}

.home-brand,
.home-menu,
.home-actions,
.home-footer-grid > div:last-child {
  display: flex;
  align-items: center;
}

.home-brand {
  gap: 12px;
  font-weight: 900;
  min-width: 0;
}

.home-logo-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 5px;
  background:
    radial-gradient(circle at 34% 18%, rgba(240, 213, 140, 0.28), transparent 34%),
    linear-gradient(145deg, #141414 0%, #24221c 52%, #0a0a0a 100%);
  border: 1px solid rgba(240, 213, 140, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
}

.home-logo-wrap img,
.home-visual-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55));
}

.home-logo-fallback,
.home-visual-fallback {
  width: 100%;
  height: 100%;
  display: none;
  place-items: center;
  color: #f0d58c;
  font-weight: 950;
  letter-spacing: 0;
}

.home-brand-text {
  font-size: 18px;
  letter-spacing: 0;
}

.home-menu {
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  perspective: 900px;
}

.home-menu a {
  min-height: 46px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.055) 46%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(145deg, rgba(29, 29, 27, 0.98), rgba(11, 11, 10, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 9px 0 rgba(0, 0, 0, 0.58),
    0 16px 28px rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 -4px 10px rgba(0, 0, 0, 0.36) inset;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.75);
  overflow: hidden;
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.home-menu a::before {
  content: "";
  position: absolute;
  inset: 4px 8px auto 8px;
  height: 42%;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.home-menu a::after {
  content: "";
  position: absolute;
  inset: -35% auto -35% -55%;
  width: 48%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(240, 213, 140, 0.24), transparent);
  opacity: 0;
  pointer-events: none;
}

.home-menu a:hover {
  color: #ffffff;
  border-color: rgba(240, 213, 140, 0.38);
  background:
    linear-gradient(180deg, rgba(240, 213, 140, 0.18) 0%, rgba(255, 255, 255, 0.07) 48%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(145deg, rgba(35, 32, 25, 0.98), rgba(12, 12, 11, 0.98));
}

.home-menu a:hover::after {
  animation: homeButtonShine 0.85s steps(8) both;
  opacity: 1;
}

.home-menu a:active {
  transform: translateY(7px) scale(0.985);
  color: #f0d58c;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.20), rgba(255, 255, 255, 0.055)),
    linear-gradient(145deg, #0b0b0a, #15130e);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.72),
    0 6px 14px rgba(0, 0, 0, 0.34),
    0 5px 12px rgba(0, 0, 0, 0.64) inset,
    0 1px 0 rgba(240, 213, 140, 0.14) inset;
  animation: homeButtonPress 0.18s steps(3) both;
}

.home-menu a:focus-visible {
  outline: 2px solid rgba(240, 213, 140, 0.82);
  outline-offset: 4px;
}

@keyframes homeButtonPress {
  0% { filter: brightness(1.08); }
  45% { filter: brightness(0.78) contrast(1.08); }
  100% { filter: brightness(0.94); }
}

@keyframes homeButtonShine {
  0% { transform: translateX(0) rotate(18deg); }
  100% { transform: translateX(360%) rotate(18deg); }
}

.home-hero {
  padding: 86px 0 70px;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
}

.home-hero-grid,
.home-choice-grid,
.home-footer-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 42px;
  align-items: center;
}

.home-hero-copy h1,
.home-section h2,
.home-final h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.home-hero-copy h1 {
  max-width: 780px;
  font-size: clamp(46px, 7vw, 86px);
}

.home-eyebrow {
  margin: 0 0 14px;
  color: #f0d58c;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 900;
}

.home-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 2vw, 22px);
}

.home-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.home-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.home-button:hover {
  transform: translateY(-1px);
}

.home-button-primary {
  color: #111111;
  background: linear-gradient(135deg, #c9a45c, #f0d58c);
  box-shadow: 0 16px 42px rgba(201, 164, 92, 0.22);
}

.home-button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.home-visual,
.home-service-card,
.home-core-panel,
.home-final-inner {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.home-visual {
  min-height: 520px;
  border-radius: 30px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(240, 213, 140, 0.30), transparent 16rem);
  background-size: 42px 42px, 42px 42px, auto;
  mask-image: radial-gradient(circle at 50% 36%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 36%, black, transparent 78%);
}

.home-visual > * {
  position: relative;
  z-index: 1;
}

.home-visual-logo {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  padding: 10px;
  background:
    radial-gradient(circle at 34% 18%, rgba(240, 213, 140, 0.28), transparent 34%),
    linear-gradient(145deg, #141414 0%, #24221c 52%, #0a0a0a 100%);
  border: 1px solid rgba(240, 213, 140, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
}

.home-visual h2 {
  max-width: 430px;
  font-size: clamp(30px, 4vw, 48px);
}

.home-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.home-signal-grid span {
  min-height: 78px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

.home-section {
  padding: 82px 0;
}

.home-section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.home-section h2,
.home-final h2 {
  font-size: clamp(34px, 4.6vw, 58px);
}

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

.home-service-card {
  min-height: 245px;
  border-radius: 22px;
  padding: 24px;
}

.home-service-card span {
  color: #f0d58c;
  font-size: 13px;
  font-weight: 950;
}

.home-service-card h3 {
  margin: 34px 0 0;
  font-size: 23px;
  line-height: 1.12;
}

.home-service-card p,
.home-core-panel p,
.home-final p,
.home-text,
.home-footer p {
  color: rgba(255, 255, 255, 0.68);
}

.home-service-card p {
  margin: 12px 0 0;
}

.home-section-light {
  background: #f6f1e7;
  color: #141414;
}

.home-section-light .home-eyebrow {
  color: #8a6822;
}

.home-section-light .home-text {
  color: #655d51;
  font-size: 18px;
}

.home-points {
  display: grid;
  gap: 12px;
}

.home-points p {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #171717;
  font-weight: 820;
}

.home-core-panel {
  border-radius: 28px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.home-core-panel p {
  max-width: 720px;
  font-size: 18px;
}

.home-final {
  padding-top: 44px;
}

.home-final-inner {
  border-radius: 28px;
  padding: clamp(30px, 6vw, 58px);
  text-align: center;
}

.home-final-inner p {
  max-width: 650px;
  margin: 18px auto 0;
  font-size: 18px;
}

.home-final-inner .home-button {
  margin-top: 28px;
}

.home-footer {
  padding: 42px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #050505;
}

.home-footer-grid {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.home-footer strong {
  color: #ffffff;
  font-size: 18px;
}

.home-footer p {
  margin: 8px 0 0;
}

.home-footer-grid > div:last-child {
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.home-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

@media (max-width: 940px) {
  .home-nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .home-menu {
    width: 100%;
    justify-content: flex-start;
  }

  .home-menu a {
    min-height: 48px;
  }

  .home-hero {
    padding: 48px 0 54px;
    min-height: auto;
  }

  .home-hero-grid,
  .home-choice-grid,
  .home-footer-grid,
  .home-core-panel {
    grid-template-columns: 1fr;
  }

  .home-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-core-panel .home-button {
    width: fit-content;
  }
}

@media (max-width: 620px) {
  .home-container,
  .home-nav {
    width: min(100% - 28px, 1180px);
  }

  .home-brand-text {
    display: none;
  }

  .home-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
  }

  .home-menu a {
    min-height: 72px;
    justify-content: center;
    padding: 0 14px;
    border-radius: 24px;
    font-size: 22px;
    font-weight: 950;
    box-shadow:
      0 10px 0 rgba(0, 0, 0, 0.66),
      0 16px 26px rgba(0, 0, 0, 0.40),
      0 1px 0 rgba(255, 255, 255, 0.18) inset,
      0 -5px 12px rgba(0, 0, 0, 0.44) inset;
  }

  .home-menu a:active {
    transform: translateY(8px) scale(0.98);
    box-shadow:
      0 2px 0 rgba(0, 0, 0, 0.78),
      0 6px 12px rgba(0, 0, 0, 0.32),
      0 6px 14px rgba(0, 0, 0, 0.70) inset;
  }

  .home-hero-copy h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .home-lead {
    font-size: 17px;
  }

  .home-actions,
  .home-actions .home-button,
  .home-button,
  .home-core-panel .home-button {
    width: 100%;
  }

  .home-visual {
    min-height: 390px;
    border-radius: 24px;
    padding: 22px;
  }

  .home-visual-logo {
    width: 84px;
    height: 84px;
    border-radius: 22px;
  }

  .home-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-signal-grid span {
    min-height: 64px;
  }

  .home-section {
    padding: 58px 0;
  }

  .home-card-grid {
    grid-template-columns: 1fr;
  }

  .home-service-card {
    min-height: auto;
  }

  .home-footer-grid > div:last-child {
    justify-content: flex-start;
  }
}
