:root {
  --bg: #090b10;
  --bg-elev: #111521;
  --bg-elev-soft: #131a28;
  --ink: #edf1fb;
  --ink-soft: #9ba6bf;
  --line: rgba(155, 170, 202, 0.24);
  --primary: #3f7cff;
  --secondary: #18b6ad;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 50% -20%, rgba(63, 124, 255, 0.16) 0%, transparent 56%),
    linear-gradient(180deg, #080a0f 0%, #0a0d14 50%, #090c12 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
}

.site-header,
.shell,
.site-footer {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.76);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.36);
}

.intro-drop {
  opacity: 0;
  transform: translateY(-24px) scale(0.98);
  animation: header-drop 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.12s;
}

@keyframes header-drop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 6px rgba(63, 124, 255, 0.17);
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.03rem;
  letter-spacing: 0.04em;
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(151, 176, 232, 0.08);
  border: 1px solid rgba(151, 176, 232, 0.22);
}

.lang-option {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  min-width: 44px;
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-option.active {
  background: linear-gradient(135deg, var(--primary), #2e5ec4);
  color: #fff;
  box-shadow: 0 10px 18px rgba(43, 84, 175, 0.45);
}

.lang-option:focus-visible {
  outline: 2px solid rgba(87, 134, 255, 0.5);
  outline-offset: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--ink);
  border-color: rgba(151, 176, 232, 0.28);
  background: rgba(17, 23, 34, 0.9);
}

.btn-ghost:hover {
  border-color: rgba(94, 136, 255, 0.6);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.shell {
  padding-top: 40px;
  padding-bottom: 44px;
}

.hero {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 1rem;
  align-items: stretch;
}

.hero-copy {
  padding: 1.2rem 0.2rem 0.2rem;
}

.eyebrow {
  margin: 0 0 0.95rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7888aa;
}

.hero-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 760px;
}

.hero-title .accent {
  display: block;
  background: linear-gradient(135deg, #5b93ff, #18b6ad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 1rem 0 0;
  max-width: 680px;
  font-size: clamp(1rem, 1.32vw, 1.14rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-panel {
  background: linear-gradient(180deg, rgba(18, 24, 37, 0.9), rgba(15, 20, 31, 0.82));
  border: 1px solid rgba(126, 150, 204, 0.24);
  border-radius: var(--radius-xl);
  padding: 1.1rem;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.34);
}

.panel-label {
  margin: 0;
  font-size: 0.73rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8092b5;
  font-weight: 800;
}

.hero-panel h2 {
  margin: 0.5rem 0 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.34rem;
}

.hero-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.62;
}

.panel-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
}

.panel-list li {
  color: #a6b3ce;
  margin-bottom: 0.42rem;
}

.metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.metric {
  border: 1px solid rgba(126, 150, 204, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 22, 34, 0.86), rgba(13, 18, 28, 0.86));
  padding: 1rem 1.05rem;
}

.metric-num {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
}

.metric-label {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

.about-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(12, 1fr);
}

.info-card {
  grid-column: span 4;
  border: 1px solid rgba(126, 150, 204, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 22, 34, 0.86), rgba(13, 18, 28, 0.86));
  padding: 1.05rem 1.03rem;
}

.info-card h3 {
  margin: 0 0 0.68rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
}

.info-card p,
.info-card li {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.62;
}

.info-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.projects {
  margin-top: 2.2rem;
}

.section-head h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
}

.section-head p {
  margin: 0.46rem 0 0;
  color: var(--ink-soft);
}

.project-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.project-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 22, 34, 0.9), rgba(13, 18, 28, 0.86));
  border: 1px solid rgba(126, 150, 204, 0.22);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.05) brightness(0.9);
}

.project-body {
  padding: 0.95rem;
}

.project-body h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.03rem;
}

.project-body p {
  margin: 0.46rem 0 0;
  color: var(--ink-soft);
  line-height: 1.54;
}

.tags {
  color: #8fa2c8;
  font-size: 0.83rem;
  font-weight: 700;
}

.cta {
  margin-top: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(126, 150, 204, 0.24);
  background: linear-gradient(120deg, rgba(63, 124, 255, 0.12), rgba(24, 182, 173, 0.08)),
    rgba(13, 18, 28, 0.88);
  padding: 1.15rem 1.05rem;
}

.cta h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.38rem, 3vw, 2rem);
}

.cta p {
  margin: 0.54rem 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.site-footer {
  padding: 0.85rem 0 1.9rem;
  display: flex;
  justify-content: space-between;
  color: #8394b7;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
}

.js .reveal.is-visible {
  animation: reveal-up 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .info-card {
    grid-column: span 6;
  }

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

@media (max-width: 700px) {
  .site-header,
  .shell,
  .site-footer {
    width: min(1140px, calc(100% - 1.2rem));
  }

  .site-header {
    padding: 8px 9px;
    border-radius: 18px;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .btn {
    padding: 9px 14px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 10vw, 2.8rem);
  }

  .info-card {
    grid-column: span 12;
  }

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

  .site-footer {
    flex-direction: column;
    gap: 0.3rem;
  }
}
