/* ============================================================
   Convorizz.ai — static marketing site (Cloudflare Pages)
   Visual tokens mirror nextjs_space/app/globals.css so the
   look matches https://app.convorizz.ai/
   ============================================================ */

:root {
  /* Brand (violet) — hue 262, sat 80% */
  --brand-50:  hsl(262, 80%, 97%);
  --brand-100: hsl(262, 80%, 93%);
  --brand-500: hsl(262, 80%, 50%);
  --brand-600: hsl(262, 80%, 45%);
  --brand-700: hsl(262, 80%, 38%);

  /* Accent (magenta) — hue 340, sat 85% */
  --accent-500: hsl(340, 85%, 50%);

  /* Semantic */
  --success:     hsl(142, 76%, 36%);
  --warning:     hsl(38, 92%, 50%);
  --info:        hsl(199, 89%, 48%);
  --destructive: hsl(0, 84%, 60%);

  /* Surfaces / text */
  --foreground:        hsl(222.2, 84%, 4.9%);
  --muted-foreground:  hsl(215.4, 16.3%, 46.9%);
  --card-bg:           #ffffff;
  --border:            hsl(214.3, 31.8%, 91.4%);

  /* Brand gradient (used in CTA card) */
  --gradient-brand: linear-gradient(135deg, var(--brand-500), var(--accent-500));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--foreground);
  line-height: 1.6;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-50) 50%, var(--brand-100) 100%);
  min-height: 100vh;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 520px; text-align: center; padding: 4rem 1rem; }

/* ===== Header ===== */
.site-header {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--foreground);
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.2;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.btn-primary:hover { background: var(--brand-700); }

.btn-outline {
  border-color: var(--border);
  background: #fff;
  color: var(--foreground);
}
.btn-outline:hover { background: #f8fafc; }

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}
.btn-ghost:hover { background: rgba(15, 23, 42, 0.05); }

.btn-secondary {
  background: #fff;
  color: var(--brand-700);
}
.btn-secondary:hover { background: hsl(0, 0%, 95%); }

/* ===== Hero ===== */
.hero { padding: 4rem 1.25rem 3rem; text-align: center; }
.hero-inner { max-width: 56rem; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}
.accent { color: var(--brand-600); }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Sections ===== */
.section { padding: 4rem 1.25rem; }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head h2 {
  font-size: clamp(1.75rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: var(--foreground);
  letter-spacing: -0.01em;
}
.section-lead {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 40rem;
  margin: 0 auto;
}

/* ===== Cards / grid ===== */
.grid { display: grid; gap: 2rem; }
.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.narrow-grid { max-width: 56rem; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  background: var(--card-bg);
  border: 0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}
.card p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

/* Icon circles (mirror Tailwind w-12 h-12 bg-{color}-100 rounded-lg) */
.icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.icon-brand        { background: hsl(262, 80%, 93%); color: var(--brand-600); }
.icon-info         { background: hsl(199, 89%, 48%, 0.1); color: var(--info); }
.icon-success      { background: hsl(142, 76%, 36%, 0.1); color: var(--success); }
.icon-warning      { background: hsl(38, 92%, 50%, 0.1); color: var(--warning); }
.icon-warning-soft { background: hsl(38, 92%, 50%, 0.2); color: var(--warning); }
.icon-destructive  { background: hsl(0, 84%, 60%, 0.1); color: var(--destructive); }

/* ===== "How it works" steps ===== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .steps     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-3   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .steps     { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps-3   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.steps li { text-align: center; }
.step-num {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: var(--brand-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.steps h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.steps p {
  margin: 0;
  color: var(--muted-foreground);
}

/* ===== CTA card ===== */
.cta-card {
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 0.75rem;
  padding: 4rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.12);
}
.cta-card h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 700;
  margin: 0 0 1rem;
}
.cta-card p {
  font-size: 1.125rem;
  margin: 0 0 2rem;
  opacity: 0.9;
}

/* ===== Footer ===== */
.site-footer {
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}
.brand-footer {
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--foreground);
  margin: 0 0 0.75rem;
}

/* ===== Maintenance fallback page ===== */
.maintenance {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.muted { color: var(--muted-foreground); }
