:root {
  --purple: #75559f;
  --cyan: #57c4f2;
  --ink: #1d1d1b;
  --gradient: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
  --page-gradient: linear-gradient(135deg, #8fd8f5 0%, #6fa3dd 40%, #7d5aa8 75%, #6a4a92 100%);
  --font-display: "Sora", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--page-gradient);
  background-attachment: fixed;
  color: #fff;
  font-family: var(--font-body);
}

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header.hero {
  padding: 56px 32px 20px;
  text-align: center;
}

.logo-wordmark {
  height: 60px;
  filter: drop-shadow(0 4px 24px rgba(87, 196, 242, 0.35));
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  margin: 20px 0 8px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.hero p.subtitle {
  margin: 0 auto;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.badge-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}

.badge svg {
  width: 17px;
  height: 17px;
  color: var(--cyan);
  flex-shrink: 0;
}

main.chat-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px 24px 56px;
}

.chat-card {
  width: min(880px, 100%);
  height: min(680px, 78vh);
  border-radius: 22px;
  padding: 2px;
  background: var(--gradient);
  box-shadow: 0 24px 70px rgba(87, 196, 242, 0.22), 0 4px 24px rgba(117, 85, 159, 0.28);
}

.chat-card-inner {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #12121a;
  display: flex;
  flex-direction: column;
}

.chat-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #e8e8f0;
}

.chat-card-header .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 12px var(--cyan);
}

.chat-card iframe {
  border: 0;
  width: 100%;
  flex: 1;
}

.device-card {
  width: 168px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(29, 20, 48, 0.18);
}

.device-illustration {
  width: 100%;
  height: auto;
}

.device-card span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
}

footer {
  text-align: center;
  padding: 24px 18px 32px;
}

.footer-frame {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-frame span {
  font-weight: 700;
  color: #fff;
}

.footer-frame:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1180px) {
  .device-card {
    display: none;
  }
}

@media (max-width: 640px) {
  header.hero { padding: 40px 16px 16px; }
  .chat-card { border-radius: 18px; }
  .badge-row { gap: 8px; }
  .badge { padding: 7px 13px; font-size: 0.78rem; }
}
