/* ============================================================
   Tuntura Oy — fresh Nordic / glacier identity
   ============================================================ */

:root {
  /* brand */
  --navy-900: #071c30;
  --navy-800: #0d2942;
  --navy-700: #123857;
  --blue-500: #1c69a6;
  --blue-400: #2b8ac9;
  --glacier:  #34b8d6;
  --aurora:   #62dcce;
  --ice-50:   #f5f8fb;
  --ice-100:  #e7eff7;

  --text:     #0d2236;
  --text-mut: #4a6175;
  --line:     rgba(13, 41, 66, .10);

  --radius:   20px;
  --radius-sm:14px;
  --shadow:   0 24px 60px -28px rgba(12, 34, 56, .35);
  --shadow-sm:0 10px 30px -18px rgba(12, 34, 56, .45);

  --maxw: 1140px;
  --grad: linear-gradient(120deg, var(--glacier), var(--blue-400) 55%, var(--aurora));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--ice-50);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .brand { font-family: "Space Grotesk", "Inter", sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--glacier); margin-bottom: 18px;
}
.eyebrow--dark { color: var(--blue-500); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  padding: 15px 28px; border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap; cursor: pointer; border: 1px solid transparent;
}
.btn--primary {
  background: var(--grad); color: #07223a;
  box-shadow: 0 14px 30px -12px rgba(56, 197, 224, .6);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(56, 197, 224, .75); }
.btn--ghost {
  background: rgba(255, 255, 255, .04); color: var(--navy-800);
  border-color: rgba(18, 46, 77, .25);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--blue-400); color: var(--blue-500); }
.btn--ghost-light { color: #eaf6fb; border-color: rgba(234, 246, 251, .4); }
.btn--ghost-light:hover { color: #fff; border-color: #fff; }

.section { padding: clamp(72px, 11vw, 130px) 0; }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__title {
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08; font-weight: 700;
  letter-spacing: -.02em; color: var(--navy-900);
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(244, 248, 252, .72);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.scrolled { background: rgba(244, 248, 252, .9); border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(12,34,56,.5); }
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand__logo { height: 50px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-weight: 500; color: var(--navy-800); transition: color .2s ease; position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s ease;
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__links a:hover { color: var(--blue-500); }
.nav__cta {
  background: var(--navy-800); color: #fff !important; padding: 10px 20px; border-radius: 999px;
  transition: transform .2s ease, background .2s ease;
}
.nav__cta:hover { background: var(--blue-500); transform: translateY(-2px); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 26px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: .3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 50% -20%, var(--navy-700) 0%, var(--navy-900) 55%, #081827 100%);
  color: #eaf3fa;
  padding: clamp(90px, 14vw, 150px) 0 0;
  isolation: isolate;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 80%;
  background:
    radial-gradient(50% 60% at 22% 25%, rgba(56,197,224,.4), transparent 60%),
    radial-gradient(45% 55% at 80% 18%, rgba(94,234,212,.28), transparent 60%),
    radial-gradient(40% 50% at 60% 45%, rgba(47,134,201,.32), transparent 65%);
  filter: blur(20px); z-index: -1;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-22px,0) scale(1.06); }
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(75% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero__content {
  max-width: var(--maxw); margin-inline: auto; padding: 0 24px 120px;
  position: relative; text-align: center;
}
.hero .eyebrow { color: var(--glacier); }
.hero__title {
  font-size: clamp(2rem, 6.4vw, 4.6rem); line-height: 1.04; font-weight: 700;
  letter-spacing: -.03em; margin: 0 auto 22px; max-width: 16ch;
  overflow-wrap: break-word; hyphens: auto;
}
.hero__lead {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem); color: #b9d0e2;
  max-width: 56ch; margin: 0 auto 38px;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn--ghost { color: #eaf3fa; border-color: rgba(234, 243, 250, .28); background: rgba(255,255,255,.03); }
.hero .btn--ghost:hover { border-color: var(--glacier); color: var(--glacier); }

.hero__meta { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 52px; flex-wrap: wrap; }
.meta__item { display: flex; flex-direction: column; line-height: 1.2; }
.meta__item strong { font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; color: #fff; }
.meta__item span { font-size: .82rem; color: #88a6bf; letter-spacing: .04em; }
.meta__divider { width: 1px; height: 34px; background: rgba(255,255,255,.16); }

.hero__range { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(120px, 16vw, 220px); z-index: -1; }
.range--back { fill: rgba(31, 106, 168, .35); }
.range--front { fill: var(--ice-50); }

/* ============================================================
   SERVICES
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--ice-100), #fff);
  border: 1px solid var(--line); color: var(--blue-500); margin-bottom: 22px;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--grad); color: #06283f; transform: rotate(-4deg) scale(1.05); }
.card h3 { font-size: 1.16rem; font-weight: 600; color: var(--navy-900); margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--text-mut); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: linear-gradient(180deg, var(--ice-50), var(--ice-100)); }
.about__inner { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.about__photo-wrap { position: relative; max-width: 380px; }
.about__photo-wrap::before {
  content: ""; position: absolute; inset: -18px -18px 36px 28px; border-radius: 30px;
  background: var(--grad); filter: blur(8px); opacity: .35; z-index: 0;
}
.about__photo {
  position: relative; z-index: 1; width: 100%; border-radius: 26px;
  box-shadow: var(--shadow); border: 4px solid #fff;
}
.about__badge {
  position: absolute; z-index: 2; bottom: -18px; right: -14px;
  background: rgba(12, 34, 56, .92); backdrop-filter: blur(8px);
  color: #fff; padding: 14px 20px; border-radius: 16px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.08);
}
.about__badge-name { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1rem; }
.about__badge-role { font-size: .78rem; color: var(--glacier); letter-spacing: .02em; }
.about__text p { color: var(--text-mut); margin-bottom: 16px; max-width: 52ch; }
.about__text .section__title { margin-bottom: 22px; }
.about__list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.about__list li { position: relative; padding-left: 32px; color: var(--text); font-weight: 500; }
.about__list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 14px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 14px no-repeat;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(120% 130% at 50% 0%, var(--navy-700), var(--navy-900) 60%, #07182a);
  color: #eaf3fa;
}
.cta__glow {
  position: absolute; inset: auto 0 -40% 0; height: 90%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(56,197,224,.4), transparent 65%);
  filter: blur(30px);
}
.cta__inner { position: relative; }
.cta__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.cta__lead { color: #b9d0e2; font-size: 1.1rem; max-width: 48ch; margin: 0 auto 36px; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #07182a; color: #93acc2; padding: 54px 0 40px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.footer__logo { height: 58px; width: auto; display: block; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .95; }
.footer__tag { font-size: .95rem; max-width: 30ch; }
.footer__meta { display: flex; flex-direction: column; gap: 6px; text-align: right; font-size: .85rem; }
.footer__meta span:first-child { color: #fff; font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 56px; }
  .about__photo-wrap { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0; padding: 16px 24px 22px;
    background: rgba(244,248,252,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
  }
  .nav__links.open a { padding: 12px 4px; }
  .nav__links.open .nav__cta { text-align: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { text-align: left; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .hero__meta { gap: 18px; }
  .btn { width: 100%; }
  .hero__actions, .cta__actions { width: 100%; }
}
