:root {
  --font-body: "Space Grotesk", sans-serif;
  --font-logo: "Michroma", sans-serif;

  --color-primary: #219681;
  --color-secondary: #cfff72;
  --color-indigo: rgba(99, 102, 241, 0.92);
  --color-success: rgba(16, 185, 129, 0.95);

  --color-dark: #0d0d0d;
  --color-dark-soft: #1a1f1d;
  --color-light: #F3F3F2;
  --color-white: #ffffff;

  --color-text-dark: #1a1f1d;
  --color-text-light: #f7f7f8;
  --color-muted-dark: #c7d0cc;
  --color-muted-light: #4a4f57;

  --color-border-light: #e5e7eb;
  --color-border-dark: rgba(255, 255, 255, 0.14);
  --color-danger: #b91c1c;

  --surface-page: var(--color-dark);
  --surface-header: #000000;
  --surface-header-scrolled: #1a1f1d73;
  --surface-card: #151515;
  --surface-card-alt: #101010;
  --surface-panel: #ffffff;

  --text-main: var(--color-text-light);
  --text-soft: var(--color-muted-dark);
  --text-inverse: var(--color-text-dark);
  --border-main: var(--color-border-dark);

  --hero-background: url("../../images/backdrop_dark.png");
  --footer-background: url("../../images/backdrop_dark_bot.png");

  --header-height: 88px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.08);
  --shadow-button: 0 10px 20px rgba(0, 0, 0, 0.2);
  --theme-speed: 0.45s;
}

html,
body,
.top-header,
.tab-nav,
.site-main,
.site-footer,
.panel,
.service-card,
.faq-item,
.field-group input,
.field-group textarea,
.theme-toggle,
.theme-toggle__track,
.theme-toggle__thumb,
.tab-nav__link,
.button,
.section-title,
.section-copy,
.hero__title,
.hero__copy,
.footer-bottom,
.footer-list a,
.footer-heading,
.footer-copy,
.footer-brand {
  transition:
    background-color var(--theme-speed) ease,
    color var(--theme-speed) ease,
    border-color var(--theme-speed) ease,
    box-shadow var(--theme-speed) ease,
    opacity var(--theme-speed) ease,
    transform var(--theme-speed) ease;
}

.hero-backdrop,
.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop::before,
.hero-backdrop::after,
.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  transition: opacity var(--theme-speed) ease;
}

.hero-backdrop::before {
  background-image: url("../../images/backdrop_dark.png");
  opacity: 1;
}

.hero-backdrop::after {
  background-image: url("../../images/backdrop.png");
  opacity: 0;
}

.site-footer::before {
  background-image: url("../../images/backdrop_dark_bot.png");
  opacity: 1;
}

.site-footer::after {
  background-image: url("../../images/backdrop_bot.png");
  opacity: 0;
}

body.theme-light .hero-backdrop::before,
body.theme-light .site-footer::before {
  opacity: 0;
}

body.theme-light .hero-backdrop::after,
body.theme-light .site-footer::after {
  opacity: 1;
}

.site-footer {
  color: #f3f4f6;
}

body.theme-light .site-footer {
  color: #1a1f1d;
}

.site-footer,
.site-footer h2,
.site-footer h3,
.site-footer p,
.site-footer li,
.site-footer a {
  color: inherit;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body.theme-light {
  --surface-page: var(--color-light);
  --surface-card: #ffffff;
  --surface-card-alt: #f7f7f8;
  --surface-panel: #ffffff;

  --text-main: var(--color-text-dark);
  --text-soft: var(--color-muted-light);
  --text-inverse: var(--color-text-dark);
  --border-main: var(--color-border-light);

  --hero-background: url("../../images/backdrop.png");
  --footer-background: url("../../images/backdrop_bot.png");
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  transition:
    background-color var(--theme-speed) ease,
    color var(--theme-speed) ease;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--surface-page);
  color: var(--text-main);
  line-height: 1.5;
  padding-top: var(--header-height);
}

a {
  color: inherit;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.container--narrow {
  width: min(820px, calc(100% - 2rem));
}

.container--medium {
  width: min(980px, calc(100% - 2rem));
}

.top-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  min-height: var(--header-height);
  background: var(--surface-header);
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.has-scrolled .top-header {
  background: var(--surface-header-scrolled);
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.top-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.brand__logo {
  width: auto;
  height: clamp(54px, 9vw, 86px);
}

.top-header__nav {
  display: flex;
  justify-content: center;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.top-header__nav-list {
  justify-content: center;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  border: 0;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  justify-self: end;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

/* Only hide brand + toggle on scroll */
body.has-scrolled .brand,
body.has-scrolled .theme-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
}

/* Keep nav visible on scroll */
body.has-scrolled .top-header__nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

/* Theme toggle */

.theme-toggle__track {
  position: relative;
  width: 76px;
  height: 40px;
  border-radius: 999px;
  background: var(--color-dark-soft);
  border: 2px solid var(--border-main);
}

.theme-toggle__thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: inset 12px -4px 0 0 var(--color-secondary);
  transition:
    transform var(--theme-speed) ease,
    box-shadow var(--theme-speed) ease,
    background-color var(--theme-speed) ease;
}

body.theme-light .theme-toggle__thumb {
  transform: translateX(36px);
  background: var(--color-dark-soft);
  box-shadow: inset -10px 0 0 0 var(--color-secondary);
}

.theme-toggle__text {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Nav */

.tab-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tab-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-light);
  transition:
    background-color 0.2s ease,
    color var(--theme-speed) ease;
}

.tab-nav__link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.3rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: transform 0.25s ease;
}

.tab-nav__link:hover::after,
.tab-nav__link:focus-visible::after {
  transform: scaleX(1);
}

.tab-nav__link:focus-visible,
.theme-toggle:focus-visible,
.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Hero */

.hero-backdrop,
.site-footer {
  position: relative;
  isolation: isolate;
}

.hero-backdrop {
  background-color: transparent;
}

.hero-backdrop::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  opacity: 1;
  transition: opacity var(--theme-speed) ease;
}

.hero-backdrop::before {
  background-image: var(--hero-background);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.hero__content {
  max-width: 760px;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--text-main);
}

.hero__copy {
  margin: 0 0 2rem;
  max-width: 640px;
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 450;
  letter-spacing: -0.01em;
  color: var(--text-soft);
}

.hero__visual {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero__image {
  width: 100%;
  max-width: 540px;
  margin-left: auto;
}

.hero-card {
  position: absolute;
  max-width: 190px;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-soft);
}

.hero-card--dark {
  background: #1a1f1d;
}

.hero-card--indigo {
  background: var(--color-indigo);
}

.hero-card--green {
  background: var(--color-success);
}

.hero-card--top-right {
  top: 0.5rem;
  right: 1rem;
}

.hero-card--mid-left {
  top: 50%;
  left: 0.5rem;
  transform: translateY(-50%);
}

.hero-card--mid-right {
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
}

.hero-card__value {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f3f4f6;
}

.hero-card__label {
  margin: 0;
  font-size: 0.875rem;
  color: #d3fd85;
}

/* Main */

.site-main {
  background: transparent;
}

/* Sections */

.section {
  padding: 5rem 0;
}

.section--alt {
  background: transparent;
}

.section-heading {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-main);
}

.section-copy {
  margin: 0;
  color: var(--text-soft);
}

.accent-text {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--surface-panel);
  border: 1px solid var(--color-border-light);
  border-radius: 1.5rem;
  padding: 2rem;
  color: var(--color-text-dark);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color var(--theme-speed) ease,
    border-color var(--theme-speed) ease,
    color var(--theme-speed) ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 500;
  color: #1a1f1d;
}

.service-card p {
  margin: 0;
  color: #4a4f57;
}

/* CTA */

.cta-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
  border-radius: 1.75rem;
  border: 2px solid #ffffff;
  padding: 2.5rem;
  background: linear-gradient(90deg, #ffffff, rgba(38, 192, 166, 0.66), #cfff72);
  min-height: 250px;
}

.cta-banner__content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  color: #0d0d0d;
}

.cta-banner__content h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
  font-weight: 700;
}

.cta-banner__content p {
  margin: 0;
  color: #1a1f1d;
}

.cta-banner__visual {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.cta-banner__visual img {
  width: 100%;
  opacity: 0.85;
  transform: scale(1.35);
  transform-origin: center;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 9999px;
  background-color: #cfff72;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-button);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color var(--theme-speed) ease,
    color var(--theme-speed) ease;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100px;
  width: 100px;
  height: 100%;
  background-image: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0) 70%);
}

.button:hover {
  transform: scale(1.05);
}

.button:hover::before {
  animation: shine 1.5s ease-out infinite;
}

.button--primary,
.button--secondary {
  background-color: #cfff72;
  color: #111827;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--surface-panel);
  border: 1px solid var(--color-border-light);
  border-radius: 1rem;
  padding: 1.5rem;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #1a1f1d;
  font-weight: 700;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary span {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 1rem 0 0;
  color: #4a4f57;
}

/* Contact */

.contact-shell {
  display: grid;
  gap: 1.5rem;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.panel {
  background: var(--surface-panel);
  border: 1px solid var(--color-border-light);
  border-radius: 1.5rem;
  padding: 1.5rem;
  color: var(--color-text-dark);
}

.panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: #1a1f1d;
}

.panel-copy {
  margin: 0 0 1rem;
  color: #4a4f57;
  font-size: 0.95rem;
}

.drop-zone {
  min-height: 200px;
  border: 2px dashed #4a4f57;
  border-radius: 1rem;
  padding: 0.75rem;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    border-width 0.25s ease;
}

.drop-zone.drag-over {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--color-primary);
  border-width: 3px;
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #6b7280;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 0.9rem;
  background: #a2a2a2;
  color: #f8fafc;
  cursor: grab;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.service-item:last-child {
  margin-bottom: 0;
}

.service-item:active {
  cursor: grabbing;
}

.service-item.dragging {
  opacity: 0.5;
  transform: scale(1.02);
}

.priority-badge {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.remove-btn {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.field-group label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1f1d;
}

.field-group input,
.field-group textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 1rem;
  background: #ffffff;
  color: #111827;
  padding: 0.9rem 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color var(--theme-speed) ease,
    color var(--theme-speed) ease;
}

.field-group textarea {
  resize: vertical;
  min-height: 120px;
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(33, 150, 129, 0.15);
  outline: none;
}

.field-error {
  min-height: 1rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-danger);
}

.services-summary {
  border-radius: 1rem;
  padding: 1rem;
  background: #f3f4f6;
  color: #1a1f1d;
}

.services-summary.hidden {
  display: none;
}

.services-summary h4 {
  margin: 0 0 0.75rem;
}

.summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.summary-list>span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: #a2a2a2;
  color: #f8fafc;
  font-size: 0.9rem;
}

/* Toasts */

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 90;
  display: grid;
  gap: 0.75rem;
}

.toast {
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  background: #111827;
  color: #f9fafb;
  box-shadow: var(--shadow-soft);
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}

/* Footer */

.site-footer {
  background: transparent;
  color: #f3f4f6;
  padding: 3rem 0 1.5rem;
}

.site-footer::before {
  background-image: var(--footer-background);
}

body.theme-light .site-footer {
  color: #1a1f1d;
}

.site-footer,
.site-footer h2,
.site-footer h3,
.site-footer p,
.site-footer li,
.site-footer a {
  color: inherit;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px,220px));
  justify-content:center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-grid >div {
    text-align:center;
  }

.footer-brand {
  margin: 0 0 1rem;
  font-family: var(--font-logo);
  font-size: 1.125rem;
}

.footer-copy {
  margin: 0;
  color: inherit;
  opacity: 0.9;
}

.footer-heading {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li+li {
  margin-top: 0.5rem;
}

.footer-list a {
  text-decoration: none;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

body.theme-light .footer-bottom {
  border-top-color: rgba(26, 31, 29, 0.18);
}

/* Animations */

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shine {
  0% {
    left: -100px;
  }

  60%,
  100% {
    left: 100%;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* Responsive */

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero__image {
    margin: 0 auto;
  }

  .cta-banner {
    grid-template-columns: 1fr;
  }

  .cta-banner__visual {
    display: none;
  }

  
  
   .footer-grid {
    grid-template-columns: repeat(3, auto);
    justify-content:center;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 78px;
  }

  body {
    padding-top: var(--header-height);
  }

  .top-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .top-header__nav {
    display: none;
  }

  .brand__logo {
    height: 58px;
  }

  .theme-toggle__text {
    display: none;
  }

  .hero-card {
    position: static;
    max-width: none;
    margin-top: 1rem;
    transform: none !important;
  }

  .section {
    padding: 4rem 0;
  }

  .cards-grid,
  .priority-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 1.75rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}