:root {
  --bg: #05070a;
  --bg-soft: #0b120f;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --text: #f4f6f8;
  --muted: rgba(225, 232, 228, 0.72);
  --line: rgba(255, 255, 255, 0.1);
  --blue: #78bfff;
  --blue-deep: #4f8fe7;
  --blue-soft: #b9e2ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 20%, rgba(120, 191, 255, 0.13), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(148, 212, 255, 0.1), transparent 22%),
    linear-gradient(180deg, #04060a 0%, #06090d 50%, #04060a 100%);
}

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

.site-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  isolation: isolate;
}

.node-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(4, 7, 10, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.team-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.team-brand-image img {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}

.team-brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(104, 209, 156, 0.95), rgba(47, 127, 91, 0.95));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.team-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.language-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-width: 42px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.language-button.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.team-nav a {
  transition: color 180ms ease;
}

.team-nav a:hover {
  color: var(--text);
}

.ghost-button,
.primary-button,
.secondary-button,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.interactive-lift,
.interactive-card {
  transform-style: preserve-3d;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
  will-change: transform;
}

.ghost-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(103, 199, 154, 0.26);
  border-color: rgba(120, 191, 255, 0.28);
  background: rgba(87, 147, 214, 0.14);
  color: #eef7ff;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  padding: 0 24px;
}

.primary-button {
  background: linear-gradient(135deg, var(--blue), #93d0ff);
  color: #07101b;
  box-shadow: 0 18px 40px rgba(97, 164, 236, 0.28);
}

.secondary-button {
  border: 1px solid rgba(120, 191, 255, 0.24);
  background: rgba(87, 147, 214, 0.12);
  color: #e9f5ff;
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover,
.inline-link:hover {
  transform: translateY(-2px);
}

.hero-panel {
  position: relative;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding: 80px 0 72px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
}

.section-kicker {
  margin: 0 0 18px;
  color: rgba(229, 238, 232, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-content h1,
.section-heading h2,
.about-grid h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-content h1 {
  font-size: clamp(3rem, 7.2vw, 5.4rem);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

html[lang="fi"] .hero-content h1 {
  font-size: clamp(2.8rem, 6.7vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-copy,
.section-heading p,
.about-copy,
.project-card p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-copy {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.section {
  position: relative;
  padding: 88px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.project-card,
.contact-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.project-card {
  min-height: 320px;
  padding: 28px;
  border-radius: 30px;
  overflow: hidden;
}

.project-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 205, 255, 0.16), transparent 68%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.project-featured {
  background:
    radial-gradient(circle at top right, rgba(111, 213, 164, 0.14), transparent 30%),
    radial-gradient(circle at bottom left, rgba(47, 127, 91, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
}

.interactive-card:hover {
  box-shadow: 0 38px 92px rgba(0, 0, 0, 0.52);
  border-color: rgba(150, 210, 255, 0.2);
}

.interactive-card:hover::after {
  opacity: 1;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(120, 191, 255, 0.18);
  color: #e3f2ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.project-badge-muted {
  background: rgba(255, 255, 255, 0.08);
}

.project-card h3 {
  margin: 20px 0 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.82rem;
}

.inline-link {
  margin-top: 28px;
  color: #dff3e8;
  justify-content: flex-start;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.contact-card {
  border-radius: 34px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-links {
  display: grid;
  gap: 14px;
  justify-items: end;
  text-align: right;
}

.contact-links a {
  color: #e4f4eb;
}

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

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

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  pointer-events: none;
}

.orb-one {
  width: 420px;
  height: 420px;
  left: -140px;
  top: -40px;
  background:
    radial-gradient(circle at 60% 50%, rgba(115, 191, 255, 0.62), transparent 42%),
    radial-gradient(circle at 42% 42%, rgba(0, 0, 0, 0.94), transparent 62%);
}

.orb-two {
  width: 420px;
  height: 420px;
  right: -80px;
  top: 0;
  background:
    radial-gradient(circle at 42% 52%, rgba(116, 194, 255, 0.56), transparent 42%),
    radial-gradient(circle at 50% 52%, rgba(0, 0, 0, 0.94), transparent 64%);
}

.orb-three {
  width: 520px;
  height: 520px;
  right: 4%;
  bottom: 14%;
  background:
    radial-gradient(circle at 46% 52%, rgba(153, 216, 255, 0.34), transparent 38%),
    radial-gradient(circle at 52% 56%, rgba(72, 133, 214, 0.26), transparent 54%);
  opacity: 0.9;
}

@media (max-width: 980px) {
  .project-grid,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card {
    align-items: flex-start;
  }

  .contact-links {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    align-items: center;
    gap: 10px 14px;
    min-height: 0;
    padding: 10px 0 8px;
  }

  .team-brand {
    grid-area: brand;
    min-width: 0;
  }

  .team-brand-image img {
    height: 30px;
  }

  .team-nav {
    grid-area: nav;
    width: 100%;
    overflow-x: auto;
    gap: 16px;
    padding: 2px 0 2px;
    font-size: 0.92rem;
    scrollbar-width: none;
  }

  .team-nav::-webkit-scrollbar {
    display: none;
  }

  .topbar-actions {
    grid-area: actions;
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .language-switcher {
    padding: 3px;
  }

  .language-button {
    min-width: 38px;
    height: 32px;
    padding: 0 10px;
    font-size: 0.88rem;
  }

  .ghost-button {
    width: auto;
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .hero-panel {
    min-height: auto;
    padding: 72px 0 54px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-content h1 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
    letter-spacing: -0.03em;
  }

  html[lang="fi"] .hero-content h1 {
    font-size: clamp(2.4rem, 11vw, 3.8rem);
    letter-spacing: -0.02em;
  }

  .hero-copy {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .project-card,
  .contact-card {
    padding: 24px;
  }

  .node-canvas {
    opacity: 0.5;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .topbar-inner {
    gap: 8px 10px;
    padding: 8px 0 6px;
  }

  .team-brand-image img {
    height: 28px;
  }

  .team-nav {
    gap: 14px;
    font-size: 0.88rem;
  }

  .topbar-actions {
    gap: 6px;
  }

  .language-button {
    min-width: 36px;
    height: 30px;
    padding: 0 9px;
    font-size: 0.84rem;
  }

  .ghost-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .node-canvas {
    opacity: 0.34;
  }
}
