/* ── Design tokens ── */
:root {
  --bg: #080810;
  --surface: #10101a;
  --surface-2: #16162a;
  --text: #f0f0f8;
  --muted: #9090a8;
  --border: #1e1e34;
  --accent: #7c6dfa;
  --accent-hover: #9a8dfb;
  --accent-soft: rgba(124, 109, 250, 0.15);
  --accent-glow: rgba(124, 109, 250, 0.25);
  --radius: 10px;
  --radius-lg: 16px;
}

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

html, body {
  font-family: "Inter", "SF Pro Display", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }

.content {
  width: min(1120px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
}

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
}

.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

.nav-cta {
  margin-left: 8px;
  font-size: 13px !important;
  padding: 8px 18px !important;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 9px 20px;
  font-size: 14px;
  font-family: inherit;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn:hover { border-color: var(--accent); color: var(--accent); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.15);
  color: var(--muted);
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius); }

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

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(124, 109, 250, 0.3);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-headline {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #ffffff 0%, #c4b8ff 60%, #9c8dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Divider ── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 0 72px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.3px;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Section typography ── */
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 56px;
}

/* ── Features ── */
.features-section { padding-bottom: 100px; }

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

.features-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(124, 109, 250, 0.4);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── How it works ── */
.how-section {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.step { position: relative; }

.step-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── CTA Banner ── */
.cta-banner { padding: 100px 0; }

.cta-banner-inner {
  background: linear-gradient(135deg, var(--surface-2) 0%, #1a1238 100%);
  border: 1px solid rgba(124, 109, 250, 0.3);
  border-radius: var(--radius-lg);
  padding: 72px 64px;
  text-align: center;
}

.cta-banner-inner h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.cta-banner-inner p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 36px;
}

/* ── Page hero ── */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 72px;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #c4b8ff 60%, #9c8dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
}

.page-hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
}

/* ── About page ── */
.about-body { padding-bottom: 80px; }

.about-block {
  max-width: 720px;
  margin-bottom: 56px;
}

.about-block h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.about-block p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-values { padding-bottom: 80px; }

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

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

.value-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--accent);
}

.value-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.about-cta {
  padding: 72px 0 100px;
  text-align: center;
}

.about-cta h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 28px;
}

/* ── Create page ── */
.create-features { padding-bottom: 80px; }

.create-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.create-feature-row.reverse { direction: rtl; }
.create-feature-row.reverse > * { direction: ltr; }

.create-feature-text h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.create-feature-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.create-feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 200px;
}

.visual-placeholder { font-size: 56px; }

/* ── Contact page ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  padding-bottom: 100px;
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

input, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 13px 16px;
  font: 15px/1.5 inherit;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

input::placeholder, textarea::placeholder { color: var(--muted); }

textarea { resize: vertical; }

.btn-row { display: flex; justify-content: flex-start; margin-top: 6px; }

.contact-info-col { padding-top: 8px; }

.contact-info-block { margin-bottom: 36px; }

.contact-info-block h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.contact-info-block p,
.contact-info-block a {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

.contact-info-block a:hover { color: var(--text); }

.link-accent { color: var(--accent); }
.link-accent:hover { color: var(--accent-hover); }

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
  align-items: start;
}

.footer-left .logo { font-size: 18px; letter-spacing: 3px; margin-bottom: 10px; }

.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 220px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 12px;
  color: var(--muted);
}

/* ── Page main ── */
.page-main { flex: 1; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .topbar { padding: 0 20px; }

  .nav-links { gap: 16px; font-size: 13px; }

  .features-grid,
  .steps-grid,
  .values-grid { grid-template-columns: 1fr 1fr; }

  .create-feature-row,
  .create-feature-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 32px; }

  .contact-layout { grid-template-columns: 1fr; gap: 48px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-right { text-align: left; grid-column: 1 / -1; }

  .cta-banner-inner { padding: 48px 32px; }
}

@media (max-width: 600px) {
  .content { width: calc(100% - 32px); }

  .topbar { height: auto; padding: 16px 16px; flex-wrap: wrap; gap: 14px; }

  .nav-links { width: 100%; gap: 12px; font-size: 12px; flex-wrap: wrap; }

  .hero { padding: 60px 0 50px; }

  .features-grid,
  .steps-grid,
  .values-grid { grid-template-columns: 1fr; }

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

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { flex-direction: column; gap: 24px; }

  .hero-actions { flex-direction: column; align-items: center; }
}
