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

:root {
  color-scheme: only dark;
  --bg: #0f141b;
  --bg-alt: #151c26;
  --surface: #1b2430;
  --surface-muted: #222c39;
  --ink: #f2f5f7;
  --muted: #a8b2bf;
  --accent: #29b6d8;
  --accent-strong: #57c770;
  --accent-alt: #1ea88f;
  --border: #2b3847;
  --shadow: 0 20px 60px rgba(8, 12, 18, 0.5);
  --radius: 20px;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: linear-gradient(155deg, #0a1118 0%, #0f1b26 48%, #0c151f 100%);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

body::before {
  background-image:
    linear-gradient(
      120deg,
      rgba(41, 182, 216, 0.06),
      rgba(30, 168, 143, 0.03) 40%,
      rgba(0, 0, 0, 0) 70%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 140px
    );
  opacity: 0.55;
}

body::after {
  background:
    radial-gradient(600px 420px at 14% 20%, rgba(60, 200, 220, 0.18), transparent 72%),
    radial-gradient(720px 520px at 86% 18%, rgba(70, 210, 160, 0.16), transparent 74%),
    radial-gradient(780px 560px at 80% 82%, rgba(90, 190, 120, 0.12), transparent 76%),
    radial-gradient(120% 90% at 50% 50%, transparent 38%, rgba(6, 10, 14, 0.85) 100%);
  opacity: 0.95;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.2;
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

li {
  margin-bottom: 8px;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(15, 20, 27, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10;
  overflow: visible;
}

main {
  padding-top: 90px;
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #111821;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-tag {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-weight: 500;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(27, 36, 48, 0.9);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  gap: 10px;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 14px;
  transform: translate(-50%, -50%);
  background-image: linear-gradient(120deg, var(--accent), var(--accent-strong)),
    linear-gradient(120deg, var(--accent), var(--accent-strong)),
    linear-gradient(120deg, var(--accent), var(--accent-strong));
  background-size: 22px 2px;
  background-position: center top, center center, center bottom;
  background-repeat: no-repeat;
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(41, 182, 216, 0.7);
  outline-offset: 2px;
}

.nav a {
  position: relative;
  padding-bottom: 6px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(27, 36, 48, 0.8);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.lang-btn.is-active {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #091018;
}

.hero {
  padding: 96px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: start;
}

.hero-copy {
  animation: hero-in 0.8s ease both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 3.8vw, 3.6rem);
  color: var(--ink);
}

.lead {
  font-size: 1.05rem;
}

.hero-note {
  font-weight: 600;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #0b1219;
  box-shadow: 0 12px 30px rgba(41, 182, 216, 0.25);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  transform: translateY(-2px);
}

.btn.ghost {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
  margin-top: 16px;
}

.chip-list li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.details-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
  padding: 0;
}

.detail-card {
  background: transparent;
  border-radius: 0;
  padding: 0 0 0 18px;
  border-left: 2px solid rgba(41, 182, 216, 0.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: visible;
  box-shadow: none;
}

.detail-card h2 {
  margin-bottom: 4px;
  font-size: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  padding-top: 0;
  letter-spacing: 0.2px;
}

.detail-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.detail-sub {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-card ul {
  padding-left: 18px;
  margin: 0;
}

.detail-card li {
  margin-bottom: 10px;
}

.detail-lead {
  color: var(--muted);
  margin-bottom: 6px;
}

.detail-note {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--accent-strong);
  color: var(--ink);
  font-weight: 600;
}

.callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-muted);
  border: 1px dashed var(--border);
  color: var(--ink);
  font-weight: 600;
}

.section {
  padding: 72px 0;
  position: relative;
  scroll-margin-top: 90px;
}

.section::before {
  content: "";
  position: absolute;
  inset: -40px 0;
  background: linear-gradient(
    180deg,
    rgba(15, 20, 27, 0) 0%,
    var(--section-tint, rgba(15, 20, 27, 0.08)) 30%,
    var(--section-tint-strong, rgba(15, 20, 27, 0.05)) 70%,
    rgba(15, 20, 27, 0) 100%
  );
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
}

.section.alt {
  --section-tint: rgba(41, 182, 216, 0.12);
  --section-tint-strong: rgba(41, 182, 216, 0.06);
}

.section.services {
  --section-tint: rgba(30, 168, 143, 0.12);
  --section-tint-strong: rgba(30, 168, 143, 0.06);
  overflow: hidden;
}

.section.details {
  --section-tint: rgba(87, 199, 112, 0.12);
  --section-tint-strong: rgba(87, 199, 112, 0.06);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: baseline;
  margin-bottom: 40px;
}

.section-head p {
  max-width: 520px;
}

.section.services .section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 32px;
}

.section.services .section-head h2 {
  font-size: clamp(1.7rem, 1vw + 1.4rem, 2.2rem);
  position: relative;
  padding-left: 16px;
}

.section.services .section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 6px;
  height: 1.2em;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
}

.section.services .section-head p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
}

.services-wrap {
  display: grid;
  gap: 36px;
  padding: 16px 0 12px;
  position: relative;
  z-index: 1;
}

.service-area + .service-area {
  margin-top: 0;
}

.service-area {
  display: grid;
  gap: 26px;
  padding: 28px 0 32px;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.service-area + .service-area {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.services-wrap .service-area {
  --area-accent: var(--accent);
}

.services-wrap .service-area:nth-of-type(2) {
  --area-accent: var(--accent-strong);
}

.services-wrap .service-area:nth-of-type(3) {
  --area-accent: var(--accent-alt);
}

.area-head {
  display: grid;
  gap: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--area-accent);
}

.area-head p {
  max-width: 560px;
  margin-bottom: 0;
}

.area-head h3 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.card-grid {
  display: grid;
  gap: 22px;
  align-items: stretch;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  grid-auto-rows: 1fr;
}

.service-card {
  position: relative;
  perspective: 1200px;
  cursor: pointer;
  height: 100%;
  min-height: 260px;
}

.service-card:focus-visible {
  outline: 2px solid rgba(41, 182, 216, 0.7);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.service-card:hover .card-front {
  box-shadow: 0 16px 34px rgba(5, 10, 16, 0.6);
  border-color: rgba(41, 182, 216, 0.5);
  transform: translateY(-2px);
}

.card-front {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  height: 100%;
  will-change: transform;
}

.service-card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(31, 40, 52, 0.95),
    rgba(16, 22, 30, 0.98)
  );
  box-shadow: 0 16px 32px rgba(5, 10, 16, 0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  overflow: hidden;
  position: relative;
  transform: translateZ(0.1px);
}

.card-face::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 14px;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  opacity: 0.9;
}

.card-front > * {
  position: relative;
  z-index: 1;
}

.card-front h4 {
  width: 100%;
  font-size: clamp(1.15rem, 0.9vw + 0.9rem, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  padding: 10px 0 10px;
  border-radius: 0;
  background: transparent;
  border: none;
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-back h4 {
  font-size: 1.05rem;
  padding-top: 10px;
  margin-bottom: 6px;
}

.card-face h4 {
  margin-bottom: 0;
}

.card-face p {
  margin: 0;
}

.card-front .card-cta {
  margin-top: auto;
  color: var(--accent-strong);
}

.card-back .card-cta.back {
  margin-top: auto;
}

.card-back {
  transform: rotateY(180deg) translateZ(0.1px);
  background: linear-gradient(
    180deg,
    rgba(24, 32, 42, 0.97),
    rgba(14, 20, 28, 0.98)
  );
  overflow-y: auto;
}

.card-back .label {
  font-size: 0.7rem;
  letter-spacing: 1.2px;
}

.card-back::-webkit-scrollbar {
  width: 6px;
}

.card-back::-webkit-scrollbar-thumb {
  background: rgba(41, 182, 216, 0.45);
  border-radius: 999px;
}

.summary {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
  margin-top: 2px;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-cta::after {
  content: "\2192";
  font-size: 1rem;
}

.card-cta.back::after {
  content: "\2190";
}

.label {
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  margin-top: 8px;
}

.time {
  font-weight: 600;
  color: var(--accent-strong);
  margin-top: 8px;
}


.contact {
  --section-tint: rgba(41, 182, 216, 0.12);
  --section-tint-strong: rgba(41, 182, 216, 0.06);
}

.contact-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  resize: vertical;
}

.form-status {
  margin: 0;
  min-height: 20px;
  font-weight: 600;
  color: var(--muted);
}

.form-status[data-state="success"] {
  color: var(--accent-strong);
}

.form-status[data-state="error"] {
  color: #f47b7b;
}

.form-target {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  padding: 32px 0 48px;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

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

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .details-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 960px) {
  .header-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .nav {
    flex-wrap: wrap;
  }

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

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .service-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .details-grid {
    padding: 16px;
  }

  .services-wrap {
    padding: 8px 0;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(600px, 92%);
  }

  .header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
  }

  .brand-tag {
    display: none;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .lang-toggle {
    margin-left: auto;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    display: none;
    gap: 12px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 16px;
    border-radius: 16px;
    background: rgba(15, 20, 27, 0.95);
    border: 1px solid rgba(43, 56, 71, 0.7);
    box-shadow: 0 18px 40px rgba(6, 12, 18, 0.5);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 0;
  }

  main {
    padding-top: 76px;
  }

  .section {
    scroll-margin-top: 76px;
  }

  .section {
    padding: 56px 0;
  }

  .section.services .section-head {
    padding-bottom: 16px;
    margin-bottom: 24px;
  }

  .section.services .section-head h2 {
    font-size: 1.6rem;
  }

  .service-area {
    padding: 16px 0 20px;
    gap: 18px;
  }

  .card-face {
    padding: 18px;
    gap: 12px;
  }

  .service-card {
    min-height: 240px;
  }

  .details-grid {
    gap: 18px;
  }

  .detail-card {
    padding-left: 16px;
  }

  .contact-grid {
    gap: 24px;
  }

  .contact-form {
    padding: 20px;
  }

}

@media (max-width: 480px) {
  .header-grid {
    gap: 16px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .area-head h3 {
    font-size: 1.4rem;
  }

  .card-front h4 {
    font-size: 1.2rem;
  }

  .summary {
    font-size: 0.9rem;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  * {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
