/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --accent: #6c63ff;
  --accent-h: #8b84ff;
  --text: #e8e8f0;
  --text2: #9090a8;
  --border: rgba(255,255,255,0.08);
  --card-bg: rgba(255,255,255,0.04);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Screens ── */
.screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
}

.container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

/* ── Screen 1: Hero ── */
.screen-hero {
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(108,99,255,0.18) 0%, transparent 70%), var(--bg);
  flex-direction: column;
  text-align: center;
  padding-top: 124px;
}

.hero-content { max-width: 680px; }

.badge {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--accent-h);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.hero-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text2);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text2);
  font-size: 20px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Screen 2: Value ── */
.screen-value {
  background: var(--bg2);
}

.section-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: -0.5px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(108,99,255,0.3); }

.card-icon {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Screen 3: CTA ── */
.screen-cta {
  background: radial-gradient(ellipse 60% 50% at 50% 80%, rgba(108,99,255,0.12) 0%, transparent 70%), var(--bg);
}

.cta-inner {
  text-align: center;
}

.cta-title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.cta-sub {
  color: var(--text2);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.trust {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dot { opacity: 0.4; }

/* ── Widget Overlay ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  padding: 0 0 0 0;
  backdrop-filter: blur(4px);
}
.overlay.hidden { display: none; }

@media (min-width: 600px) {
  .overlay {
    align-items: center;
  }
}

.widget-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

@media (min-width: 600px) {
  .widget-box {
    border-radius: 20px;
    max-height: 540px;
  }
}

.widget-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.15s;
  z-index: 2;
}
.widget-close:hover { color: var(--text); }

.widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.widget-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.widget-name {
  font-weight: 600;
  font-size: 15px;
}

.widget-status {
  font-size: 12px;
  color: #4ade80;
}

.widget-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.msg-bot {
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 4px 16px 16px 16px;
  align-self: flex-start;
}

.msg-user {
  background: var(--accent);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  align-self: flex-end;
}

.msg-typing {
  background: rgba(108,99,255,0.08);
  border: 1px solid var(--border);
  border-radius: 4px 16px 16px 16px;
  align-self: flex-start;
  color: var(--text2);
  font-style: italic;
}

.widget-input-area {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.widget-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  min-height: 42px;
  max-height: 120px;
}
.widget-input:focus { border-color: rgba(108,99,255,0.5); }
.widget-input::placeholder { color: var(--text2); }

.widget-send {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.widget-send:hover { background: var(--accent-h); }

.btn-messenger {
  flex: 1;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-messenger:hover, .btn-messenger.active {
  border-color: var(--accent);
  background: rgba(108,99,255,0.12);
  color: var(--accent-h);
}

.messenger-buttons { display: flex; gap: 8px; }

/* ── Site Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.site-logo { height: 40px; width: auto; }

/* ── Screen 2 content ── */
.section-title { max-width: 760px; margin-left: auto; margin-right: auto; margin-bottom: 40px; }

.section-lead {
  font-size: 18px;
  color: var(--text2);
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
  line-height: 1.7;
}

.section-body {
  font-size: 16px;
  color: var(--text2);
  max-width: 680px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.service-list {
  max-width: 640px;
  margin: 0 auto 28px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-list li {
  padding: 13px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s;
}
.service-list li:hover { border-color: rgba(108,99,255,0.3); }
.service-list li::before { content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

.cta-center { text-align: center; margin-top: 36px; }

/* ── Footer ── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-logo { height: 34px; width: auto; opacity: 0.75; }
.footer-copy { font-size: 13px; color: var(--text2); }
.footer-links { display: flex; gap: 20px; font-size: 13px; }
.footer-links a { color: var(--accent-h); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
