/* ========================================================================
   PIRABEL LABS — Global Design System
   Based on Stitch Mockup: "The Cinematic Digital Monolith"
   ======================================================================== */

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Primary */
  --primary: #ffb59c;
  --primary-container: #ff5708;
  --primary-fixed: #ffdbcf;
  --primary-fixed-dim: #ffb59c;
  --on-primary: #5c1900;
  --on-primary-container: #511500;
  --on-primary-fixed: #390c00;
  --inverse-primary: #aa3600;
  --brand: #FF5500;

  /* Secondary (Teal) */
  --secondary: #41e4c0;
  --secondary-container: #00c7a5;
  --secondary-fixed: #5ffbd6;
  --secondary-fixed-dim: #38debb;
  --on-secondary: #00382d;
  --on-secondary-container: #004d3f;

  /* Tertiary (Warm Gray) */
  --tertiary: #c9c6c0;
  --tertiary-container: #92918b;
  --tertiary-fixed: #e5e2db;
  --on-tertiary: #31312c;

  /* Surfaces */
  --background: #141313;
  --surface: #141313;
  --surface-dim: #141313;
  --surface-bright: #3a3939;
  --surface-container-lowest: #0e0e0e;
  --surface-container-low: #1c1b1b;
  --surface-container: #201f1f;
  --surface-container-high: #2a2a2a;
  --surface-container-highest: #353434;
  --surface-variant: #353434;

  /* Text */
  --on-surface: #e5e2e1;
  --on-surface-variant: #e5beb2;
  --on-background: #e5e2e1;
  --inverse-surface: #e5e2e1;
  --inverse-on-surface: #313030;

  /* Outline */
  --outline: #ac897e;
  --outline-variant: #5c4037;

  /* Error */
  --error: #ffb4ab;
  --error-container: #93000a;
  --on-error: #690005;

  /* Typography */
  --font-headline: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --px-page: clamp(1.5rem, 4vw, 3rem);
  --max-w: 80rem;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background: var(--background);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

::selection {
  background: var(--primary-container);
  color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--surface-container-lowest); }
::-webkit-scrollbar-thumb { background: var(--primary-container); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- NOISE OVERLAY --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 1000;
}

/* --- DOT GRID --- */
.dot-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(229, 226, 225, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* --- SOLAR ORBS --- */
.solar-orb {
  position: fixed;
  border-radius: 9999px;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}
.solar-orb--primary {
  width: 600px; height: 600px;
  background: rgba(255, 87, 8, 0.10);
  top: -160px; left: -160px;
}
.solar-orb--secondary {
  width: 500px; height: 500px;
  background: rgba(0, 199, 165, 0.05);
  top: 50%; right: 0;
}
.solar-orb--bottom {
  width: 700px; height: 700px;
  background: rgba(255, 87, 8, 0.06);
  bottom: -200px; right: -200px;
}

/* --- PROGRESS BAR --- */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-container);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--primary-container);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255, 87, 8, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}
.cursor-hover .cursor-dot { width: 4px; height: 4px; background: #fff; }
.cursor-hover .cursor-ring { width: 60px; height: 60px; border-color: rgba(255, 255, 255, 0.3); }

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* --- NAVBAR --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(20, 19, 19, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background 0.4s, padding 0.3s;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  max-width: 100%;
}
.nav-logo {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  color: #FF5500;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
}
.nav-logo img,
.nav-logo-img {
  height: 100px;
  width: auto;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}
#preloader .pre-logo-img {
  height: 60px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 2rem;
  font-family: var(--font-headline);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s, transform 0.3s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: #FF5500;
  transform: scale(1.05);
}
.nav-links a.active {
  font-weight: 700;
  border-bottom: 2px solid #FF5500;
  padding-bottom: 4px;
}
.nav-login {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(92, 64, 55, 0.3);
  color: var(--on-surface);
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: border-color 0.3s, color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-login:hover {
  border-color: var(--primary-container);
  color: var(--primary-container);
}
.nav-cta {
  background: #FF5500;
  color: var(--on-primary);
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.3s, box-shadow 0.3s;
  transform: scale(0.95);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover {
  transform: scale(1);
  box-shadow: 0 0 30px rgba(255, 87, 8, 0.3);
}
.nav.scrolled {
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(30px);
}
.nav.scrolled .nav-inner { padding-top: 1rem; padding-bottom: 1rem; }

/* Mobile menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  z-index: 600;
}
.nav-hamburger span {
  display: block;
  width: 28px; height: 2px;
  background: var(--on-surface);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.98);
  backdrop-filter: blur(30px);
  z-index: 499;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--on-surface);
  transition: color 0.3s;
}
.mobile-nav a:hover { color: #FF5500; }

/* --- SECTION LAYOUT --- */
.section {
  padding: 8rem var(--px-page);
  position: relative;
  overflow: hidden;
}
.section--low { background: var(--surface-container-low); }
.section--lowest { background: var(--surface-container-lowest); }
.section--surface { background: var(--surface); }
.section--cta {
  background: linear-gradient(135deg, #FF5500, #FF7700);
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* --- TYPOGRAPHY --- */
.font-headline { font-family: var(--font-headline); }
.font-body { font-family: var(--font-body); }

.text-hero {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4.5vw, 64px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.text-h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.text-h3 {
  font-family: var(--font-headline);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.text-h4 {
  font-family: var(--font-headline);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 700;
}
.text-body-lg {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(229, 226, 225, 0.7);
}
.text-body {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(229, 226, 225, 0.6);
}
.text-small {
  font-size: 0.875rem;
  line-height: 1.5;
}
.text-label {
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary-container);
}
.text-muted { color: rgba(229, 226, 225, 0.5); }
.text-accent { color: var(--primary-container); }
.text-primary { color: var(--primary); }

/* Decorative background text */
.bg-text {
  position: absolute;
  font-family: var(--font-headline);
  font-size: clamp(200px, 30vw, 500px);
  font-weight: 900;
  color: var(--on-surface);
  opacity: 0.03;
  pointer-events: none;
  user-select: none;
  line-height: 0.8;
  letter-spacing: -0.06em;
  right: -5%;
  overflow: hidden;
  max-width: 60vw;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 1.25rem 2.5rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
}
.btn:hover { transform: scale(1.02); }

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn--primary:hover { box-shadow: 0 0 40px rgba(255, 181, 156, 0.2); }

.btn--orange {
  background: #FF5500;
  color: var(--on-primary);
}
.btn--orange:hover { box-shadow: 0 0 40px rgba(255, 85, 0, 0.3); }

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(92, 64, 55, 0.3);
  color: var(--on-surface);
}
.btn--ghost:hover { background: var(--surface-container-high); }

.btn--white {
  background: #fff;
  color: var(--surface);
}

.btn--text {
  background: transparent;
  padding: 0;
  color: var(--primary-container);
  gap: 0.5rem;
}
.btn--text:hover { gap: 1rem; }

/* --- CARDS --- */
.card {
  background: var(--surface-container-lowest);
  border: 1px solid rgba(92, 64, 55, 0.1);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), background 0.5s, border-color 0.3s;
}
.card:hover {
  border-color: rgba(255, 87, 8, 0.2);
}
.card--elevated {
  background: var(--surface-container-low);
}
.card--glow:hover {
  box-shadow: 0 0 60px rgba(255, 87, 8, 0.08);
}

/* Service row card (accordion style) */
.srv-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  background: var(--surface-container-lowest);
  border-top: 1px solid rgba(92, 64, 55, 0.1);
  border-bottom: 1px solid rgba(92, 64, 55, 0.1);
  cursor: pointer;
  transition: background 0.5s, color 0.3s;
  overflow: hidden;
  text-decoration: none;
  position: relative;
}
.srv-row:hover {
  background: var(--primary-container);
}
.srv-row:hover * { color: var(--on-primary); }
.srv-row:hover .srv-row__num { opacity: 1; }
.srv-row:hover .srv-row__arrow { opacity: 1; transform: translateX(0); }
.srv-row__num {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  opacity: 0.1;
  transition: opacity 0.5s;
  flex-shrink: 0;
}
/* Arrow button on service rows */
.srv-row__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 87, 8, 0.1);
  border: 1px solid rgba(255, 87, 8, 0.3);
  color: var(--primary-container);
  font-size: 1.5rem;
  flex-shrink: 0;
  opacity: 0.6;
  transform: translateX(-8px);
  transition: opacity 0.4s, transform 0.4s, background 0.3s;
}
.srv-row:hover .srv-row__arrow {
  background: rgba(255, 255, 255, 0.2);
  color: var(--on-primary);
}

/* --- MARQUEE TICKER --- */
.marquee {
  padding: 1.5rem 0;
  overflow: hidden;
  background: var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 2rem;
  color: rgba(92, 25, 0, 0.9);
  letter-spacing: -0.04em;
}
.marquee-track span {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- GRID UTILITIES --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }

/* --- PROCESS STEPS --- */
.process-step {
  position: relative;
}
.process-step::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(92, 64, 55, 0.2);
  margin-bottom: 2rem;
  transition: background 0.3s;
}
.process-step:hover::before { background: var(--primary-container); }
.process-step__num {
  font-family: var(--font-headline);
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-container);
  margin-bottom: 1rem;
}

/* --- FAQ ACCORDION --- */
.faq-item {
  border-bottom: 1px solid rgba(92, 64, 55, 0.15);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  cursor: pointer;
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 600;
  list-style: none;
  transition: color 0.3s;
}
.faq-item summary:hover { color: var(--primary-container); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  transition: transform 0.3s;
  color: rgba(229, 226, 225, 0.4);
}
.faq-item[open] {
  border-left: 3px solid var(--primary-container);
  padding-left: 1.5rem;
  background: var(--surface-container-lowest);
}
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item .faq-answer {
  padding: 0 0 2rem 0;
  color: rgba(229, 226, 225, 0.6);
  line-height: 1.7;
  font-size: 1.0625rem;
}

/* --- FORMS --- */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(229, 226, 225, 0.4);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(92, 64, 55, 0.3);
  padding: 0.75rem 0;
  color: var(--on-surface);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}
.form-input:focus { border-color: var(--primary-container); }
.form-input::placeholder { color: rgba(255, 255, 255, 0.2); }
.form-textarea {
  resize: none;
  min-height: 120px;
}
.form-select {
  appearance: none;
  background-color: var(--surface-container-lowest);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23e5e2e1' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  color: var(--on-surface);
}
.form-select option {
  background: var(--surface-container-lowest);
  color: var(--on-surface);
  padding: 0.5rem;
}
.form-input, .form-select {
  background-color: var(--surface-container-lowest);
}

/* --- PRICING --- */
.pricing-card {
  background: var(--surface-container-lowest);
  border: 1px solid rgba(92, 64, 55, 0.1);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card--featured {
  background: #FF5500;
  color: #fff;
  transform: scale(1.05);
  z-index: 2;
}
.pricing-card--featured:hover { transform: scale(1.05) translateY(-4px); }
.pricing-card__price {
  font-family: var(--font-headline);
  font-size: 3rem;
  font-weight: 900;
}
.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(92, 64, 55, 0.1);
}

/* --- STATS COUNTER --- */
.stat {
  text-align: center;
}
.stat__number {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--primary-container);
}
.stat__label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(229, 226, 225, 0.4);
  margin-top: 0.5rem;
}

/* --- TESTIMONIAL --- */
.testimonial {
  padding: 3rem;
  border-left: 3px solid var(--primary-container);
}
.testimonial__quote {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(229, 226, 225, 0.8);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial__author {
  font-weight: 700;
}
.testimonial__role {
  font-size: 0.875rem;
  color: rgba(229, 226, 225, 0.4);
}

/* --- BREADCRUMB --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(229, 226, 225, 0.4);
  margin-bottom: 2rem;
}
.breadcrumb a { transition: color 0.3s; }
.breadcrumb a:hover { color: var(--primary-container); }
.breadcrumb .sep { color: rgba(229, 226, 225, 0.2); }

/* --- GUIDE CARDS --- */
.guide-card {
  background: var(--surface-container-lowest);
  border: 1px solid rgba(92, 64, 55, 0.1);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 87, 8, 0.2);
}
.guide-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--surface-container-low), var(--surface-container));
  overflow: hidden;
}
.guide-card__body { padding: 2rem; }
.guide-card__tag {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-container);
  border: 1px solid rgba(255, 87, 8, 0.3);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

/* --- PILL / BADGE --- */
.pill {
  display: inline-block;
  padding: 0.375rem 1rem;
  border: 1px solid rgba(92, 64, 55, 0.3);
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
}
.pill--filled {
  background: var(--primary-container);
  color: var(--on-primary);
  border: none;
}

/* --- NEWSLETTER --- */
.newsletter {
  background: var(--surface-container-low);
  border-top: 1px solid rgba(92, 64, 55, 0.15);
  border-bottom: 1px solid rgba(92, 64, 55, 0.15);
  padding: 3rem var(--px-page);
  text-align: center;
}
.newsletter-inner {
  max-width: 32rem;
  margin: 0 auto;
}
.newsletter-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.newsletter-desc {
  font-size: 0.875rem;
  color: rgba(229, 226, 225, 0.5);
  margin-bottom: 1.5rem;
}
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 28rem;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  background: var(--surface-container-lowest);
  border: 1px solid rgba(92, 64, 55, 0.2);
  border-right: none;
  padding: 0.75rem 1rem;
  color: var(--on-surface);
  font-size: 0.875rem;
  outline: none;
}
.newsletter-form input:focus { border-color: var(--primary-container); }
.newsletter-form input::placeholder { color: rgba(229, 226, 225, 0.2); }
.newsletter-form button {
  background: #FF5500;
  color: var(--on-primary);
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s;
}
.newsletter-form button:hover { background: #ff7700; }
.newsletter-success {
  display: none;
  color: #41e4c0;
  font-size: 0.875rem;
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 1px solid rgba(92,64,55,0.2); border-bottom: none; }
}

/* --- FOOTER --- */
.footer {
  background: var(--surface-container-lowest);
  padding: 6rem 3rem 3rem;
  border-top: 1px solid rgba(255, 87, 8, 0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-logo {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 2rem;
}
.footer-desc {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 24rem;
}
.footer-title {
  font-family: var(--font-headline);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary-container);
  margin-bottom: 1.5rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}
.footer-links a:hover { color: #FF5500; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(92, 64, 55, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}

/* --- SCROLL REVEAL --- */
.rv {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.rv.in {
  opacity: 1;
  transform: translateY(0);
}
.rv--left {
  transform: translateX(-40px);
}
.rv--left.in { transform: translateX(0); }
.rv--scale {
  transform: scale(0.95);
}
.rv--scale.in { transform: scale(1); }

/* Stagger delays */
.rv-d1 { transition-delay: 0.1s; }
.rv-d2 { transition-delay: 0.2s; }
.rv-d3 { transition-delay: 0.3s; }
.rv-d4 { transition-delay: 0.4s; }
.rv-d5 { transition-delay: 0.5s; }
.rv-d6 { transition-delay: 0.6s; }

/* --- PRELOADER --- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--surface-container-lowest);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transition: opacity 0.6s, visibility 0.6s;
}
#preloader.done {
  opacity: 0;
  visibility: hidden;
}
#preloader .pre-logo {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 900;
  color: #FF5500;
}
#preloader .pre-bar {
  width: 200px;
  height: 2px;
  background: var(--surface-container-high);
  position: relative;
  overflow: hidden;
}
#preloader .pre-bar-fill {
  height: 100%;
  background: var(--primary-container);
  width: 0%;
  transition: width 0.3s;
}
#preloader .pre-pct {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(229, 226, 225, 0.4);
  letter-spacing: 0.1em;
}

/* --- COMPARISON TABLE --- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th {
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8125rem;
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(92, 64, 55, 0.2);
}
.compare-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(92, 64, 55, 0.08);
  font-size: 0.9375rem;
}
.compare-table .highlight {
  background: rgba(255, 87, 8, 0.05);
  border-top: 2px solid var(--primary-container);
}

/* --- RESPONSIVE --- */

/* Tablet landscape */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { font-size: 0.75rem; padding: 0.6rem 1.2rem; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  :root { --px-page: 1.5rem; }
  .section { padding: 4rem var(--px-page); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
  .nav-inner { padding: 0.75rem 1.25rem; }
  .nav-logo { font-size: 1.25rem; }
  .nav-cta { font-size: 0.7rem; padding: 0.5rem 1rem; }
  .text-hero { font-size: clamp(2rem, 7vw, 3.5rem); }
  .text-h2 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
  .text-body-lg { font-size: 1.0625rem; }
  .stat__number { font-size: clamp(2rem, 4vw, 3rem); }
  .pricing-card { padding: 2rem; }
  .card { padding: 1.75rem; }
  .footer { padding: 4rem 1.5rem 2rem; }
  .footer-grid { gap: 2rem; }
  .srv-row { padding: 1.75rem 1.5rem; }
  .srv-row__num { font-size: 2.5rem; }
  .marquee-track { font-size: 1.25rem; gap: 2rem; }
  .bg-text { font-size: clamp(100px, 20vw, 300px); }
  .hero-mockup { display: none; }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --px-page: 1.25rem; }
  .section { padding: 3rem var(--px-page); }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .text-hero { font-size: clamp(1.75rem, 8vw, 2.5rem); line-height: 1; }
  .text-h2 { font-size: clamp(1.4rem, 6vw, 2rem); line-height: 1.05; }
  .text-h3 { font-size: 1.25rem; }
  .text-h4 { font-size: 1.0625rem; }
  .text-body-lg { font-size: 1rem; }
  .text-body { font-size: 0.9375rem; }
  .text-label { font-size: 0.6875rem; letter-spacing: 0.15em; }
  .stat__number { font-size: 2rem; }
  .stat__label { font-size: 0.6875rem; }
  .btn { padding: 0.875rem 1.25rem; font-size: 0.8125rem; }
  .btn--text { font-size: 0.8125rem; }
  .pill { font-size: 0.625rem; padding: 0.25rem 0.75rem; letter-spacing: 0.12em; }
  .card { padding: 1.5rem; }
  .srv-row { padding: 1.5rem 1.25rem; gap: 1rem; }
  .srv-row__num { font-size: 2rem; min-width: auto; }
  .srv-row__arrow { width: 40px; height: 40px; }
  .pricing-card { padding: 1.5rem; }
  .pricing-card__price { font-size: 2rem; }
  .guide-card__body { padding: 1.25rem; }
  .faq-item summary { font-size: 0.9375rem; padding: 1.5rem 0; }
  .faq-item .faq-answer { font-size: 0.9375rem; }
  .form-input { font-size: 1rem; padding: 0.625rem 0; }
  .nav-inner { padding: 0.75rem 1rem; }
  .nav-logo { font-size: 1.125rem; }
  .nav-cta { font-size: 0.6875rem; padding: 0.5rem 0.875rem; }
  .nav-hamburger span { width: 24px; }
  .marquee { padding: 0.75rem 0; }
  .marquee-track { font-size: 1rem; gap: 1.5rem; }
  .bg-text { font-size: clamp(60px, 18vw, 150px); opacity: 0.02; }
  .footer-logo { font-size: 1.25rem; }
  .footer-desc { font-size: 0.8125rem; }
  .footer-title { font-size: 0.625rem; }
  .footer-links a { font-size: 0.8125rem; }
  .compare-table th, .compare-table td { padding: 0.75rem; font-size: 0.8125rem; }
  .breadcrumb { font-size: 0.6875rem; }
  .process-step__num { font-size: 2rem; }
  .testimonial__quote { font-size: 1rem; }
  .mobile-nav a { font-size: 1.5rem; }
  /* Stack process steps vertically */
  .grid-5 { gap: 1.5rem; }
  .process-step::before { width: 60px; }
}

/* Hero mobile fix */
@media (max-width: 900px) {
  header.section[style*="min-height"] { min-height: auto !important; padding-top: 6rem !important; padding-bottom: 3rem !important; }
}

/* Very small screens */
@media (max-width: 380px) {
  .text-hero { font-size: 1.5rem; }
  .text-h2 { font-size: 1.25rem; }
  .nav-cta { display: none; }
  .nav-login { display: none; }
}

/* ============================
   CHAT WIDGET
   ============================ */
#pirabel-chat { position: fixed; bottom: 24px; right: 24px; z-index: 9000; font-family: var(--font-body); }
#chat-toggle {
  width: 56px; height: 56px; border-radius: 50%; background: #FF5500; border: none;
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 85, 0, 0.4); transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
#chat-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(255, 85, 0, 0.5); }
#chat-toggle .material-symbols-outlined { font-size: 1.5rem; }
#chat-badge {
  position: absolute; top: -4px; right: -4px; background: #41e4c0; color: #000;
  width: 20px; height: 20px; border-radius: 50%; font-size: 0.625rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
#chat-window {
  position: absolute; bottom: 70px; right: 0; width: 360px; max-height: 500px;
  background: var(--surface-container-lowest, #0e0e0e); border: 1px solid rgba(92, 64, 55, 0.2);
  flex-direction: column; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
#chat-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; background: #FF5500; color: #5c1900;
}
#chat-header strong { font-family: var(--font-headline, 'Space Grotesk'); }
#chat-close { background: none; border: none; color: #5c1900; cursor: pointer; opacity: 0.7; }
#chat-close:hover { opacity: 1; }
#chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem; min-height: 200px; max-height: 300px;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.chat-msg { max-width: 85%; }
.chat-msg p {
  padding: 0.625rem 1rem; font-size: 0.8125rem; line-height: 1.5; margin: 0;
}
.chat-msg.visitor { align-self: flex-end; }
.chat-msg.visitor p { background: #FF5500; color: #5c1900; border-radius: 12px 12px 0 12px; }
.chat-msg.admin { align-self: flex-start; }
.chat-msg.admin p { background: rgba(229, 226, 225, 0.08); color: #e5e2e1; border-radius: 12px 12px 12px 0; }
#chat-intro { padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
#chat-intro input {
  background: var(--surface, #141313); border: 1px solid rgba(92, 64, 55, 0.2);
  padding: 0.625rem 0.875rem; color: #e5e2e1; font-size: 0.8125rem; outline: none;
}
#chat-intro input:focus { border-color: #FF5500; }
#chat-start {
  background: #FF5500; color: #5c1900; border: none; padding: 0.75rem;
  font-weight: 700; font-size: 0.8125rem; cursor: pointer; text-transform: uppercase;
  letter-spacing: 0.04em; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
#chat-input-area { display: flex; border-top: 1px solid rgba(92, 64, 55, 0.15); }
#chat-input {
  flex: 1; background: transparent; border: none; padding: 0.875rem 1rem;
  color: #e5e2e1; font-size: 0.8125rem; outline: none;
}
#chat-send {
  background: transparent; border: none; color: #FF5500; padding: 0.875rem;
  cursor: pointer; transition: color 0.3s;
}
#chat-send:hover { color: #ff7700; }

@media (max-width: 600px) {
  #chat-window { width: calc(100vw - 48px); right: -12px; bottom: 66px; }
  #pirabel-chat { bottom: 16px; right: 16px; }
}
