:root {
  --primary: #5c7cfa;
  --primary-dark: #4358c3;
  --secondary: #7bd3c8;
  --accent: #c6a7ff;
  --background: #f5f7fb;
  --text: #1e293b;
  --white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: linear-gradient(135deg, var(--background), #eaf6f4 70%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1.04rem;
}

img {
  max-width: 100%;
  display: block;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem clamp(1.5rem, 3vw, 3rem) 2rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-radius: 1.25rem;
  backdrop-filter: saturate(180%) blur(16px);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 60px rgba(92, 124, 250, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo,
.hero-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.hero-logo {
  width: 58px;
  height: 58px;
}

.brand-text {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.header-badge {
  background: rgba(198, 167, 255, 0.2);
  color: var(--primary);
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  padding-block: 2rem;
}

.hero {
  display: flex;
  justify-content: center;
  text-align: left;
}

.hero-card {
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 1.75rem;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero-lead {
  margin: 0 0 1.25rem;
  font-size: 1.12rem;
  color: rgba(30, 41, 59, 0.85);
  line-height: 1.75;
}

.hero-note {
  margin: 0 0 2rem;
  color: rgba(30, 41, 59, 0.7);
  font-weight: 500;
  font-size: 1rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.9rem 2.4rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease,
    background-color 200ms ease, color 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid rgba(92, 124, 250, 0.4);
  outline-offset: 3px;
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), #7c96ff);
  color: var(--white);
  box-shadow: 0 15px 35px rgba(92, 124, 250, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 40px rgba(92, 124, 250, 0.4);
}

.btn.secondary {
  background: linear-gradient(120deg, #34d399, #10b981);
  color: var(--white);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.35);
}

.btn.secondary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
}

.btn.coming-soon {
  background: rgba(123, 131, 143, 0.15);
  color: rgba(30, 41, 59, 0.5);
  cursor: not-allowed;
  box-shadow: none;
}

.btn.coming-soon:hover {
  transform: none;
}

.btn.ghost {
  background: rgba(92, 124, 250, 0.12);
  color: var(--primary);
}

.btn-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.features {
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(30, 41, 59, 0.08);
  box-shadow: 0 20px 40px rgba(30, 41, 59, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at top, var(--secondary), var(--primary));
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--white);
  box-shadow: 0 10px 20px rgba(123, 211, 200, 0.4);
}

.feature h3 {
  margin: 0;
  font-size: 1.12rem;
}

.feature p {
  margin: 0;
  color: rgba(30, 41, 59, 0.75);
  font-size: 1rem;
}

.site-footer {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(30, 41, 59, 0.6);
  margin-top: 2rem;
  padding: 1rem 0;
}

.beta-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}

.beta-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 2.5rem;
  width: min(420px, 100%);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.beta-modal.active .modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(92, 124, 250, 0.12);
  color: var(--primary);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(92, 124, 250, 0.2);
}

.modal-description {
  margin-top: 0.35rem;
  margin-bottom: 1.4rem;
  color: rgba(30, 41, 59, 0.8);
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

input[type="text"] {
  border-radius: 1rem;
  border: 1px solid rgba(92, 124, 250, 0.35);
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(92, 124, 250, 0.2);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.error-message {
  min-height: 1.1rem;
  color: #d64545;
  font-size: 0.9rem;
  margin: 0;
}

.fade-up {
  animation: fadeUp 700ms ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.fade-up.delay-1 {
  animation-delay: 120ms;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.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;
}

@media (max-width: 768px) {
  body {
    font-size: 1.02rem;
  }

  .site-header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding-inline: 1.25rem;
  }

  .brand {
    flex-direction: column;
    gap: 0.4rem;
  }

  .hero {
    text-align: center;
  }

  .hero-card {
    align-items: center;
    text-align: center;
  }

  .hero-brand {
    flex-direction: column;
    text-align: center;
  }

  .hero-lead,
  .hero-note {
    text-align: center;
  }

  .cta-group {
    width: 100%;
    justify-content: center;
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .page-wrap {
    padding: 1rem;
  }

  .hero-card {
    padding: 1.75rem;
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-lead {
    font-size: 1.18rem;
    line-height: 1.85;
  }

  .hero-note {
    font-size: 1.05rem;
  }

  .feature {
    background: #ffffff;
    border: 1px solid rgba(30, 41, 59, 0.08);
    box-shadow: 0 15px 30px rgba(30, 41, 59, 0.08);
  }

  .hero-title {
    order: -1;
  }

  .hero-brand {
    display: none;
  }

  .modal-card {
    padding: 2rem;
    width: 100%;
  }

  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

