/* Hero — prototype-faithful first screen */

.layout--home .layout__header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid oklch(90% 0.006 95 / 0.35);
  background: oklch(98% 0.004 95 / 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 -1px 0 oklch(100% 0.002 95 / 0.55);
}

html[data-theme='dark'] .layout--home .layout__header {
  border-bottom-color: oklch(100% 0 0 / 0.08);
  background: oklch(16% 0.012 70 / 0.72);
  box-shadow: inset 0 -1px 0 oklch(100% 0 0 / 0.06);
}

/* Pull hero under sticky header so background fills the nav overlay zone */
.home-hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  margin-top: calc(-1 * var(--home-header-height, 61px));
  padding-top: calc(var(--home-header-height, 61px) + clamp(32px, 6vh, 72px));
  padding-bottom: clamp(32px, 6vh, 72px);
  align-items: center;
  overflow: hidden;
}

.home-hero .home-hero__inner {
  display: grid;
  width: min(1140px, 100%);
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.home-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 3vh, 28px);
  max-width: 520px;
}

.home-hero h1 {
  margin: 0;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.home-hero__tagline {
  max-width: 440px;
  margin: 0;
  color: oklch(46% 0.012 70);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
}

.hl-warm {
  color: var(--accent);
}

.hl-flow {
  position: relative;
  display: inline-block;
}

.hl-flow::after {
  position: absolute;
  right: -2px;
  bottom: 0.04em;
  left: -2px;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M0 7 C18 3 36 8 54 5 C72 2 90 7 120 4' fill='none' stroke='%23c47952' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

.home-url-form {
  display: flex;
  width: 100%;
  max-width: 560px;
  align-items: stretch;
  padding: 6px;
  border: 1px solid oklch(86% 0.01 95);
  border-radius: 999px;
  background: oklch(100% 0.002 95 / 0.94);
  box-shadow:
    0 1px 2px oklch(0% 0 0 / 0.05),
    0 16px 40px oklch(0% 0 0 / 0.08);
  gap: 8px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.home-url-form:focus-within {
  border-color: oklch(78% 0.02 95);
  box-shadow:
    0 1px 2px oklch(0% 0 0 / 0.05),
    0 20px 48px oklch(0% 0 0 / 0.1);
}

.home-url-form__field {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 12px;
  padding-inline: 14px 8px;
}

.home-url-form__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: oklch(58% 0.012 70);
}

.home-url-form__input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  outline: none;
}

.home-url-form__input:focus,
.home-url-form__input:focus-visible {
  outline: none;
  box-shadow: none;
}

.home-url-form__input::placeholder {
  color: oklch(64% 0.01 70);
}

.home-url-form__submit {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: oklch(17% 0.012 70);
  color: oklch(98% 0.004 95);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.home-url-form__submit:hover {
  background: oklch(24% 0.012 70);
}

.home-url-form__submit-icon {
  display: block;
  flex-shrink: 0;
}

.home-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.home-hero__illustration {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin-inline: auto;
  border-radius: 20px;
  filter: drop-shadow(0 32px 64px var(--accent-glow));
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 1024px) {
  .home-hero .home-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .home-hero__text {
    align-items: center;
    max-width: 640px;
    margin-inline: auto;
  }

  .home-hero__visual {
    order: -1;
  }

  .home-hero__illustration {
    width: min(100%, 480px);
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: auto;
    padding-top: calc(var(--home-header-height, 61px) + 24px);
    padding-bottom: 48px;
  }

  .home-url-form {
    flex-direction: column;
    padding: 12px;
    border-radius: 20px;
  }

  .home-url-form__field {
    width: 100%;
    padding-inline: 4px;
  }

  .home-url-form__submit {
    width: 100%;
    justify-content: center;
  }

  .home-hero h1 {
    font-size: 38px;
  }
}
