:root {
  --bg: #050507;
  --surface: #0d0d12;
  --surface-2: #15151d;
  --surface-3: #1e1e28;
  --text: #f7f7f9;
  --text-muted: #9a9aa8;
  --accent: #5b8aff;
  --accent-2: #a855f7;
  --accent-glow: rgba(91,138,255,0.35);
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 720px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5,5,7,0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(91,138,255,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(91,138,255,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

.btn-lg {
  padding: 17px 30px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: 180px 0 130px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(91,138,255,0.18) 0%, rgba(168,85,247,0.08) 40%, transparent 70%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.hero-tag {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 960px;
  margin: 0 auto 30px;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 38px;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Sections */
.section {
  padding: 120px 0;
  position: relative;
}

.section-dark {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 18px;
}

.section-lead {
  color: var(--text-muted);
  text-align: center;
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 64px;
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Cards */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.15);
}

/* Problem stats */
.problem-card {
  text-align: center;
}

.problem-stat {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.problem-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Offer section */
.offer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.offer-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  position: relative;
  box-shadow: var(--shadow);
}

.offer-card.featured {
  border-color: var(--accent);
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
}

.offer-card h3 {
  font-size: 1.6rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.price {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-note {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
}

.offer-card ul {
  list-style: none;
  margin-bottom: 28px;
}

.offer-card li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.offer-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.plan-note {
  margin: 24px 0;
  padding: 16px;
  background: var(--surface-3);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.offer-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.side-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.side-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Badge */
.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Demo */
.demo-frame {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.demo-site {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  color: #111;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.demo-logo {
  font-weight: 700;
  color: #5b8aff;
}

.demo-nav span {
  margin-left: 18px;
  font-size: 0.8rem;
  color: #666;
}

.demo-hero {
  flex: 1;
  padding: 48px 32px;
  background: linear-gradient(135deg, #f8f6ff, #fff);
  text-align: center;
}

.demo-hero h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.demo-hero p {
  color: #555;
  margin-bottom: 22px;
}

.demo-btn {
  display: inline-block;
  background: #5b8aff;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.demo-chat {
  background: var(--surface-3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.chat-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.chat-body {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.chat-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  animation: fadeIn 0.4s ease;
}

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

.chat-message.bot {
  background: var(--surface-2);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-message.user {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border);
}

.chat-input input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.9rem;
}

.chat-input button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.5;
}

.demo-caption {
  text-align: center;
  color: var(--text-muted);
  margin-top: 28px;
  font-size: 0.95rem;
}

.demo-caption a {
  color: var(--accent);
  font-weight: 500;
}

.demo-caption a:hover {
  color: var(--accent-2);
}

/* Services */
.service-grid {
  align-items: stretch;
}

.service-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.15);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.service-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
  flex: 1;
}

/* About */
#about p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 18px;
  text-align: center;
}

/* Form */
.contact-form {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 17px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,138,255,0.12);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 20px;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: modalIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-content h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.modal-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.modal-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.modal-content p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.modal-content ul {
  list-style: none;
  margin-bottom: 24px;
}

.modal-content li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-muted);
}

.modal-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.modal-note {
  background: var(--surface-3);
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 900px) {
  .offer-grid,
  .demo-frame {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 150px 0 100px;
  }

  .section {
    padding: 90px 0;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .price {
    font-size: 3rem;
  }

  .problem-stat {
    font-size: 3rem;
  }
}
