/**
 * Alternapy landing — redesigned
 */

:root {
  --color-ink: #0f0e1a;
  --color-night: #171529;
  --color-slate: #2a2740;
  --color-muted: #6b6b83;
  --color-surface: #f7f6fb;
  --color-line: #e7e5f0;
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-violet: #8b5cf6;
  --color-primary-soft: rgba(99, 102, 241, 0.1);
  --color-white: #ffffff;
  --font-display: "Outfit", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --header-h: 88px;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gradient-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-violet) 100%);
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-slate);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1120px;
}

.section-header {
  max-width: 620px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  margin: 0 0 14px;
}

.section-header p {
  color: var(--color-muted);
  font-size: 1.12rem;
  margin: 0;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-ink);
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 22px);
  left: calc(50% - 22px);
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: animate-preloader 0.8s linear infinite;
}

@keyframes animate-preloader {
  to { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Back to top
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 18px;
  bottom: 18px;
  z-index: 996;
  background: var(--gradient-brand);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  transition: all 0.3s var(--ease);
}

.back-to-top i {
  font-size: 22px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  transform: translateY(-3px);
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-primary-cta,
.btn-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-primary-cta {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.28);
}

.btn-primary-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.btn-secondary-cta {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary-cta i {
  font-size: 0.85rem;
  transition: transform 0.25s var(--ease);
}

.btn-secondary-cta:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-secondary-cta:hover i {
  transform: translate(2px, -2px);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  height: var(--header-h);
  padding-top: 12px;
  padding-bottom: 12px;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  z-index: 997;
  background: transparent;
}

#header.header-scrolled {
  background: rgba(15, 14, 26, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(15, 14, 26, 0.25);
}

#header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

#header .logo img {
  max-height: 34px;
  width: auto;
}

#header .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.02em;
}

/*--------------------------------------------------------------
# Navbar
--------------------------------------------------------------*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  gap: 4px;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: #fff;
}

.navbar .getstarted,
.navbar .getstarted:focus {
  background: var(--gradient-brand);
  color: #fff;
  padding: 10px 22px;
  margin-left: 12px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.navbar .getstarted:hover,
.navbar .getstarted:focus:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.45);
}

.mobile-nav-toggle {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: color 0.2s;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }

  .navbar-mobile {
    position: fixed;
    inset: 0;
    background: rgba(15, 14, 26, 0.97);
    z-index: 999;
  }

  .navbar-mobile .mobile-nav-toggle {
    position: absolute;
    top: 22px;
    right: 22px;
  }

  .navbar-mobile ul {
    display: block;
    position: absolute;
    top: 70px;
    right: 20px;
    left: 20px;
    padding: 16px 0;
    background: var(--color-night);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow-y: auto;
  }

  .navbar-mobile a,
  .navbar-mobile a:focus {
    padding: 14px 22px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
  }

  .navbar-mobile a:hover,
  .navbar-mobile .active,
  .navbar-mobile li:hover > a {
    color: #fff;
  }

  .navbar-mobile .getstarted,
  .navbar-mobile .getstarted:focus {
    margin: 14px 22px 8px;
    display: inline-flex;
    justify-content: center;
  }
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  color: #fff;
  background: var(--color-ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 15% 15%, rgba(99, 102, 241, 0.28), transparent 60%),
    radial-gradient(ellipse 60% 60% at 85% 85%, rgba(139, 92, 246, 0.22), transparent 60%),
    linear-gradient(160deg, #0f0e1a 0%, #171529 55%, #1c1836 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.blob-1 {
  width: 460px;
  height: 460px;
  top: -140px;
  right: 8%;
  background: var(--gradient-brand);
  animation: blob-float 12s ease-in-out infinite;
}

.blob-2 {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: 6%;
  background: linear-gradient(135deg, var(--color-violet), var(--color-primary));
  animation: blob-float 14s ease-in-out infinite reverse;
}

.blob-3 {
  width: 220px;
  height: 220px;
  top: 45%;
  left: 42%;
  background: var(--color-primary);
  opacity: 0.3;
  animation: blob-float 10s ease-in-out infinite;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 25px) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: none;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 28px;
  padding: 8px 16px 8px 10px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.hero-brand img {
  border-radius: 6px;
}

.hero-title {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 22px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.68);
  max-width: 480px;
  margin: 0 0 40px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-img {
  text-align: center;
}

.hero-img img {
  max-width: 100%;
  height: auto;
}

.hero-img .animated {
  animation: hero-float 2.4s ease-in-out infinite alternate;
}

@keyframes hero-float {
  from { transform: translateY(12px); }
  to { transform: translateY(-12px); }
}

@media (max-width: 991px) {
  .hero-img {
    margin-top: 40px;
  }

  .hero-subtitle {
    max-width: none;
  }
}

/*--------------------------------------------------------------
# Clients
--------------------------------------------------------------*/
.clients {
  padding: 56px 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}

.clients-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 28px;
}

.clients-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 60px;
}

.clients-row a {
  display: flex;
  align-items: center;
  opacity: 0.65;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.clients-row a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.clients-row img {
  max-height: 46px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 0.25s var(--ease);
}

.clients-row a:hover img {
  filter: grayscale(0);
}

.clients-row .client-ebsa {
  max-height: 34px;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-lead p {
  font-size: 1.12rem;
  color: var(--color-slate);
  margin-bottom: 18px;
}

.about-lead strong {
  color: var(--color-ink);
}

.about-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-pillars li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.pillar-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 1.15rem;
}

.about-pillars h3 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.about-pillars p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

@media (max-width: 767px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/*--------------------------------------------------------------
# Process
--------------------------------------------------------------*/
.process {
  background: var(--color-ink);
  color: #fff;
}

.process-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 80% 0%, rgba(99, 102, 241, 0.18), transparent 65%);
  z-index: 0;
}

.process .container {
  position: relative;
  z-index: 1;
}

.process .section-header h2 {
  color: #fff;
}

.process .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process-steps li {
  position: relative;
  padding: 32px 28px;
  background: var(--color-night);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.process-steps li:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.18);
}

.step-index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.process-steps h3 {
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.process-steps p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 767px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services {
  background: var(--color-surface);
}

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

.service-item {
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.25);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-item h3 {
  font-size: 1.3rem;
  margin: 0 0 12px;
}

.service-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.02rem;
}

@media (max-width: 767px) {
  .services-list {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# CTA band
--------------------------------------------------------------*/
.cta-band {
  background: linear-gradient(120deg, var(--color-ink) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(139, 92, 246, 0.35), transparent 70%);
  z-index: 0;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  margin: 0 0 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 440px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.cta-band .btn-primary-cta {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.cta-band .btn-primary-cta:hover {
  color: var(--color-primary-dark);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact {
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.info-block {
  margin-bottom: 26px;
}

.info-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin: 0 0 6px;
  font-weight: 600;
}

.info-block h3 i {
  color: var(--color-primary);
  font-size: 0.95rem;
}

.info-block p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-ink);
}

.info-block a {
  color: var(--color-ink);
}

.info-block a:hover {
  color: var(--color-primary);
}

.map-wrap {
  margin-top: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 280px;
}

.contact-form {
  background: var(--color-surface);
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--color-line);
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-slate);
  margin-bottom: 6px;
}

.contact-form .form-control {
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--color-ink);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
  outline: none;
}

.contact-form .loading,
.contact-form .error-message,
.contact-form .sent-message {
  display: none;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

#captcha-question {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}

#captcha {
  width: 88px;
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 52px 0 34px;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-address {
  margin: 0 0 30px;
  font-size: 0.95rem;
}

.footer-address a {
  color: rgba(255, 255, 255, 0.6);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom strong {
  color: #fff;
}

/*--------------------------------------------------------------
# Utilities from template (kept for JS compatibility)
--------------------------------------------------------------*/
.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0 0 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
  border-radius: 4px;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar-mobile .dropdown ul {
  display: none;
  position: static;
  box-shadow: none;
  background: transparent;
}

.navbar-mobile .dropdown ul.dropdown-active {
  display: block;
}
