*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: #070d19;
  color: #f8fafc;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv02" 1, "cv03" 1, "cv04" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(20, 184, 166, 0.13) 0%, rgba(14, 165, 233, 0.05) 32%, transparent 64%),
    linear-gradient(160deg, #060b16 0%, #0b162c 56%, #071f24 100%);
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 82% 68% at 50% 36%, #000 32%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 82% 68% at 50% 36%, #000 32%, transparent 100%);
  pointer-events: none;
}

.page.has-grid-canvas::before {
  display: none;
}

.grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

header, main, footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

header {
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.brand svg {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.stealth-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stealth-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.85);
}

.contact-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(94, 234, 212, 0.38);
  color: #99f6e4;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.contact-trigger:hover {
  background: rgba(20, 184, 166, 0.24);
  border-color: rgba(94, 234, 212, 0.62);
  color: #ffffff;
}

/* Home Hero */
main.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 72px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 12px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.10);
  border: 1px solid rgba(94, 234, 212, 0.26);
  color: #5eead4;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.85);
}

.hero-main h1 {
  margin: 0 0 20px;
  max-width: 780px;
  font-size: clamp(2.15rem, 4.8vw, 3.65rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-main h1 span {
  background: linear-gradient(95deg, #99f6e4 0%, #2dd4bf 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0;
  max-width: 690px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: #cbd5e1;
  font-weight: 400;
}

.stealth-note {
  margin: 22px 0 0;
  font-size: 0.88rem;
  color: #94a3b8;
  letter-spacing: 0.01em;
}

.stealth-note button {
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  color: #5eead4;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stealth-note button:hover {
  color: #99f6e4;
}

/* Contact Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(4, 9, 20, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(165deg, #0d172b 0%, #091120 100%);
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-top: 2px solid #14b8a6;
  border-radius: 14px;
  padding: 26px 26px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.modal-close {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #ffffff;
  border-color: rgba(148, 163, 184, 0.45);
}

.modal-sub {
  margin: 0 0 18px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #94a3b8;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(6, 11, 22, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 9px 11px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 92px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.submit-btn {
  margin-top: 4px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #0d9488 0%, #14b8a6 100%);
  color: #042f2e;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.submit-btn:hover {
  filter: brightness(1.08);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  margin: 10px 0 0;
  font-size: 0.83rem;
  line-height: 1.45;
}

.form-status.ok {
  color: #5eead4;
}

.form-status.err {
  color: #fda4af;
}

/* Legal Documents */
main.legal-main {
  flex: 1;
  padding-top: 56px;
  padding-bottom: 80px;
}

.legal-wrap {
  max-width: 740px;
}

.legal-meta {
  font-size: 0.82rem;
  color: #5eead4;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.legal-wrap h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.legal-updated {
  margin: 0 0 28px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.pledge-box {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-left: 3px solid #14b8a6;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 34px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.pledge-box strong {
  color: #5eead4;
}

.legal-wrap h2 {
  margin: 34px 0 10px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f8fafc;
}

.legal-wrap p,
.legal-wrap li {
  font-size: 0.94rem;
  line-height: 1.68;
  color: #cbd5e1;
}

.legal-wrap p {
  margin: 0 0 14px;
}

.legal-wrap ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-wrap li {
  margin-bottom: 8px;
}

.legal-wrap li strong {
  color: #f1f5f9;
}

.legal-wrap a {
  color: #5eead4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-wrap a:hover {
  color: #99f6e4;
}

/* Footer */
footer {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

footer a,
footer button.footer-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: #94a3b8;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

footer a:hover,
footer button.footer-link:hover {
  color: #5eead4;
}

.sep {
  color: rgba(148, 163, 184, 0.35);
}

@media (max-width: 640px) {
  header {
    padding-top: 24px;
  }
  .stealth-pill {
    display: none;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  main.hero-main {
    padding-top: 48px;
    padding-bottom: 56px;
  }
  main.legal-main {
    padding-top: 40px;
    padding-bottom: 56px;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
