:root {
  --sgw-bg: #0f1419;
  --sgw-surface: #1a2332;
  --sgw-text: #e8edf4;
  --sgw-muted: #8b9cb3;
  --sgw-accent: #3b82f6;
  --sgw-accent-hover: #2563eb;
  --sgw-border: #2d3a4d;
  --sgw-success: #22c55e;
  --sgw-error: #ef4444;
  --sgw-radius: 12px;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
body.sgw-body { margin: 0; background: var(--sgw-bg); color: var(--sgw-text); min-height: 100vh; display: flex; flex-direction: column; }
.sgw-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; background: var(--sgw-surface); border-bottom: 1px solid var(--sgw-border); position: sticky; top: 0; z-index: 10; }
.sgw-brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--sgw-text); text-decoration: none; }
.sgw-logo { width: 2rem; height: 2rem; border-radius: 8px; background: var(--sgw-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.sgw-nav { display: flex; gap: 1rem; align-items: center; }
.sgw-nav a { color: var(--sgw-muted); text-decoration: none; font-size: .95rem; }
.sgw-nav a:hover { color: var(--sgw-text); }
.sgw-main { flex: 1; padding: 2rem 1.5rem; max-width: 1100px; margin: 0 auto; width: 100%; }
.sgw-footer { padding: 1.5rem; text-align: center; color: var(--sgw-muted); font-size: .875rem; border-top: 1px solid var(--sgw-border); }
.sgw-footer a { color: var(--sgw-accent); }

.sgw-hero { text-align: center; padding: 3rem 1rem; }
.sgw-hero-compact { padding: 2rem 1rem; }
.sgw-eyebrow { color: var(--sgw-accent); font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; }
.sgw-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.2; max-width: 800px; margin: .5rem auto 1rem; }
.sgw-lead { color: var(--sgw-muted); font-size: 1.125rem; max-width: 640px; margin: 0 auto 1.5rem; }
.sgw-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.sgw-btn { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.25rem; border-radius: var(--sgw-radius); font-weight: 600; text-decoration: none; border: none; cursor: pointer; font-size: 1rem; }
.sgw-btn-primary { background: var(--sgw-accent); color: #fff; }
.sgw-btn-primary:hover { background: var(--sgw-accent-hover); }
.sgw-btn-secondary { background: transparent; color: var(--sgw-text); border: 1px solid var(--sgw-border); }
.sgw-btn-block { width: 100%; }

.sgw-section { padding: 2.5rem 0; }
.sgw-section-alt { background: var(--sgw-surface); margin: 0 -1.5rem; padding: 2.5rem 1.5rem; border-radius: var(--sgw-radius); }
.sgw-section h2 { text-align: center; margin-bottom: 1.5rem; }
.sgw-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.sgw-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.sgw-card { background: var(--sgw-surface); border: 1px solid var(--sgw-border); border-radius: var(--sgw-radius); padding: 1.25rem; }
.sgw-card h3 { margin-top: 0; color: var(--sgw-accent); }
.sgw-list-check { list-style: none; padding: 0; }
.sgw-list-check li { padding: .5rem 0 .5rem 1.5rem; position: relative; }
.sgw-list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--sgw-success); }
.sgw-cta-enterprise { text-align: center; }

.sgw-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.sgw-plan-card { background: var(--sgw-surface); border: 1px solid var(--sgw-border); border-radius: var(--sgw-radius); padding: 1.5rem; display: flex; flex-direction: column; position: relative; }
.sgw-plan-featured { border-color: var(--sgw-accent); box-shadow: 0 0 0 1px var(--sgw-accent); }
.sgw-badge { position: absolute; top: -10px; right: 1rem; background: var(--sgw-accent); color: #fff; font-size: .75rem; padding: .25rem .5rem; border-radius: 4px; }
.sgw-table .sgw-badge { position: static; display: inline-block; }
.sgw-badge-muted { background: var(--sgw-border); color: var(--sgw-text); }
.sgw-plan-price { font-size: 2rem; font-weight: 700; margin: 1rem 0; }
.sgw-plan-price span { font-size: 1rem; font-weight: 400; color: var(--sgw-muted); }
.sgw-plan-iva { color: var(--sgw-muted); font-size: .875rem; }
.sgw-plan-card ul { flex: 1; text-align: left; padding-left: 1.25rem; margin-bottom: 1.5rem; }

.sgw-signup-wrap { max-width: 520px; margin: 0 auto; }
.sgw-signup-card { background: var(--sgw-surface); border: 1px solid var(--sgw-border); border-radius: var(--sgw-radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.sgw-input { width: 100%; padding: .65rem .75rem; border: 1px solid var(--sgw-border); border-radius: 8px; background: var(--sgw-bg); color: var(--sgw-text); }
.sgw-muted { color: var(--sgw-muted); text-align: center; }
.sgw-slug-preview { font-size: .875rem; }
.sgw-slug-preview.ok { color: var(--sgw-success); }
.sgw-slug-preview.bad { color: var(--sgw-error); }
.sgw-checkbox { display: flex; gap: .5rem; align-items: flex-start; font-size: .875rem; }
.sgw-alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.sgw-alert-error { background: rgba(239,68,68,.15); color: #fca5a5; }
.sgw-price-summary { font-size: .875rem; color: var(--sgw-muted); }

.sgw-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.sgw-table th, .sgw-table td { border: 1px solid var(--sgw-border); padding: .5rem .75rem; text-align: left; }
.sgw-legal { max-width: 720px; margin: 0 auto; line-height: 1.6; }
.sgw-legal h2 { margin-top: 2rem; }

.sgw-messages { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.sgw-message { background: var(--sgw-surface); border: 1px solid var(--sgw-border); border-radius: 8px; padding: 1rem; }
.sgw-message.internal { opacity: .85; border-style: dashed; }
.sgw-message header { font-size: .8rem; color: var(--sgw-muted); margin-bottom: .5rem; }
.sgw-inline-form { display: flex; gap: .5rem; margin-bottom: 1rem; }
.sgw-support-login { max-width: 400px; margin: 4rem auto; }
