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

html, body {
  background: #1e2235;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #f0f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  top: -260px;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(110,142,255,0.16) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 560px;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.8s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.pulse-mark {
  width: clamp(48px, 10vw, 68px);
  height: clamp(48px, 10vw, 68px);
  border-radius: 50%;
  background: linear-gradient(135deg, #8fa9ff, #6e8eff);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 6px 24px rgba(110, 142, 255, 0.5);
  animation: float 3.6s ease-in-out infinite;
}

.pulse-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(110, 142, 255, 0.6);
  animation: ripple 2.4s ease-out infinite;
}

@keyframes ripple {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(2.1); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

h1 {
  font-size: clamp(46px, 11vw, 80px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: #f0f4ff;
  margin: 0;
}

.tagline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: clamp(12px, 2.2vw, 14px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b93b8;
  margin-bottom: 36px;
}

.dot {
  color: #6e8eff;
  line-height: 1;
  animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

.preview {
  background: linear-gradient(160deg, #272c42 0%, #232741 100%);
  border: 1px solid #323a55;
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.preview::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(110,142,255,0.18) 0%, transparent 62%);
  pointer-events: none;
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  position: relative;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d9a3;
  box-shadow: 0 0 10px #00d9a3;
  animation: livePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.preview-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b93b8;
  font-weight: 600;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.bubble {
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 80%;
  animation: bubbleIn 0.6s ease both;
  text-align: left;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bubble.left {
  background: #323a55;
  color: #dde4ff;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  animation-delay: 0.35s;
}

.bubble.right {
  background: #6e8eff;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  animation-delay: 0.7s;
}

.bubble.typing {
  background: #323a55;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  display: flex;
  gap: 4px;
  padding: 14px 16px;
  animation-delay: 1.05s;
}

.bubble.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8b93b8;
  animation: typing 1.4s ease-in-out infinite;
}

.bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

.badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #323a55;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  background: #1e2235;
  border: 1px solid #323a55;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: #b3bce0;
  font-weight: 600;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d9a3;
  flex-shrink: 0;
}

.badge:nth-child(2) .badge-dot { background: #6e8eff; }
.badge:nth-child(3) .badge-dot { background: #ff6b9d; }

.section-title {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #8b93b8;
  font-weight: 700;
  margin-bottom: 16px;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 10px;
  background: #272c42;
  border: 1px solid #323a55;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  color: #dde4ff;
  font-family: inherit;
  font-size: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease,
              background-color 0.2s ease, box-shadow 0.2s ease,
              color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.platform:hover {
  transform: translateY(-4px);
  border-color: #6e8eff;
  background: #2e3450;
  box-shadow: 0 8px 24px rgba(110, 142, 255, 0.22);
  color: #ffffff;
}

.platform:active {
  transform: translateY(-1px);
}

.platform:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.platform:disabled:hover {
  transform: none;
  border-color: #323a55;
  background: #272c42;
  box-shadow: none;
  color: #dde4ff;
}

.platform svg {
  width: 30px;
  height: 30px;
  display: block;
}

.platform-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.footer {
  font-size: 12px;
  color: #6e7699;
  letter-spacing: 0.06em;
}

.footer span { color: #8b93b8; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: #272c42;
  border: 1px solid #6e8eff;
  color: #e6eeff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 24px rgba(110, 142, 255, 0.3);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.hide {
  opacity: 0;
  transform: translate(-50%, 20px);
}

@media (max-width: 440px) {
  .platforms { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .platform { padding: 16px 8px; }
  .platform svg { width: 26px; height: 26px; }
  .tagline { gap: 8px; letter-spacing: 0.18em; }
  .hero { gap: 14px; }
  .preview { padding: 18px; border-radius: 18px; }
  .bubble { font-size: 13px; padding: 10px 14px; }
  .badges { gap: 6px; }
  .badge { padding: 6px 10px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}