* {
  box-sizing: border-box;
}

:root {
  --bg: #04070d;
  --bg-soft: #08101d;
  --card: #0a1220;
  --card-soft: #0d1727;
  --border: rgba(121, 138, 255, 0.18);
  --border-strong: rgba(121, 138, 255, 0.34);
  --text: #f5f7ff;
  --muted: #a8b1c7;
  --muted-2: #7f8aa7;
  --accent: #6675ff;
  --accent-2: #7f8cff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(102, 117, 255, 0.14), transparent 24%),
    radial-gradient(circle at top left, rgba(55, 80, 180, 0.10), transparent 26%),
    linear-gradient(180deg, #03060b 0%, #050912 35%, #04070d 100%);
  color: var(--text);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(4, 7, 13, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
}

.brand-text {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.main-nav a {
  text-decoration: none;
  color: #dfe5f7;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.main-nav a:hover {
  color: var(--accent-2);
}

.header-invite-btn {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid rgba(102, 117, 255, 0.75);
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.header-invite-btn:hover {
  transform: translateY(-1px);
  background: rgba(102, 117, 255, 0.12);
  box-shadow: 0 12px 26px rgba(102, 117, 255, 0.12);
}

/* hero */

.hero {
  padding: 56px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.accent {
  color: var(--accent);
}

.hero-text {
  max-width: 660px;
  margin: 28px 0 0;
  font-size: 1.4rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
}

.btn {
  min-width: 280px;
  min-height: 72px;
  padding: 14px 26px;
  border-radius: 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(180deg, #6977ff 0%, #5767f6 100%);
  box-shadow:
    0 18px 40px rgba(87, 103, 246, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(11, 18, 31, 0.94);
  border: 1px solid rgba(102, 117, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.btn-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-note {
  margin-top: 22px;
  font-size: 1rem;
  color: #c8d0e6;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: min(100%, 640px);
  max-height: 760px;
  object-fit: contain;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.35));
}

/* sections */

.features,
.download,
.faq {
  padding: 38px 0 48px;
}

.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.section-subtitle {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.15rem;
}

/* features */

.features-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  min-height: 270px;
  padding: 28px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(8, 16, 29, 0.96) 0%, rgba(7, 12, 22, 0.98) 100%);
  border: 1px solid rgba(102, 117, 255, 0.16);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.feature-card h3 {
  margin: 28px 0 14px;
  font-size: 1.45rem;
  line-height: 1.15;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* download */

.download-grid {
  max-width: 860px;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.download-card {
  min-height: 128px;
  padding: 24px 26px;
  border-radius: 26px;
  background: rgba(10, 18, 32, 0.96);
  border: 1px solid rgba(102, 117, 255, 0.46);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 18px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.download-card:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 140, 255, 0.82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.download-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.04);
}

.download-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
}

.download-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
}

/* faq */

.faq-list {
  max-width: 920px;
  margin: 34px auto 0;
  display: grid;
  gap: 18px;
}

.faq-item {
  padding: 24px 26px;
  border-radius: 24px;
  background: rgba(10, 18, 32, 0.96);
  border: 1px solid rgba(102, 117, 255, 0.14);
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* footer */

.site-footer {
  padding: 28px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-2);
  font-size: 0.96rem;
}

/* modal */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 12, 0.78);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.modal-content {
  width: 100%;
  max-width: 560px;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(11, 18, 31, 0.98) 0%, rgba(8, 14, 25, 0.99) 100%);
  border: 1px solid rgba(102, 117, 255, 0.24);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.modal-lead {
  max-width: 440px;
  margin: 0 auto 20px;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
  font-size: 0.98rem;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  margin: 0 0 14px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(102, 117, 255, 0.14);
  background: rgba(16, 24, 39, 0.96);
  color: #ffffff;
  font: inherit;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
  color: #8f9ab8;
}

.modal-content input:focus,
.modal-content textarea:focus {
  border-color: rgba(102, 117, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(102, 117, 255, 0.12);
}

.modal-content textarea {
  min-height: 130px;
  resize: vertical;
}

.modal-content button {
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 16px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    box-shadow 0.18s ease;
}

.modal-content button:hover {
  transform: translateY(-1px);
}

.modal-content button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.modal-status {
  min-height: 22px;
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

.modal-status.error {
  color: #ffb4c0;
}

.modal-status.success {
  color: #9ff0c4;
}

.modal-primary {
  margin-top: 8px;
  color: #ffffff;
  background: linear-gradient(180deg, #6977ff 0%, #5767f6 100%);
  box-shadow:
    0 16px 32px rgba(87, 103, 246, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.modal-secondary {
  margin-top: 10px;
  color: #ffffff;
  background: rgba(16, 24, 39, 0.96);
  border: 1px solid rgba(102, 117, 255, 0.16);
}

/* responsive */

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-text {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .header-inner {
    min-height: 78px;
  }

  .brand-text {
    font-size: 1.6rem;
  }

  .header-invite-btn {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-text {
    font-size: 1.1rem;
  }

  .hero-logo {
    max-height: 520px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .container {
    padding: 0 16px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-text {
    font-size: 1.35rem;
  }

  .header-invite-btn {
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    min-width: 0;
    width: 100%;
    border-radius: 18px;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .download-card {
    min-height: 110px;
    padding: 20px;
    border-radius: 20px;
  }

  .download-title {
    font-size: 1.2rem;
  }

  .modal {
    padding: 14px;
  }

  .modal-content {
    padding: 22px 16px 16px;
    border-radius: 20px;
  }

  .modal-content h2 {
    font-size: 1.45rem;
  }
}
