:root {
  --bg: #fff8f8;
  --text: #222;
  --muted: #777;
  --card: #fff;
  --border: #eee;
  --brand: #d92b2b;
  --brand-dark: #b82121;
  --notice-bg: #fff6f6;
  --notice-border: #ffd6d6;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: block;
  overflow-x: hidden;
}

.container {
  width: min(92vw, 440px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  text-align: center;
  box-sizing: border-box;
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--brand);
  box-shadow: 0 8px 24px rgba(217, 43, 43, 0.25);
  object-fit: cover;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(217, 43, 43, 0.25);
  }
  50% {
    box-shadow: 0 8px 32px rgba(217, 43, 43, 0.4);
  }
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

h1.hero-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
  line-height: 1.2;
}

p.hero-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.chat-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.chat-bubble {
  background: #f0f0f0;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 4px;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.5;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

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

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

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

.cta-block {
  position: relative;
  text-align: center;
}

.cta {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  border-radius: 16px;
  padding: 18px 24px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all .3s ease;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(217, 43, 43, 0.3);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta:hover::before {
  width: 300px;
  height: 300px;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 28px rgba(217, 43, 43, 0.4);
}

.cta:active {
  transform: translateY(0) scale(1);
}

.cta-icon {
  font-size: 20px;
  position: relative;
  z-index: 1;
}

.footer {
  font-size: 11px;
  color: #999;
  margin: 16px 0 0;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  animation: fadeIn .3s ease;
}

.modal-overlay.show {
  display: block;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 440px);
  max-height: 85vh;
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-sizing: border-box;
  z-index: 9999;
  overflow-y: auto;
  animation: slideUp .3s ease;
}

.modal.show {
  display: block;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text);
  transition: background .2s ease;
}

.modal-close:hover {
  background: var(--border);
}

.modal-close:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
  text-align: center;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
  text-align: center;
}

.screenshot {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.screenshot video,
.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.steps {
  margin: 0 0 20px;
  padding-left: 22px;
  text-align: left;
}

.steps,
.steps * {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.steps li {
  margin: 10px 0;
  line-height: 1.6;
  font-size: 15px;
  color: #333;
}

.steps li::marker {
  font-weight: 700;
  color: var(--brand);
}

.browser-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 16px;
  text-align: left;
}

.notice-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.notice-text {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

.notice-text strong {
  display: block;
  color: var(--brand);
  margin-bottom: 2px;
  font-size: 14px;
}

/* MEDIA QUERIES */
@media (max-width:360px) {
  .container {
    width: 94vw;
    padding: 20px 12px;
  }

  h1.hero-title {
    font-size: 28px;
  }

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

  .cta {
    font-size: 16px;
    padding: 18px;
  }

  .steps li {
    font-size: 14px;
  }
}

@media (min-width:480px) {
  .container {
    width: min(88vw, 460px);
  }
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
