/* Mika Ranta 2025 */
:root{
  --bg:#ffffff;
  --text:#000000;
  --muted:#222222;
  --line:rgba(0,0,0,.14);
  --card:#ffffff;
  --accent:#04b2e2;
  --accent-hover:#0398c0;
  --accent-soft:rgba(4,178,226,.14);
  --max:1200px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;background:var(--bg);color:var(--text);line-height:1.55}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-hover)}
.container{max-width:var(--max);margin:0 auto;padding:0 20px}

.site-header{position:fixed;top:0;left:0;right:0;z-index:50;background:rgba(255,255,255,.55);border-bottom:1px solid var(--line);backdrop-filter:blur(10px);transition:transform .25s ease}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:72px}
.brand{font-weight:800;letter-spacing:.5px;color:#000}
.nav{display:flex;gap:18px;align-items:center}
.nav a{color:#000;font-weight:600;font-size:14px}
.nav a:hover{color:var(--accent)}
.nav .cta{padding:10px 14px;border-radius:999px;background:var(--accent);color:#fff!important}
.nav .cta:hover{background:var(--accent-hover)}
.spacer{height:72px}

.hero-title-overlay{
  position:absolute;
  left:50%;
  top:42%;
  transform:translate(-50%,-50%);
  z-index:3;
  color:var(--accent);              /* #04b2e2 */
  font-weight:900;
  letter-spacing:-0.02em;
  text-align:center;
  font-size:clamp(2.4rem, 4.8vw, 4.2rem);
  pointer-events:none;
  padding:0 1rem;
}

.hero-corner-logo{
  position:absolute;
  right:2px;
  bottom:20px;
  z-index:3;
  width: min(700px, 50vw);     /* säädä tarvittaessa */
  height:auto;
  pointer-events:none;
}


.hero-below{
  padding-top:1rem;   /* erotus herosta */
}

.hero{
   position:relative;
   min-height:78vh;
   display:flex;
   align-items:center;
   overflow:hidden;
   border-bottom:1px solid var(--line);
   background:#fff
}

.hero-bg{
   position:absolute;
   inset:0;
   background-image:url("../img/hero.svg");
   background-size:120%;
   background-position:30% 40%;
   animation:heroMove 24s ease-in-out infinite alternate;
   transition:opacity .7s ease
}
   
@keyframes heroMove{0%{background-size:120%;background-position:28% 42%}100%{background-size:135%;background-position:38% 52%}}

.hero-overlay{
   position:absolute;
   inset:0;
   background:linear-gradient(90deg,rgba(255,255,255,.75) 0%,rgba(255,255,255,.45) 42%,rgba(255,255,255,.15) 100%)
}

.hero-content{
   position:relative;
   z-index:2;
   padding:120px 0 70px
}

.kicker{
   display:inline-flex;
   align-items:center;
   gap:10px;
   font-weight:800;
   letter-spacing:.12em;
   text-transform:uppercase;
   color:var(--accent);
   font-size:12px
}

.kicker .dot{
   width:10px;
   height:10px;
   border-radius:999px;
   background:var(--accent)
}

.hero h1{
   margin:14px 0 10px;
   font-size:clamp(36px,5vw,60px);
   line-height:1.05;
   color:#000
}

.hero p{
   margin:0;
   max-width:64ch;
   color:#000;
   font-size:18px;
   opacity:.85
}

.hero-actions{
   margin-top:26px;
  display:flex;
  gap:14px;
  flex-wrap:wrap
}

.btn{
   display:inline-flex;
   align-items:center;
   justify-content:center;
   padding:12px 18px;
   border-radius:12px;
   font-weight:700;
   border:1px solid transparent;
   cursor:pointer
}

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

.btn-primary:hover{
   background:var(--accent-hover)
}


.btn-ghost{
   background:#fff;
   color:#000;
   border:1px solid var(--line)
}

.btn-ghost:hover{
   border-color:var(--accent);
   box-shadow:0 0 0 4px var(--accent-soft)
}

.section{
   padding:80px 0;
   background:#fff
}

.section h2{
   font-size:clamp(24px,3vw,34px);
   margin:0 0 10px;
   color:#000
}

.section p.lead{
   margin:0 0 26px;
   color:#000;
   opacity:.85;
   max-width:80ch
}

.grid-3{
   display:grid;
   grid-template-columns:repeat(3,minmax(0,1fr));
   gap:18px
}

@media (max-width:920px){.grid-3{grid-template-columns:1fr}.nav{display:none}}

.card{
   background:#fff;
   border:1px solid var(--line);
   border-radius:18px;
   padding:22px;
   box-shadow:0 10px 30px rgba(0,0,0,.06);
   color:#000
}

.card .icon{
   width:44px;
   height:44px;
   border-radius:14px;
   background:var(--accent-soft);
   display:flex;align-items:center;
   justify-content:center;
   color:var(--accent);
   margin-bottom:12px
}

.card h3{
   margin:0 0 8px;
   font-size:18px;
   color:#000
}

.card p{
   margin:0;
   color:#000;
   opacity:.85
}

.split{
   display:grid;
   grid-template-columns:1.2fr .8fr;
   gap:22px;
   align-items:stretch
}

@media (max-width:980px){.split{grid-template-columns:1fr}}

.panel{
   border:1px solid var(--line);
   border-radius:18px;
   background:#fff;
   box-shadow:0 10px 30px rgba(0,0,0,.06);
   overflow:hidden;
   color:#000
}

.panel.pad{
   padding:26px
}

.panel img{
   width:100%;
   height:100%;
   object-fit:cover;
   display:block;
   background:#fff
}

form{
   display:grid;
   gap:12px;
   margin-top:12px
}

label{
   font-weight:700;
   color:#000;
   font-size:14px
}

input,textarea{
   width:100%;
   padding:12px 12px;
   border-radius:12px;
   border:1px solid var(--line);
   background:#fff;
   color:#000;
   font-size:16px
}

input::placeholder,textarea::placeholder{
   color:#000;
   opacity:.45
}

input:focus,textarea:focus{
   outline:none;
   border-color:var(--accent);
   box-shadow:0 0 0 4px var(--accent-soft)
}

.notice{
   padding:12px 14px;
   border-radius:12px;
   border:1px solid var(--line);
   background:#fff;
   color:#000
}

footer{
   padding:36px 0;
   border-top:1px solid var(--line);
   background:#fff;
   color:#000
}

.small{
   font-size:13px;
   color:#000;
   opacity:.75
}

.header-hidden .site-header{
   transform:translateY(-110%)
}

code{
   color:#000
}