/* ============================================================
   SUPERCZYSTO — Global Design System CSS
   Premium Dyson/Apple-inspired dark navy + teal aesthetic
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  /* Core Colors */
  --color-primary:          #0a1628;
  --color-primary-dark:     #050d1a;
  --color-primary-mid:      #0f2040;
  --color-primary-hover:    #152b57;

  --color-teal:             #0d9488;
  --color-teal-hover:       #0f7876;
  --color-teal-dark:        #0d5c5a;
  --color-teal-light:       #14b8a6;
  --color-teal-pale:        #f0fdfa;
  --color-teal-subtle:      #ccfbf1;

  --color-accent:           #10b981;
  --color-accent-dark:      #059669;

  /* Backgrounds */
  --color-bg:               #ffffff;
  --color-bg-alt:           #f8fafc;
  --color-bg-dark:          #0a1628;
  --color-bg-darker:        #050d1a;

  /* Text */
  --color-text:             #0a1628;
  --color-text-secondary:   #4b5563;
  --color-text-muted:       #6b7280;
  --color-text-inverted:    #ffffff;
  --color-text-inverted-60: rgba(255, 255, 255, 0.6);
  --color-text-inverted-75: rgba(255, 255, 255, 0.75);

  /* Borders */
  --color-border:           #e5e7eb;
  --color-border-strong:    #d1d5db;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-xs:          0 1px 2px rgba(10, 22, 40, 0.05);
  --shadow-sm:          0 2px 8px rgba(10, 22, 40, 0.08);
  --shadow-md:          0 4px 16px rgba(10, 22, 40, 0.10);
  --shadow-lg:          0 8px 32px rgba(10, 22, 40, 0.12);
  --shadow-xl:          0 16px 48px rgba(10, 22, 40, 0.15);
  --shadow-card:        0 4px 24px rgba(10, 22, 40, 0.08), 0 1px 4px rgba(10, 22, 40, 0.04);
  --shadow-card-hover:  0 12px 40px rgba(10, 22, 40, 0.14), 0 4px 12px rgba(10, 22, 40, 0.08);
  --shadow-teal:        0 8px 32px rgba(13, 148, 136, 0.25);
  --shadow-teal-lg:     0 16px 48px rgba(13, 148, 136, 0.30);
  --shadow-floating:    0 20px 60px rgba(10, 22, 40, 0.20);

  /* Border Radius */
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    18px;
  --radius-2xl:   24px;
  --radius-3xl:   32px;
  --radius-card:  16px;
  --radius-btn:   10px;
  --radius-pill:  9999px;

  /* Spacing Scale */
  --space-1:   8px;
  --space-2:   16px;
  --space-3:   24px;
  --space-4:   32px;
  --space-5:   40px;
  --space-6:   48px;
  --space-8:   64px;
  --space-10:  80px;
  --space-12:  96px;
  --space-16:  128px;

  /* Transitions */
  --transition:        all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast:   all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:          cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:       cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover { color: var(--color-teal-hover); }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
}

/* ── Typography Utilities ── */
.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.eyebrow-dark {
  color: var(--color-teal-light);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

/* ── Section Spacing ── */
.section {
  padding: clamp(64px, 8vw, 120px) 0;
}

.section-sm {
  padding: clamp(40px, 5vw, 72px) 0;
}

.section-lg {
  padding: clamp(96px, 12vw, 160px) 0;
}

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-inverted);
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-teal-pale {
  background: var(--color-teal-pale);
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 72px);
}

.section-header .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.section-header-dark h2 {
  color: var(--color-text-inverted);
}

.section-header-dark p {
  color: var(--color-text-inverted-75);
}

.section-header-dark .eyebrow {
  color: var(--color-teal-light);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: 0.01em;
  border-radius: var(--radius-btn);
  padding: 14px 28px;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-teal);
  color: #fff;
  box-shadow: var(--shadow-teal);
}

.btn-primary:hover {
  background: var(--color-teal-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.40);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--color-teal);
  border: 1.5px solid var(--color-teal);
}

.btn-secondary:hover {
  background: rgba(13, 148, 136, 0.06);
  color: var(--color-teal-hover);
  border-color: var(--color-teal-hover);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-dark:hover {
  background: var(--color-primary-mid);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.0625rem;
  font-weight: 700;
  border-radius: 12px;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.8125rem;
  border-radius: 8px;
}

.btn svg, .btn .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ── Cards ── */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

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

.card-feature {
  background: linear-gradient(160deg, #ffffff 0%, var(--color-teal-pale) 100%);
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

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

/* ── Icon Containers ── */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.15);
  color: var(--color-teal);
  flex-shrink: 0;
}

.icon-box svg {
  width: 24px;
  height: 24px;
}

.icon-box-lg {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.icon-box-lg svg {
  width: 28px;
  height: 28px;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 4px 12px;
}

.badge-teal {
  background: rgba(13, 148, 136, 0.1);
  color: var(--color-teal);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.badge-navy {
  background: rgba(10, 22, 40, 0.08);
  color: var(--color-primary);
  border: 1px solid rgba(10, 22, 40, 0.15);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-accent-dark);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-teal-pale);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-pill);
  padding: 8px 16px 8px 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.trust-badge svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ── Grid Utilities ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── Divider ── */
.divider-teal {
  height: 3px;
  width: 48px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-accent));
  border-radius: 2px;
}

/* ── Scroll Reveal Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

/* ── Forms ── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Stars (Testimonials) ── */
.stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

/* ── Comparison Table ── */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: center;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--color-text);
}

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

.comparison-table tbody tr:nth-child(even) td {
  background: var(--color-bg-alt);
}

.comparison-table .col-ritello {
  background: rgba(13, 148, 136, 0.05);
  color: var(--color-teal-dark);
  font-weight: 600;
}

.check-yes { color: var(--color-accent); font-size: 1.25rem; }
.check-no  { color: #d1d5db; font-size: 1.25rem; }

/* ── Process Steps ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(16.67% + 16px);
  right: calc(16.67% + 16px);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-teal) 0,
    var(--color-teal) 6px,
    transparent 6px,
    transparent 14px
  );
  opacity: 0.4;
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .process-steps::before { display: none; }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.08);
  border: 2px solid var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-teal);
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ── FAQ Accordion ── */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 200ms ease;
}

.faq-question:hover {
  color: var(--color-teal);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-teal);
  transition: transform 250ms ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ── Sticky CTA Bar ── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--color-primary);
  border-top: 2px solid var(--color-teal);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 400ms var(--ease-out);
  box-shadow: 0 -4px 32px rgba(10, 22, 40, 0.3);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-inverted-75);
}

.sticky-cta-text strong {
  color: #fff;
}

@media (min-width: 1024px) {
  .sticky-cta { display: none; }
}
