/* ------------------------------
   FlowHubly · Modern Clean CSS (Redesigned 2025)
   Alinhado com cores do Frontend App
   ------------------------------ */

:root {
  /* Cores baseadas no Frontend App */
  --primary-light: #007BFF;
  --primary-dark: #4dabf7;

  --background-light: #F8F9FA;
  --background-dark: #121212;

  --surface-light: #FFFFFF;
  --surface-dark: #1E1E1E;

  --text-light: #212529;
  --text-dark: #E9ECEF;

  --text-muted-light: #6C757D;
  --text-muted-dark: #ADB5BD;

  --border-light: #DEE2E6;
  --border-dark: #495057;

  --success: #28A745;
  --error: #DC3545;
  --warning: #FFC107;

  /* Dynamic colors (change with theme) */
  --primary: var(--primary-light);
  --bg: var(--background-light);
  --surface: var(--surface-light);
  --text: var(--text-light);
  --text-muted: var(--text-muted-light);
  --border: var(--border-light);

  /* Layout */
  --max-width: 1200px;
  --border-radius: 12px;
  --border-radius-lg: 20px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  --font-size-5xl: 48px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  color-scheme: light dark;
}

/* Dark theme */
html[data-theme="dark"] {
  --primary: var(--primary-dark);
  --bg: var(--background-dark);
  --surface: var(--surface-dark);
  --text: var(--text-dark);
  --text-muted: var(--text-muted-dark);
  --border: var(--border-dark);

  color-scheme: dark light;
}

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
  opacity: 0.8;
}

/* Layout components */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

section {
  padding: var(--space-8) 0;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

html[data-theme="dark"] header {
  background-color: rgba(18, 18, 18, 0.95);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

/* Logo - aumentado conforme solicitado */
.logo img {
  height: 40px;
  width: auto;
  transition: transform 0.2s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .logo img {
    height: 48px;
  }
}

/* Header controls */
.header-right {
  display: flex;
  align-items: center;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--border);
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Language selector */
.lang-selector {
  position: relative;
}

.lang-selector > button {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: var(--font-size-sm);
  transition: all 0.2s ease;
}

.lang-selector > button:hover {
  background: var(--border);
}

.lang-selector ul {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: var(--space-2);
  display: none;
  z-index: 100;
}

.lang-selector:focus-within ul {
  display: block;
}

.lang-selector li a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--space-2);
  color: var(--text);
  transition: background-color 0.2s ease;
}

.lang-selector li a:hover {
  background: var(--primary);
  color: white;
}

/* Hero section */
#hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-9) 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

#hero h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-5) 0;
  color: var(--text);
}

@media (min-width: 768px) {
  #hero h1 {
    font-size: var(--font-size-5xl);
  }
}

#hero p {
  font-size: var(--font-size-xl);
  color: var(--text-muted);
  margin: 0 0 var(--space-6) 0;
}

/* Waitlist section */
.waitlist-section {
  margin-top: var(--space-6);
}

.waitlist-form .form-group {
  display: grid;
  gap: var(--space-4);
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .waitlist-form .form-group {
    grid-template-columns: 1fr 1fr auto;
    max-width: 600px;
  }
}

/* Form inputs */
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background: var(--surface);
  color: var(--text);
  font-size: var(--font-size-base);
  transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

input::placeholder {
  color: var(--text-muted);
}

/* Buttons */
.waitlist-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.waitlist-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
  opacity: 1;
}

.waitlist-button:active {
  transform: translateY(0);
}

.waitlist-button span {
  white-space: nowrap;
}

/* Messages */
.waitlist-message {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--border-radius);
  display: none;
}

.waitlist-message.success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.waitlist-message.error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

.waitlist-stats {
  margin-top: var(--space-4);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.micro-trust {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* Preview section - mobile mockups */
#preview {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#preview h2 {
  text-align: center;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin: 0 0 var(--space-8) 0;
  color: var(--text);
}

.preview-mobile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  justify-items: center;
}

@media (min-width: 768px) {
  .preview-mobile-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

.mobile-preview-item {
  display: flex;
  justify-content: center;
}

.mobile-mockup {
  width: 280px;
  height: 559px;
  background: var(--text);
  border-radius: 25px;
  padding: 8px;
  box-shadow: var(--shadow-xl);
  transition: transform 0.3s ease;
}

.mobile-mockup:hover {
  transform: scale(1.05);
}

.mobile-screen {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.preview-placeholder {
  text-align: center;
  padding: var(--space-6);
}

.preview-placeholder span {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.preview-placeholder p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
}

.demo-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
}

/* Integrations section */
#integrations h2 {
  text-align: center;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin: 0 0 var(--space-8) 0;
  color: var(--text);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 0 0 var(--space-3) 0;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  margin: 0 0 var(--space-4) 0;
}

.link {
  color: var(--primary);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.link:hover {
  opacity: 0.8;
}

/* Tool cards with logos */
.tool-card {
  text-align: center;
}

.tool-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4) auto;
  display: block;
  object-fit: contain;
}

/* CTA Secondary section */
.cta-secondary-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: var(--space-9) 0;
}

.cta-secondary-content h2 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin: 0 0 var(--space-4) 0;
  color: var(--text);
}

.cta-secondary-content p {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  margin: 0 0 var(--space-6) 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ section */
#faq h2 {
  text-align: center;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin: 0 0 var(--space-8) 0;
  color: var(--text);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  transition: all 0.2s ease;
}

details:hover {
  box-shadow: var(--shadow);
}

details[open] {
  box-shadow: var(--shadow-lg);
}

summary {
  font-weight: 600;
  font-size: var(--font-size-lg);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: var(--font-size-xl);
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

details p {
  margin: var(--space-4) 0 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0;
  text-align: center;
}

footer .container {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  justify-items: center;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Contact page styles */
.contact-page-section {
  padding: var(--space-9) 0;
  min-height: 70vh;
}

.contact-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-9) auto;
}

.contact-header h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin: 0 0 var(--space-4) 0;
  color: var(--text);
}

.contact-header p {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-container .form-group {
  margin-bottom: var(--space-6);
}

.contact-form-container label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
}

.contact-form-container input,
.contact-form-container select,
.contact-form-container textarea {
  width: 100%;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background: var(--surface);
  color: var(--text);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  transition: all 0.2s ease;
}

.contact-form-container input:focus,
.contact-form-container select:focus,
.contact-form-container textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.contact-form-container select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 16px;
  padding-right: var(--space-7);
}

.contact-form-container textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.contact-form-container .waitlist-button {
  margin-top: var(--space-4);
  width: 100%;
}

@media (min-width: 768px) {
  .contact-form-container .waitlist-button {
    width: auto;
    min-width: 200px;
  }
}

/* Form validation states */
.contact-form-container .input-error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.contact-form-container .input-success {
  border-color: var(--success) !important;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-light: #000000;
    --border-dark: #FFFFFF;
  }
}

/* ====================
   N8N PAGE SPECIFIC STYLES
   ==================== */

/* N8N Hero Simple */
.n8n-hero-simple {
  background: var(--bg);
  padding: var(--space-8) 0;
}

.n8n-hero-simple .hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.n8n-hero-simple .hero-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-5);
}

.n8n-hero-simple h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 var(--space-4);
  color: var(--text);
}

.n8n-hero-simple p {
  font-size: var(--font-size-lg);
  margin: 0 0 var(--space-6);
  color: var(--text-muted);
  line-height: 1.6;
}

.n8n-hero-simple .hero-features {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin: var(--space-6) 0;
  flex-wrap: wrap;
}

.n8n-hero-simple .feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--surface);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.n8n-hero-simple .feature-icon {
  font-size: 20px;
}

.n8n-hero-simple .feature-item span {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text);
}


@media (max-width: 767px) {
  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  .feature-item {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Comparison Section - Real Table */
.comparison-section {
  background: var(--surface);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
}

.comparison-table-wrapper {
  margin-top: var(--space-8);
  overflow-x: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: var(--font-size-sm);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.comparison-table th {
  background: var(--bg);
  font-weight: 600;
  position: relative;
}

.comparison-table th:first-child {
  width: 25%;
  border-right: 1px solid var(--border);
}

.comparison-table th.basic-column {
  width: 37.5%;
  border-right: 1px solid var(--border);
}

.comparison-table th.enhanced-column {
  width: 37.5%;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(0, 123, 255, 0.9) 100%);
  color: white;
}

.column-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
}

.column-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.n8n-logo,
.flowhubly-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.plus-icon {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: white;
  opacity: 0.8;
}

.column-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.best-choice-badge {
  position: absolute;
  top: -20px;
  right: var(--space-4);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #8B4513;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  z-index: 20;
  border: 3px solid #FFD700;
  transform: rotate(-8deg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.category-cell {
  font-weight: 700;
  color: var(--primary);
  background: var(--bg);
  border-right: 1px solid var(--border);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: right;
}

.basic-cell {
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  background: rgba(220, 53, 69, 0.03);
  padding: var(--space-4);
}

.enhanced-cell {
  color: var(--text);
  font-weight: 500;
  background: rgba(40, 167, 69, 0.05);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.enhanced-cell::before {
  content: '✓';
  color: #28a745;
  font-weight: 700;
  font-size: var(--font-size-base);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(40, 167, 69, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover .basic-cell {
  background: rgba(220, 53, 69, 0.08);
}

.comparison-table tr:hover .enhanced-cell {
  background: rgba(40, 167, 69, 0.1);
}

@media (max-width: 767px) {
  .comparison-table-wrapper {
    border-radius: var(--border-radius);
  }

  .comparison-table {
    font-size: var(--font-size-xs);
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-3);
  }

  .column-header {
    gap: var(--space-1);
  }

  .column-logos {
    gap: var(--space-1);
  }

  .n8n-logo,
  .flowhubly-logo {
    height: 24px;
  }

  .plus-icon {
    font-size: var(--font-size-sm);
  }

  .column-title {
    font-size: var(--font-size-base);
  }

  .best-choice-badge {
    width: 60px;
    height: 60px;
    font-size: 8px;
    top: -15px;
    right: var(--space-2);
    transform: rotate(-5deg);
    border: 2px solid #FFD700;
  }

  .category-cell {
    font-size: 11px;
  }

  .basic-cell {
    padding: var(--space-3);
  }

  .enhanced-cell {
    padding: var(--space-3);
    gap: var(--space-2);
  }

  .enhanced-cell::before {
    width: 16px;
    height: 16px;
    font-size: var(--font-size-xs);
  }
}

/* How It Works Section */
.how-it-works-section {
  background: var(--bg);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.step-item {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  position: absolute;
  top: -24px;
  left: var(--space-6);
  box-shadow: var(--shadow);
}

.step-content {
  margin-top: var(--space-5);
}

.step-content h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 0 0 var(--space-3);
  color: var(--text);
}

.step-content p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.step-visual {
  margin-top: var(--space-5);
  display: flex;
  justify-content: center;
}

/* Phone Mockup */
.phone-mockup {
  width: 180px;
  height: 320px;
  background: #1a1a1a;
  border-radius: 24px;
  padding: 12px;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #333;
  border-radius: 2px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-ui {
  padding: var(--space-4);
  flex: 1;
}

.ui-header {
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.ui-item {
  padding: var(--space-3);
  margin: var(--space-2) 0;
  border-radius: var(--border-radius);
  background: var(--bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ui-item.active {
  background: var(--primary);
  color: white;
}

/* Config Panel */
.config-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-5);
  width: 280px;
  box-shadow: var(--shadow);
}

.config-field {
  margin-bottom: var(--space-4);
}

.config-field:last-child {
  margin-bottom: 0;
}

.config-field label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.config-field input,
.config-field select {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background: var(--surface);
  color: var(--text);
  font-size: var(--font-size-sm);
}

.config-field input:focus,
.config-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Test Result */
.test-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-5);
  width: 280px;
  box-shadow: var(--shadow);
  text-align: center;
}

.test-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--border-radius);
}

.test-status.success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.test-status .status-icon {
  font-size: 18px;
}

.enable-alerts {
  background: var(--primary);
  color: white;
  border: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.enable-alerts:hover {
  background: rgba(0, 123, 255, 0.9);
}

/* Security Section */
.security-section {
  background: var(--bg);
}

.security-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.security-text {
  max-width: 500px;
}

.section-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.security-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 var(--space-4);
  color: var(--text);
}

.security-text p {
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.security-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.security-feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.security-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.security-details h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  color: var(--text);
}

.security-details p {
  color: var(--text-muted);
  margin: 0;
  font-size: var(--font-size-sm);
}

/* Security Diagram */
.security-diagram {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-6);
  background: var(--bg);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border);
}

.diagram-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  min-width: 120px;
}

.diagram-icon {
  font-size: 2rem;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.provider-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.diagram-item span:first-of-type {
  font-weight: 600;
  color: var(--text);
}

.diagram-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.diagram-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.arrow-line {
  width: 2px;
  height: 40px;
  background: var(--primary);
  position: relative;
}

.arrow-line::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--primary);
}

.arrow-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 767px) {
  /* Mobile spacing reduction for hero and comparison sections */
  .n8n-hero-simple {
    margin-bottom: -90px !important;
  }

  .comparison-section {
    position: relative;
    z-index: 1;
  }

  .security-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    display: grid;
  }

  .security-content .security-visual {
    order: 2 !important;
  }

  .security-content .security-text {
    order: 1 !important;
  }

  .steps-container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .step-number {
    position: static;
    margin: 0 auto var(--space-4);
  }

  .step-content {
    margin-top: 0;
    text-align: center;
  }
}

/* N8N CTA Section */
.n8n-cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: var(--space-9) 0;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.n8n-cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 var(--space-4);
  color: var(--text);
}

.n8n-cta-section p {
  font-size: var(--font-size-lg);
  margin: 0 0 var(--space-6);
  color: var(--text-muted);
}

.waitlist-button.primary.large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-muted);
}


@media (max-width: 767px) {
  .cta-features {
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
  }
}

/* ========================================
   GDPR COOKIE CONSENT STYLES (ENTERPRISE)
   ======================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  padding: var(--space-4);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.cookie-text h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text);
}

.cookie-text p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cookie-actions .btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-actions .btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 90%, black);
  transform: translateY(-1px);
}

.cookie-actions .btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-actions .btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.cookie-actions .btn-link {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  padding: var(--space-2);
  cursor: pointer;
  font-size: var(--font-size-sm);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text);
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  padding: var(--space-2);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-button:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.modal-body {
  padding: var(--space-6);
  max-height: 50vh;
  overflow-y: auto;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cookie-category {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-4);
  transition: border-color 0.2s ease;
}

.cookie-category:hover {
  border-color: var(--accent);
}

.category-header {
  margin-bottom: var(--space-2);
}

.category-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.category-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  transition: all 0.2s ease;
}

.category-label input:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.category-label input:checked + .checkmark:after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.category-label input:disabled + .checkmark {
  opacity: 0.6;
  cursor: not-allowed;
}

.category-desc {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-top: 1px solid var(--border);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }

  .cookie-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .modal-content {
    width: 95%;
    margin: var(--space-4);
  }

  .modal-header,
  .modal-body,
  .modal-actions {
    padding: var(--space-4);
  }

  .modal-actions {
    flex-direction: column;
  }
}

/* Dark mode adjustments */
[data-theme="dark"] .cookie-banner {
  background: var(--surface);
  border-top-color: var(--border);
}

[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .modal-content {
  background: var(--surface);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* =======================
   N8N BENEFITS SECTION
   ======================= */
.n8n-benefits-section {
  padding: var(--space-12) 0;
  background: var(--bg);
  margin-bottom: var(--space-8);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.benefit-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.benefit-card:hover .icon-wrapper {
  transform: scale(1.1);
}

.benefit-icon {
  margin-bottom: var(--space-4);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.3s ease;
  position: relative;
}

.icon-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  border-radius: 16px;
  pointer-events: none;
}

.benefit-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 0 0 var(--space-3);
  color: var(--text);
  line-height: 1.3;
}

.benefit-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  font-size: var(--font-size-base);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .benefit-card {
    padding: var(--space-5);
  }

  .icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .benefit-card h3 {
    font-size: var(--font-size-lg);
  }
}

/* Dark theme adjustments */
[data-theme="dark"] .benefit-card {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .benefit-card:hover {
  border-color: var(--primary);
}

[data-theme="dark"] .icon-wrapper {
  background: var(--primary);
}

/* ================================
   TECHNICAL FEATURES SECTION (N8n)
   ================================ */

.technical-features-section {
  padding: var(--space-12) 0;
  background: var(--surface);
  margin-bottom: var(--space-8);
  border-top: 1px solid var(--border);
}

.technical-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.technical-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.technical-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.technical-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-secondary), var(--surface));
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.technical-icon .icon-wrapper {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.3);
}

.technical-header h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.technical-content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.technical-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  transition: all 0.2s ease;
}

.technical-feature:hover {
  background: var(--bg-tertiary);
  transform: translateX(4px);
}

.feature-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-text {
  flex: 1;
}

.feature-text strong {
  display: block;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.feature-text p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .technical-cards {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .technical-card {
    margin: 0 var(--space-2);
  }

  .technical-header {
    padding: var(--space-5);
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }

  .technical-icon .icon-wrapper {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .technical-header h3 {
    font-size: var(--font-size-lg);
  }

  .technical-content {
    padding: var(--space-5);
    gap: var(--space-4);
  }

  .technical-feature {
    padding: var(--space-3);
    gap: var(--space-3);
  }

  .feature-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

/* Dark theme adjustments */
[data-theme="dark"] .technical-card {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .technical-card:hover {
  border-color: var(--primary);
}

[data-theme="dark"] .technical-header {
  background: linear-gradient(135deg, var(--surface), var(--bg));
  border-bottom-color: var(--border);
}

[data-theme="dark"] .technical-feature {
  background: var(--bg);
}

[data-theme="dark"] .technical-feature:hover {
  background: var(--surface);
}