:root {
  --bg: #070808;
  --bg-deep: #020504;
  --fg: #f2f2f2;
  --muted: #b8beb9;
  --accent: #8fbf9b;
  --accent-strong: #c6f5d1;
  --pink: #f3a9cf;
  --border: rgba(255, 255, 255, 0.14);
  --panel: rgba(3, 7, 6, 0.58);
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.44);
  --header-h: 286px;
  --tabs-h: 36px;
  --footer-h: 58px;
  --recaptcha-h: 32px;
  --logo-size: 256px;
  --spot-x: 42%;
  --spot-y: 34%;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--bg-deep);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    radial-gradient(900px 600px at 18% 22%, rgba(143, 191, 155, 0.22), transparent 60%),
    radial-gradient(760px 500px at 84% 82%, rgba(243, 169, 207, 0.15), transparent 62%),
    linear-gradient(135deg, #04140c 0%, #062116 28%, #020504 64%, #000 100%);
  background-size: 220% 220%;
  animation: bgFlow 18s ease-in-out infinite;
}

body::after {
  z-index: 1;
  background:
    radial-gradient(360px 260px at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.16), rgba(198, 245, 209, 0.10) 28%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(920px 620px at calc(var(--spot-x) + 8%) calc(var(--spot-y) + 12%), rgba(143, 191, 155, 0.11), transparent 72%),
    radial-gradient(620px 420px at calc(var(--spot-x) - 18%) calc(var(--spot-y) + 18%), rgba(243, 169, 207, 0.07), transparent 68%);
  mix-blend-mode: screen;
  opacity: 0.86;
}

@keyframes bgFlow {
  0% { background-position: 0% 30%; }
  50% { background-position: 100% 70%; }
  100% { background-position: 0% 30%; }
}

.site-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100svh;
  display: grid;
  grid-template-rows: var(--header-h) var(--tabs-h) minmax(0, 1fr) var(--recaptcha-h) var(--footer-h);
  overflow: hidden;
}

.site-header {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr) 292px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.04));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand-lockup {
  width: var(--logo-size);
  height: var(--logo-size);
  display: block;
}

.brand-logo {
  width: var(--logo-size);
  height: var(--logo-size);
  display: block;
  object-fit: contain;
  opacity: 0.86;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.42));
}

.phrase-stage {
  min-width: 0;
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.phrase {
  display: block;
  max-width: 920px;
  text-align: center;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 2.06rem;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.035em;
  color: rgba(245, 248, 245, 0.94);
  text-shadow:
    0 9px 22px rgba(0, 0, 0, 0.62),
    0 0 28px rgba(143, 191, 155, 0.18);
  opacity: 0;
  transform: translateY(8px);
  filter: blur(6px);
  transition: opacity 1200ms ease, transform 1200ms ease, filter 1200ms ease;
}

.phrase.show {
  opacity: 1;
  transform: none;
  filter: none;
}

.phrase.subtle {
  opacity: 0;
  transform: translateY(-7px);
  filter: blur(8px);
}

.browser-tabs {
  min-width: 0;
  display: flex;
  align-items: end;
  gap: 2px;
  padding: 3px 18px 0;
  border-bottom: 1px solid rgba(143, 191, 155, 0.22);
  background: linear-gradient(to bottom, rgba(11, 16, 14, 0.92), rgba(4, 8, 7, 0.92));
  overflow: hidden;
}

.tab {
  appearance: none;
  position: relative;
  width: 156px;
  height: 33px;
  flex: 0 0 156px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 0 14px 0 18px;
  background: linear-gradient(to bottom, rgba(34, 40, 37, 0.88), rgba(11, 16, 14, 0.9));
  color: rgba(229, 234, 230, 0.82);
  font: 600 0.78rem/1 Inter, system-ui, sans-serif;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.tab::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 4px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.tab:hover,
.tab:focus-visible {
  color: rgba(255, 255, 255, 0.96);
  border-color: rgba(143, 191, 155, 0.32);
  outline: none;
}

.tab.is-active {
  z-index: 2;
  background: linear-gradient(to bottom, rgba(20, 33, 26, 0.98), rgba(7, 12, 10, 0.98));
  border-color: rgba(143, 191, 155, 0.46);
  color: rgba(255, 255, 255, 0.98);
}

.tab-stage {
  min-height: 0;
  overflow: hidden;
  padding: 22px;
}

.tab-panel {
  display: none;
  height: 100%;
  min-height: 0;
  align-items: start;
  justify-content: center;
  gap: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.tab-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 320px);
}

#signal.tab-panel.is-active,
#signup.tab-panel.is-active,
#contact.tab-panel.is-active {
  grid-template-columns: minmax(0, 820px);
}

.panel-copy,
.panel-note {
  align-self: start;
}

.panel-copy {
  min-width: 0;
  max-width: 820px;
  padding-top: 2px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0 0 14px;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.96);
}

h1 {
  font-size: 2.28rem;
}

h2 {
  font-size: 1.58rem;
}

p {
  max-width: 72ch;
  margin: 0 0 12px;
  color: rgba(230, 234, 231, 0.9);
  font-size: 0.94rem;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

.panel-note {
  margin-top: 30px;
  padding: 16px 18px;
  border-left: 2px solid rgba(143, 191, 155, 0.52);
  background: rgba(255, 255, 255, 0.045);
}

.panel-note strong,
.panel-note span {
  display: block;
}

.panel-note strong {
  margin-bottom: 8px;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.panel-note span {
  color: rgba(226, 231, 227, 0.82);
  font-size: 0.86rem;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.compact-grid span {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(143, 191, 155, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(235, 240, 236, 0.9);
  font-size: 0.84rem;
}

.signup-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.signup-form label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.signup-form label:nth-of-type(3) {
  grid-column: 1 / -1;
}

.signup-form span {
  color: rgba(231, 235, 232, 0.76);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signup-form input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.96);
  font: 500 0.9rem/1 Inter, system-ui, sans-serif;
}

.signup-form input:focus {
  border-color: rgba(143, 191, 155, 0.72);
  outline: none;
}

.signup-form button {
  grid-column: 1 / -1;
  justify-self: start;
  height: 38px;
  border: 1px solid rgba(143, 191, 155, 0.58);
  border-radius: 6px;
  padding: 0 16px;
  background: linear-gradient(to bottom, rgba(143, 191, 155, 0.26), rgba(24, 78, 45, 0.42));
  color: rgba(255, 255, 255, 0.96);
  font: 700 0.84rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-message {
  margin: 12px 0 0;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.84rem;
}

.form-message--error {
  border: 1px solid rgba(243, 169, 207, 0.42);
  background: rgba(243, 169, 207, 0.12);
}

.recaptcha-parking {
  min-height: var(--recaptcha-h);
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 12px;
  background: rgba(2, 5, 4, 0.46);
}

.grecaptcha-badge {
  width: 25px !important;
  height: 25px !important;
  overflow: hidden !important;
  border-radius: 5px !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32) !important;
}

.grecaptcha-badge iframe {
  width: 25px !important;
  height: 25px !important;
}

.site-footer {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  background: linear-gradient(to top, rgba(7, 8, 8, 0.94), rgba(7, 8, 8, 0.74));
  color: rgba(218, 224, 220, 0.84);
  font-size: 0.72rem;
  text-align: center;
}

.site-footer span:first-child {
  color: rgba(255, 255, 255, 0.94);
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.modal-backdrop[hidden] {
  display: none;
}

.signup-modal {
  position: relative;
  width: min(460px, 100%);
  border: 1px solid rgba(143, 191, 155, 0.38);
  background:
    radial-gradient(420px 260px at 30% 0%, rgba(143, 191, 155, 0.17), transparent 72%),
    rgba(3, 7, 6, 0.96);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.56);
  padding: 26px 28px 24px;
}

.signup-modal h2 {
  margin-bottom: 10px;
  font-size: 1.36rem;
}

.signup-modal p {
  font-size: 0.92rem;
}

.modal-close {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.modal-action {
  height: 36px;
  margin-top: 8px;
  border: 1px solid rgba(143, 191, 155, 0.58);
  border-radius: 6px;
  padding: 0 14px;
  background: linear-gradient(to bottom, rgba(143, 191, 155, 0.24), rgba(24, 78, 45, 0.42));
  color: rgba(255, 255, 255, 0.96);
  font: 700 0.82rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

@media (max-height: 760px) {
  :root {
    --header-h: 226px;
    --logo-size: 202px;
    --footer-h: 50px;
  }

  .site-header {
    grid-template-columns: 232px minmax(0, 1fr) 232px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .phrase {
    font-size: 1.58rem;
  }

  h1 {
    font-size: 1.82rem;
  }

  h2 {
    font-size: 1.34rem;
  }

  p {
    font-size: 0.86rem;
    margin-bottom: 8px;
  }

  .tab-stage {
    padding: 14px;
  }

  .tab-panel {
    padding: 16px;
  }

  .panel-note {
    margin-top: 18px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 204px;
    --logo-size: 164px;
    --tabs-h: 38px;
    --footer-h: 62px;
  }

  .site-header {
    grid-template-columns: 178px minmax(0, 1fr);
    padding: 10px 12px;
  }

  .phrase-stage {
    min-height: 80px;
    padding: 0 8px;
  }

  .phrase {
    font-size: 1rem;
    letter-spacing: 0.02em;
  }

  .browser-tabs {
    padding-left: 8px;
    padding-right: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .browser-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    width: 134px;
    flex-basis: 134px;
    padding: 0 10px 0 14px;
    font-size: 0.72rem;
  }

  .tab-stage {
    padding: 10px;
  }

  .tab-panel,
  .tab-panel.is-active,
  #signal.tab-panel.is-active,
  #signup.tab-panel.is-active,
  #contact.tab-panel.is-active {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  h1 {
    font-size: 1.38rem;
  }

  h2 {
    font-size: 1.18rem;
  }

  p {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .panel-note {
    display: none;
  }

  .compact-grid {
    grid-template-columns: 1fr;
  }

  .signup-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .signup-form input,
  .signup-form button {
    height: 34px;
  }

  .site-footer {
    flex-direction: column;
    gap: 2px;
    padding: 6px 10px;
    font-size: 0.62rem;
  }
}
.tab-stage {
  min-height: 0;
  overflow: hidden;
  padding: 22px 22px 22px 45px;
}
@media (max-width: 860px) {
  .tab-stage {
    padding: 10px;
  }
}
@media (max-height: 760px) {
  .tab-stage {
    padding: 14px 14px 14px 45px;
  }
}

@media (max-width: 860px) {
  .tab-stage {
    padding: 10px 10px 10px 45px;
  }
}