:root {
  --font-base: 'Work Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --color-bg: #0c111f;
  --color-bg-alt: #111a2c;
  --color-surface: #1c2a44;
  --color-accent: #4e9bff;
  --color-accent-dark: #2e71c9;
  --color-text: #e9edf7;
  --color-text-muted: #b4bed3;
  --color-outline: rgba(255, 255, 255, 0.08);
  --content-max: 1100px;
  --shadow-soft: 0 20px 45px rgba(0, 0, 0, 0.28);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-base);
  background: linear-gradient(135deg, var(--color-bg), #04070f);
  color: var(--color-text);
  line-height: 1.6;
}

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

.wrapper {
  width: min(92%, var(--content-max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(4, 7, 15, 0.8);
  border-bottom: 1px solid var(--color-outline);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  font-weight: 700;
}

.brand-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 12rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--color-outline);
}

.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.lang-btn.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(78, 155, 255, 0.12);
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.site-nav a.is-active {
  color: var(--color-accent);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-accent);
}

.hero {
  padding: 6rem 0 4rem;
}

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

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  box-shadow: 0 12px 25px rgba(78, 155, 255, 0.35);
}

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

.btn-secondary {
  border: 1px solid var(--color-outline);
  color: var(--color-text-muted);
  background: rgba(16, 24, 42, 0.7);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.hero-card {
  background: rgba(19, 27, 45, 0.95);
  border-radius: 1.4rem;
  padding: 2.4rem;
  border: 1px solid var(--color-outline);
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.hero-card p {
  color: var(--color-text-muted);
}

.hero-card ul {
  padding-left: 1.1rem;
  margin: 1.25rem 0;
  color: var(--color-text);
}

.card-footnote {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-outline);
  border-bottom: 1px solid var(--color-outline);
}

.section-header {
  text-align: center;
  margin-bottom: 2.4rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 42rem;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: rgba(14, 21, 36, 0.9);
  border-radius: 1.2rem;
  padding: 2rem;
  border: 1px solid var(--color-outline);
  transition: transform 0.2s ease, border 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}

.card h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.65rem;
}

.card p {
  color: var(--color-text-muted);
}

.card-icon {
  font-size: 1.8rem;
  color: var(--color-accent);
}

.columns {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.columns h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--color-text-muted);
}

.list-check li {
  position: relative;
  padding-left: 1.5rem;
}

.list-check li::before {
  content: '✓';
  font-family: inherit;
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--color-accent);
}

.partner-list {
  columns: 2;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--color-text-muted);
}

.projects-section {
  background: var(--color-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.project-card {
  background: rgba(14, 21, 36, 0.9);
  border-radius: 1.2rem;
  border: 1px solid var(--color-outline);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}

.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card figcaption {
  padding: 1.6rem 1.8rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card h3 {
  margin: 0;
}

.project-card p {
  margin: 0;
  color: var(--color-text-muted);
}

.metrics {
  background: radial-gradient(circle at top, rgba(78, 155, 255, 0.08), transparent 45%), var(--color-bg);
  border-top: 1px solid var(--color-outline);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.metric-value {
  font-size: 2.4rem;
  font-weight: 700;
  display: block;
  color: #fff;
}

.metric-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.metrics-note {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--color-text-muted);
}

.contact-hero {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.contact-intro h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.contact-details {
  margin: 2rem 0;
  padding: 2rem;
  border-radius: 1.2rem;
  background: rgba(19, 27, 45, 0.85);
  border: 1px solid var(--color-outline);
}

.contact-details h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
  color: var(--color-text-muted);
}

.contact-details li {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
}

.contact-card {
  background: rgba(14, 21, 36, 0.9);
  border-radius: 1.4rem;
  padding: 2.4rem;
  border: 1px solid var(--color-outline);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 17, 31, 0.7);
  padding: 0.85rem 1rem;
  color: var(--color-text);
  font-family: var(--font-base);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(78, 155, 255, 0.5);
  border-color: transparent;
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-form button {
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-form button.is-loading {
  cursor: progress;
  opacity: 0.7;
  transform: translateY(0);
}

.form-disclaimer {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.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;
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.form-status.is-success {
  color: #6fe3b2;
}

.form-status.is-error {
  color: #ff8e8e;
}

.form-status.is-loading {
  color: var(--color-accent);
}

.contact-note {
  color: var(--color-text-muted);
  max-width: 34rem;
}

.site-footer {
  padding: 3rem 0 2rem;
  background: rgba(7, 10, 18, 0.92);
  border-top: 1px solid var(--color-outline);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-grid h4 {
  margin: 0 0 0.75rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-nav a {
  color: var(--color-text-muted);
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-outline);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(4, 7, 15, 0.95);
    border-bottom: 1px solid var(--color-outline);
  }

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

  .lang-switch {
    margin-left: 0;
    padding-left: 0;
    margin-top: 1rem;
    border-left: none;
    gap: 0.75rem;
  }

  .hero {
    padding-top: 5rem;
  }
}

@media (max-width: 600px) {
  .wrapper {
    width: min(94%, var(--content-max));
  }

  .site-header {
    position: sticky;
  }

  .header-wrapper {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0;
  }

  .brand-text {
    font-size: 0.85rem;
    max-width: 10rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .cta-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-card {
    padding: 1.8rem;
  }

  .hero-card ul {
    padding-left: 1rem;
  }

  .hero-highlights {
    gap: 0.65rem;
  }

  .hero-highlights li {
    font-size: 0.95rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .cards-grid {
    gap: 1.1rem;
  }

  .card {
    padding: 1.6rem;
  }

  .columns {
    gap: 1.5rem;
  }

  .partner-list {
    columns: 1;
  }

  .projects-grid {
    gap: 1.2rem;
  }

  .project-card figcaption {
    padding: 1.4rem 1.5rem 1.6rem;
  }

  .metrics-grid {
    gap: 1.25rem;
    grid-template-columns: 1fr;
  }

  .metrics-note {
    text-align: left;
  }

  .contact-grid {
    gap: 1.8rem;
  }

  .contact-details {
    padding: 1.6rem;
  }

  .contact-card {
    padding: 1.9rem;
  }

  .contact-form {
    gap: 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 7rem 0 5rem;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .cta-group {
    gap: 1.25rem;
  }

  .cards-grid {
    gap: 2rem;
  }

  .card {
    padding: 2.2rem;
  }

  .columns {
    gap: 2.5rem;
  }

  .metrics-grid {
    gap: 2.5rem;
  }

  .projects-grid {
    gap: 2.2rem;
  }

  .project-card figcaption {
    padding: 2rem 2.2rem 2.3rem;
  }

  .contact-grid {
    gap: 2.8rem;
  }

  .contact-card {
    padding: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
