@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');
@import url('./vars.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 148, 255, 0.45) rgba(255, 255, 255, 0.04);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 148, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 15, 122, 0.06), transparent);
  color: var(--white);
  line-height: 1.65;
  min-height: 100vh;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

::-moz-selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 148, 255, 0.55), rgba(0, 119, 204, 0.4));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 148, 255, 0.8), rgba(0, 148, 255, 0.55));
  border: 2px solid transparent;
  background-clip: padding-box;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

a { color: var(--primary-text); text-decoration: none; transition: color var(--transition); }
a:hover { color: #5bb8ff; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--blue);
  color: var(--black);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1rem, 4vw, 2rem);
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  width: min(var(--max-width), 100%);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(2.5rem, 6vw, 5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  grid-column: 1;
  color: var(--white);
  border-radius: var(--radius-sm);
  z-index: 2;
  flex-shrink: 0;
  transition: transform var(--transition), opacity var(--transition);
}
.brand:hover {
  color: var(--white);
  opacity: 0.92;
  transform: scale(1.03);
}
.brand-logo {
  width: auto;
  height: 42px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  grid-column: 2;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.site-nav > a:hover {
  color: var(--white);
  background: var(--surface-hover);
  border-color: var(--border-strong);
}
.site-nav > a[aria-current="page"] {
  color: var(--white);
  background: rgba(0, 148, 255, 0.18);
  border-color: rgba(0, 148, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 148, 255, 0.2), 0 0 18px rgba(0, 148, 255, 0.28);
  animation: nav-active-glow 2.4s ease-in-out infinite;
}
@keyframes nav-active-glow {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(0, 148, 255, 0.2), 0 0 14px rgba(0, 148, 255, 0.22);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(0, 148, 255, 0.35), 0 0 26px rgba(0, 148, 255, 0.42);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  grid-column: 3;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 0.22rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.lang-switch::before {
  content: '';
  position: absolute;
  top: 0.22rem;
  bottom: 0.22rem;
  left: 0.22rem;
  width: calc(50% - 0.22rem);
  border-radius: 999px;
  background: rgba(0, 148, 255, 0.22);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.lang-switch[data-active="en"]::before {
  transform: translateX(100%);
}

.lang-switch a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 50%;
  line-height: 1;
  transition: transform var(--transition);
}

.lang-switch a:hover {
  transform: scale(1.08);
  background: transparent;
}

.lang-switch a[aria-current="true"] {
  background: transparent;
  box-shadow: none;
}

.lang-flag {
  width: 1.15rem;
  height: 0.85rem;
  display: block;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Language page transition */
html.lang-leaving body {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

html.lang-entering body {
  animation: lang-page-in 0.38s ease both;
}

@keyframes lang-page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Layout */
.container {
  width: min(var(--max-width), 100% - 2rem);
  margin-inline: auto;
}

section { padding: clamp(3rem, 8vw, 5rem) 0; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-text);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-intro {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* Hero */
.hero {
  padding: clamp(4rem, 12vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
  max-width: 54ch;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--gradient-btn);
  color: var(--white) !important;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gradient-btn-hover);
  color: var(--white) !important;
  box-shadow: var(--shadow-glow-strong);
}
.btn-secondary {
  background: var(--surface);
  color: var(--white) !important;
  border: 1px solid var(--border);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--surface-hover);
  color: var(--white) !important;
  border-color: var(--border-strong);
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: fade-up 0.45s ease both;
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.services-grid > .service-card:nth-child(1) { animation-delay: 0.02s; }
.services-grid > .service-card:nth-child(2) { animation-delay: 0.05s; }
.services-grid > .service-card:nth-child(3) { animation-delay: 0.08s; }
.services-grid > .service-card:nth-child(4) { animation-delay: 0.11s; }
.services-grid > .service-card:nth-child(5) { animation-delay: 0.14s; }
.services-grid > .service-card:nth-child(6) { animation-delay: 0.17s; }
.services-grid > .service-card:nth-child(7) { animation-delay: 0.2s; }
.services-grid > .service-card:nth-child(8) { animation-delay: 0.23s; }
.services-grid > .service-card:nth-child(9) { animation-delay: 0.26s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: rgba(0, 148, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.service-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }

.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.service-card li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}
.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-text);
}

.service-link {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.service-title-with-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(0, 148, 255, 0.12);
  color: var(--primary-text);
  font-size: 0.75rem;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.info-tip:hover,
.info-tip:focus-visible {
  background: rgba(0, 148, 255, 0.22);
  border-color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.info-panel {
  margin: 0.5rem 0 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 148, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.55;
}

.info-panel p + p {
  margin-top: 0.5rem;
}

.info-panel strong {
  color: var(--primary-text);
}

/* Packages */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.package-card {
  background: linear-gradient(160deg, rgba(0, 148, 255, 0.08) 0%, var(--surface) 40%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.package-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.package-card.featured {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.package-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 15, 122, 0.15);
  color: var(--secondary-text);
}

.package-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding-right: 4rem;
}

.package-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-text);
}
.package-price small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.15rem;
}

.package-card ul {
  list-style: none;
  flex: 1;
}
.package-card li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}
.package-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-size: 0.8rem;
}

.package-note {
  font-size: 0.78rem;
  color: var(--warning);
  font-style: italic;
}

.package-load-btn {
  margin-top: 0.75rem;
  width: 100%;
  font-size: 0.88rem;
  color: var(--white) !important;
}

.package-load-btn:hover {
  color: var(--white) !important;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
  counter-reset: step;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-text);
  opacity: 0.5;
  margin-bottom: 0.5rem;
}
.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.process-step p { font-size: 0.88rem; color: var(--muted); }

/* CTA band */
.cta-band {
  background: var(--gradient-hero);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-top: 1rem;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}
.cta-band p { color: var(--muted); margin-bottom: 1.5rem; max-width: 50ch; margin-inline: auto; }

/* Contact note */
.contact-email {
  color: var(--white);
}

.disclaimer-inline {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1rem;
  max-width: 60ch;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-links a:hover { color: var(--primary-text); }
.footer-meta {
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-meta a { color: var(--primary-text); }
.footer-meta a:hover { color: #5bb8ff; }

/* Mobile nav */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
  }
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(15, 20, 25, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.35rem;
    grid-column: 1 / -1;
  }
  .site-nav.is-open { display: flex; }
  .brand {
    grid-column: 1;
    justify-self: start;
  }
  .header-actions {
    grid-column: 2;
    justify-self: end;
  }
  .brand-logo {
    height: 34px;
    width: auto;
  }
  .site-nav > a {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .site-nav > a[aria-current="page"],
  .service-card,
  .package-card {
    animation: none !important;
  }
  html.lang-leaving body,
  html.lang-entering body {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
