:root {
  --bg: #050814;
  --bg-2: #080e1d;
  --surface: rgba(14, 24, 48, 0.72);
  --surface-strong: rgba(17, 28, 55, 0.94);
  --line: rgba(222, 246, 255, 0.12);
  --text: #ecfbff;
  --muted: #a9b6d3;
  --muted-2: #73809d;
  --cyan: #69e7ff;
  --blue: #7469ff;
  --pink: #ff61d5;
  --green: #44f3a2;
  --warning: #ffd166;
  --danger: #ff687d;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at 14% 18%, rgba(105, 231, 255, .16), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(255, 97, 213, .14), transparent 34%),
    radial-gradient(circle at 64% 72%, rgba(116, 105, 255, .18), transparent 38%),
    var(--bg);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -3;
  background:
    linear-gradient(120deg, rgba(105,231,255,.12), rgba(116,105,255,.12), rgba(255,97,213,.12), rgba(68,243,162,.08));
  background-size: 260% 260%;
  animation: gradientMove 14s ease-in-out infinite alternate;
  filter: blur(16px);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(236, 251, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 251, 255, .035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 88%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(105,231,255,.28); }

.page-shell { position: relative; min-height: 100vh; }
.particle-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--cyan);
  opacity: .24;
  animation: floatParticle 16s linear infinite;
}
.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: .5;
  pointer-events: none;
}
.orb-one { width: 220px; height: 220px; background: rgba(105,231,255,.12); top: 13%; left: -90px; animation: orbDrift 9s ease-in-out infinite alternate; }
.orb-two { width: 300px; height: 300px; background: rgba(255,97,213,.1); bottom: 5%; right: -120px; animation: orbDrift 11s ease-in-out infinite alternate-reverse; }
.orb-three { width: 170px; height: 170px; background: rgba(116,105,255,.15); top: 38%; right: 22%; animation: orbPulse 8s ease-in-out infinite; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: rgba(5, 8, 20, .7);
  border-bottom: 1px solid var(--line);
}
.navbar {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 210px;
}
.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  padding: 4px;
  box-shadow: 0 12px 34px rgba(105,231,255,.08);
}
.brand-copy strong { display: block; letter-spacing: .08em; font-size: .86rem; }
.brand-copy span { display: block; color: var(--muted); font-size: .72rem; margin-top: 3px; }
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-menu a {
  color: var(--muted);
  padding: 12px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .88rem;
  transition: .25s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text); background: rgba(255,255,255,.06); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); border-radius: 16px; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 999px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(105,231,255,.5); box-shadow: 0 16px 42px rgba(105,231,255,.08); }
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--blue) 52%, var(--pink)); color: #04101f; border: 0; box-shadow: 0 18px 55px rgba(116,105,255,.25); }
.btn-secondary { background: rgba(255,255,255,.06); }
.btn-ghost { background: transparent; }
.btn-full { width: 100%; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(105,231,255,.08);
  border: 1px solid rgba(105,231,255,.18);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .03em;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; box-shadow: 0 0 18px currentColor; }

.section { padding: 92px 22px; position: relative; }
.section.compact { padding-top: 54px; }
.container { max-width: var(--max); margin: 0 auto; }
.hero {
  padding: 88px 22px 68px;
  overflow: hidden;
}
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 44px;
  align-items: center;
}
.eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 900; margin: 0 0 14px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(2.7rem, 7vw, 6.8rem);
  line-height: .92;
  letter-spacing: -.075em;
  margin-bottom: 22px;
}
.hero-title span, .gradient-text { background: linear-gradient(120deg, var(--cyan), #ffffff, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { color: var(--muted); font-size: 1.14rem; line-height: 1.75; max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.metric-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
}
.metric-card strong { display: block; font-size: 1.6rem; letter-spacing: -.04em; }
.metric-card span { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 38px; border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow); animation: visualFloat 5.8s ease-in-out infinite alternate; }
.float-chip {
  position: absolute;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(7,12,27,.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0,0,0,.26);
  font-weight: 900;
}
.float-chip small { display: block; color: var(--muted); font-weight: 700; margin-top: 4px; }
.chip-a { top: 7%; left: -16px; animation: chipMove 4.6s ease-in-out infinite alternate; }
.chip-b { right: -16px; bottom: 12%; animation: chipMove 5.5s ease-in-out infinite alternate-reverse; }

.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { margin: 0 auto 42px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.055em; margin-bottom: 16px; }
.section-head p { color: var(--muted); line-height: 1.7; font-size: 1.02rem; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 70px rgba(0,0,0,.19);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(105,231,255,.16), transparent 34%);
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-8px); border-color: rgba(105,231,255,.24); background: rgba(17, 28, 55, .82); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; letter-spacing: -.03em; }
.card p { color: var(--muted); line-height: 1.65; }
.card ul { color: var(--muted); padding-left: 18px; line-height: 1.8; margin-bottom: 0; }
.icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(105,231,255,.18), rgba(255,97,213,.12));
  border: 1px solid rgba(105,231,255,.2);
  margin-bottom: 18px;
  font-size: 1.45rem;
}
.panel {
  padding: 34px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.image-panel img { border-radius: 34px; border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; }
.split.reverse { grid-template-columns: 1.1fr .9fr; }
.kicker-list { display: grid; gap: 14px; margin-top: 22px; }
.kicker-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.04); }
.kicker-number { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: rgba(105,231,255,.12); color: var(--cyan); font-weight: 900; }
.kicker-item strong { display: block; margin-bottom: 3px; }
.kicker-item span { color: var(--muted); line-height: 1.45; }

.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 25px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--cyan), var(--pink)); opacity: .5; }
.timeline-item { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; }
.timeline-dot { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: #0B1225; border: 1px solid rgba(105,231,255,.24); color: var(--cyan); font-weight: 900; z-index: 1; }
.timeline-content { padding: 18px 20px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.timeline-content p { margin-bottom: 0; }
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255,255,255,.035); }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { padding: 16px 28px; color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.04); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); }
th { color: var(--cyan); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

.form-shell { display: grid; grid-template-columns: .88fr 1.12fr; gap: 30px; align-items: stretch; }
.form-card { padding: 30px; border-radius: 34px; background: var(--surface-strong); border: 1px solid var(--line); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 8px; color: var(--text); font-weight: 800; font-size: .92rem; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(3, 7, 18, .54);
  border-radius: 16px;
  color: var(--text);
  padding: 0 16px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.field textarea { min-height: 142px; padding-top: 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(105,231,255,.55); box-shadow: 0 0 0 4px rgba(105,231,255,.08); background: rgba(5, 10, 22, .8); }
.form-note, .auth-switch { color: var(--muted); line-height: 1.6; font-size: .92rem; }
.auth-switch a { color: var(--cyan); font-weight: 900; }
.feedback { min-height: 22px; margin-top: 14px; color: var(--muted); font-weight: 800; }
.feedback.success { color: var(--green); }
.feedback.error { color: var(--danger); }
.password-rules { color: var(--muted-2); font-size: .82rem; line-height: 1.5; }

.dashboard-hero { padding-top: 54px; }
.dashboard-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; }
.stat-list { display: grid; gap: 14px; }
.stat-row { display: flex; justify-content: space-between; gap: 18px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.stat-row span { color: var(--muted); }
.stat-row strong { color: var(--text); }
.progress { height: 10px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--value); border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--pink)); }

.footer {
  padding: 54px 22px;
  border-top: 1px solid var(--line);
  background: rgba(3, 6, 16, .74);
}
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr .7fr .7fr .8fr; gap: 26px; }
.footer h3, .footer h4 { margin-bottom: 12px; }
.footer p, .footer a { color: var(--muted); line-height: 1.65; }
.footer a { display: block; margin: 8px 0; transition: color .25s ease; }
.footer a:hover { color: var(--cyan); }
.footer-bottom { max-width: var(--max); margin: 28px auto 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted-2); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.glass-line { height: 1px; width: 100%; background: linear-gradient(90deg, transparent, rgba(105,231,255,.5), rgba(255,97,213,.45), transparent); }
.page-hero { padding: 74px 22px 46px; }
.page-hero .container { display: grid; grid-template-columns: .94fr .86fr; gap: 40px; align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 5.4rem); }
.breadcrumb { color: var(--muted-2); font-weight: 800; margin-bottom: 14px; }
.breadcrumb a { color: var(--cyan); }
.not-found { min-height: 70vh; display: grid; place-items: center; padding: 60px 22px; text-align: center; }
.not-found h1 { font-size: clamp(5rem, 18vw, 13rem); margin-bottom: 0; }

@keyframes gradientMove { 0% { transform: translate3d(-4%, -2%, 0) rotate(0deg); background-position: 0% 50%; } 100% { transform: translate3d(4%, 3%, 0) rotate(6deg); background-position: 100% 50%; } }
@keyframes visualFloat { from { transform: translateY(0) rotateX(0deg) rotateY(0deg); } to { transform: translateY(-18px) rotateX(1.5deg) rotateY(-1.5deg); } }
@keyframes chipMove { from { transform: translate3d(0,0,0); } to { transform: translate3d(12px,-12px,0); } }
@keyframes orbDrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(38px, -22px, 0) scale(1.14); } }
@keyframes orbPulse { 0%,100% { transform: scale(.9); opacity: .34; } 50% { transform: scale(1.18); opacity: .58; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes floatParticle { from { transform: translateY(110vh) translateX(0); } to { transform: translateY(-20vh) translateX(80px); } }

@media (max-width: 1050px) {
  .nav-menu { position: fixed; top: 82px; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; padding: 14px; background: rgba(7,12,27,.94); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
  .nav-menu.open { display: flex; }
  .nav-menu a { border-radius: 14px; }
  .menu-toggle { display: inline-block; }
  .nav-actions .btn-secondary { display: none; }
  .hero-grid, .page-hero .container, .split, .split.reverse, .form-shell, .dashboard-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .chip-a { left: 12px; }
  .chip-b { right: 12px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .navbar { min-height: 72px; padding-inline: 14px; }
  .brand { min-width: unset; }
  .brand-copy span { display: none; }
  .nav-menu { top: 72px; }
  .section, .hero { padding-inline: 16px; }
  .hero { padding-top: 46px; }
  .hero-metrics, .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding-inline: 16px; }
  .panel, .form-card, .card { padding: 22px; border-radius: 26px; }
  .float-chip { position: static; margin: 10px 0; }
  .hero-visual img { border-radius: 26px; }
  h1 { letter-spacing: -.055em; }
}
