/* Moderni, minimalistinen ja yritysmäinen perusilme */
:root {
  color-scheme: light;
  --bg: #f2f6fb;
  --surface: #ffffff;
  --surface-alt: #eef4fb;
  --text: #18202b;
  --muted: #536171;
  --border: #d9e3ee;
  --accent: #2563eb;
  --accent-strong: #1e3a8a;
  --accent-soft: #dbeafe;
  --accent-warm: #f59e0b;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
  --radius: 18px;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 55%, #e9f0fb 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.4px;
  color: var(--accent-strong);
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-link {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  font-size: 0.98rem;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--accent);
  border-color: var(--accent);
}

.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.18), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.16), transparent 40%);
}

.hero-content {
  display: grid;
  gap: 40px;
}

.hero h1 {
  margin: 8px 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-strong);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-card {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--surface-alt) 100%);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.section {
  padding: 64px 0;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h1,
.section-header h2 {
  margin: 0 0 8px;
}

.section-header h1,
.section-header h2 {
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-grid,
.project-grid,
.content-grid {
  display: grid;
  gap: 24px;
}

.card {
  background: var(--surface);
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.card-link {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
  border-color: rgba(37, 99, 235, 0.4);
  outline: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.3);
  outline: none;
}

.btn-ghost {
  background: #ffffff;
  color: var(--accent-strong);
  border-color: rgba(37, 99, 235, 0.25);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
  outline: none;
}

.tag {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.85rem;
}

.tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-right: 8px;
  background: var(--accent);
}

.project-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 500;
}

.content-grid .card {
  align-self: start;
}

.skill-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.contact-card {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--surface-alt) 100%);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-info {
  margin-top: 16px;
  font-weight: 600;
}

.contact-info p {
  margin: 8px 0;
}

.contact-actions {
  margin-top: 20px;
}

.muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0 40px;
}

.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  margin-bottom: 24px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-content {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

