:root {
  color-scheme: dark;
  --carbon: #090d12;
  --graphite: #10161d;
  --panel: #151c24;
  --panel-strong: #18212b;
  --line: #26323d;
  --line-soft: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --blue: #38bdf8;
  --blue-soft: rgba(56, 189, 248, 0.1);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.1);
  --gold: #f5c542;
  --gold-soft: rgba(245, 197, 66, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 20%, rgba(56, 189, 248, 0.16), transparent 25rem),
    radial-gradient(circle at 82% 8%, rgba(52, 211, 153, 0.12), transparent 24rem),
    var(--carbon);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

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

button,
select {
  cursor: pointer;
}

.container {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.nav-scrolled {
  background: rgba(9, 13, 18, 0.88);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-image,
.brand-mark-image,
.footer-brand-mark {
  width: auto;
  height: 2.3rem;
  object-fit: contain;
  display: inline-flex;
}

@media (max-width: 768px) {
  .brand-logo-image,
  .brand-mark-image,
  .footer-brand-mark {
    height: 2rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-mark,
.icon-box,
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--blue);
  background: var(--blue-soft);
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a,
.mobile-links a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.mobile-links a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-select {
  height: 2.5rem;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 0 0.75rem;
  color: var(--text);
  background: var(--panel);
  outline: none;
  font-size: 0.875rem;
  font-weight: 700;
  transition: border-color 180ms ease;
}

.language-select:focus {
  border-color: var(--blue);
}

.language-select option {
  color: var(--text);
  background: var(--panel);
}

.button,
.menu-toggle,
.messenger-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 6px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button {
  border: 1px solid transparent;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
}

.button-large {
  min-height: 3.5rem;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

.button-primary {
  color: var(--carbon);
  background: var(--blue);
}

.button-primary:hover {
  background: #7dd3fc;
}

.button-green {
  width: 100%;
  color: var(--carbon);
  background: var(--green);
}

.button-green:hover {
  background: #6ee7b7;
}

.button-ghost {
  border-color: #334155;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.button-ghost:hover {
  border-color: rgba(52, 211, 153, 0.5);
  background: var(--green-soft);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #334155;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-panel {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid #1e293b;
  background: rgba(9, 13, 18, 0.96);
  opacity: 0;
  transition: max-height 260ms ease, opacity 260ms ease;
}

.mobile-panel.is-open {
  max-height: 320px;
  opacity: 1;
}

.mobile-links {
  display: grid;
  gap: 0.25rem;
  padding-block: 1rem;
}

.mobile-links a {
  border-radius: 6px;
  padding: 0.85rem;
}

.mobile-links a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  position: relative;
  display: flex;
  min-height: 86svh;
  align-items: center;
  overflow: hidden;
  padding-top: 7rem;
}

.hero-bg {
  background-image:
    linear-gradient(90deg, rgba(9, 13, 18, 0.94) 0%, rgba(9, 13, 18, 0.84) 48%, rgba(9, 13, 18, 0.58) 100%),
    url("https://images.unsplash.com/photo-1515879218367-8466d910aaa4?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.grid-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

.hero-inner {
  position: relative;
  padding-block: 2.5rem 5rem;
}

.hero-copy {
  max-width: 48rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-title,
.section-header h2,
.contact-copy h2 {
  margin: 0;
  color: #fff;
  line-height: 1.08;
  font-weight: 800;
}

.hero-title {
  max-width: 54rem;
  font-size: 3.75rem;
}

.hero-subtitle {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-stats {
  display: grid;
  max-width: 56rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 3.5rem;
}

.stat-card {
  min-height: 6.3rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(9, 13, 18, 0.6);
  backdrop-filter: blur(12px);
}

.stat-value {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

.stat-label {
  margin-top: 0.25rem;
  color: var(--subtle);
  font-size: 0.875rem;
  line-height: 1.45;
}

.section,
.footer {
  padding-block: 5rem;
}

.section-alt {
  background: var(--graphite);
}

.section-bordered {
  border-block: 1px solid var(--line-soft);
}

.section-header {
  max-width: 42rem;
}

.section-header-compact {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 800;
}

.eyebrow-green {
  color: var(--green);
}

.section-header h2,
.contact-copy h2 {
  font-size: 2.5rem;
}

.section-header p:not(.eyebrow),
.section-note,
.contact-copy p {
  margin: 1rem 0 0;
  color: var(--subtle);
  line-height: 1.75;
}

.portfolio-grid,
.services-grid,
.process-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-card,
.service-card,
.process-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.portfolio-card,
.service-card,
.contact-card {
  transition: transform 250ms ease, border-color 250ms ease, background 250ms ease;
}

.portfolio-card:hover,
.service-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(21, 28, 36, 0.9);
}

.service-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.portfolio-card {
  overflow: hidden;
}

.project-media {
  position: relative;
  height: 13rem;
  background: #020617;
}

.project-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(9, 13, 18, 0.82), transparent);
}

.project-media img {
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.project-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  border-radius: 6px;
  padding: 0.28rem 0.75rem;
  color: var(--carbon);
  font-size: 0.75rem;
  font-weight: 900;
}

.project-tag-blue {
  background: var(--blue);
}

.project-tag-green {
  background: var(--green);
}

.project-tag-gold {
  background: var(--gold);
}

.card-body,
.service-card,
.process-card,
.contact-card {
  padding: 1.25rem;
}

.card-body h3,
.service-card h3,
.process-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
}

.card-body p,
.card-text,
.process-card p {
  margin: 0.75rem 0 0;
  color: var(--subtle);
  font-size: 0.9rem;
  line-height: 1.7;
}

.services-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-note {
  max-width: 27rem;
}

.pricing-market-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.pricing-market-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--muted);
  background: rgba(21, 28, 36, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.pricing-market-button span {
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 700;
}

.pricing-market-button:hover {
  border-color: rgba(56, 189, 248, 0.42);
  color: #fff;
  background: var(--panel-strong);
}

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

.pricing-market-button.is-active {
  border-color: rgba(52, 211, 153, 0.58);
  color: #fff;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(56, 189, 248, 0.1));
  box-shadow: 0 16px 42px rgba(52, 211, 153, 0.12);
}

.icon-box {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.5rem;
}

.icon-box-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.icon-box-green {
  color: var(--green);
  background: var(--green-soft);
}

.icon-box-gold {
  color: var(--gold);
  background: var(--gold-soft);
}

.service-card-featured {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 70px rgba(56, 189, 248, 0.14);
}

.service-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.service-topline .icon-box {
  margin-bottom: 1.5rem;
}

.popular-badge {
  align-self: flex-start;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  padding: 0.28rem 0.75rem;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.75rem;
  font-weight: 800;
}

.price {
  margin: 0.5rem 0 0;
  font-size: 1.85rem;
  font-weight: 900;
}

.price-blue {
  color: var(--blue);
}

.price-green {
  color: var(--green);
}

.price-gold {
  color: var(--gold);
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.service-card .feature-list {
  margin-top: auto;
  padding-top: 1.5rem;
}

.pricing-support-card {
  margin-top: 1.25rem;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(52, 211, 153, 0.06)),
    var(--panel);
  transition: transform 250ms ease, border-color 250ms ease, background 250ms ease;
}

.pricing-support-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.44);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.13), rgba(52, 211, 153, 0.08)),
    var(--panel-strong);
}

.pricing-support-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: flex-start;
}

.pricing-support-main .icon-box {
  margin-bottom: 0;
}

.pricing-support-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
}

.pricing-note {
  max-width: 58rem;
  margin: 1rem 0 0;
  color: var(--subtle);
  font-size: 0.9rem;
  line-height: 1.75;
}

.process-card {
  min-height: 13rem;
}

.step-index {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 900;
}

.step-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.step-green {
  color: var(--green);
  background: var(--green-soft);
}

.step-gold {
  color: var(--gold);
  background: var(--gold-soft);
}

.step-white {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.contact-copy p {
  max-width: 38rem;
}

.messenger-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.messenger-link {
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  color: #fff;
  background: var(--panel);
  font-size: 0.875rem;
}

.messenger-link:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--blue);
}

.messenger-link-green:hover {
  border-color: rgba(52, 211, 153, 0.5);
  color: var(--green);
}

.contact-card {
  display: grid;
  gap: 1.25rem;
}

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

label {
  display: grid;
  gap: 0.5rem;
}

label span {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: #fff;
  background: var(--carbon);
  outline: none;
  transition: border-color 180ms ease;
}

textarea {
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
}

.form-status {
  margin: 0;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.875rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
}

.footer-brand-mark {
  width: auto;
  height: 2rem;
  object-fit: contain;
  display: inline-flex;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 2rem;
  color: #64748b;
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--subtle);
  transition: color 180ms ease;
}

.back-top:hover {
  color: #fff;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  stroke: currentColor;
}

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

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

.icon-check {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  color: var(--green);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.125rem;
  }

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

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 1280px);
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding-top: 6.5rem;
  }

  .hero-inner {
    padding-block: 2rem 4.5rem;
  }

  .hero-title {
    font-size: 2.55rem;
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats,
  .contact-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

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

  .services-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-support-main {
    grid-template-columns: 1fr;
  }

  .section,
  .footer {
    padding-block: 4rem;
  }

  .section-header h2,
  .contact-copy h2 {
    font-size: 2rem;
  }

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

@media (max-width: 520px) {
  .brand-text {
    max-width: 10rem;
  }

  .language-select {
    padding-inline: 0.45rem;
  }

  .hero-title {
    font-size: 2.15rem;
  }

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

  .project-media {
    height: 12rem;
  }
}

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

  .reveal,
  .portfolio-card,
  .service-card,
  .contact-card,
  .mobile-panel {
    transition: none;
  }
}
