:root {
  --background: 30 20% 98%;
  --foreground: 285 40% 20%;
  --card: 0 0% 100%;
  --card-foreground: 285 40% 20%;
  --popover: 0 0% 100%;
  --popover-foreground: 285 40% 20%;
  --primary: 295 37% 24%;
  --primary-foreground: 0 0% 100%;
  --secondary: 295 20% 94%;
  --secondary-foreground: 295 37% 24%;
  --muted: 295 10% 94%;
  --muted-foreground: 295 20% 45%;
  --accent: 295 50% 35%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;
  --border: 295 15% 88%;
  --input: 295 15% 88%;
  --ring: 295 37% 24%;
  --radius: 0.75rem;
  --glow-primary: 295 37% 24%;
  --glow-accent: 295 50% 35%;
  --gradient-start: 295 37% 30%;
  --gradient-end: 295 50% 45%;
}

.dark {
  --background: 285 20% 12%;
  --foreground: 30 20% 98%;
  --card: 285 18% 16%;
  --card-foreground: 30 20% 98%;
  --popover: 285 18% 16%;
  --popover-foreground: 30 20% 98%;
  --primary: 295 55% 70%;
  --primary-foreground: 285 20% 10%;
  --secondary: 285 15% 22%;
  --secondary-foreground: 30 20% 98%;
  --muted: 285 12% 25%;
  --muted-foreground: 285 12% 65%;
  --accent: 295 60% 75%;
  --accent-foreground: 285 20% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 30 20% 98%;
  --border: 285 12% 25%;
  --input: 285 12% 25%;
  --ring: 295 55% 70%;
  --glow-primary: 295 55% 70%;
  --glow-accent: 295 60% 75%;
  --gradient-start: 295 55% 70%;
  --gradient-end: 295 60% 75%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.text-gradient {
  background-image: linear-gradient(135deg, hsl(var(--gradient-start)), hsl(var(--gradient-end)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, hsl(var(--gradient-start)), hsl(var(--gradient-end)));
}

.bg-gradient-radial {
  background: radial-gradient(ellipse at center, hsl(var(--primary) / 0.08) 0%, transparent 70%);
}

.glass {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--border) / 0.5);
}

.glass-hover {
  transition: all 0.3s ease;
}

.glass-hover:hover {
  background: hsl(var(--card));
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 0 30px hsl(var(--glow-primary) / 0.08);
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.wave-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.linkedin-widget {
  position: fixed;
  top: 50%;
  transform: translate(0, -50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 12px;
  background: #0a66c2;
  color: #ffffff;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease;
}

.linkedin-widget:hover {
  background: #004182;
}

.linkedin-widget.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.linkedin-widget.is-right {
  right: 0;
  border-radius: 8px 0 0 8px;
}

.linkedin-widget.is-left {
  left: 0;
  border-radius: 0 8px 8px 0;
}

.linkedin-widget.is-hidden.is-right {
  transform: translate(100%, -50%);
}

.linkedin-widget.is-hidden.is-left {
  transform: translate(-100%, -50%);
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(61, 22, 100, 0.35);
  z-index: 60;
}

.cookie-banner {
  width: 100%;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.12);
}

.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: hsl(var(--foreground));
}

.cookie-text {
  margin: 0;
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  flex: 1 1 320px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.cookie-btn.primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.cookie-btn.secondary {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

.section-separator {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  margin: 16px 0;
  min-height: 40px;
  transition: padding 0.5s ease;
}

.section-separator::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    hsl(var(--border)) 12%,
    hsl(var(--border)) 88%,
    transparent
  );
  top: 50%;
  transform: translateY(-50%);
}

.section-separator.is-active {
  padding: 12px 0;
}

.separator-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: fit-content;
  max-width: calc(100% - 80px);
  text-align: center;
  padding: 10px 18px;
  border-radius: 18px;
  background: hsl(var(--secondary) / 0.85);
  border: 1px solid hsl(var(--border));
  box-shadow: 0 10px 25px hsl(var(--primary) / 0.08);
  opacity: 0;
  max-height: 1px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease, padding 0.5s ease;
  box-sizing: border-box;
  pointer-events: none;
}

.section-separator.is-active .separator-panel {
  opacity: 1;
  max-height: 80px;
  padding: 10px 18px;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.separator-question {
  font-size: 14px;
  font-weight: 600;
  color: hsl(var(--foreground));
  white-space: nowrap;
  min-width: auto;
  max-width: none;
  overflow: visible;
}

.separator-options {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: auto;
  overflow: visible;
}

.separator-option {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  overflow: visible;
  width: max-content;
  max-width: none;
  min-height: 32px;
  flex: 0 0 auto;
}

.separator-option:hover {
  border-color: hsl(var(--primary));
  transform: translateY(-1px);
  background: hsl(var(--card-foreground) / 0.02);
}

.separator-thanks {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: hsl(var(--primary));
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.section-separator.is-thanking .separator-question,
.section-separator.is-thanking .separator-options {
  display: none;
}

.section-separator.is-thanking .separator-thanks {
  opacity: 1;
  transform: scale(1);
}

.separator-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 35px;
  height: 35px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 50%;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  --progress-angle: 0deg;
  --separator-progress-fill: hsl(var(--secondary) / 0.85);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.separator-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--separator-progress-fill) var(--progress-angle),
    transparent 0deg
  );
}

.section-separator.is-active .separator-progress {
  opacity: 0;
}

.separator-progress.is-collapsing {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.03);
}

.separator-progress.is-hidden {
  display: none;
}

@media (max-width: 640px) {
  .separator-panel {
    width: fit-content;
    max-width: calc(100% - 24px);
    border-radius: 14px;
  }

  .section-separator.is-active .separator-panel {
    padding: 4px 10px;
  }
}

@media (max-width: 720px) {
  .separator-question {
    font-size: 12px;
  }

  .separator-option {
    font-size: 12px;
    padding: 3px 10px;
  }
}

@media (max-width: 520px) {
  .separator-panel {
    flex-direction: column;
    max-width: calc(100% - 16px);
  }

  .separator-options {
    flex-wrap: wrap;
  }

  .separator-question,
  .separator-thanks {
    width: 100%;
    text-align: center;
    max-width: 100%;
  }
}

.lead-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 14, 18, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lead-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lead-modal {
  width: min(640px, 100%);
  background: hsl(var(--card));
  border-radius: 24px;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 30px 80px hsl(var(--foreground) / 0.2);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  --intent-block-height: 56px;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s ease;
}

.lead-modal-overlay.is-open .lead-modal {
  transform: translateY(0) scale(1);
}

.lead-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  position: relative;
  text-align: center;
}

.lead-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.lead-modal-description {
  margin-top: 6px;
  font-size: 15px;
  color: hsl(var(--muted-foreground));
}

.lead-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.lead-modal-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.lead-modal-form.is-hidden {
  display: none;
}

.lead-modal.is-success .lead-modal-header {
  display: none;
}

.lead-modal-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 520px;
}

.lead-modal-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.lead-modal-label {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.lead-modal-optional {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}

.lead-modal-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.lead-modal-input-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: hsl(var(--muted-foreground));
}

.lead-modal-input {
  border-radius: 12px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 12px 14px 12px 38px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  --email-validity: 0;
  width: 100%;
}

.lead-modal-input:focus {
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

.lead-modal-input.is-checked {
  border-color: hsl(calc(120 * var(--email-validity)) 70% 45%);
}

.lead-modal-hint {
  font-size: 13px;
  color: hsl(var(--muted-foreground));
  display: none;
  align-items: center;
  gap: 6px;
}

.lead-modal-hint-icon {
  width: 14px;
  height: 14px;
}

.lead-modal-hint-free {
  color: hsl(32 85% 45%);
}

.lead-modal-hint.is-visible {
  display: inline-flex;
}

.lead-modal-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: hsl(var(--foreground));
  background: hsl(var(--secondary) / 0.5);
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
  max-width: 520px;
  margin-bottom: var(--intent-block-height);
}

.lead-modal-intents {
  display: grid;
  gap: 10px;
  width: 100%;
}

.lead-modal-intent {
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--intent-block-height);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.lead-modal-intent-icon {
  width: 18px;
  height: 18px;
  color: hsl(var(--muted-foreground));
}

.lead-modal-intent:hover {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.05);
}

.lead-modal-intent.is-selected {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
}

.lead-modal-intent.is-selected .lead-modal-intent-icon {
  color: hsl(var(--primary));
}

.lead-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin-top: var(--intent-block-height);
}

.lead-modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 32px 12px 8px;
}

.lead-modal-success.is-visible {
  display: flex;
}

.lead-modal-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
  font-size: 28px;
  font-weight: 700;
}

.lead-modal-success-title {
  font-size: 20px;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.lead-modal-success-desc {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  max-width: 420px;
}

.lead-modal-submit {
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lead-modal-submit:disabled {
  cursor: not-allowed;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.lead-modal-submit:not(:disabled):hover {
  background: hsl(var(--primary) / 0.9);
  transform: translateY(-1px);
}

.lead-modal-calendly {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lead-modal-calendly-icon {
  width: 16px;
  height: 16px;
}

.lead-modal-calendly:hover {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.06);
}

.lead-modal-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.lead-modal-divider::before,
.lead-modal-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: hsl(var(--border));
}

.lead-modal-divider span {
  padding: 0 12px;
}

@media (max-width: 640px) {
  .lead-modal {
    padding: 24px;
  }
}
