:root {
  --navy: #2d3a7d;
  --navy-dark: #232e66;
  --navy-deeper: #1a2452;
  --navy-50: #eef0f8;
  --pink: #e91e85;
  --pink-50: #fdeaf3;
  --orange-soft: #fcb549;
  --red: #e64644;
  --magenta: #d823cd;
  --grad: linear-gradient(90deg, #fcb549 0%, #e64644 50%, #d823cd 100%);
  --bg: #ffffff;
  --surface: #f7f8fc;
  --surface-2: #f2f4f8;
  --border: #e8eaef;
  --text: #151515;
  --text-muted: #6b7280;
  --font: 'Figtree', system-ui, -apple-system, sans-serif;
  --sh-lg: 0 12px 24px -8px rgba(35,46,102,0.12), 0 24px 64px -12px rgba(35,46,102,0.18);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--pink); color: #fff; }

/* Sama leveys kuin muualla sivustolla (base.css) */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   HERO: tumma, teksti vasemmalla ja kuva oikealla
   ============================================================ */
.hero {
  padding: 184px 0 176px; /* alareunassa tilaa heron päälle nouseville korteille */
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0f1529;
  isolation: isolate;
}
/* Mesh gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 110% -10%, rgba(216,35,205,0.35) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at -10% 110%, rgba(252,181,73,0.22) 0%, transparent 50%),
    radial-gradient(ellipse 50% 80% at 50% 50%, rgba(45,58,125,0.55) 0%, transparent 70%);
  pointer-events: none;
}
/* Noise grain overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 112px;
  align-items: center;
  margin-top: 40px;
}
.hero-inner { min-width: 0; }
.hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}
.hero h1 .gr {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 32px;
}

/* ============================================================
   AI-HI WIDGET
   ============================================================ */
.ai-hi {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.20);
  font-weight: 800;
  font-size: 15px;
  border-radius: 999px;
  font-family: var(--font);
  backdrop-filter: blur(8px);
  transition: background 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.ai-hi:hover, .ai-hi:focus-within {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.40);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.ai-hi-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  user-select: none;
  cursor: default;
}
.ai-hi-wave {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  transform-origin: 70% 70%;
  animation: aiWave 3.4s ease-in-out 2s infinite;
}
@keyframes aiWave {
  0%,78%,100% { transform: rotate(0deg); }
  82% { transform: rotate(14deg); }
  86% { transform: rotate(-8deg); }
  90% { transform: rotate(14deg); }
  94% { transform: rotate(-4deg); }
  98% { transform: rotate(10deg); }
}
.ai-hi-input {
  width: 0; min-width: 0; padding: 0; margin: 0;
  background: transparent; border: 0; outline: 0;
  color: #fff; font: 500 14px/1 var(--font); opacity: 0;
  transition: width .4s cubic-bezier(.22,1,.36,1), opacity .3s ease .05s, padding .3s, margin .3s;
}
.ai-hi-input::placeholder { color: rgba(255,255,255,0.5); font-weight: 400; }
.ai-hi:hover .ai-hi-input,
.ai-hi:focus-within .ai-hi-input {
  width: 200px; opacity: 1; padding: 0 12px;
  margin-left: 10px; border-left: 1px solid rgba(255,255,255,0.20);
}
.ai-hi-send {
  width: 0; height: 32px; display: grid; place-items: center;
  padding: 0; border-radius: 999px; background: transparent;
  color: #fff; cursor: pointer; opacity: 0; transform: scale(0.65);
  transition: width .35s cubic-bezier(.22,1,.36,1), opacity .25s ease .1s, transform .3s cubic-bezier(.22,1,.36,1) .1s;
}
.ai-hi-send svg { width: 14px; height: 14px; stroke-width: 2.6; }
.ai-hi:hover .ai-hi-send,
.ai-hi:focus-within .ai-hi-send { width: 32px; opacity: 1; transform: scale(1); }
.ai-hi-send:hover { color: var(--orange-soft); }

/* ============================================================
   HERON YHTEYSTIEDOT JA KUVA
   ============================================================ */
/* Myynnin suorat yhteystiedot: kaksi saraketta ilman laatikoita, välissä hiusviiva */
.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 0;
  margin-bottom: 40px;
}
.hero-contact {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 32px;
  transition: color 0.2s;
}
.hero-contact + .hero-contact {
  padding-left: 32px;
  border-left: 1px solid rgba(255,255,255,0.14);
}
.hero-contact:focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 6px; border-radius: 4px; }
.hero-contact-icon { padding-top: 4px; color: var(--orange-soft); }
.hero-contact-icon svg { width: 18px; height: 18px; }
.hero-contact-text { display: flex; flex-direction: column; gap: 4px; }
.hero-contact-value { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; color: #fff; transition: color 0.2s; }
.hero-contact:hover .hero-contact-value { color: var(--orange-soft); }
.hero-contact-label { font-size: 13px; font-weight: 500; line-height: 1.3; color: rgba(255,255,255,0.55); }

/* Koristekuva */
.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 40px 80px -32px rgba(0,0,0,0.55);
}
