/* =========================================================
   VAU AGENCY — yhteinen tyylitiedosto
   ========================================================= */
:root {
  --orange: #ff5722;
  --orange-soft: rgba(255, 87, 34, 0.08);
  --ink: #000000;
  --ink-2: #1a1a1a;
  --ink-3: #555555;
  --paper: #fafafa;
  --white: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

/* Skip link (saavutettavuus + SEO) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--ink); color: var(--white); padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.5rem 0; text-decoration: none; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Typography */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border: 1px solid var(--ink);
  border-radius: 999px; font-size: 0.8rem; font-weight: 500;
  margin-bottom: 1.5rem;
}
.pill .dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-intro { color: var(--ink-3); max-width: 640px; margin: 1rem auto 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 1rem 2rem; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
  transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--orange); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--ink); transform: translateY(-2px); }

/* =========================================================
   VAU-chat (tekoälyavustaja)
   ========================================================= */
.vau-chat-btn {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  border: none; cursor: pointer; z-index: 1001;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 0.95rem; letter-spacing: -0.04em;
  transition: all 0.3s ease;
}
.vau-chat-btn:hover { transform: translateY(-4px) scale(1.05); background: var(--orange); }
.vau-chat-btn .excl { color: var(--orange); transition: color 0.3s ease; }
.vau-chat-btn:hover .excl { color: var(--white); }
.vau-chat-btn .chat-close-ico { display: none; font-size: 1.5rem; font-weight: 400; }
.vau-chat-btn.open .chat-logo-txt { display: none; }
.vau-chat-btn.open .chat-close-ico { display: block; }

.vau-chat-panel {
  position: fixed; bottom: 7rem; right: 2rem; z-index: 1002;
  width: 350px; max-width: calc(100vw - 2rem);
  background: var(--white); border-radius: 1.25rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(15px) scale(0.97); pointer-events: none;
  transition: all 0.25s ease;
  border: 1px solid var(--line);
}
.vau-chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.vau-chat-head {
  background: var(--ink); color: var(--white);
  padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 0.85rem;
}
.vau-chat-head .head-logo {
  width: 40px; height: 40px; border-radius: 50%; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.8rem; letter-spacing: -0.04em; color: var(--ink); flex-shrink: 0;
}
.vau-chat-head .head-logo span { color: var(--orange); }
.vau-chat-head h3 { font-size: 1rem; margin: 0; color: var(--white); }
.vau-chat-head p { font-size: 0.75rem; margin: 0; color: #999; display: flex; align-items: center; gap: 0.35rem; }
.vau-chat-head .online-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; display: inline-block; }

.vau-chat-msgs {
  padding: 1rem; height: 300px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 0.6rem; background: var(--paper);
}
.vau-msg { max-width: 85%; padding: 0.65rem 0.9rem; border-radius: 1rem; font-size: 0.85rem; line-height: 1.45; }
.vau-msg.bot { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 0.25rem; align-self: flex-start; }
.vau-msg.user { background: var(--ink); color: var(--white); border-bottom-right-radius: 0.25rem; align-self: flex-end; }
.vau-msg a { color: var(--orange); font-weight: 700; }
.vau-msg.typing { color: var(--ink-3); font-style: italic; }

.vau-chat-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.75rem; background: var(--paper); }
.vau-chip {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 0.35rem 0.8rem; font-size: 0.75rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all 0.2s;
}
.vau-chip:hover { border-color: var(--orange); color: var(--orange); }

.vau-chat-input { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--line); background: var(--white); }
.vau-chat-input input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.6rem 1rem; font-family: inherit; font-size: 0.85rem; outline: none;
}
.vau-chat-input input:focus { border-color: var(--ink); }
.vau-chat-input button {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--orange); color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.2s;
}
.vau-chat-input button:hover { background: var(--ink); }
.vau-chat-input button svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
  .vau-chat-btn { bottom: 1rem; right: 1rem; width: 52px; height: 52px; font-size: 0.85rem; }
  .vau-chat-panel { right: 1rem; bottom: 4.5rem; }
  .vau-chat-msgs { height: 260px; }
}

/* WhatsApp-nappi */
.floating-wa {
  position: fixed; bottom: 6.5rem; right: 2rem;
  background: #25D366; color: var(--white);
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); z-index: 1000;
  transition: all 0.3s ease;
}
.floating-wa:hover { transform: translateY(-4px) scale(1.05); background: #1eb957; }
.floating-wa svg { width: 30px; height: 30px; fill: currentColor; }

/* Floating Contact Button */
.floating-cta {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--ink); color: var(--white);
  padding: 1rem 1.5rem; border-radius: 999px;
  display: flex; align-items: center; gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 1000;
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  transition: all 0.3s ease; border: 2px solid transparent;
}
.floating-cta:hover { background: var(--white); color: var(--ink); border-color: var(--ink); transform: translateY(-4px); }
.floating-cta svg { width: 20px; height: 20px; }

/* Navigation */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.5rem 0; z-index: 900; transition: all 0.3s ease;
}
nav.site-nav.scrolled { background: rgba(250, 250, 250, 0.95); backdrop-filter: blur(15px); padding: 1rem 0; border-bottom: 1px solid var(--line); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; font-weight: 800; text-decoration: none; color: var(--ink); letter-spacing: -0.04em; position: relative; z-index: 1001; }
.logo span { color: var(--orange); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--orange); }
.nav-links a.btn-primary { color: var(--white); }
.nav-links a.btn-primary:hover { color: var(--white); }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--ink); z-index: 1001; position: relative; }
.mobile-menu-btn svg { width: 28px; height: 28px; }

/* Kirjoituskone-kursori (hero-slogan) */
.type-caret {
  display: inline-block; width: 4px; height: 0.85em;
  background: var(--orange); margin-left: 6px; vertical-align: -0.06em;
  animation: caretBlink 0.7s step-end infinite;
}
.type-caret.done { opacity: 0; transition: opacity 0.6s ease; animation: none; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* Hero-CTA: muuttuvat oranssiksi lasiksi scrollatessa */
.hero-btns .btn { transition: all 0.5s ease; }
body.home.fx .hero-btns .btn-primary {
  background: rgba(255, 87, 34, 0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 32px rgba(255, 87, 34, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: var(--white);
}
body.home.fx .hero-btns .btn-primary:hover { background: rgba(255, 87, 34, 0.85); transform: translateY(-2px); }
body.home.fx .hero-btns .btn-outline {
  background: rgba(255, 87, 34, 0.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 87, 34, 0.55);
}
body.home.fx .hero-btns .btn-outline:hover { background: rgba(255, 87, 34, 0.85); color: var(--white); border-color: transparent; }

/* Hyötyrivi heron alle */
.benefit-strip { padding: 1rem 0 0.5rem; }
.benefit-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.9rem 2.5rem; justify-content: center; }
.benefit-strip li { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.95rem; }
.benefit-strip svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }

/* "Valmis viikon päästä" -korostus */
.deadline-box {
  margin-top: 2rem; display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--orange-soft); border: 1px solid rgba(255, 87, 34, 0.35);
  border-radius: 1rem; padding: 1rem 1.5rem; font-size: 0.95rem; font-weight: 600;
}
.deadline-box .bolt { font-size: 1.4rem; }
.deadline-box strong { color: var(--orange); white-space: nowrap; }

/* Hero */
.hero { padding: 10rem 0 5rem; text-align: center; background: radial-gradient(circle at 50% 0%, var(--orange-soft), transparent 70%); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.5rem; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 1.15rem; color: var(--ink-2); max-width: 650px; margin: 0 auto 2.5rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   Etusivun clean start + scrollin mukana elävä gradientti
   ========================================================= */
body.home { background-color: #ffffff; }
body.home::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at calc(18% + var(--gx, 0%)) calc(12% + var(--gy, 0%)), rgba(255, 87, 34, 0.07), transparent 70%),
    radial-gradient(45% 40% at calc(88% - var(--gx, 0%)) calc(85% - var(--gy, 0%)), rgba(255, 87, 34, 0.05), transparent 70%);
  opacity: var(--go, 0);
  transition: opacity 0.8s ease;
}
body.home .hero { background: none; }
/* Läppärit: lentävät näytölle latauksessa, varjot + leijunta heräävät scrollatessa */
body.home .float-laptop {
  filter: none;
  transition: filter 0.9s ease;
}
body.home .fl-2 {
  animation: flyIn2 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both, floaty 7s ease-in-out 1.4s infinite;
  animation-play-state: running, paused;
}
body.home .fl-1 {
  animation: flyIn1 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both, floaty 7s ease-in-out 0s infinite;
  animation-play-state: running, paused;
}
body.home .fl-3 {
  animation: flyIn3 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both, floaty 7s ease-in-out 2.8s infinite;
  animation-play-state: running, paused;
}
body.home.fx .float-laptop {
  filter: drop-shadow(0 28px 32px rgba(255, 87, 34, 0.38)) drop-shadow(0 8px 14px rgba(255, 87, 34, 0.18));
}
body.home.fx .fl-1, body.home.fx .fl-2, body.home.fx .fl-3 {
  animation-play-state: running, running;
}
@keyframes flyIn1 {
  from { opacity: 0; transform: rotate(-7deg) translateY(55vh) scale(0.72); }
  to   { opacity: 1; transform: rotate(-7deg) translateY(0) scale(1); }
}
@keyframes flyIn2 {
  from { opacity: 0; transform: translateX(-50%) translateY(55vh) scale(0.72); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes flyIn3 {
  from { opacity: 0; transform: rotate(7deg) translateY(55vh) scale(0.72); }
  to   { opacity: 1; transform: rotate(7deg) translateY(0) scale(1); }
}

/* Hero-banneri: leijuvat läppärit */
.hero-showcase { position: relative; max-width: 1050px; margin: 4rem auto 0; height: 400px; }
.float-laptop {
  position: absolute; height: auto;
  filter: drop-shadow(0 28px 32px rgba(255, 87, 34, 0.38)) drop-shadow(0 8px 14px rgba(255, 87, 34, 0.18));
  will-change: translate;
  animation: floaty 7s ease-in-out infinite;
}
.fl-1 { left: 0; top: 50px; width: 36%; transform: rotate(-7deg); animation-delay: 0s; z-index: 1; }
.fl-2 { left: 50%; top: 0; width: 46%; transform: translateX(-50%); animation-delay: 1.4s; z-index: 2; }
.fl-3 { right: 0; top: 70px; width: 36%; transform: rotate(7deg); animation-delay: 2.8s; z-index: 1; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -20px; }
}
@media (max-width: 900px) {
  .hero-showcase { height: 300px; margin-top: 3rem; }
}
@media (max-width: 640px) {
  .hero-showcase { height: 230px; }
  .fl-1 { left: -6%; width: 44%; top: 55px; }
  .fl-2 { width: 56%; }
  .fl-3 { right: -6%; width: 44%; top: 65px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-laptop, body.home .fl-1, body.home .fl-2, body.home .fl-3 { animation: none; opacity: 1; }
  .client-logo { animation: none; }
}

/* Page hero (alasivut) */
.page-hero { padding: 9rem 0 3rem; text-align: center; background: radial-gradient(circle at 50% 0%, var(--orange-soft), transparent 70%); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.page-hero p { font-size: 1.1rem; color: var(--ink-3); max-width: 640px; margin: 0 auto; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.8rem; color: var(--ink-3); margin-bottom: 1.5rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange); }

/* =========================================================
   Logo-marquee (asiakaslogot)
   ========================================================= */
.marquee-wrap {
  overflow: hidden; padding: 2.5rem 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.marquee-label { text-align: center; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-3); margin-bottom: 1.5rem; }
.marquee-track { display: flex; gap: 5rem; width: max-content; align-items: center; animation: marquee 20s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.client-logo { display: flex; align-items: center; opacity: 0.55; filter: grayscale(100%); animation: logoFlash 8s linear infinite; }
.client-logo:hover { opacity: 1 !important; filter: grayscale(0%) !important; animation-play-state: paused; }
/* Väriaalto: jokainen logo välähtää alkuperäisissä väreissään vuorollaan */
@keyframes logoFlash {
  0%, 11%, 100% { filter: grayscale(100%); opacity: 0.55; }
  4%, 7% { filter: grayscale(0%); opacity: 1; }
}
.marquee-track .client-logo:nth-child(1)  { animation-delay: 0s; }
.marquee-track .client-logo:nth-child(2)  { animation-delay: 0.8s; }
.marquee-track .client-logo:nth-child(3)  { animation-delay: 1.6s; }
.marquee-track .client-logo:nth-child(4)  { animation-delay: 2.4s; }
.marquee-track .client-logo:nth-child(5)  { animation-delay: 3.2s; }
.marquee-track .client-logo:nth-child(6)  { animation-delay: 4s; }
.marquee-track .client-logo:nth-child(7)  { animation-delay: 4.8s; }
.marquee-track .client-logo:nth-child(8)  { animation-delay: 5.6s; }
.marquee-track .client-logo:nth-child(9)  { animation-delay: 6.4s; }
.marquee-track .client-logo:nth-child(10) { animation-delay: 7.2s; }
.client-logo svg { height: 34px; width: auto; display: block; }
.client-logo img { height: 44px; width: auto; display: block; }
.client-logo.logo-chip-dark { background: #161616; padding: 0.6rem 1.2rem; border-radius: 0.9rem; opacity: 0.85; }
.client-logo.logo-chip-dark img { height: 40px; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* Sections General */
.section-pad { padding: 6rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }

/* Images */
.square-image {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* Founder / Juho */
.founder-section { background: var(--ink); color: var(--white); border-radius: 2rem; margin: 2rem auto; max-width: 1152px; padding: 5rem 3rem; }
.founder-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: center; }
.founder-section h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
.founder-section p { color: #bbb; margin-bottom: 1rem; }
.founder-section strong { color: var(--white); }
.founder-sign { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-top: 1.5rem; }
.founder-sign small { display: block; font-weight: 500; color: var(--orange); font-size: 0.85rem; }
.founder-photo-round {
  width: 100%; max-width: 260px; height: auto; aspect-ratio: 1 / 1; border-radius: 50%;
  object-fit: cover; display: block; margin: 0 auto;
  border: 4px solid rgba(255,255,255,0.12); box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.founder-photo-round.on-light { border-color: var(--white); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.founder-photo {
  aspect-ratio: 4 / 5; border-radius: 1.5rem; overflow: hidden;
  background: linear-gradient(160deg, #2a2a2a, #111);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo .photo-placeholder { text-align: center; color: #666; font-size: 0.85rem; padding: 2rem; }
.founder-photo .photo-placeholder svg { width: 60px; height: 60px; margin-bottom: 1rem; color: #444; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.service-card { background: var(--white); padding: 2.5rem; border-radius: 1.5rem; border: 1px solid var(--line); transition: all 0.3s ease; display: block; text-decoration: none; color: var(--ink); }
.service-card:hover { border-color: var(--orange); box-shadow: 0 15px 30px rgba(0,0,0,0.05); transform: translateY(-3px); }
.service-card svg { width: 32px; height: 32px; color: var(--orange); margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; color: var(--ink-3); }

/* Service detail blocks */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 4rem 0; border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: none; }
.service-detail h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.service-detail p { color: var(--ink-3); margin-bottom: 1rem; }
.service-detail ul { list-style: none; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.75rem; }
.service-detail ul li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; }
.service-detail ul svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; margin-top: 3px; }

/* =========================================================
   MacBook-mockup (portfolio)
   ========================================================= */
.macbook { width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 25px 40px rgba(0,0,0,0.18)); transition: transform 0.4s ease; }
.portfolio-card:hover .macbook { transform: translateY(-6px) scale(1.01); }
.macbook-screen {
  background: #0d0d0d; border-radius: 14px 14px 0 0; padding: 10px 10px 14px;
  border: 1px solid #2c2c2c; position: relative;
}
.macbook-screen::before {
  content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; background: #222; border-radius: 50%;
}
.macbook-display { border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--white); position: relative; }
.macbook-display img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.macbook-base {
  height: 14px; background: linear-gradient(180deg, #e2e2e2, #b8b8b8);
  border-radius: 0 0 14px 14px; position: relative;
}
.macbook-base::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 18%; height: 6px; background: #9a9a9a; border-radius: 0 0 8px 8px;
}
.macbook-foot { height: 4px; width: 70%; margin: 0 auto; background: rgba(0,0,0,0.12); filter: blur(4px); border-radius: 50%; }

/* Mini-preview placeholderit MacBookin ruudulla (korvataan kuvakaappauksilla) */
.mini-site { width: 100%; height: 100%; display: flex; flex-direction: column; font-size: 7px; }
.mini-nav { display: flex; justify-content: space-between; align-items: center; padding: 4% 6%; }
.mini-logo { font-weight: 800; font-size: 9px; letter-spacing: -0.02em; }
.mini-links { display: flex; gap: 6px; opacity: 0.6; font-size: 6px; }
.mini-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 8%; gap: 5px; }
.mini-hero .mini-title { font-weight: 800; font-size: 14px; line-height: 1.15; letter-spacing: -0.02em; }
.mini-hero .mini-sub { font-size: 6.5px; opacity: 0.7; max-width: 60%; }
.mini-btn { display: inline-block; padding: 3px 8px; border-radius: 99px; font-size: 6px; font-weight: 700; width: max-content; }
.mini-cards { display: flex; gap: 4px; padding: 0 8% 8%; }
.mini-card { flex: 1; height: 22px; border-radius: 4px; opacity: 0.85; }

/* Valmiit MacBook-kuvat (esim. assets/portfolio/*.png) */
.portfolio-shot { display: block; width: 100%; height: auto; border-radius: 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,0.08); transition: transform 0.4s ease; }
.portfolio-card:hover .portfolio-shot { transform: translateY(-6px) scale(1.01); }

/* =========================================================
   iPhone-kehys + Mobile first -osio
   ========================================================= */
.mobile-section { text-align: center; overflow: hidden; }
.mobile-phones {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 2.5rem; margin-top: 3.5rem; flex-wrap: wrap;
}
.iphone {
  width: 205px; background: #0d0d0d; border-radius: 2.8rem;
  padding: 9px; border: 1px solid #2c2c2c;
  filter: drop-shadow(0 24px 30px rgba(255, 87, 34, 0.35)) drop-shadow(0 6px 12px rgba(255, 87, 34, 0.15));
  animation: floaty 7s ease-in-out infinite;
}
.mobile-phones .iphone:nth-child(2) { margin-top: 2.5rem; animation-delay: 1.4s; }
.mobile-phones .iphone:nth-child(3) { animation-delay: 2.8s; }
.iphone-screen {
  position: relative; border-radius: 2.3rem; overflow: hidden;
  aspect-ratio: 9 / 19; background: #000;
}
.iphone-screen img, .iphone-screen video {
  width: 100%; height: 100%; object-fit: contain; object-position: center; display: block;
}
.iphone-island {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 20px; background: #0d0d0d; border-radius: 999px; z-index: 2;
}
.mobile-stat {
  display: inline-flex; align-items: baseline; gap: 0.75rem; margin: 2rem auto 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 1.25rem;
  padding: 1.25rem 2rem;
}
.mobile-stat .big { font-size: 2.6rem; font-weight: 800; color: var(--orange); line-height: 1; }
.mobile-stat .label { font-size: 0.9rem; color: var(--ink-3); text-align: left; max-width: 260px; }
@media (max-width: 768px) {
  .mobile-phones { gap: 1.25rem; }
  .iphone { width: 160px; border-radius: 2rem; }
  .iphone-screen { border-radius: 1.6rem; }
  .mobile-phones .iphone:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .iphone { animation: none; }
}

/* Portfolio grid */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 2.5rem; margin-top: 3rem; }
.portfolio-card { text-decoration: none; color: var(--ink); display: block; }
.portfolio-meta { text-align: center; margin-top: 1.5rem; }
.portfolio-meta h3 { font-size: 1.25rem; }
.portfolio-meta p { font-size: 0.9rem; color: var(--ink-3); margin-top: 0.25rem; }
.portfolio-tags { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.75rem; flex-wrap: wrap; }
.portfolio-tags span { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid var(--line); background: var(--white); padding: 0.25rem 0.7rem; border-radius: 999px; color: var(--ink-3); }

/* AI-SEO-osio */
.ai-seo-section { background: var(--ink); color: var(--white); border-radius: 2rem; margin: 2rem auto; max-width: 1152px; padding: 5rem 3rem; text-align: center; }
.ai-seo-section h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 760px; margin: 0 auto 1.25rem; }
.ai-seo-section > p { color: #aaa; max-width: 640px; margin: 0 auto 2.5rem; }
.ai-seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto 2.5rem; text-align: left; }
.ai-seo-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 2rem; border-radius: 1.5rem; }
.ai-seo-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.5rem; }
.ai-seo-card p { color: #aaa; font-size: 0.9rem; }
.ai-seo-card .ai-num { font-family: monospace; color: var(--orange); font-weight: 700; display: block; margin-bottom: 0.75rem; }

/* Demo / koeveistos */
.demo-section { background: #f3f3f3; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.kv-text h2 { font-size: 2.5rem; margin-bottom: 2rem; }
.kv-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.kv-list li { display: flex; gap: 1rem; align-items: flex-start; }
.kv-list svg { width: 24px; height: 24px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.kv-list h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.kv-list p { font-size: 0.9rem; color: var(--ink-3); }

.kv-form-card { background: var(--white); padding: 3rem; border-radius: 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,0.04); }
.kv-form .input-group { margin-bottom: 1.5rem; }
.kv-form label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 0.5rem; }
.kv-form input, .kv-form textarea { width: 100%; border: none; border-bottom: 1px solid #e0e0e0; padding: 0.5rem 0; font-family: inherit; font-size: 1rem; color: var(--ink); background: transparent; outline: none; transition: border-color 0.3s; }
.kv-form input:focus, .kv-form textarea:focus { border-bottom-color: var(--ink); }
.kv-form textarea { min-height: 40px; resize: vertical; }
.kv-form button { width: 100%; margin-top: 1rem; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.process-card { padding: 2.5rem; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--white); }
.process-num { font-family: monospace; font-size: 1rem; color: var(--orange); font-weight: 700; margin-bottom: 1rem; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 4rem; text-align: center; }
@media (max-width: 1000px) and (min-width: 769px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat-item { background: var(--white); padding: 2.5rem 1.5rem; border-radius: 1.5rem; border: 1px solid var(--line); }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; color: var(--ink-3); }

/* Toimialaosaaminen */
.industry-strip { text-align: center; margin: 0 0 4rem; }
.industry-strip p { font-size: 0.95rem; color: var(--ink-3); margin-bottom: 1.25rem; }
.industry-strip p strong { color: var(--ink); }
.industry-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; max-width: 720px; margin: 0 auto; }
.industry-chips span {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 0.45rem 1.1rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-2);
  transition: all 0.2s;
}
.industry-chips span:hover { border-color: var(--orange); color: var(--orange); }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi-card { background: var(--white); padding: 2rem; border-radius: 1.5rem; border: 1px solid var(--line); display: flex; flex-direction: column; }
.testi-stars { display: flex; gap: 0.2rem; color: var(--orange); margin-bottom: 1rem; }
.testi-stars svg { width: 16px; height: 16px; fill: currentColor; }
.testi-text { font-style: italic; font-size: 0.95rem; margin-bottom: 1.5rem; color: var(--ink-2); flex-grow: 1; }
.testi-author { font-weight: 700; font-size: 0.9rem; }
.testi-company { font-size: 0.8rem; color: var(--ink-3); }

/* Blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.blog-card { background: var(--white); border: 1px solid var(--line); border-radius: 1.5rem; overflow: hidden; text-decoration: none; color: var(--ink); transition: all 0.3s ease; display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--orange); box-shadow: 0 15px 30px rgba(0,0,0,0.05); transform: translateY(-3px); }
.blog-card-img { aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 1.25rem; position: relative; overflow: hidden; }
.blog-card-img .blog-emoji { font-size: 2.5rem; line-height: 1; }
.blog-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-body .blog-meta { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); margin-bottom: 0.5rem; }
.blog-card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; line-height: 1.3; }
.blog-card-body p { font-size: 0.9rem; color: var(--ink-3); flex: 1; }
.blog-card-body .blog-read { margin-top: 1rem; font-weight: 700; font-size: 0.85rem; }

/* Artikkeli */
.article { padding: 9rem 0 4rem; }
.article-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; padding: 0 1.5rem; }
.article-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.article-meta { font-size: 0.85rem; color: var(--ink-3); }
.article-meta strong { color: var(--ink); }
.article-body { background: var(--white); border: 1px solid var(--line); border-radius: 1.5rem; padding: 3rem; }
.article-body h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.article-body h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; color: var(--ink-2); }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.5rem; color: var(--ink-2); }
.article-body li { margin-bottom: 0.5rem; }
.article-body a { color: var(--orange); font-weight: 600; }
.article-body blockquote { border-left: 3px solid var(--orange); padding-left: 1.25rem; font-style: italic; color: var(--ink-3); margin: 1.5rem 0; }
.article-body .article-tip { background: var(--orange-soft); border-radius: 1rem; padding: 1.25rem 1.5rem; margin: 1.5rem 0; font-size: 0.95rem; }
.article-cta { margin-top: 3rem; background: var(--ink); color: var(--white); border-radius: 1.5rem; padding: 2.5rem; text-align: center; }
.article-cta h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.75rem; }
.article-cta p { color: #aaa; margin-bottom: 1.5rem; }

/* FAQ */
.faq-list { max-width: 760px; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1.25rem 1.5rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--orange); transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 1.5rem 1.25rem; color: var(--ink-3); font-size: 0.95rem; }

/* Referral Banner */
.referral-banner { background: var(--orange); color: var(--white); padding: 3rem 1.5rem; border-radius: 1.5rem; text-align: center; margin: 0 auto; max-width: 900px; box-shadow: 0 15px 40px rgba(255, 87, 34, 0.3); }
.referral-banner h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--white); }
.referral-banner p { font-size: 1.05rem; opacity: 0.95; }

/* Careers */
.careers-section { background: var(--ink); color: var(--white); border-radius: 2rem; margin: 2rem 1.5rem; text-align: center; padding: 5rem 1.5rem; }
.careers-section h2 { color: var(--white); }
.career-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 800px; margin: 3rem auto 0; text-align: left; }
.career-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 2rem; border-radius: 1.5rem; }
.career-card h3 { color: var(--white); margin-bottom: 0.5rem; }
.career-card p { color: #aaa; font-size: 0.95rem; margin-bottom: 1rem; }
.career-tag { font-family: monospace; font-size: 0.8rem; color: var(--orange); text-transform: uppercase; margin-bottom: 0.5rem; display: block; }

/* Contact */
.contact-card { max-width: 800px; margin: 0 auto; background: var(--white); padding: 3rem; border-radius: 1.5rem; border: 1px solid var(--line); }
.contact-card .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; max-width: 800px; margin: 0 auto 3rem; }
.contact-info-card { background: var(--white); border: 1px solid var(--line); border-radius: 1.5rem; padding: 2rem; text-align: center; }
.contact-info-card svg { width: 28px; height: 28px; color: var(--orange); margin-bottom: 1rem; }
.contact-info-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.contact-info-card a { color: var(--ink-3); text-decoration: none; font-size: 0.95rem; }
.contact-info-card a:hover { color: var(--orange); }

/* CTA band — glassmorphism oranssin gradientin päällä */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ff7043 0%, var(--orange) 45%, #d84315 100%);
  border-radius: 2rem; margin: 2rem auto; max-width: 1152px;
  padding: 5.5rem 3rem; text-align: center; color: var(--white);
}
/* Terävät muodot lasin taakse, jotta blur näkyy */
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.35) 0 90px, transparent 91px),
    radial-gradient(circle at 88% 80%, rgba(0,0,0,0.22) 0 140px, transparent 141px),
    radial-gradient(circle at 72% 6%, rgba(255,255,255,0.22) 0 60px, transparent 61px),
    radial-gradient(circle at 30% 95%, rgba(255,255,255,0.18) 0 70px, transparent 71px);
}
/* Lasipaneeli */
.cta-band::before {
  content: ""; position: absolute; inset: 1.25rem; z-index: 1;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 20px 50px rgba(216, 67, 21, 0.25);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255, 255, 255, 0.92); max-width: 560px; margin: 0 auto 2rem; }
.cta-band .btn-orange { background: var(--white); color: var(--ink); }
.cta-band .btn-orange:hover { background: var(--ink); color: var(--white); }

/* Footer */
footer { padding: 5rem 0 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-grid h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid a { color: var(--ink-3); text-decoration: none; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-about p { color: var(--ink-3); font-size: 0.9rem; max-width: 300px; margin-top: 1rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: var(--ink-3); }

/* Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 900px) {
  .section-pad { padding: 4rem 0; }
  .hero { padding: 8rem 0 4rem; }
  .page-hero { padding: 8rem 0 2.5rem; }
  .about-grid, .kv-grid, .service-detail, .founder-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-grid, .founder-grid { text-align: center; }
  .kv-list li, .service-detail ul li { text-align: left; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .founder-section { padding: 3.5rem 1.5rem; margin: 2rem 1rem; }
  .founder-photo { max-width: 320px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-card .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .article-body { padding: 2rem 1.5rem; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-links {
    display: flex; flex-direction: column; position: fixed; top: 0; left: 0; right: 0;
    background: var(--white); padding: 6rem 2rem 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-100%); transition: transform 0.3s ease; z-index: 1000;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links .btn { width: 100%; margin-top: 1rem; }

  h1 { font-size: 2.2rem !important; }
  h2 { font-size: 1.8rem !important; }
  .hero-btns .btn { width: 100%; }
  .careers-section { margin: 1rem; padding: 3rem 1rem; }
  .contact-card { padding: 2rem 1.5rem; }
  .floating-cta { bottom: 1rem; right: 1rem; padding: 0.8rem; font-size: 0; border-radius: 50%; }
  .floating-cta svg { margin: 0; }
  .floating-wa { bottom: 4.5rem; right: 1rem; width: 48px; height: 48px; }
  .floating-wa svg { width: 26px; height: 26px; }
  .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
  .footer-bottom { justify-content: center; text-align: center; }

  .testi-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 1rem; margin: 0 -1.5rem; padding: 0 1.5rem 2rem 1.5rem;
    -ms-overflow-style: none; scrollbar-width: none;
  }
  .testi-grid::-webkit-scrollbar { display: none; }
  .testi-card { flex: 0 0 85%; scroll-snap-align: center; }
}
