/* ---------- Design tokens ---------- */
:root {
  --background: 220 20% 4%;
  --foreground: 210 40% 98%;

  --card: 220 18% 8%;
  --card-foreground: 210 40% 98%;

  --primary: 198 100% 72%;
  --primary-foreground: 220 20% 4%;

  --secondary: 220 16% 12%;
  --secondary-foreground: 210 40% 98%;

  --muted: 220 14% 14%;
  --muted-foreground: 215 16% 65%;

  --accent: 0 84% 56%;

  --border: 220 14% 18%;
  --radius: 0.5rem;

  --gradient-primary: linear-gradient(135deg, hsl(198 100% 72%), hsl(0 84% 56%));
  --shadow-glow: 0 0 30px hsl(198 100% 72% / 0.18);
  --shadow-glow-strong: 0 0 40px hsl(198 100% 72% / 0.28);

  --container-width: 1280px;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: hsl(var(--primary) / 0.3);
  color: hsl(var(--foreground));
}

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p {
  margin: 0;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 768px;
  text-align: center;
}

.icon {
  width: 1rem;
  height: 1rem;
}

.icon--md {
  width: 1.75rem;
  height: 1.75rem;
}

.icon--lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ---------- Shared bits ---------- */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-border {
  border: 1px solid hsl(var(--primary) / 0.3);
  box-shadow: var(--shadow-glow);
}

.glow-border:hover {
  border-color: hsl(var(--primary) / 0.6);
  box-shadow: var(--shadow-glow-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.25s, transform 0.2s;
  will-change: transform;
}

.btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 0 0 hsl(var(--primary) / 0);
}

.btn--primary:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

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

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn--lg:hover {
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-3px);
}

.btn:not(.btn--sm):not(.btn--lg) {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.eyebrow {
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section {
  padding: 5rem 0;
}

.section--muted {
  background: hsl(var(--secondary) / 0.5);
}

.section__head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

/* ---------- Logo ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.85;
}

.logo__img {
  height: 5rem;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover .logo__img {
  transform: scale(1.04);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__name {
  font-weight: 700;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.logo__sub {
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.navbar--scrolled {
  border-bottom-color: hsl(var(--border));
  box-shadow: 0 8px 24px hsl(220 20% 2% / 0.35);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
  padding-bottom: 0.25rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--gradient-primary);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: hsl(var(--foreground));
}

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

.nav-link.is-active {
  color: hsl(var(--foreground));
}

.navbar__toggle {
  display: block;
  background: none;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  padding: 0;
}

.navbar__toggle-icons {
  position: relative;
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
}

.icon-menu,
.icon-close {
  position: absolute;
  inset: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.icon-close {
  opacity: 0;
  transform: rotate(-90deg);
}

.navbar__toggle.is-open .icon-menu {
  opacity: 0;
  transform: rotate(90deg);
}

.navbar__toggle.is-open .icon-close {
  opacity: 1;
  transform: rotate(0deg);
}

.navbar__mobile {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-top: 1px solid transparent;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  transition: max-height 0.35s ease, opacity 0.25s ease, border-color 0.25s;
}

.navbar__mobile.is-open {
  max-height: 24rem;
  opacity: 1;
  border-top-color: hsl(var(--border));
  padding-bottom: 1rem;
}

.navbar__mobile-link {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s, padding-left 0.2s;
}

.navbar__mobile-link:hover {
  color: hsl(var(--foreground));
  padding-left: 1.75rem;
}

.navbar__mobile-link.is-active {
  color: hsl(var(--primary));
}

.navbar__mobile-cta {
  padding: 0.5rem 1.5rem 0;
}

@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }

  .navbar__toggle,
  .navbar__mobile {
    display: none;
  }
}

/* ---------- Hero ---------- */
.main {
  padding-top: 4rem;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(4px);
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(hsl(var(--border) / 0.3) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 10;
  padding: 5rem 1.5rem;
}

.hero__box {
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.3);
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 500;
  width: fit-content;
  animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 hsl(var(--primary) / 0);
  }
  50% {
    box-shadow: 0 0 16px 0 hsl(var(--primary) / 0.25);
  }
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: hsl(var(--foreground));
}

.hero__text {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
}

@media (min-width: 640px) {
  .hero__title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.75rem;
  }
}

/* ---------- Grids / Cards ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--services {
  grid-template-columns: 1fr;
}

.grid--why {
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--services,
  .grid--why {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--services,
  .grid--why {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: hsl(var(--card));
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: hsl(var(--primary));
  transition: background 0.2s, transform 0.3s;
}

.card:hover .card__icon {
  background: hsl(var(--primary) / 0.2);
  transform: scale(1.08);
}

.card__title {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.card__desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.why {
  text-align: center;
}

.why__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, transform 0.25s;
}

.why:hover .why__icon {
  background: hsl(var(--primary) / 0.2);
  transform: scale(1.08) rotate(-4deg);
}

.why__title {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.why__desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ---------- About ---------- */
.about__text {
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
  font-size: 1.125rem;
  margin-top: 1.5rem;
}

.about h2 {
  margin-top: 0.5rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 3rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-info__text {
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
}

.contact-info__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
}

.contact-info__phone .icon {
  color: hsl(var(--primary));
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

.input:hover {
  border-color: hsl(var(--primary) / 0.4);
}

.input:focus {
  outline: none;
  border-color: hsl(var(--primary) / 0.6);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.18);
}

.input--textarea {
  resize: none;
}

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid hsl(var(--border));
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer__info {
  text-align: center;
}

.footer__info p {
  margin: 0.25rem 0;
}

.footer__link {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.footer__link:hover {
  text-decoration-color: currentColor;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
  }

  .footer__info {
    text-align: right;
  }
}

/* ---------- Entrance & scroll-reveal animations ---------- */
.hero-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fade-in-up 0.7s ease forwards;
}

.hero-in--1 { animation-delay: 0.05s; }
.hero-in--2 { animation-delay: 0.15s; }
.hero-in--3 { animation-delay: 0.28s; }
.hero-in--4 { animation-delay: 0.4s; }

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.grid--services .reveal.is-visible,
.grid--why .reveal.is-visible {
  transition-delay: var(--reveal-delay, 0s);
}

.grid--services .reveal:nth-child(1),
.grid--why .reveal:nth-child(1) { --reveal-delay: 0s; }
.grid--services .reveal:nth-child(2),
.grid--why .reveal:nth-child(2) { --reveal-delay: 0.08s; }
.grid--services .reveal:nth-child(3),
.grid--why .reveal:nth-child(3) { --reveal-delay: 0.16s; }
.grid--services .reveal:nth-child(4),
.grid--why .reveal:nth-child(4) { --reveal-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-in,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .badge {
    animation: none;
  }

  .card:hover,
  .btn:hover,
  .why:hover .why__icon,
  .logo:hover .logo__img {
    transform: none;
  }
}
