/* =========================================================
   Anssi Hänninen Oy – moderni ilme
   Pohjana alkuperäisen sivuston hiilenmusta–liuskansininen
   liukuväri, periwinkle-napit (#9999BB) ja korostus #6666FF.
   ========================================================= */

:root {
  --ink-950: #171c30;
  --ink-900: #1d2338;
  --ink-800: #242b47;
  --ink-700: #262833;
  --slate-500: #5d6dab;
  --slate-400: #7886c2;
  --peri-300: #9999bb;
  --peri-200: #c4c6e0;
  --accent: #5c5cf5;
  --accent-2: #8b8bff;
  --gold: #ffef99;

  --bg: #e8eaf0;
  --dot: rgba(17, 18, 24, .12);
  --blob-a: rgba(120, 134, 194, .26);
  --blob-b: rgba(114, 114, 255, .12);
  --blob-c: rgba(255, 226, 120, .2);
  --surface: #ffffff;
  --surface-2: #f6f7fa;
  --border: #dfe1e9;
  --text: #14151b;
  --muted: #5b5f70;
  --link: var(--accent);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17, 18, 24, .06), 0 10px 30px -12px rgba(17, 18, 24, .18);
  --shadow-lg: 0 30px 60px -20px rgba(23, 28, 48, .45);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  --grad-brand: linear-gradient(100deg, #6474b4 0%, #2e3550 16%, #1d2338 38%, #171c30 58%, #2a3150 82%, #6c7cbe 100%);
  --grad-sky: linear-gradient(90deg, rgba(255,255,255,.9) 0%, #c9cbd6 30%, #4c4f5d 70%, #171c30 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131729;
    --dot: rgba(255, 255, 255, .08);
    --blob-a: rgba(100, 116, 180, .28);
    --blob-b: rgba(114, 114, 255, .16);
    --blob-c: rgba(255, 239, 153, .06);
    --surface: #1a1f36;
    --surface-2: #20263f;
    --border: #323a5a;
    --text: #eceef5;
    --muted: #a1a5b8;
    --link: var(--accent-2);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131729;
  --dot: rgba(255, 255, 255, .08);
    --blob-a: rgba(100, 116, 180, .28);
    --blob-b: rgba(114, 114, 255, .16);
    --blob-c: rgba(255, 239, 153, .06);
  --surface: #1a1f36;
  --surface-2: #20263f;
  --border: #323a5a;
  --text: #eceef5;
  --muted: #a1a5b8;
  --link: var(--accent-2);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -12px rgba(0, 0, 0, .6);
}

/* ---------- Perusta ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Tausta: pehmeät valoläiskät + reunoilta häipyvä pistekuvio. */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
}
body::before {
  inset: -15%;
  background:
    radial-gradient(70% 60% at 18% 20%, var(--blob-a), transparent 100%),
    radial-gradient(64% 56% at 86% 34%, var(--blob-b), transparent 100%),
    radial-gradient(70% 60% at 60% 90%, var(--blob-c), transparent 100%),
    radial-gradient(56% 50% at 6% 78%, var(--blob-b), transparent 100%);
  animation: blobs 40s ease-in-out infinite alternate;
}
body::after {
  inset: 0;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 25%, transparent 100%);
}
@keyframes blobs {
  50%  { transform: translate(4%, -3%) scale(1.06); }
  100% { transform: translate(-3%, 3%) scale(.97); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: var(--link); }
img, svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .6rem 1rem; border-radius: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Yläpalkki ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 28, 48, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .25s ease;
}
.topbar::after {
  /* ohut liukuväriviiva alkuperäisen yläpalkin hengessä */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grad-brand); opacity: .9;
}
.topbar.is-scrolled { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }

.topbar__inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }

.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand__logo { width: 42px; height: 42px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); transition: transform .3s ease; }
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 1rem; letter-spacing: -.01em; }
.brand__text small { font-size: .75rem; color: var(--peri-300); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  position: relative;
  padding: .5rem .85rem; border-radius: 999px;
  color: #d6d8e6; text-decoration: none; font-size: .92rem; font-weight: 500;
  transition: background-color .2s ease, color .2s ease;
}
.nav a:hover { background: rgba(153, 153, 187, .16); color: #fff; }
.nav a.is-active { color: #fff; background: rgba(153, 153, 187, .24); box-shadow: inset 0 0 0 1px rgba(153, 153, 187, .35); }
.nav a.nav__cta { margin-left: .35rem; background: linear-gradient(180deg, #a3a3c6, #8585ad); color: var(--ink-950); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.nav a.nav__cta:hover { background: linear-gradient(180deg, #b3b3d3, #9393bb); color: var(--ink-950); }
.nav a.nav__cta.is-active { background: linear-gradient(180deg, #8b8bff, #5c5cf5); color: #fff; }

.menu-btn {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px;
  background: rgba(153, 153, 187, .14); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s ease, opacity .2s ease; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Teemakytkin: työpöydällä valikon jälkeen, mobiilissa valikkonapin vieressä. */
.theme-btn {
  order: 1; display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  color: #d6d8e6; background: rgba(153, 153, 187, .14); cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.theme-btn:hover { background: rgba(153, 153, 187, .26); color: #fff; }
.theme-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-btn__moon { display: none; }
:root[data-theme="light"] .theme-btn__sun { display: none; }
:root[data-theme="light"] .theme-btn__moon { display: block; }

@media (max-width: 820px) {
  .theme-btn { order: 0; width: 44px; height: 44px; border-radius: 12px; }
  .menu-btn { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: .75rem var(--gutter) 1.25rem;
    background: rgba(23, 28, 48, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .nav a { padding: .8rem 1rem; border-radius: 12px; font-size: 1rem; }
  .nav a.nav__cta { margin: .35rem 0 0; text-align: center; }
}

/* ---------- Näkymä & siirtymät ---------- */

main { flex: 1; outline: none; container-type: inline-size; }

.view {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  transition: opacity .18s ease, transform .25s ease;
}
.view.is-leaving { opacity: 0; transform: translateY(6px); }
.view.is-entering { opacity: 0; transform: translateY(-6px); transition: none; }

@media (prefers-reduced-motion: reduce) {
  .view, .view * { transition: none !important; animation: none !important; }
}

/* ---------- Yleiset komponentit ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 1rem; padding: .3rem .8rem .3rem .6rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: rgba(92, 92, 245, .09); border: 1px solid rgba(92, 92, 245, .2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(92, 92, 245, .2); }

/* ---------- AI / tekoäly -korostukset ---------- */

.badges { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.badges .eyebrow { margin: 0; }
.badges--tight { margin-bottom: .7rem; }
.page-head .badges { margin: 1.4rem 0 0; }

.badge-ai {
  --ai-border: linear-gradient(90deg, #7272ff, #c4c6e0, #ffef99, #8b8bff, #7272ff);
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .8rem .32rem .6rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
  color: #fff;
  border: 1.5px solid transparent;
  background: linear-gradient(#1d2338, #1d2338) padding-box, var(--ai-border) border-box;
  background-size: 100% 100%, 300% 100%;
  box-shadow: 0 0 18px -4px rgba(114, 114, 255, .65);
  animation: ai-shimmer 4s linear infinite;
}
.badge-ai svg { width: 14px; height: 14px; fill: #ffef99; filter: drop-shadow(0 0 4px rgba(255, 239, 153, .8)); }
@keyframes ai-shimmer { to { background-position: 0 0, 300% 0; } }

.badge-ai--soft {
  animation: none; box-shadow: none;
  color: var(--accent); background: rgba(92, 92, 245, .09); border: 1px solid rgba(92, 92, 245, .3);
}
.hero .badge-ai--soft, .service--ai .badge-ai--soft { color: var(--peri-200); background: rgba(153, 153, 187, .14); border-color: rgba(153, 153, 187, .35); }
.badge-ai--corner { position: absolute; top: 1rem; right: 1rem; }

.ai-text {
  font-weight: 700;
  background: linear-gradient(90deg, #5c5cf5, #8b5cf6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .ai-text { background-image: linear-gradient(90deg, #a9a9ff, #ffef99); }

.chips .chip--ai { color: var(--accent); font-weight: 600; background: rgba(92, 92, 245, .08); border-color: rgba(92, 92, 245, .35); }

@media (prefers-reduced-motion: reduce) { .badge-ai { animation: none; } }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px; border: 0;
  font: 600 .98rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { color: #fff; background: linear-gradient(180deg, #7272ff, #5050e6); box-shadow: 0 8px 20px -6px rgba(92, 92, 245, .6), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--primary:hover { box-shadow: 0 12px 26px -6px rgba(92, 92, 245, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--ghost { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--light { color: var(--ink-950); background: #fff; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }

.link { font-weight: 600; text-decoration: none; color: var(--link); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */

/* Koko sivun levyinen: reunat venytetään .view-elementin ulkopuolelle,
   ja sama määrä lisätään sisennykseksi, jolloin sisältö pysyy linjassa muun sivun kanssa. */
.hero {
  --bleed: calc(50vw - 50%);
  --bleed: calc(50cqw - 50%); /* cqw = main-leveys ilman vierityspalkkia */
  position: relative; overflow: hidden; isolation: isolate;
  margin: calc(-1 * clamp(1.25rem, 3vw, 2.5rem)) calc(-1 * var(--bleed)) 0;
  padding: clamp(3rem, 7vw, 5.5rem) var(--bleed) clamp(4rem, 8vw, 6.5rem);
  color: #fff;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(120, 134, 194, .55), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(93, 109, 171, .45), transparent 60%),
    var(--grad-brand);
}
.hero::before {
  /* hienovarainen kiilto kuten alkuperäisessä logossa */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 45%);
}
.hero__gfx {
  position: absolute; z-index: -1; right: max(0px, calc((100% - var(--wrap)) / 2)); top: 56%;
  width: min(520px, 46%); aspect-ratio: 1; transform: translateY(-50%);
  pointer-events: none;
}
@media (max-width: 760px) {
  .hero__gfx { display: none; }
}

.hero__body { position: relative; max-width: 720px; }
.hero .eyebrow { color: var(--peri-200); background: rgba(153, 153, 187, .14); border-color: rgba(153, 153, 187, .3); }
.hero .dot { color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 239, 153, .2); }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); font-weight: 700; margin-bottom: 1.1rem; }
.hero .lead { color: #c8cadb; }
.grad {
  background: linear-gradient(90deg, #a9a9ff 0%, #c4c6e0 50%, #ffef99 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__sky {
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: var(--grad-sky); opacity: .85;
}

/* ---------- Tilastot ---------- */

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin: -2.25rem clamp(.75rem, 3vw, 2rem) 0; position: relative; z-index: 2;
  background: var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.stat { background: var(--surface); padding: 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .15rem; }
.stat strong { font: 700 1.9rem/1.1 var(--font-display); letter-spacing: -.03em; color: var(--accent); }
.stat span { font-size: .88rem; color: var(--muted); }

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

/* ---------- Osiot ja kortit ---------- */

.section { margin-top: clamp(3rem, 7vw, 5rem); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section__head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card {
  position: relative; padding: 1.6rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(92, 92, 245, .4); }
.card h3 { font-size: 1.15rem; margin: 1rem 0 .4rem; }
.card p { color: var(--muted); margin: 0; }
.card--ai { border-color: rgba(92, 92, 245, .45); box-shadow: var(--shadow), 0 0 0 1px rgba(92, 92, 245, .15), 0 18px 40px -20px rgba(92, 92, 245, .55); }
.card--ai h3 { padding-right: 3.5rem; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(180deg, #3a3d4a 0%, #1d2338 50%, #171c30 51%, #252833 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85), 0 6px 14px -6px rgba(0, 0, 0, .5);
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.band {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: clamp(3rem, 7vw, 5rem); padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius); color: #fff;
  background: radial-gradient(80% 140% at 100% 50%, rgba(120, 134, 194, .55), transparent 60%), linear-gradient(100deg, #171c30, #242b47 60%, #3a4470);
  box-shadow: var(--shadow-lg);
}
.band h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: 0 0 .3rem; }
.band p { margin: 0; color: #c8cadb; }

/* ---------- Alasivujen otsikko ---------- */

.page-head { padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
.page-head--center { text-align: center; }
.page-head--center .lead { margin-inline: auto; }
.page-head--center .actions { justify-content: center; }

/* ---------- Palvelut ---------- */

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service.service--ai {
  grid-column: 1 / -1; position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(1.75rem, 4vw, 2.5rem); color: #fff; border: 1.5px solid transparent;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(120, 134, 194, .5), transparent 60%) padding-box,
    linear-gradient(110deg, #171c30, #242b47 55%, #2e3550) padding-box,
    linear-gradient(90deg, #7272ff, #c4c6e0, #ffef99, #8b8bff, #7272ff) border-box;
  box-shadow: var(--shadow-lg), 0 0 40px -12px rgba(114, 114, 255, .6);
}
.service.service--ai h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.service.service--ai p { color: #c8cadb; max-width: 70ch; }
.service.service--ai .service__num { color: #ffef99; background: rgba(255, 255, 255, .08); }
.service {
  display: flex; gap: 1.25rem; padding: 1.75rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.service__num {
  flex: none; font: 700 .9rem/1 var(--font-display); color: var(--accent);
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(92, 92, 245, .1);
}
.service h2 { font-size: 1.2rem; margin-bottom: .35rem; }
.service p { margin: 0; color: var(--muted); }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chips span {
  padding: .4rem .85rem; border-radius: 999px; font-size: .88rem;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
}

/* ---------- Referenssit ---------- */

.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.ref {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem;
  border-radius: var(--radius-sm); text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 35ms);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ref:hover { border-color: rgba(92, 92, 245, .45); transform: translateY(-2px); box-shadow: var(--shadow); }
.ref__year {
  flex: none; font: 600 .78rem/1 var(--font); padding: .4rem .55rem; border-radius: 8px;
  color: #fff; background: linear-gradient(180deg, #a3a3c6, #7d7da6);
}
.ref__domain { font-weight: 600; overflow-wrap: anywhere; }
.ref__arrow { margin-left: auto; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.ref:hover .ref__arrow { color: var(--accent); transform: translate(2px, -2px); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Palaute ---------- */

.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.form {
  padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border-radius: 12px;
  font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(92, 92, 245, .18);
}
.field [aria-invalid="true"] { border-color: #e5484d; }
.form__error { color: #e5484d; font-weight: 600; font-size: .92rem; }
.form__note { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }
.form .btn { width: 100%; }

.aside-card {
  padding: 1.75rem; border-radius: var(--radius); color: #fff;
  background: radial-gradient(90% 90% at 100% 0%, rgba(120, 134, 194, .5), transparent 60%), linear-gradient(160deg, #242b47, #171c30);
  box-shadow: var(--shadow-lg);
}
.aside-card p { color: #c8cadb; }
.aside-card .link { color: var(--peri-200); }

/* ---------- Yhteystiedot ---------- */

.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.25rem; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

.contact__card--dark {
  position: relative; overflow: hidden;
  padding: 2rem; border-radius: var(--radius); color: #fff;
  background: radial-gradient(70% 90% at 100% 100%, rgba(120, 134, 194, .55), transparent 60%), var(--grad-brand);
  box-shadow: var(--shadow-lg);
}
.contact__logo { width: 72px; height: 72px; margin-bottom: 2.5rem; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); }
.contact__card--dark h2 { font-size: 1.6rem; margin-bottom: .25rem; }
.contact__card--dark p { margin: 0; color: var(--peri-200); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; font-weight: 600; }

.contact__list {
  margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.contact__list > div { background: var(--surface); padding: 1.4rem 1.5rem; }
.contact__list > div:first-child { grid-column: 1 / -1; }
.contact__list dt { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.contact__list dd { margin: 0; font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.contact__list .email { text-decoration: none; }
.contact__list .email:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) { .contact__list { grid-template-columns: 1fr; } }

/* ---------- Alatunniste ---------- */

.footer {
  position: relative; color: #c8cadb;
  background:
    radial-gradient(40% 120% at 0% 100%, rgba(93, 109, 171, .55), transparent 70%),
    radial-gradient(40% 120% at 100% 0%, rgba(120, 134, 194, .5), transparent 70%),
    linear-gradient(90deg, #2e3550, #171c30 35%, #171c30 65%, #2e3550);
}
.footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad-sky); opacity: .5; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.75rem; }
.footer__info { display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; }
.footer__info strong { color: #fff; font-size: 1rem; }
.footer__logo svg { width: 52px; height: 52px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); transition: transform .3s ease; }
.footer__logo:hover svg { transform: translateY(-3px); }
