@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #070812;
  --bg-soft: #0e1221;
  --panel: rgba(23, 19, 40, 0.9);
  --panel-strong: rgba(32, 22, 50, 0.95);
  --line: rgba(177, 146, 255, 0.25);
  --purple-1: #7c3aed;
  --purple-2: #a855f7;
  --purple-3: #d29dff;
  --blue: #4cc9ff;
  --pink: #ff5fd2;
  --text: #f5f3ff;
  --text-soft: rgba(245, 243, 255, 0.72);
  --shadow: rgba(123, 71, 255, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(152, 96, 255, 0.28), transparent 28%),
    radial-gradient(circle at bottom right, rgba(76, 201, 255, 0.18), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 8px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6b2ef3 0%, #8f5bff 50%, #4f46e5 100%);
  box-shadow: 0 18px 35px rgba(117, 71, 255, 0.45);
  overflow: hidden;
}

.brand-mark::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
}

.brand-letter {
  position: relative;
  z-index: 1;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
}

.brand-name {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  transition: 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: inset 0 0 0 1px rgba(199, 154, 255, 0.22);
}

main {
  display: grid;
  gap: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 28px;
  padding: 28px 8px 12px;
}

.hero-copy {
  padding: 24px 0 18px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--purple-3);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  max-width: 560px;
}

.hero-copy h1 span {
  background: linear-gradient(135deg, #f4d8ff 0%, #b38aff 24%, #7c3aed 50%, #4cc9ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 20px 0 0;
  max-width: 590px;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--purple-1), var(--purple-2));
  color: white;
  box-shadow: 0 18px 32px rgba(124, 58, 237, 0.38);
}

.secondary-btn {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  max-width: 620px;
}

.stats li {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}

.stats strong {
  display: block;
  font-size: 1.2rem;
  color: white;
  margin-bottom: 6px;
}

.stats span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.logo-stage {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.logo-stage::before,
.logo-stage::after {
  content: '';
  position: absolute;
  inset: 10% 14%;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(150, 113, 255, 0.35), rgba(76, 201, 255, 0.16));
  filter: blur(30px);
}

.logo-card {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1.05;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(210, 210, 220, 0.85));
  box-shadow: 0 40px 80px rgba(67, 33, 146, 0.6), inset 0 0 0 6px rgba(144, 112, 255, 0.35);
  padding: 22px;
}

.logo-card::before {
  content: '';
  position: absolute;
  inset: 18px 18px 18px 18px;
  border-radius: 28px;
  background: linear-gradient(135deg, #6e3ad8 0%, #8a48f4 42%, #5722d6 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.logo-inner {
  position: absolute;
  inset: 62px 62px 62px 62px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.05));
  z-index: 1;
}

.logo-inner span {
  font-size: clamp(8rem, 20vw, 14rem);
  line-height: 0.8;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 12px 32px rgba(18, 8, 27, 0.42);
}

.info-panel,
.showcase {
  background: linear-gradient(180deg, rgba(17, 14, 28, 0.9), rgba(16, 9, 26, 0.9));
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(14, 10, 22, 0.36);
}

.product-panel {
  padding: 28px 28px 24px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-header h2,
.showcase-copy h2,
.security-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(172, 142, 255, 0.18);
  border-radius: 22px;
}

.icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(76, 201, 255, 0.18));
  color: #e9dcff;
  font-weight: 700;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.showcase {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 30px;
  padding: 28px;
  align-items: center;
}

.showcase-copy p {
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 1.02rem;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  color: var(--text);
}

.check-list li {
  position: relative;
  padding-left: 32px;
  line-height: 1.6;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(76, 201, 255, 0.18));
  color: #fff;
  font-weight: 700;
}

.signal-panel {
  min-height: 340px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(19, 22, 37, 0.8), rgba(13, 12, 25, 0.9));
  border: 1px solid rgba(176, 148, 255, 0.2);
}

.signal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-purple { background: #8b5cf6; }
.dot-blue { background: #4cc9ff; }
.dot-pink { background: #ff75d8; }

.signal-body {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(170, 147, 255, 0.14);
  padding: 20px 18px;
  min-height: 260px;
}

.signal-line {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.42), rgba(76, 201, 255, 0.34));
  margin-bottom: 18px;
}

.signal-line.big {
  width: 78%;
}

.signal-line.small {
  width: 60%;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 150px;
  padding-top: 18px;
}

.signal-bars span {
  flex: 1;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(163, 109, 255, 0.3), rgba(76, 201, 255, 0.8));
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.signal-bars span:nth-child(1) { height: 30%; }
.signal-bars span:nth-child(2) { height: 52%; }
.signal-bars span:nth-child(3) { height: 74%; }
.signal-bars span:nth-child(4) { height: 88%; }
.signal-bars span:nth-child(5) { height: 100%; }

.security-panel {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 22px;
  padding: 28px;
}

.security-card {
  padding: 18px 10px 10px 6px;
}

.security-points {
  display: grid;
  gap: 18px;
}

.security-points div {
  padding: 20px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(171, 145, 255, 0.18);
}

.security-points strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.security-points span {
  color: var(--text-soft);
  line-height: 1.7;
}

.site-footer {
  padding: 18px 8px 12px;
  text-align: center;
  color: var(--text-soft);
}

.account-btn,
.auth-switch button {
  border: 0;
  cursor: pointer;
}

.account-btn {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--text);
  color: #21123b;
  font-weight: 700;
}

.primary-btn,
.secondary-btn {
  border: 0;
  cursor: pointer;
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 5, 13, 0.78);
  backdrop-filter: blur(12px);
}

.auth-backdrop[hidden],
.account-panel[hidden] {
  display: none;
}

.auth-modal {
  position: relative;
  width: min(100%, 470px);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(31, 20, 52, 0.98), rgba(10, 16, 33, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.auth-modal h2,
.account-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.auth-intro,
.account-panel p:not(.section-kicker) {
  color: var(--text-soft);
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(177, 146, 255, 0.32);
  border-radius: 11px;
  outline: 0;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
}

.auth-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(76, 201, 255, 0.14);
}

.auth-message {
  min-height: 22px;
  margin: 0;
  color: #ff9baf;
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-switch {
  margin: 22px 0 0;
  color: var(--text-soft);
  text-align: center;
}

.auth-switch button {
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
}

.account-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(600px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(18, 14, 35, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.account-panel .section-kicker {
  margin-bottom: 8px;
}

.account-panel h2 {
  font-size: 1.55rem;
}

.account-panel p {
  margin-bottom: 0;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .topbar,
  .main-nav {
    align-items: flex-start;
  }

  .topbar,
  .main-nav {
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
  }

  .hero,
  .showcase,
  .security-panel,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 320px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .account-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .account-actions {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .hero,
  .showcase,
  .security-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 10px;
  }

  .hero-visual {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .hero-copy h1 {
    max-width: 100%;
  }
}
