:root {
  --bg: #040c18;
  --bg-elevated: #071628;
  --bg-panel: #0a1a33;
  --text: #ffffff;
  --text-muted: #b7c4d8;
  --text-soft: #9eb0c9;
  --accent: #ff5a2b;
  --accent-hover: #ff7349;
  --pink: #f2a08a;
  --gradient: linear-gradient(89.97deg, #ae67fa 1.84%, #f49867 102.67%);
  --glow: rgba(40, 110, 255, 0.45);
  --header-h: 84px;
  --container: 1120px;
  --radius: 18px;
  --font: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.accent-line {
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--accent);
}

.accent-line-pink {
  background: var(--pink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

.text-link:hover {
  color: var(--accent-hover);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(4, 12, 24, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo img {
  width: 164px;
  height: auto;
}

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

.site-nav a:not(.btn) {
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.92;
}

.site-nav a:not(.btn):hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(36, 78, 160, 0.3), transparent 70%),
    radial-gradient(ellipse 50% 45% at 50% 70%, rgba(174, 103, 250, 0.1), transparent 65%),
    var(--bg);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: auto;
  padding: 2rem 0 2.5rem;
}

.hero-copy {
  max-width: 42rem;
  margin-inline: auto;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 auto 1.4rem;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.06;
  font-weight: 800;
  max-width: 14ch;
}

.hero-lead {
  margin: 0 auto 2rem;
  max-width: 36rem;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

#meista,
#palvelut,
#yhteystiedot {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

/* About */
.about {
  padding: 2rem 0 5rem;
}

.about-panel {
  background:
    radial-gradient(circle at 92% 88%, var(--glow), transparent 36%),
    linear-gradient(160deg, #0b1d38 0%, #081526 55%, #071221 100%);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.about-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.about-title {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
  max-width: 14ch;
}

.about-tagline {
  margin: 0.4rem 0 0;
  text-align: right;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-columns h4 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.about-columns p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Services */
.services {
  padding: 3rem 0 5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.services-intro h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  line-height: 1.12;
  font-weight: 800;
  max-width: 12ch;
}

.services-list {
  display: grid;
  gap: 2rem;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(10rem, 0.85fr) 1.4fr;
  gap: 1.5rem 2rem;
  align-items: start;
}

.service-row h3 {
  position: relative;
  margin: 0;
  padding-top: 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.service-row h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: var(--gradient);
}

.service-row p {
  margin: 0.85rem 0 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* Contact */
.contact {
  padding: 1rem 0 2rem;
}

.contact-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 2.75rem);
  border-radius: 14px;
  background:
    linear-gradient(90deg, #0a2040 0%, #0c2f66 55%, #1046a8 100%);
}

.contact-banner h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.contact-banner > div > p {
  margin: 0;
  color: var(--text-soft);
}

.contact-details {
  display: grid;
  gap: 0.35rem;
  text-align: right;
  font-weight: 600;
}

.contact-details a:hover {
  color: #ffe0d4;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  background: #030914;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 0 0 0.55rem;
  color: var(--text);
  font-weight: 500;
}

.footer-email {
  text-decoration: underline;
  text-decoration-color: #e8c15a;
  text-underline-offset: 4px;
}

.copyright {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal.delay-1 {
  transition-delay: 0.12s;
}

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

  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    padding: 2.75rem 0 3.5rem;
  }

  .hero-inner {
    min-height: auto;
    padding: 1.5rem 0 1.75rem;
  }

  .about-top,
  .about-columns,
  .services-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .about-title,
  .services-intro h2 {
    max-width: none;
  }

  .about-tagline,
  .contact-details {
    text-align: left;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .service-row p {
    margin-top: 0.25rem;
  }

  .contact-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 72px;
  }

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

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(4, 12, 24, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

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

  .site-nav a {
    padding: 0.85rem 0.25rem;
  }

  .site-nav .btn {
    margin-top: 0.5rem;
    width: 100%;
  }

  .logo img {
    width: 140px;
  }
}
