/* Static landing — matches frontend/app/page.tsx */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  background: #0a0a0a;
  color: #e5e5e5;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
}

::selection {
  background: rgba(59, 130, 246, 0.3);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #3b82f6;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.6; }
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  align-items: center;
}

.nav-link {
  color: #a3a3a3;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #fff;
}

.nav-btn {
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-btn:hover {
  background: #e5e5e5;
}

/* ── Hero ── */
.hero {
  padding: 10rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 9999px;
  filter: blur(120px);
  pointer-events: none;
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 500;
  color: #60a5fa;
  margin-bottom: 2rem;
}

.badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

.hero-br {
  display: none;
}

@media (min-width: 768px) {
  .hero-br { display: block; }
}

.hero-gradient {
  background: linear-gradient(to right, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #a3a3a3;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
  .hero-desc { font-size: 1.25rem; }
}

/* ── Input + Terminal ── */
.input-block {
  max-width: 36rem;
  margin: 0 auto;
}

.input-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.input-wrapper:focus-within {
  border-color: rgba(59, 130, 246, 0.5);
}

.input-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
}

.input-prefix {
  padding-left: 0.75rem;
  color: #737373;
  font-size: 0.875rem;
  user-select: none;
}

@media (max-width: 640px) {
  .input-prefix { display: none; }
}

.input-form input {
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  min-width: 0;
  color: #fff;
  font-size: 0.875rem;
}

.input-form input::placeholder {
  color: #525252;
}

.input-form input:disabled {
  opacity: 0.5;
}

.input-btn {
  flex-shrink: 0;
  background: #2563eb;
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.input-btn:hover:not(:disabled) {
  background: #3b82f6;
}

.input-btn:disabled {
  background: rgba(37, 99, 235, 0.5);
  cursor: not-allowed;
}

.btn-arrow {
  width: 16px;
  height: 16px;
}

.btn-text-loading {
  display: none;
}

.input-btn.is-loading .btn-text-default {
  display: none;
}

.input-btn.is-loading .btn-text-loading {
  display: inline;
}

.terminal-wrap {
  height: 0;
  overflow: hidden;
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.terminal-wrap.open {
  height: 260px;
}

.terminal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  height: 260px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 1rem 1rem 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  margin-left: 0.5rem;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #525252;
}

.terminal-body {
  padding: 0 1rem 1rem;
  height: calc(260px - 3.5rem);
  overflow-y: auto;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.6;
}

.terminal-line {
  margin-bottom: 0.25rem;
  opacity: 0;
  animation: terminalFade 0.15s ease-out forwards;
}

@keyframes terminalFade {
  to { opacity: 1; }
}

.terminal-line.neutral { color: #a3a3a3; }
.terminal-line.blue { color: #60a5fa; }
.terminal-line.green { color: #4ade80; }
.terminal-line.cyan { color: #22d3ee; }
.terminal-line.muted { color: #737373; }

.terminal-cursor {
  display: inline-block;
  width: 6px;
  height: 14px;
  background: rgba(74, 222, 128, 0.8);
  border-radius: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% { opacity: 0; }
}

.input-hint {
  font-size: 0.75rem;
  color: #737373;
  margin: 1rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.input-hint.hidden {
  display: none;
}

.hint-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.input-error {
  font-size: 0.75rem;
  color: #f87171;
  margin: 0.75rem 0 0;
}

.input-error:empty {
  display: none;
}

/* ── Sections ── */
.section {
  padding: 6rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-dark {
  background: #0d0d0d;
}

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 56rem;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
}

.section-title.center {
  margin-bottom: 3rem;
}

.section-desc {
  color: #a3a3a3;
  margin: 0;
}

/* Features */
.feature-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon {
  width: 24px;
  height: 24px;
}

.feature-icon.blue { color: #60a5fa; }
.feature-icon.purple { color: #c084fc; }
.feature-icon.green { color: #34d399; }

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.75rem;
}

.feature-desc {
  color: #a3a3a3;
  line-height: 1.6;
  font-size: 0.875rem;
  margin: 0;
}

/* Steps */
.steps-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

.step-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.step-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: 0.1em;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin: 0.5rem 0;
}

.step-desc {
  font-size: 0.875rem;
  color: #a3a3a3;
  line-height: 1.6;
  margin: 0;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.highlight {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  background: #3b82f6;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
}

.pricing-tier {
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0 0.5rem;
}

.pricing-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
}

.pricing-mo {
  font-size: 1rem;
  color: #737373;
  font-weight: 400;
  margin-left: 0.25rem;
}

.pricing-sub {
  font-size: 0.875rem;
  color: #a3a3a3;
  margin: 0.5rem 0 2rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #d4d4d4;
  margin-bottom: 1rem;
}

.pricing-features .check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: #525252;
  position: relative;
}

.pricing-features .check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pricing-features .check.blue {
  background: #3b82f6;
}

.pricing-btn {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.pricing-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pricing-btn.primary {
  background: #2563eb;
  color: #fff;
}

.pricing-btn.primary:hover {
  background: #3b82f6;
}

/* FAQ */
.faq-inner {
  max-width: 48rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem;
}

.faq-a {
  font-size: 0.875rem;
  color: #a3a3a3;
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.875rem;
  color: #737373;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; }
}

.footer-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .footer-links { margin-top: 0; }
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

/* ═══════════════════════════════════════════
   Coming Soon page
   ═══════════════════════════════════════════ */

.cs-page {
  min-height: 100vh;
  background: #0a0a0a;
}

.cs-hero {
  padding: 7rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.cs-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
  border-radius: 9999px;
  pointer-events: none;
}

.cs-content {
  max-width: 28rem;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 10;
}

.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 1.5rem;
  animation: csFloat 3s ease-in-out infinite;
}

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

.cs-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.cs-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #a3a3a3;
  margin: 0 0 2rem;
}

.cs-subtitle strong {
  color: #60a5fa;
  font-weight: 600;
}

/* ── Telegram phone frame ── */
.tg-phone {
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #181818;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;
  text-align: left;
  position: relative;
}

.tg-phone-notch {
  width: 120px;
  height: 24px;
  background: #0a0a0a;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}

.tg-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.6rem;
  background: #1e1e1e;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tg-avatar-icon {
  width: 20px;
  height: 20px;
  color: #fff;
}

.tg-header-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tg-header-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.tg-header-status {
  font-size: 0.7rem;
  color: #4ade80;
}

.tg-header-icons {
  display: flex;
  gap: 1rem;
}

.tg-icon {
  width: 18px;
  height: 18px;
  color: #737373;
}

.tg-body {
  height: 380px;
  overflow-y: auto;
  padding: 0.75rem 0.75rem 0.5rem;
  scroll-behavior: smooth;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.tg-date-pill {
  text-align: center;
  margin: 0.5rem 0 1rem;
}

.tg-date-pill::after {
  content: attr(id);
  display: none;
}

.tg-date-pill {
  font-size: 0.7rem;
  color: #737373;
  background: rgba(255,255,255,0.05);
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.tg-msg {
  display: flex;
  margin-bottom: 0.5rem;
  animation: msgSlide 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.tg-msg-lead {
  justify-content: flex-start;
}

.tg-msg-ghost {
  justify-content: flex-end;
}

.tg-msg-bubble {
  max-width: 82%;
  padding: 0.55rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  position: relative;
  word-wrap: break-word;
}

.tg-msg-bubble.tg-msg-lead {
  background: #2a2a2a;
  color: #e5e5e5;
  border-bottom-left-radius: 4px;
}

.tg-msg-bubble.tg-msg-ghost {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.tg-msg-time {
  display: block;
  text-align: right;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.25rem;
}

.tg-msg-bubble.tg-msg-lead .tg-msg-time {
  color: rgba(255,255,255,0.25);
}

/* Typing indicator */
.tg-typing {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
}

.tg-typing.visible {
  display: flex;
}

.tg-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #525252;
  animation: typingBounce 1.2s ease-in-out infinite;
}

.tg-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.tg-typing-dot:nth-child(3) { animation-delay: 0.3s; }

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

.tg-footer {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #1e1e1e;
}

.tg-input-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #2a2a2a;
  border-radius: 1.25rem;
  padding: 0.5rem 0.75rem;
}

.tg-input-placeholder {
  flex: 1;
  font-size: 0.8rem;
  color: #525252;
}

.tg-clip, .tg-mic {
  color: #525252;
  flex-shrink: 0;
}

/* Result banner */
.cs-result {
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.cs-result.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cs-result-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(74, 222, 128, 0.2);
  background: rgba(74, 222, 128, 0.06);
  text-align: left;
}

.cs-result-icon {
  width: 28px;
  height: 28px;
  color: #4ade80;
  flex-shrink: 0;
}

.cs-result-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4ade80;
}

.cs-result-detail {
  display: block;
  font-size: 0.75rem;
  color: #a3a3a3;
  margin-top: 0.15rem;
}

/* CTA / email form */
.cs-cta {
  margin-top: 2rem;
}

.cs-cta-text {
  font-size: 0.9rem;
  color: #a3a3a3;
  margin: 0 0 1rem;
}

.cs-email-form {
  display: flex;
  gap: 0.5rem;
  max-width: 26rem;
  margin: 0 auto;
}

.cs-email-input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.cs-email-input:focus {
  border-color: rgba(59, 130, 246, 0.5);
}

.cs-email-input::placeholder {
  color: #525252;
}

.cs-email-btn {
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  background: #2563eb;
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.cs-email-btn:hover {
  background: #3b82f6;
}

.cs-email-success {
  display: none;
  font-size: 0.85rem;
  color: #4ade80;
  margin-top: 0.75rem;
}

.cs-email-success.visible {
  display: block;
}

.cs-back {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: #525252;
  text-decoration: none;
  transition: color 0.2s;
}

.cs-back:hover {
  color: #a3a3a3;
}
