
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  min-height: 100%;
  background: #0b0d12;
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #0b0d12;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.topbar {
  width: 100%;
  min-height: 64px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 18, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo span {
  opacity: 0.55;
}

.login-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.hero {
  width: 100%;
  min-height: 68vh;
  min-height: 68dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 620px;
}

.badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(42px, 12vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -2px;
}

.hero h1 span {
  opacity: 0.55;
}

.hero p {
  max-width: 520px;
  margin: 24px auto 30px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.6;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #0b0d12;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.primary-button:active {
  transform: scale(0.98);
}

.features {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.feature-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 30px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
  font-size: 14px;
}

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

.modal.show {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  padding: 28px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: #11141b;
  position: relative;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
}

.modal-box h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.modal-box > p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.62);
}

.modal-box input {
  width: 100%;
  height: 52px;
  margin-bottom: 12px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: none;
  background: #0b0d12;
  color: #ffffff;
}

.modal-box input:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.login-message {
  min-height: 22px;
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
}

footer {
  padding: 30px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

@media (max-width: 700px) {
  .topbar {
    padding: 10px 14px;
  }

  .logo {
    font-size: 22px;
  }

  .hero {
    min-height: auto;
    padding: 60px 18px 42px;
  }

  .hero h1 {
    font-size: clamp(42px, 15vw, 64px);
  }

  .hero p {
    font-size: 15px;
  }

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

  .feature-card {
    padding: 20px;
  }
}

@media (max-width: 380px) {
  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .features {
    padding-left: 14px;
    padding-right: 14px;
  }

  .primary-button {
    min-height: 50px;
  }
}

@supports (padding: max(0px)) {
  .topbar {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .hero {
    padding-bottom: max(42px, env(safe-area-inset-bottom));
  }

  footer {
    padding-bottom: max(30px, env(safe-area-inset-bottom));
  }
}
