/* =====================================================
   SM Connect — Stylesheet
   ===================================================== */

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --accent: #06b6d4;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --green: #10b981;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.center { text-align: center; }

.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn-full, .btn.full { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }

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

.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

/* ---------- Announcement bar ---------- */
.announce-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 500;
}
.announce-bar a { text-decoration: underline; font-weight: 700; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.nav-links { display: flex; gap: 28px; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 3px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(79, 70, 229, 0.08), transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(6, 182, 212, 0.08), transparent 50%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.pill {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -1px;
}
.highlight {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 20px 0 28px;
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 520px;
}
.signup-form { display: flex; gap: 12px; max-width: 480px; }
.signup-form input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.signup-form input:focus { border-color: var(--primary); }
.form-msg { margin-top: 12px; color: var(--green); font-weight: 600; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
  font-size: 0.86rem;
  color: var(--ink-faint);
  font-weight: 500;
}
.hero-trust span:first-child { color: #f59e0b; }

/* Hero visual */
.hero-visual { position: relative; }
.flow-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative;
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.flow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}
.flow-row strong { display: block; font-size: 0.95rem; }
.flow-row small { color: var(--ink-faint); font-size: 0.78rem; }
.flow-arrow {
  text-align: center;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.4;
}
.app-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}
.dot {
  width: 10px; height: 10px;
  background: #f59e0b;
  border-radius: 50%;
  margin-left: auto;
}
.dot.pulse { animation: pulse 1.5s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}
.check {
  margin-left: auto;
  color: var(--green);
  font-weight: 800;
  font-size: 1.05rem;
}
.flow-badge {
  position: absolute;
  bottom: -14px;
  right: 22px;
  background: var(--ink);
  color: #a5f3fc;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}
.float-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.chip-1 { top: -22px; left: -18px; animation: floaty 4s ease-in-out infinite; }
.chip-2 { bottom: -18px; left: 30px; animation: floaty 6s ease-in-out infinite reverse; }

/* ---------- Stats ---------- */
.stats { padding: 46px 0; border-block: 1px solid var(--border); background: var(--bg-soft); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat h3 { font-size: 2.2rem; font-weight: 900; color: var(--primary); }
.stat p { color: var(--ink-soft); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.08rem; }

/* How it works */
.how-it-works { background: var(--bg-soft); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
}
.step-icon { font-size: 2.2rem; margin-bottom: 16px; }
.step-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s;
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.feature-card.wide { grid-column: span 2; background: linear-gradient(135deg, var(--primary-light), #fdf4ff); border: none; }
.feature-icon { font-size: 1.9rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 0.92rem; }

/* Integrations marquee */
.integrations { overflow: hidden; background: var(--bg-soft); }
.marquee { overflow: hidden; padding: 8px 0; }
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scroll 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.app-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.app-chip .app-icon { width: 34px; height: 34px; font-size: 0.85rem; border-radius: 8px; }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  font-weight: 600;
  color: var(--ink-soft);
}
.save-tag {
  background: #d1fae5;
  color: #047857;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 6px;
}
.switch { position: relative; width: 52px; height: 28px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.25s;
}
.slider::before {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(24px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: scale(1.03);
}
.badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-desc { color: var(--ink-faint); font-size: 0.9rem; }
.price { font-size: 2.8rem; font-weight: 900; margin: 16px 0 22px; }
.price span { font-size: 1rem; font-weight: 500; color: var(--ink-faint); }
.price-card ul { flex: 1; margin-bottom: 26px; }
.price-card li {
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.price-card li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-soft); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.t-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stars { color: #f59e0b; letter-spacing: 3px; }
.t-card blockquote { color: var(--ink-soft); font-size: 0.97rem; flex: 1; }
.t-card figcaption strong { color: var(--ink); }
.t-card figcaption { font-size: 0.88rem; }

/* ---------- FAQ ---------- */
.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .chev { transition: transform 0.25s; color: var(--ink-faint); }
.faq-list details[open] .chev { transform: rotate(180deg); }
.faq-list details p {
  padding: 0 24px 20px;
  color: var(--ink-soft);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary), #7c3aed 55%, var(--accent));
  color: #fff;
  padding: 84px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 900; }
.cta-band p { margin: 14px 0 30px; opacity: 0.9; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cbd5e1; padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p { margin-top: 16px; font-size: 0.92rem; color: #94a3b8; max-width: 300px; }
.footer h4 { color: #fff; margin-bottom: 18px; font-size: 0.98rem; }
.footer a {
  display: block;
  padding: 5px 0;
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  font-size: 0.85rem;
  color: #64748b;
}

/* =====================================================
   BUILDER PAGE
   ===================================================== */
.builder-page { background: var(--bg-soft); height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

.builder-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 22px;
  flex-shrink: 0;
}
.wf-name {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-soft);
  outline: none;
  width: 280px;
  transition: border-color 0.2s, background 0.2s;
}
.wf-name:focus { border-color: var(--primary); background: #fff; }
.builder-nav-actions { display: flex; gap: 10px; }

.builder-layout {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.app-sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 18px;
  overflow-y: auto;
}
.app-sidebar h3 { font-size: 0.95rem; margin-bottom: 12px; }
#appSearch {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 14px;
  outline: none;
}
#appSearch:focus { border-color: var(--primary); }
.app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  transition: all 0.15s;
}
.app-item:hover { background: var(--primary-light); border-color: var(--primary); }
.app-item small { display: block; color: var(--ink-faint); font-weight: 400; font-size: 0.76rem; }

/* Canvas */
.canvas-wrap { overflow-y: auto; padding: 36px 20px; }
.canvas {
  max-width: 480px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.connector {
  width: 2px;
  height: 34px;
  background: var(--border);
  margin-inline: auto;
}
.flow-node {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  position: relative;
  animation: popIn 0.3s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.92) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.trigger-node { border-color: var(--primary); }
.node-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  font-size: 1.2rem;
  background: var(--bg-soft);
  flex-shrink: 0;
}
.node-body small { color: var(--ink-faint); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.6px; }
.node-body strong { display: block; }
.node-remove {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--ink-faint);
  cursor: pointer;
  line-height: 1;
}
.node-remove:hover { color: #ef4444; }
.empty-hint {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
  padding: 30px 10px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  margin-top: 34px;
}

/* Log panel */
.log-panel {
  background: #fff;
  border-left: 1px solid var(--border);
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.log-panel h3 { font-size: 0.95rem; margin-bottom: 12px; }
.log-empty { color: var(--ink-faint); font-size: 0.88rem; }
.log-entry {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.84rem;
  animation: popIn 0.25s ease;
}
.log-entry.ok { border-left: 4px solid var(--green); }
.log-entry.run { border-left: 4px solid #f59e0b; }
.log-entry strong { display: block; }
.log-entry small { color: var(--ink-faint); }
.log-summary { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 0.95rem; color: var(--green); }

/* =====================================================
   AUTH PAGES
   ===================================================== */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(79, 70, 229, 0.12), transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(6, 182, 212, 0.12), transparent 50%),
    var(--bg-soft);
  padding: 24px;
}
.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 44px 40px;
}
.auth-logo { justify-content: center; margin-bottom: 26px; }
.auth-card h1 { font-size: 1.55rem; font-weight: 800; text-align: center; }
.auth-sub { text-align: center; color: var(--ink-soft); margin: 8px 0 26px; font-size: 0.95rem; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form input {
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s;
}
.auth-form input:focus { border-color: var(--primary); }
.auth-form .form-msg { text-align: center; }
.auth-alt { text-align: center; margin-top: 24px; font-size: 0.92rem; color: var(--ink-soft); }
.auth-alt a { color: var(--primary); font-weight: 600; }

/* =====================================================
   DASHBOARD
   ===================================================== */
.app-page { background: var(--bg-soft); min-height: 100vh; display: flex; flex-direction: column; }
.dash-nav { display: flex; align-items: center; gap: 22px; font-weight: 500; color: var(--ink-soft); }
.dash-nav a:hover, .dash-nav a.active { color: var(--primary); }
.dash-user { color: var(--ink-faint); font-size: 0.9rem; padding-left: 14px; border-left: 1px solid var(--border); }

.dash-main { padding: 48px 0 80px; flex: 1; }
.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.dash-head h1 { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.5px; }
.dash-head p { color: var(--ink-soft); margin-top: 6px; }

.dash-empty {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 70px 30px;
  text-align: center;
}
.dash-empty h2 { margin: 12px 0 6px; }
.dash-empty p { color: var(--ink-soft); margin-bottom: 26px; }

.wf-table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow-x: auto;
}
.wf-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.wf-table th, .wf-table td {
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.wf-table thead th {
  background: var(--bg-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-faint);
}
.wf-table tbody tr:last-child td { border-bottom: none; }
.wf-table tbody tr:hover { background: #fafbff; }

.btn-sm { padding: 7px 14px; font-size: 0.83rem; border-width: 1px; border-radius: 8px; }
.row-actions { display: flex; gap: 8px; white-space: nowrap; }
.danger { color: #ef4444; }
.status-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}
.status-published { background: #d1fae5; color: #047857; }
.status-draft { background: #fef3c7; color: #b45309; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card.wide { grid-column: span 2; }
  .builder-layout { grid-template-columns: 220px 1fr; }
  .log-panel { display: none; }
}

@media (max-width: 860px) {
  .nav-links, .nav-actions .btn-ghost {
    display: none;
  }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
  }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; }
  .stats-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .signup-form { flex-direction: column; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.wide { grid-column: span 1; }
  .stats-grid, .steps-grid, .footer-grid { grid-template-columns: 1fr; }
  .builder-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .app-sidebar { border-right: none; border-bottom: 1px solid var(--border); max-height: 220px; }
  .wf-name { width: 130px; }
  .auth-card { padding: 34px 24px; }
}
