:root {
  --bg: #090d19;
  --surface: rgba(20, 27, 48, 0.68);
  --surface-strong: rgba(22, 31, 57, 0.9);
  --text: #f4f7ff;
  --muted: #9ca9c9;
  --accent: #8e7dff;
  --accent-two: #55d8ff;
  --line: rgba(255,255,255,.11);
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(83, 106, 255, .18), transparent 32%),
    radial-gradient(circle at 85% 85%, rgba(60, 222, 255, .12), transparent 30%),
    var(--bg);
}

button, input { font: inherit; }
a { color: inherit; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  z-index: 10;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .23;
  pointer-events: none;
}
.orb-one { width: 360px; height: 360px; background: #715dff; top: 12%; left: -120px; }
.orb-two { width: 420px; height: 420px; background: #27c7ef; right: -180px; bottom: -120px; }

.page-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}
.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .11em;
  font-size: .82rem;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  color: white;
  font-size: 1rem;
  box-shadow: 0 10px 35px rgba(111, 104, 255, .34);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .86rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ff3bd;
  box-shadow: 0 0 0 6px rgba(111,243,189,.09), 0 0 16px rgba(111,243,189,.65);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 80px;
  align-items: center;
  padding: 60px 0 80px;
}
.eyebrow {
  margin: 0 0 18px;
  color: #a9b4d5;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .19em;
}
h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: .94;
  letter-spacing: -.065em;
  max-width: 760px;
}
h1 span {
  background: linear-gradient(90deg, #fff 12%, #a99eff 52%, #64dfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 600px;
  margin: 26px 0 34px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.progress-card {
  max-width: 570px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 21, 39, .62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: .92rem;
}
.progress-meta strong { color: var(--text); }
.progress-track {
  height: 9px;
  border-radius: 100px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-two));
  box-shadow: 0 0 25px rgba(90, 210, 255, .35);
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}
.actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
}
.primary-button, .modal-card button[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 15px 21px;
  color: #fff;
  background: linear-gradient(135deg, #7764ff, #4ecdf4);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 38px rgba(97, 111, 255, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.primary-button:hover, .modal-card button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(97, 111, 255, .38);
}
.secondary-link {
  text-decoration: none;
  color: #b7c3df;
  border-bottom: 1px solid rgba(183,195,223,.35);
  padding-bottom: 4px;
}
.note { min-height: 22px; color: #7ce9bf; margin: 16px 0 0; font-size: .9rem; }

.visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.glass-card {
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(145deg, rgba(28,37,67,.77), rgba(13,19,35,.64));
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
}
.card-main {
  width: min(390px, 82vw);
  aspect-ratio: 1 / 1.12;
  border-radius: 32px;
  padding: 24px;
  transform: rotateY(-10deg) rotateX(5deg) rotateZ(2deg);
  animation: float-main 7s ease-in-out infinite;
}
.mini-top { display: flex; gap: 7px; }
.mini-top span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mock-logo {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin: 78px auto 42px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  font-size: 2.2rem;
  font-weight: 900;
  box-shadow: 0 18px 50px rgba(104, 109, 255, .35);
}
.mock-line { width: 60%; height: 10px; margin: 13px auto; border-radius: 20px; background: rgba(255,255,255,.1); }
.mock-line.wide { width: 78%; height: 14px; background: rgba(255,255,255,.17); }
.mock-button { width: 42%; height: 38px; margin: 34px auto 0; border-radius: 12px; background: linear-gradient(90deg, rgba(140,125,255,.8), rgba(85,216,255,.8)); }
.floating-card {
  position: absolute;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
}
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { margin-bottom: 4px; }
.floating-card small { color: var(--muted); }
.card-top { top: 42px; right: 0; animation: float-small 6s ease-in-out infinite; }
.card-bottom { bottom: 38px; left: 0; animation: float-small 6s ease-in-out infinite reverse; }
.spark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(141,126,255,.18); color: #b8aeff; font-size: 1.3rem; }
.pulse-ring { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(95,231,187,.45); }
.pulse-ring span { width: 13px; height: 13px; border-radius: 50%; background: #69efbb; box-shadow: 0 0 20px rgba(105,239,187,.7); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  color: #73809f;
  font-size: .8rem;
}

.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; z-index: 50; opacity: 0; visibility: hidden; transition: .25s ease; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,7,14,.78); backdrop-filter: blur(10px); }
.modal-card { position: relative; width: min(480px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface-strong); box-shadow: var(--shadow); transform: translateY(16px) scale(.98); transition: .25s ease; }
.modal.is-open .modal-card { transform: none; }
.modal-card h2 { margin: 0 0 10px; font-size: 2rem; }
.modal-card > p:not(.eyebrow) { color: var(--muted); }
.modal-card form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 24px 0 14px; }
.modal-card input { min-width: 0; border: 1px solid var(--line); border-radius: 13px; padding: 14px 15px; color: white; outline: none; background: rgba(255,255,255,.06); }
.modal-card input:focus { border-color: rgba(102,208,255,.75); box-shadow: 0 0 0 4px rgba(102,208,255,.08); }
.modal-card small { color: #74809d; }
.modal-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: #9ca9c9; font-size: 1.8rem; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes float-main { 0%,100% { transform: rotateY(-10deg) rotateX(5deg) rotateZ(2deg) translateY(0); } 50% { transform: rotateY(-7deg) rotateX(3deg) rotateZ(1deg) translateY(-14px); } }
@keyframes float-small { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 45px; }
  .visual { min-height: 440px; }
  .card-top { right: 6%; }
  .card-bottom { left: 6%; }
}
@media (max-width: 620px) {
  .page-shell { width: min(100% - 28px, 1180px); }
  .topbar { align-items: flex-start; gap: 18px; }
  .status { max-width: 150px; text-align: right; }
  .brand-name { display: none; }
  .hero { padding: 40px 0 55px; }
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .visual { min-height: 390px; }
  .card-main { width: 82%; }
  .floating-card { max-width: 230px; padding: 13px 14px; }
  .card-top { top: 22px; right: 0; }
  .card-bottom { bottom: 16px; left: 0; }
  footer { flex-direction: column; gap: 8px; }
  .modal-card { padding: 28px 20px 24px; }
  .modal-card form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
