:root {
  --brand-green: #3fc13b;
  --brand-grey: #b3b6ba;
  --bg: #f7f8fa;
  --bg-light: #ffffff;
  --bg-dark: #050608;
  --surface: #ffffff;
  --text: #1e2124;
  --text-muted: #6c7077;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
  --radius-card: 18px;
  --radius-pill: 999px;
  --nav-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  margin-top: var(--nav-height);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section--light {
  background: var(--bg-light);
}

.section--medium {
  background: var(--bg);
}

.section--dark {
  background: var(--bg-dark);
  color: #f5f7fb;
  position: relative;
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-header h2 {
  font-size: 1.9rem;
  margin: 0 0 8px;
}

.section-header p {
  margin: 0;
  max-width: 640px;
  color: var(--text-muted);
}

.section--dark .section-header p {
  color: #c5cad3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-green);
  color: #020203;
  box-shadow: 0 14px 30px rgba(63, 193, 59, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(63, 193, 59, 0.4);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: #f5f7fb;
  background: transparent;
}

.btn-outline:hover {
  border-color: #f5f7fb;
  background: rgba(255, 255, 255, 0.06);
}

.btn-full {
  width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(5, 6, 8, 0.9);
  backdrop-filter: blur(18px);
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f5f7fb;
}

.brand-logo {
  height: 36px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a8aeb9;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
  color: #dde1ea;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand-green);
  transition: width 0.18s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  color: inherit;
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: #f5f7fb;
  display: block;
  flex-shrink: 0;
  border-radius: 99px;
}

.hero {
  position: relative;
  color: #f5f7fb;
  padding-top: 96px;
  padding-bottom: 84px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 0 0,
      rgba(63, 193, 59, 0.32),
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(179, 182, 186, 0.25),
      transparent 55%
    ),
    linear-gradient(135deg, #050608 15%, #12151a 85%);
  opacity: 0.98;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 44px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 3.1vw, 2.7rem);
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

.hero-subtitle {
  margin: 0 0 20px;
  max-width: 560px;
  color: #c1c7d3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #cdd3df;
  font-size: 0.85rem;
}

.hero-highlights li {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 6, 8, 0.5);
}

.hero-side {
  display: flex;
  justify-content: flex-end;
}

.hero-logo-card {
  background: rgba(5, 6, 8, 0.8);
  border-radius: 20px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  max-width: 280px;
}

.hero-logo {
  width: 110px;
  margin-bottom: 12px;
}

.hero-logo-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #c7ccd6;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: flex-start;
}

.about-text p {
  margin-top: 0;
  color: var(--text-muted);
}

.about-text p + p {
  margin-top: 12px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.03);
}

.stat-number {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--brand-green);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 20px 18px 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.card p {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.card ul {
  padding-left: 20px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 18px 18px 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.project-card p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  background: rgba(63, 193, 59, 0.08);
  color: #1e3e1c;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-grid:has(> .gallery-empty:only-child) {
  display: block;
  max-width: 640px;
  margin-inline: auto;
}

.gallery-empty {
  margin: 0;
  padding: 28px 24px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-card);
  border: 1px dashed var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.gallery-empty__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.gallery-empty__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.gallery-item {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  padding: 12px 14px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.hero-code,
.section-header code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.section--light .section-header code {
  background: rgba(63, 193, 59, 0.12);
  color: #1e3e1c;
}

.checklist code {
  font-size: 0.85em;
  color: #e2e6ee;
}

.alt-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: #c9cfdb;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--brand-green);
}

.alt-cta-actions p {
  margin-top: 0;
  margin-bottom: 12px;
  color: #c5cad3;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
  gap: 26px;
  align-items: flex-start;
}

.contact-details p {
  color: var(--text-muted);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

.contact-list a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-form-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 20px 18px 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.contact-form-card h3 {
  margin: 0 0 12px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row label {
  font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(63, 193, 59, 0.7);
  box-shadow: 0 0 0 1px rgba(63, 193, 59, 0.4);
}

.form-disclaimer {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer {
  background: #050608;
  color: #c7ccd6;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand-name {
  font-weight: 600;
}

.footer-brand-subtitle {
  color: #a1a7b3;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-meta {
  color: #8e95a2;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    justify-content: flex-start;
  }

  .about-grid,
  .cards-grid,
  .projects-grid,
  .gallery-grid,
  .contact-grid,
  .alt-cta-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid,
  .projects-grid,
  .gallery-grid {
    gap: 18px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    padding: 12px 20px 14px;
    background: rgba(5, 6, 8, 0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 70px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 48px 0;
  }
}

@media (max-width: 520px) {
  .brand-tagline {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
  }
}

html {
  scroll-behavior: smooth;
}

/* ----- Splash screen (home page) ----- */
html.no-splash .splash-screen {
  display: none !important;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(63, 193, 59, 0.18),
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(179, 182, 186, 0.12),
      transparent 45%
    ),
    #050608;
  opacity: 1;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  visibility: visible;
}

.splash-screen--exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-screen__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.splash-screen__logo {
  width: min(200px, 55vw);
  height: auto;
  animation: splash-logo-in 1s ease-out forwards;
}

@keyframes splash-logo-in {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body.splash-active {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .splash-screen__logo {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .splash-screen {
    transition-duration: 0.2s;
  }
}

