:root {
  --bg: #0c0e14;
  --bg-elevated: #141824;
  --bg-card: #1a1f2e;
  --border: rgba(255, 255, 255, 0.1);
  --text: #e8eaef;
  --text-muted: #9aa3b5;
  --accent: #7c5cff;
  --accent-hover: #9580ff;
  --accent-2: #3d8bfd;
  --success: #3dd68c;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --max: 1100px;
  --font: "Open Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 92, 255, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(61, 139, 253, 0.1), transparent);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: #fff;
}

.logo img,
.logo svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
}

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

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.08);
  color: #fff;
}

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

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--success);
  background: rgba(61, 214, 140, 0.12);
  border: 1px solid rgba(61, 214, 140, 0.3);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 32rem;
}

.meta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.hero-visual img {
  width: 100%;
  max-height: 420px;
  aspect-ratio: 1;
  object-fit: contain;
  background: #0f1219;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--border);
}

.section h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

/* Newsletter */
.newsletter-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 36rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.newsletter-form label {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.newsletter-form input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.newsletter-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

.form-msg {
  width: 100%;
  font-size: 0.9rem;
  margin: 0;
}

.form-msg.ok {
  color: var(--success);
}

/* Topic list */
.topic-list {
  margin: 0;
  padding: 0 0 0 1.25rem;
  columns: 2;
  gap: 0.5rem 2rem;
}

@media (max-width: 500px) {
  .topic-list {
    columns: 1;
  }
}

.topic-list li {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 3.5rem 0;
}

.cta-band .section-intro {
  margin-inline: auto;
}

/* Page header (inner pages) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.5rem;
}

/* Cards grid */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

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

/* Pricing */
.price-card {
  text-align: center;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.price {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  text-align: left;
}

.price-features li {
  padding: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.price-features li::before {
  content: "✓ ";
  color: var(--success);
}

/* Contact form */
.contact-form {
  max-width: 32rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Auth */
.auth-box {
  max-width: 400px;
  margin: 2rem auto 4rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.auth-box h1 {
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
}

.auth-box .sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Legal */
.legal {
  max-width: 42rem;
  padding-bottom: 3rem;
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer-grid strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-grid p,
.footer-grid a {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.25rem 0;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Floating CTA (mobile) */
.fab-cta {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 90;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }

  .nav-main.is-open {
    display: flex;
  }

  .nav-main .btn {
    margin-top: 0.5rem;
    text-align: center;
  }

  .fab-cta {
    display: inline-flex;
  }
}

/* Chat preview (homepage) */
.chat-preview {
  max-width: 28rem;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.chat-bubble {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 95%;
}

.chat-in {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.chat-out {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.35), rgba(61, 139, 253, 0.25));
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: var(--text);
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.75rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  color: #fff;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
