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

:root {
  --bg: #09090b;
  --bg-card: #18181b;
  --bg-card-hover: #1f1f23;
  --border: #27272a;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --green: #22c55e;
  --red: #71717a;
  --radius: 12px;
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

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

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.section__subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--sm { padding: 8px 16px; font-size: 0.875rem; }
.btn--lg { padding: 14px 28px; font-size: 1.05rem; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  box-shadow: 0 0 24px var(--primary-glow);
}

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

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

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.nav__logo:hover { color: var(--text); }
.nav__logo svg { color: var(--primary); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.nav__links a:hover { color: var(--text); }
.nav__links .btn { color: #fff; }

.nav__toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* ── Hero ─────────────────────────────────── */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.hero__stat { text-align: center; }
.hero__stat-value { display: block; font-size: 1.5rem; font-weight: 800; }
.hero__stat-label { font-size: 0.8rem; color: var(--text-secondary); }

/* ── Features ─────────────────────────────── */
.features {
  padding: 100px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: #3f3f46;
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── How it works ─────────────────────────── */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #0f0f12 100%);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 700px;
  margin: 0 auto;
}

.step {
  position: relative;
  padding-left: 64px;
}

.step__number {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 10px;
}

.code-block {
  background: #0a0a0c;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.7;
}

.code-block code { color: #e4e4e7; }
.code-keyword { color: #c084fc; }
.code-string { color: #34d399; }
.code-function { color: #60a5fa; }
.code-comment { color: #52525b; }
.code-tag { color: #f472b6; }

/* ── Preview / Configurator ───────────────── */
.preview {
  padding: 100px 0;
  background: linear-gradient(180deg, #0f0f12 0%, var(--bg) 100%);
}

.preview__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.preview__controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.control-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.control-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.control-input:focus { border-color: var(--primary); }
.control-input--sm { margin-top: 6px; padding: 8px 12px; font-size: 0.85rem; }

.control-colors {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.color-btn:hover { transform: scale(1.1); }
.color-btn.active { border-color: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.3); }

.color-picker {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: none;
  padding: 0;
}
.color-picker::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker::-webkit-color-swatch { border-radius: 50%; border: 2px solid var(--border); }

.control-toggle {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.toggle-btn {
  flex: 1;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.toggle-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Phone mockup */
.preview__widget-area {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 100px;
}

.preview__phone {
  width: 300px;
  height: 580px;
  background: #000;
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}

.phone__notch {
  width: 100px;
  height: 24px;
  background: #000;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: #fff;
}

.phone__screen[data-dark="true"] {
  background: #111;
}

/* Fake site inside phone */
.phone__site {
  height: 100%;
  padding: 36px 16px 16px;
}

.phone__site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  font-size: 11px;
  font-weight: 700;
  color: #333;
}

.phone__screen[data-dark="true"] .phone__site-nav { color: #ccc; }

.phone__site-nav-dots { display: flex; gap: 4px; }
.phone__site-nav-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ccc;
}
.phone__screen[data-dark="true"] .phone__site-nav-dots span { background: #444; }

.phone__site-hero { margin-bottom: 24px; }

.phone__site-block {
  background: #e5e5e5;
  border-radius: 4px;
}
.phone__screen[data-dark="true"] .phone__site-block { background: #222; }

/* Chat window inside phone */
.phone__chat {
  position: absolute;
  bottom: 60px;
  right: 8px;
  left: 8px;
  top: 36px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp 0.25s ease-out;
  z-index: 5;
}

.phone__screen[data-dark="true"] .phone__chat {
  background: #1a1a1a;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.phone__chat.hidden { display: none; }

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.phone__chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  color: #fff;
  border-radius: 16px 16px 0 0;
}

.phone__chat-title { font-size: 12px; font-weight: 700; }
.phone__chat-status { font-size: 9px; opacity: 0.8; }

.phone__chat-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
}
.phone__chat-close svg { width: 16px; height: 16px; fill: #fff; }

.phone__chat-messages {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone__chat-welcome {
  text-align: center;
  padding: 20px 8px;
}
.phone__chat-welcome svg { fill: var(--text-secondary); margin-bottom: 8px; }
.phone__chat-welcome p { font-size: 11px; color: #666; line-height: 1.5; }
.phone__screen[data-dark="true"] .phone__chat-welcome p { color: #999; }

.phone__msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.5;
  animation: msgFadeIn 0.3s ease-out;
}

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

.phone__msg--user {
  align-self: flex-end;
  color: #fff;
}

.phone__msg--bot {
  align-self: flex-start;
  background: #f1f1f1;
  color: #333;
}
.phone__screen[data-dark="true"] .phone__msg--bot {
  background: #2a2a2a;
  color: #ddd;
}

.phone__typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: #f1f1f1;
  border-radius: 12px;
}
.phone__screen[data-dark="true"] .phone__typing { background: #2a2a2a; }

.phone__typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #999;
  animation: typingBounce 1.4s infinite ease-in-out;
}
.phone__typing span:nth-child(2) { animation-delay: 0.2s; }
.phone__typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.phone__chat-suggestions {
  display: flex;
  gap: 6px;
  padding: 0 12px 8px;
  flex-wrap: wrap;
}

.phone__suggestion {
  padding: 5px 10px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
  color: #555;
  font-family: var(--font);
  transition: all 0.2s;
}
.phone__suggestion:hover { border-color: var(--primary); color: var(--primary); }
.phone__screen[data-dark="true"] .phone__suggestion { border-color: #444; color: #aaa; }
.phone__screen[data-dark="true"] .phone__suggestion:hover { border-color: var(--primary); color: var(--primary); }

.phone__chat-input {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid #eee;
  gap: 8px;
}
.phone__screen[data-dark="true"] .phone__chat-input { border-top-color: #333; }

.phone__chat-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 11px;
  background: transparent;
  color: #333;
  font-family: var(--font);
}
.phone__screen[data-dark="true"] .phone__chat-input input { color: #ccc; }

.phone__send-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.phone__send-btn svg { width: 14px; height: 14px; fill: #fff; }

/* FAB inside phone */
.phone__fab {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 6;
  transition: transform 0.2s;
}
.phone__fab:hover { transform: scale(1.08); }
.phone__fab svg { width: 22px; height: 22px; fill: #fff; }

.phone__fab--left {
  right: auto;
  left: 12px;
}

/* ── Pricing ──────────────────────────────── */
.pricing {
  padding: 100px 0;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px var(--primary-glow);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card__header {
  text-align: center;
  margin-bottom: 24px;
}

.pricing-card__header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card__price {
  font-size: 2.4rem;
  font-weight: 800;
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 20px;
}

.pricing-card__features li {
  padding: 8px 0;
  font-size: 0.9rem;
  padding-left: 28px;
  position: relative;
}

.pricing-card__features li::before {
  position: absolute;
  left: 0;
  font-size: 0.85rem;
}

.pricing-card__features li.yes { color: var(--text); }
.pricing-card__features li.yes::before { content: '\2713'; color: var(--green); }
.pricing-card__features li.no { color: var(--text-secondary); }
.pricing-card__features li.no::before { content: '\2717'; color: var(--red); }

.pricing-card__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ── FAQ ──────────────────────────────────── */
.faq {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #0f0f12 100%);
}

.faq__list {
  max-width: 700px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item summary {
  padding: 20px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.faq__item[open] summary::after {
  content: '-';
}

.faq__item p {
  padding-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq__item code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.85em;
}

/* ── CTA ──────────────────────────────────── */
.cta {
  padding: 80px 0;
}

.cta__inner {
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  padding: 64px 32px;
}

.cta__inner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta__inner p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ── Footer ───────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--text-secondary); }
.footer__links a:hover { color: var(--text); }

/* ── Terms & Conditions ──────────────────── */
.terms {
  padding: 140px 0 80px;
}

.terms__lang-toggle {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 240px;
  margin: 0 auto 48px;
}

.terms__lang-btn {
  flex: 1;
  padding: 10px 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.terms__lang-btn.active {
  background: var(--primary);
  color: #fff;
}

.terms__content {
  max-width: 740px;
  margin: 0 auto;
}

.terms__content.hidden {
  display: none;
}

.terms__content h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.terms__updated {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.terms__content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text);
}

.terms__content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.terms__content ul {
  list-style: none;
  margin-bottom: 12px;
  padding-left: 0;
}

.terms__content ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.terms__content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.terms__content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms__content a:hover {
  color: var(--primary-hover);
}

.terms__content strong {
  color: var(--text);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(12px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav__toggle { display: block; }

  .hero { padding: 120px 0 60px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__stats { gap: 28px; }

  .features__grid { grid-template-columns: 1fr; }

  .preview__layout { grid-template-columns: 1fr; }
  .preview__widget-area { position: static; order: -1; }

  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card--featured { order: -1; }

  .footer__inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}
