/* ===== Base & Themes ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #f59e0b;
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.theme-ocean-blue { --primary: #2563eb; --primary-dark: #1e3a8a; --accent: #38bdf8; }
.theme-sunset-orange { --primary: #ea580c; --primary-dark: #9a3412; --accent: #fbbf24; }
.theme-forest-green { --primary: #15803d; --primary-dark: #14532d; --accent: #86efac; }
.theme-royal-purple { --primary: #7c3aed; --primary-dark: #4c1d95; --accent: #c084fc; }
.theme-rose-pink { --primary: #db2777; --primary-dark: #831843; --accent: #f9a8d4; }
.theme-charcoal-gold { --primary: #1f2937; --primary-dark: #111827; --accent: #f59e0b; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--primary); }
img { max-width: 100%; }

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}
.narrow { width: min(760px, 92%); }

/* ===== Header ===== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.nav a {
  margin-left: 1.25rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}
.nav a:hover { color: var(--primary); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 35%);
}
.hero .container { position: relative; z-index: 1; }
.text-center { text-align: center; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.1;
  margin: 0.6rem 0 1rem;
  font-weight: 800;
}
.lead {
  font-size: 1.25rem;
  max-width: 680px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}
.tagline {
  font-size: 1.5rem;
  opacity: 0.95;
  font-weight: 600;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}
.ai-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== Buttons ===== */
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  background: #fff;
  color: var(--primary);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-light {
  background: #fff;
  color: var(--primary);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-big {
  width: 100%;
  margin-top: 1.5rem;
  font-size: 1.15rem;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: #fff;
}
.btn-big:hover { background: var(--primary-dark); }

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.how-it-works { background: var(--surface); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.step {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.step-number {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.25rem;
}
.step h3 { margin: 0 0 0.5rem; }
.step p { margin: 0; color: var(--muted); }

/* ===== Form ===== */
.builder-form {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-grid .full-width { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}
input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* ===== Business page ===== */
.business-hero { padding: 4.5rem 0 3.5rem; }
.main-content { padding: 3rem 0; }
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.card h2 { margin-top: 0; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.service-item {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}
.service-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.contact-list li { margin-bottom: 0.5rem; }
.contact-list a { word-break: break-all; }

/* ===== Showcase ===== */
.showcase { background: var(--surface); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.biz-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s;
}
.biz-card:hover { transform: translateY(-4px); }
.biz-card h3 { margin: 0 0 0.25rem; color: var(--primary); }
.biz-card .category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.biz-card p { color: var(--muted); margin: 0 0 1rem; }
.biz-card .link { font-weight: 700; font-size: 0.9rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--text);
  color: #cbd5e1;
  text-align: center;
  padding: 2rem 0;
}
.site-footer a { color: #fff; }

/* ===== AI Overlay ===== */
.ai-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.ai-overlay.active { display: flex; }
.ai-overlay-box {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius);
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}
.ai-robot { font-size: 4rem; margin-bottom: 1rem; animation: bounce 1.5s infinite; }
.ai-overlay-box h3 { margin: 0 0 1rem; }
.ai-log {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 3rem;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.btn-spinner {
  display: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading .btn-text { opacity: 0.8; }
.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Utilities ===== */
code {
  background: rgba(255,255,255,0.2);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
}
