:root {
  --navy: #06122c;
  --navy-2: #0b1a3f;
  --navy-3: #10245a;
  --royal: #2563eb;
  --cyan: #00d8ff;
  --cyan-soft: rgba(0, 216, 255, 0.16);
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.48);
  --line: rgba(0, 216, 255, 0.28);
  --card: rgba(10, 28, 68, 0.72);
  --shadow: 0 24px 70px rgba(0, 8, 30, 0.45);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: var(--navy);
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); }
button, input, select, textarea { font-family: inherit; }

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% 20%, rgba(0, 216, 255, 0.12), transparent 55%),
    radial-gradient(700px 480px at 10% 80%, rgba(37, 99, 235, 0.22), transparent 50%),
    linear-gradient(160deg, #050e24 0%, var(--navy-2) 48%, #071433 100%);
}

.hex-net {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='156' viewBox='0 0 180 156'%3E%3Cpath d='M90 8 L166 52 V140 L90 184 L14 140 V52 Z' fill='none' stroke='%2300d8ff' stroke-opacity='0.16' stroke-width='1'/%3E%3Ccircle cx='90' cy='8' r='2.4' fill='%2300d8ff'/%3E%3Ccircle cx='166' cy='52' r='2.4' fill='%2300d8ff'/%3E%3Ccircle cx='166' cy='140' r='2.4' fill='%2300d8ff'/%3E%3C/svg%3E");
  background-size: 180px 156px;
  opacity: 0.55;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 62%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 62%, #000 100%);
}

.wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.hero-inner {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 0 3rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.4rem;
}

.brand__mark {
  width: 58px;
  height: 58px;
  flex: none;
}

.brand__name {
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.brand__name span {
  position: relative;
}

.brand__name span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.28em;
  width: 0.42em;
  height: 0.34em;
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--cyan);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.6vw, 4.05rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero .lede {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.6rem 0 0;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.kicker::before,
.kicker::after {
  content: "";
  height: 1px;
  width: 3.2rem;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.kicker::before { width: 2.2rem; }

.cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  color: #041226;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 216, 255, 0.28);
}

.cta:hover { filter: brightness(1.06); }

.powered {
  margin: 2.6rem 0 0;
  color: var(--faint);
  font-size: 0.82rem;
}

.powered strong { color: #fff; font-weight: 700; }

.hero-art {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.hero-photo {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(78vh, 680px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 216, 255, 0.28);
  box-shadow: 0 28px 70px rgba(0, 8, 30, 0.5);
  background: #081428;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: none;
}

.section {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #071433, #08183c 40%, #06122c);
}

.section h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section .intro {
  margin: 0 0 2rem;
  max-width: 46rem;
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.3rem 1.15rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  color: var(--cyan);
}

.card p, .card li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.flow {
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.roles {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.role {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(0, 216, 255, 0.06);
  border: 1px solid rgba(0, 216, 255, 0.14);
}

.role strong { display: block; margin-bottom: 0.3rem; color: #fff; }
.role span { color: var(--muted); font-size: 0.86rem; line-height: 1.45; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) 0.85rem max(0.75rem, env(safe-area-inset-bottom));
  background: rgba(3, 8, 22, 0.78);
  backdrop-filter: blur(8px);
}

.modal.is-open { display: flex; }

.modal__box {
  width: min(720px, 100%);
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  background: linear-gradient(180deg, #10275c 0%, #0b1c44 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  box-shadow: var(--shadow);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.3rem 0.85rem;
  border-bottom: 1px solid rgba(0, 216, 255, 0.12);
}

.modal__box h2 { margin: 0 0 0.3rem; font-size: 1.45rem; }
.modal__box p.hint { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

.modal-close {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.form-pad { padding: 1.1rem 1.3rem 1.2rem; }

.fields { display: grid; gap: 0.85rem; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

.field-promo {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(0, 216, 255, 0.08);
  border: 1px solid rgba(0, 216, 255, 0.28);
}

.optional {
  font-weight: 500;
  color: var(--faint);
  font-size: 0.74rem;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: rgba(255,255,255,0.86);
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(0, 216, 255, 0.22);
  background: rgba(6, 16, 42, 0.8);
  color: #fff;
  border-radius: 12px;
  padding: 0.8rem 0.85rem;
  outline: none;
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 216, 255, 0.15);
}

textarea { min-height: 88px; resize: vertical; }

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.modal .cta { margin-top: 0; flex: 1; min-width: 160px; }

.btn-ghost {
  min-height: 46px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.thanks {
  display: none;
  text-align: center;
  padding: 1.4rem 0.5rem 0.6rem;
}

.thanks.is-on { display: block; }
.form-body.is-off { display: none; }

.thanks h3 { margin: 0 0 0.6rem; font-size: 1.35rem; }
.thanks p { color: var(--muted); line-height: 1.55; }

.alert {
  background: rgba(220, 38, 38, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.gate-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: radial-gradient(700px 400px at 50% 0%, rgba(0,216,255,0.12), transparent 55%), var(--navy-2);
}

.gate-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.3rem;
}

.desk-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr auto auto;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.data th, table.data td {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.65rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

table.data th { color: var(--cyan); font-size: 0.76rem; letter-spacing: 0.04em; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-top: 1.2rem; gap: 1.4rem; }
  .hex-net { mask-image: none; opacity: 0.22; }
  .hero h1 { max-width: none; }
  .hero-art { max-width: none; justify-self: stretch; justify-content: stretch; }
  .hero-photo { aspect-ratio: 16 / 11; max-height: 340px; }
  .hero-photo img { object-position: center 22%; }
  .grid, .roles, .fields-2, .filters { grid-template-columns: 1fr; }
  .kicker { justify-content: flex-start; flex-wrap: wrap; }
  .modal__actions { flex-direction: column; }
  .modal .cta, .btn-ghost { width: 100%; }
}

@media (max-width: 520px) {
  .hero-photo { aspect-ratio: 4 / 5; max-height: 420px; }
  .modal__box { border-radius: 16px; }
  .modal__head, .form-pad { padding-left: 1rem; padding-right: 1rem; }
}
