:root {
  --paper: #fffdfa;
  --ink: #101511;
  --soft-ink: #3d4641;
  --green: #073f33;
  --teal: #0f766d;
  --mint: #e2f3ef;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    ui-sans-serif, system-ui, sans-serif;
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  padding: 22px clamp(18px, 4vw, 58px) 18px;
  isolation: isolate;
}

/* Full-bleed artwork gives the hero the soft illustrated reference feel. */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      180deg,
      rgba(255, 253, 250, 0.9) 0%,
      rgba(255, 253, 250, 0.5) 34%,
      rgba(255, 253, 250, 0.06) 100%
    ),
    url("assets/taxsafe-hero-bg.png") center bottom / cover no-repeat;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 31%, rgba(255, 255, 255, 0.97), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), transparent 58%);
  pointer-events: none;
}

.site-header,
.hero,
.footer-note {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
  min-height: 50px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.nav-cta {
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid rgba(16, 21, 17, 0.7);
  color: var(--ink);
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  align-items: start;
  justify-items: center;
  width: 100%;
  min-width: 0;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(50px, 7vh, 76px) 0 22px;
  text-align: center;
}

.hero-content {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 22px;
  padding: 0 14px;
  border: 1px solid rgba(15, 118, 109, 0.12);
  border-radius: 999px;
  color: #315b56;
  font-size: 0.8rem;
  font-weight: 560;
  background: rgba(226, 243, 239, 0.82);
  box-shadow: 0 14px 34px rgba(15, 118, 109, 0.08);
  backdrop-filter: blur(18px);
}

h1 {
  width: 100%;
  max-width: 820px;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4vw, 3.85rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.subheadline {
  max-width: 742px;
  margin: 22px auto 0;
  color: rgba(16, 21, 17, 0.62);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 390;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.button {
  min-height: 48px;
  min-width: 184px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  color: #ffffff;
  background: #050706;
  box-shadow: 0 20px 38px rgba(7, 63, 51, 0.22);
}

.button-secondary {
  border-color: rgba(16, 21, 17, 0.24);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px);
}

.trust-line {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(16, 21, 17, 0.62);
  font-size: 0.88rem;
  font-weight: 390;
  line-height: 1.72;
}

.footer-note {
  max-width: 880px;
  margin: 0 auto;
  color: rgba(16, 21, 17, 0.58);
  font-size: 0.8rem;
  font-weight: 390;
  line-height: 1.7;
  text-align: center;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.74);
}

.early-access-panel {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 22px clamp(18px, 4vw, 58px) 18px;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms ease;
}

body.early-access-open {
  overflow: hidden;
}

body.early-access-open .early-access-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  transition:
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms ease;
}

body.early-access-closing .early-access-panel {
  opacity: 0;
  transform: translateY(100%);
  transition:
    transform 620ms cubic-bezier(0.55, 0, 0.1, 1),
    opacity 420ms ease;
}

.inquiry-shell {
  display: grid;
  place-items: center;
}

.back-link {
  position: absolute;
  top: 24px;
  left: clamp(18px, 4vw, 58px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(16, 21, 17, 0.2);
  border-radius: 999px;
  color: rgba(16, 21, 17, 0.78);
  font-size: 0.88rem;
  font-weight: 560;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.inquiry-panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100%, 560px);
  padding-top: 56px;
  text-align: center;
}

.inquiry-form {
  display: grid;
  width: 100%;
  gap: 16px;
  margin-top: 28px;
}

.contact-fields {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.field span {
  color: rgba(16, 21, 17, 0.68);
  font-size: 0.86rem;
  font-weight: 520;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(16, 21, 17, 0.16);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.64);
  outline: none;
  backdrop-filter: blur(18px);
}

.field input:focus {
  border-color: rgba(15, 118, 109, 0.42);
  box-shadow: 0 0 0 4px rgba(15, 118, 109, 0.08);
}

.inquiry-form .button {
  margin-top: 8px;
}

.inquiry-form .button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.form-check {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: rgba(16, 21, 17, 0.62);
  font-size: 0.88rem;
  font-weight: 390;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 900px) {
  .page-shell {
    min-height: 100svh;
    padding-inline: 18px;
  }

  .hero {
    padding-top: 54px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 16px 15px 18px;
  }

  .early-access-panel {
    padding: 16px 15px 18px;
  }

  .hero-art {
    background:
      linear-gradient(
        180deg,
        rgba(255, 253, 250, 0.7) 0%,
        rgba(255, 253, 250, 0.48) 34%,
        rgba(255, 253, 250, 0.08) 68%,
        rgba(255, 253, 250, 0.02) 100%
      ),
      url("assets/taxsafe-hero-bg.png") 64% center / auto 118% no-repeat;
  }

  .hero-art::after {
    background:
      radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.84), transparent 38%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 52%);
  }

  .site-header {
    justify-content: space-between;
    gap: 12px;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.8rem;
  }

  .hero {
    justify-self: start;
    width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
    margin: 0;
    overflow: hidden;
    padding-top: 46px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .badge {
    max-width: 100%;
    text-align: center;
  }

  h1 {
    max-width: 340px;
    font-size: clamp(1.85rem, 8vw, 2.25rem);
    line-height: 1.1;
  }

  .subheadline {
    max-width: 300px;
    margin-top: 22px;
    line-height: 1.62;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-actions .button {
    width: min(100%, 320px);
    min-width: 0;
  }

  .trust-line {
    max-width: 300px;
    margin-top: 24px;
  }

  .inquiry-panel {
    width: 100%;
    padding-inline: 14px;
  }

  .inquiry-form .button {
    width: min(100%, 320px);
    justify-self: center;
  }
}
