:root {
  --ink: #f5f7fb;
  --muted: #aeb5c4;
  --bg: #090b11;
  --panel: rgba(21, 24, 34, .76);
  --line: rgba(255, 255, 255, .11);
  --blue: #35a7ff;
  --violet: #8e63ff;
  --pink: #f270d2;
  --radius: 24px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

button, input { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .16;
  pointer-events: none;
}
.ambient-one { top: -18rem; right: -8rem; background: var(--violet); }
.ambient-two { bottom: -22rem; left: -15rem; background: var(--blue); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  letter-spacing: .08em;
}
.brand > span:last-child { display: grid; }
.brand strong { font: 800 .79rem/1.1 Manrope, sans-serif; }
.brand small { margin-top: .2rem; color: #8e96a8; font-size: .48rem; letter-spacing: .3em; }
.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.brand-mark::before, .brand-mark::after, .brand-mark span {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  margin: -2px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 -11px 0 var(--ink), 0 11px 0 var(--ink);
}
.brand-mark::after { transform: rotate(60deg); }
.brand-mark span { transform: rotate(120deg); }

.eyebrow {
  margin: 0 0 1rem;
  color: #71c4ff;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .2em;
}

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.gate-card {
  width: min(100%, 520px);
  padding: clamp(2rem, 6vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(28,31,43,.94), rgba(14,16,23,.9));
  box-shadow: 0 30px 100px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
}
.gate-copy { margin: 4.25rem 0 2.2rem; }
.gate h1, .hero h1, .tools-section h2, .cta h2 {
  margin: 0;
  font-family: Manrope, sans-serif;
  letter-spacing: -.045em;
}
.gate h1 { max-width: 390px; font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: .98; }
.gate-copy > p:last-child { max-width: 400px; margin: 1.25rem 0 0; color: var(--muted); line-height: 1.55; }
form label { display: block; margin-bottom: .6rem; color: #dce1ec; font-size: .8rem; font-weight: 600; }
.pin-row { display: flex; gap: .65rem; }
.pin-row input {
  min-width: 0;
  flex: 1;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: rgba(255,255,255,.055);
  color: white;
  font-size: 1.25rem;
  letter-spacing: .35em;
  transition: border .2s, box-shadow .2s;
}
.pin-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(53,167,255,.13); }
.pin-row button, .cta a {
  border: 0;
  border-radius: 12px;
  background: white;
  color: #0d1018;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.pin-row button { padding: .95rem 1.25rem; }
.pin-row button:hover, .cta a:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,255,255,.15); }
.pin-error { min-height: 1.25rem; margin: .55rem 0 0; color: #ff8f9b; font-size: .82rem; }
.gate-note { margin: 2.5rem 0 0; color: #737b8e; font-size: .78rem; }
.shake { animation: shake .34s ease; }
@keyframes shake { 25% { transform: translateX(-7px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

.site { width: min(1180px, calc(100% - 3rem)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.lock-button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.lock-button:hover { color: white; border-color: rgba(255,255,255,.25); }
.lock-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.hero { min-height: 570px; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 3rem; padding: 5rem 0 4rem; }
.hero h1 { font-size: clamp(3.3rem, 7.4vw, 6.7rem); line-height: .92; }
.hero h1 span { color: transparent; background: linear-gradient(90deg, #76caff, #a483ff 60%, #f28cd8); background-clip: text; -webkit-background-clip: text; }
.hero-copy { max-width: 590px; margin: 1.8rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.65; }
.hero-orbit { position: relative; width: min(30vw, 330px); aspect-ratio: 1; justify-self: end; }
.hero-monogram {
  position: absolute; inset: 24%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #b199ff, #5a43bd 48%, #271a66);
  box-shadow: 0 0 70px rgba(113,82,240,.35), inset 0 1px rgba(255,255,255,.4);
  font: 800 clamp(3rem, 6vw, 5rem) Manrope, sans-serif;
}
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.orbit-one { inset: 6%; animation: spin 18s linear infinite; }
.orbit-one::before { content: ""; position: absolute; top: 12%; left: 9%; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 18px var(--pink); }
.orbit-two { inset: 17%; border-style: dashed; animation: spin 25s linear infinite reverse; }
.spark { position: absolute; color: #8ed3ff; }
.spark-one { top: 3%; right: 14%; font-size: 1.5rem; }
.spark-two { bottom: 8%; left: 7%; font-size: .8rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.tools-section { padding: 5rem 0 6rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2, .cta h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
.section-heading > p { max-width: 280px; margin: 0; color: var(--muted); line-height: 1.55; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tool-card {
  position: relative;
  min-height: 335px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  transition: transform .25s, border-color .25s, background .25s;
}
.tool-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.25); background: rgba(29,33,45,.9); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-number { color: #6f7789; font-weight: 700; font-size: .75rem; letter-spacing: .15em; }
.status { padding: .35rem .55rem; border: 1px solid rgba(109,224,179,.2); border-radius: 999px; background: rgba(66,181,137,.08); color: #86e1bd; font-size: .66rem; font-weight: 700; letter-spacing: .12em; }
.card-icon { width: 65px; height: 65px; margin: 3rem 0 2.1rem; padding: 15px; border-radius: 17px; background: var(--accent-soft); color: var(--accent); }
.card-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.tool-card h3 { margin: auto 0 .65rem; font: 800 1.45rem/1.1 Manrope, sans-serif; letter-spacing: -.025em; }
.tool-card p { min-height: 3.2em; margin: 0 0 1.25rem; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.open-tool { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .82rem; font-weight: 700; }
.open-tool span:last-child { color: var(--accent); font-size: 1.15rem; transition: transform .2s; }
.tool-card:hover .open-tool span:last-child { transform: translate(3px,-3px); }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 5rem; padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid rgba(115,194,255,.2); border-radius: 28px; background: linear-gradient(115deg, rgba(43,116,165,.2), rgba(104,69,161,.22)); }
.cta p:last-child { margin: .8rem 0 0; color: var(--muted); }
.cta a { flex: 0 0 auto; padding: 1rem 1.2rem; text-decoration: none; }
footer { display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); color: #737b8e; font-size: .75rem; }
footer p { margin: 0; }

@media (max-width: 820px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 5rem; }
  .hero-orbit { position: absolute; width: 280px; right: -105px; top: 135px; opacity: .32; z-index: -1; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 300px; }
  .section-heading, .cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .site { width: min(100% - 2rem, 1180px); }
  .gate { padding: .8rem; }
  .gate-card { padding: 1.5rem; border-radius: 22px; }
  .gate-copy { margin-top: 3.5rem; }
  .pin-row { flex-direction: column; }
  .pin-row button { width: 100%; }
  .site-header { padding: 1.15rem 0; }
  .lock-button { font-size: 0; }
  .lock-button svg { width: 18px; }
  .hero { padding: 4.5rem 0 2.5rem; }
  .tools-section { padding: 3rem 0 4rem; }
  .section-heading > p { max-width: none; }
  .cta { margin-bottom: 3rem; }
  .cta a { width: 100%; text-align: center; }
  footer { flex-direction: column; gap: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
