:root {
  --bg: #0c1424;
  --bg-soft: #101d35;
  --surface: #ffffff;
  --surface-soft: #f4f8ff;
  --text: #111827;
  --text-muted: #53617a;
  --headline: #09142b;
  --accent: #09c3b7;
  --accent-strong: #078f87;
  --highlight: #f6a723;
  --border: rgba(9, 20, 43, 0.12);
  --shadow: 0 22px 55px rgba(8, 19, 39, 0.14);

  --font-body: "Manrope", sans-serif;
  --font-heading: "Syne", sans-serif;

  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, #edf7ff 0%, #f7fbff 40%, #ffffff 100%);
  line-height: 1.65;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  color: #06635e;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 14px;
  line-height: 1.2;
  color: var(--headline);
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 14px;
}

.section {
  position: relative;
  padding: 100px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.86rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
  backdrop-filter: blur(12px);
  background: linear-gradient(100deg, rgba(7, 17, 33, 0.95) 0%, rgba(10, 25, 47, 0.88) 60%, rgba(7, 17, 33, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.site-header.header-compact {
  padding: 9px 0;
  background: linear-gradient(100deg, rgba(7, 17, 33, 0.98) 0%, rgba(10, 25, 47, 0.95) 60%, rgba(7, 17, 33, 0.98) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.brand {
  gap: 10px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

.brand-text {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.navmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navmenu a,
.dropdown-toggle-btn {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.96rem;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  border-radius: 999px;
  transition: background 0.26s ease, color 0.26s ease;
}

.navmenu a:hover,
.navmenu a.active,
.dropdown-toggle-btn:hover,
.dropdown-parent.open > .dropdown-toggle-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--highlight);
}

.dropdown-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.dropdown-parent.open .caret,
.dropdown-parent .dropdown-toggle-btn[aria-expanded="true"] .caret {
  transform: rotate(225deg) translateY(-1px);
}

.dropdown-parent {
  position: relative;
}

.dropdown-menu-list {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  min-width: 290px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.dropdown-parent.open .dropdown-menu-list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.dropdown-menu-list a {
  color: var(--headline);
  border-radius: 12px;
  padding: 10px 12px;
  display: block;
  border: 1px solid transparent;
}

.dropdown-menu-list a:hover {
  background: #f7fbff;
  color: var(--accent-strong);
  border-color: rgba(9, 195, 183, 0.22);
}

.dropdown-menu-list strong,
.dropdown-menu-list small {
  display: block;
}

.dropdown-menu-list strong {
  font-size: 0.93rem;
}

.dropdown-menu-list small {
  margin-top: 1px;
  color: #61738f;
  font-size: 0.77rem;
}

.mobile-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 0;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav-open .mobile-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-open .mobile-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-open .mobile-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 90px;
  background: radial-gradient(circle at 80% 20%, rgba(246, 167, 35, 0.23), transparent 36%),
    radial-gradient(circle at 10% 10%, rgba(9, 195, 183, 0.25), transparent 30%),
    linear-gradient(145deg, #0d1b31 0%, #111f3b 45%, #071428 100%);
}

.hero .kicker,
.hero h1,
.hero p {
  color: #ffffff;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 4rem);
  max-width: 840px;
}

.hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-cta-group {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-solid {
  background: linear-gradient(120deg, var(--accent) 0%, #45dfd4 100%);
  color: #02211e;
}

.btn-solid:hover {
  color: #011412;
  transform: translateY(-1px);
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.hero-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 28px;
  border-radius: 18px;
  backdrop-filter: blur(4px);
}

.hero-card-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-card h2,
.hero-card p,
.hero-card li {
  color: #ffffff;
}

.hero-card-label {
  color: #95fff8;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
}

.hero-metrics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-metrics article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 14px;
  border-radius: 12px;
}

.hero-metrics h3 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.hero-metrics p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.9rem;
}

.about-section {
  background: transparent;
}

.lead-text {
  color: #0f274d;
  font-size: 1.08rem;
  font-weight: 600;
}

.about-panel {
  border-radius: 18px;
  padding: 26px;
  background: linear-gradient(150deg, #ffffff 0%, #ecf8ff 100%);
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(12, 27, 52, 0.1);
}

.about-image-wrap {
  margin-top: 22px;
}

.about-image {
  width: 100%;
  border-radius: 18px;
  display: block;
  border: 1px solid rgba(9, 20, 43, 0.16);
  box-shadow: 0 16px 36px rgba(11, 28, 56, 0.14);
}

.services-section {
  background: #ffffff;
}

.service-card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(8, 22, 44, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.service-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-price {
  margin-top: 14px;
  margin-bottom: 0;
  display: inline-block;
  border-radius: 999px;
  background: #e8fbf9;
  color: #0b6c65;
  border: 1px solid rgba(9, 195, 183, 0.35);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
}

.inline-pricing-link {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  border: 1px solid rgba(7, 143, 135, 0.28);
  color: #075f59;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 0.9rem;
}

.inline-pricing-link:hover {
  color: #ffffff;
  background: #078f87;
  border-color: #078f87;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(8, 22, 44, 0.12);
}

.accent-card {
  background: linear-gradient(160deg, #0f2441 0%, #0a1830 70%);
  border-color: rgba(255, 255, 255, 0.08);
}

.accent-card h3,
.accent-card p {
  color: #ffffff;
}

.accent-card .service-price {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.accent-card .service-image {
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.pricing-matrix-wrap {
  margin-top: 56px;
}

.pricing-matrix {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(12, 27, 52, 0.08);
}

.matrix-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(9, 20, 43, 0.08);
}

.matrix-row:last-child {
  border-bottom: 0;
}

.matrix-row h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.matrix-row p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.matrix-row strong {
  color: #0c2f55;
  white-space: nowrap;
  font-size: 0.95rem;
}

.contact-section {
  background: linear-gradient(180deg, #f7fbff 0%, #eff8ff 100%);
}

.contact-email {
  font-size: 1.05rem;
  margin-top: 26px;
}

.contact-form {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 26px;
  box-shadow: 0 14px 34px rgba(12, 27, 52, 0.11);
}

.form-label {
  font-weight: 700;
  color: #10284f;
}

.form-control {
  border-radius: 10px;
  border: 1px solid rgba(16, 40, 79, 0.2);
  padding: 10px 12px;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(9, 195, 183, 0.15);
}

.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message {
  display: none;
  margin-top: 8px;
  margin-bottom: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}

.php-email-form .loading {
  background: #edf8ff;
}

.php-email-form .error-message {
  background: #ffe8ea;
  color: #a11527;
}

.php-email-form .sent-message {
  background: #dff6ed;
  color: #0e6a44;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 8% 10%, rgba(9, 195, 183, 0.2), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(246, 167, 35, 0.17), transparent 36%),
    linear-gradient(160deg, #07162e 0%, #091a38 45%, #050f22 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 20px;
}

.footer-cta h2 {
  margin-bottom: 0;
  color: #ffffff;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  max-width: 640px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
}

.footer-brand-block p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 500px;
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-logo {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.footer-brand-name {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
}

.footer-email a {
  color: #95fff8;
  font-weight: 700;
}

.footer-links-block h3 {
  color: #ffffff;
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
}

.footer-bottom p {
  margin: 0;
}

.footer-note {
  color: rgba(255, 255, 255, 0.72);
}

.legal-hero {
  padding: 130px 0 44px;
  background: linear-gradient(155deg, #0d1c34 0%, #091425 100%);
  color: #ffffff;
}

.legal-hero h1,
.legal-hero p {
  color: #ffffff;
}

.legal-content {
  padding: 60px 0 100px;
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 12px 28px rgba(12, 27, 52, 0.08);
}

.legal-card h2 {
  margin-top: 18px;
}

.legal-card ul {
  margin-bottom: 12px;
}

/* Entry animation managed by JS observer */
.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.delay-1 {
  transition-delay: 0.12s;
}

.reveal-up.delay-2 {
  transition-delay: 0.2s;
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible,
.reveal-right.visible,
.scale-in.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 991.98px) {
  .mobile-nav-toggle {
    display: inline-block;
  }

  .navmenu {
    position: absolute;
    right: 14px;
    top: calc(100% + 10px);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    width: min(92vw, 340px);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.25s ease;
  }

  .mobile-nav-open .navmenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navmenu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .navmenu a,
  .dropdown-toggle-btn {
    color: var(--headline);
    width: 100%;
    text-align: left;
    border-radius: 10px;
    padding: 10px;
  }

  .dropdown-menu-list {
    position: static;
    margin: 4px 0 8px;
    box-shadow: none;
    border-radius: 12px;
    min-width: 100%;
    right: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
  }

  .dropdown-parent.open .dropdown-menu-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .matrix-row {
    grid-template-columns: 1fr;
  }

  .matrix-row strong {
    white-space: normal;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-top {
    padding: 20px;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 76px 0;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .hero-card,
  .contact-form,
  .legal-card {
    padding: 20px;
  }
}
