/* =============================================
   n8ngo — Managed n8n Hosting
   style.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Reset & Base ─────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-base:      #0f172a;
  --bg-surface:   #1e293b;
  --bg-elevated:  #263248;
  --border:       #334155;
  --border-light: #475569;

  --green:        #10b981;
  --green-dim:    #059669;
  --cyan:         #06b6d4;
  --cyan-dim:     #0891b2;

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--green); }

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

/* ─── Utilities ─────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ─── Fade-in on scroll ─────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ─── Nav ───────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--green); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover {
  background: var(--green-dim);
  color: #0f172a;
  transform: translateY(-1px);
}

/* ─── Hero ──────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  text-align: center;
}

/* Grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

/* Glow orb */
.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  position: relative;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
  opacity: 0.9;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition);
}
.btn-secondary:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

/* Domain pill */
.hero-domain {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9375rem;
  color: var(--text-primary);
  animation: float 4s ease-in-out infinite;
}
.hero-domain .domain-part { color: var(--cyan); }
.hero-domain .lock-icon {
  color: var(--green);
  font-size: 0.875rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ─── How it works ──────────────────────────── */
.how {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.step-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #0f172a;
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Connector line between steps (desktop) */
@media (min-width: 768px) {
  .how-grid {
    position: relative;
  }
  .how-grid::before {
    content: '';
    position: absolute;
    top: 52px;
    left: calc(33.3% - 0px);
    right: calc(33.3% - 0px);
    height: 1px;
    background: linear-gradient(90deg, var(--green), var(--cyan));
    opacity: 0.4;
    pointer-events: none;
  }
}

/* ─── Features / Included ───────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.feature-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}
.feature-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Comparison Table ──────────────────────── */
.comparison {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 0.9375rem;
}

thead tr {
  background: var(--bg-elevated);
}

th {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
th:first-child { text-align: left; }

th.col-highlight {
  color: var(--text-primary);
  background: rgba(16, 185, 129, 0.1);
  position: relative;
}
th.col-highlight::after {
  content: '★ Recomendado';
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  text-align: center;
  vertical-align: middle;
}
td:first-child {
  text-align: left;
  color: var(--text-primary);
  font-weight: 500;
}
tr:last-child td { border-bottom: none; }

td.col-highlight {
  background: rgba(16, 185, 129, 0.05);
  color: var(--text-primary);
  font-weight: 600;
}

.check { color: var(--green); font-size: 1.05rem; }
.cross { color: var(--text-muted); }
.partial { color: #f59e0b; }

/* ─── Free section ──────────────────────────── */
.free-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-md);
  padding: 2rem 2.25rem;
  margin-top: 2rem;
}

.free-box p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.steps-list .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.code-block {
  display: inline-block;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--cyan);
  margin: 0.15rem 0;
}

.free-box .tagline {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 0;
  margin-bottom: 0;
}

/* ─── Promo banner — hero ───────────────────── */
.promo-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(6,182,212,0.12));
  border: 1px solid rgba(16,185,129,0.4);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.promo-fire { font-size: 1.1rem; flex-shrink: 0; }

.promo-cta-link {
  display: inline-block;
  background: var(--green);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.promo-cta-link:hover {
  background: var(--green-dim);
  color: #0f172a;
  transform: translateY(-1px);
}

/* ─── Promo banner — before form ───────────── */
.promo-form-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  max-width: 680px;
  margin: 2rem auto 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(6,182,212,0.07));
  border: 1.5px solid rgba(16,185,129,0.45);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.promo-form-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.promo-form-banner strong { color: var(--text-primary); }


/* ─── Pre-registration ──────────────────────── */
.precadastro {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.form-wrapper {
  max-width: 680px;
  margin: 2.5rem auto 0;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem 1.5rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 24px 64px rgba(0,0,0,0.4);
}

/* ─── Footer ────────────────────────────────── */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}
.footer-logo span { color: var(--green); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-secondary); }

.footer-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ─── Responsive ────────────────────────────── */
@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }

  .hero { padding: 4rem 0 3rem; }

  .how-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .form-wrapper {
    padding: 1.25rem 1rem 0.75rem;
  }

  .step-card { padding: 1.25rem; }
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
