/* ============================
   Sections — Layout & Styling for Each Block
   ============================ */

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: 16px 0;
  background: var(--header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.header.scrolled {
  padding: 10px 0;
  border-bottom-color: var(--header-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px var(--accent-primary-glow);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

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

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: var(--fs-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  transition: all var(--transition-fast);
}

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

[data-theme="light"] .hero-bg-image {
  opacity: 0.15;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}

.hero-bg-glow-1 {
  top: -200px;
  right: -100px;
  background: var(--accent-primary);
}

.hero-bg-glow-2 {
  bottom: -200px;
  left: -100px;
  background: var(--accent-secondary);
  opacity: 0.2;
}

.hero-inner {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  margin-bottom: var(--space-xl);
}

.hero-title {
  margin-bottom: var(--space-xl);
  font-size: var(--fs-hero);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

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

.hero-feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-secondary);
  margin-top: 2px;
}

.hero-feature-text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-image {
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

/* Floating cards on hero */
.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  z-index: 2;
  white-space: nowrap;
}

.floating-card-1 {
  top: 10%;
  right: -30px;
  animation: float 6s ease-in-out infinite;
}

.floating-card-2 {
  bottom: 15%;
  left: -20px;
  animation: float 6s ease-in-out infinite 2s;
}

.floating-card-3 {
  bottom: 30%;
  right: -40px;
  animation: float 6s ease-in-out infinite 4s;
}

.floating-card-icon {
  font-size: var(--fs-lg);
  margin-right: var(--space-sm);
}

/* ===== TRUST ===== */
.trust {
  background: var(--bg-secondary);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.trust-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}

.trust-card-number {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.trust-card-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.trust-card-text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ===== AUDIENCE ===== */
.audience {
  background: var(--bg-secondary);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.audience-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
}

.audience-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--badge-bg);
  color: var(--accent-primary);
  font-size: var(--fs-xl);
  flex-shrink: 0;
}

.audience-card-content h4 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
}

.audience-card-content p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* ===== PROCESS (HORIZONTAL SCROLL) ===== */
.process-wrapper {
  height: 400vh; /* Scroll length */
  position: relative;
}

.process-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.container-process-sticky {
  width: 100%;
}

.process-header {
  margin-bottom: var(--space-4xl);
}

.process-horizontal-track {
  display: flex;
  gap: var(--space-2xl);
  will-change: transform;
  /* Add padding to let the last item scroll into view */
  padding-right: 50vw; 
}

.process-step-horizontal {
  width: 420px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.process-step-horizontal:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(108, 92, 231, 0.1);
  transform: translateY(-5px);
}

.process-step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.process-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xl);
  box-shadow: 0 4px 20px var(--accent-primary-glow);
}

.process-step-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.process-step-text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CASES ===== */
.cases {
  background: var(--bg-secondary);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.case-card {
  display: flex;
  flex-direction: column;
}

.case-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.case-card-tag {
  padding: 4px 12px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

.case-card-section {
  margin-bottom: var(--space-lg);
}

.case-card-section:last-child {
  margin-bottom: 0;
}

.case-card-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.case-card-section p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== ADVANTAGES ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.advantage-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-2xl);
}

.advantage-number {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}

.advantage-content h4 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
}

.advantage-content p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq {
  background: var(--bg-secondary);
}

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

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--border-color-hover);
}

.faq-item.active {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.faq-question {
  width: 100%;
  padding: var(--space-xl) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  background: var(--bg-card-hover);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--accent-primary);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== CONTACT / CTA ===== */
.contact {
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

[data-theme="light"] .contact-bg-image {
  opacity: 0.1;
}

.contact-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,15,0.95), rgba(18,18,26,0.9));
}

[data-theme="light"] .contact-bg-overlay {
  background: linear-gradient(135deg, rgba(250,251,252,0.95), rgba(240,242,245,0.9));
}

.contact-inner {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact-content {
  padding-top: var(--space-xl);
}

.contact-title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-lg);
}

.contact-text {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-messengers {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.contact-messengers .btn {
  flex: 1;
  min-width: 200px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--badge-bg);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.contact-form-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-submit-btn {
  width: 100%;
  margin-top: var(--space-md);
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-md);
}

/* Form Success */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.form-success.visible {
  display: block;
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
}

.form-success h4 {
  margin-bottom: var(--space-md);
}

.form-success p {
  color: var(--text-secondary);
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--section-divider);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  max-width: 350px;
}

.footer-brand .logo {
  margin-bottom: var(--space-lg);
}

.footer-brand-text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-primary-glow);
}

.footer-column h5 {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--section-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

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