/* Ulkisemi — modern service-provider theme */
:root {
  --bg: #070b16;
  --bg-2: #0b1122;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e8ecf6;
  --muted: #98a2bd;
  --dim: #6b7591;
  --a1: #6d7cff;
  --a2: #22d3ee;
  --grad: linear-gradient(110deg, var(--a1) 0%, #8b7bff 40%, var(--a2) 100%);
  --radius: 18px;
  --wrap: 1160px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .menu-open .nav {
  background: rgba(7, 11, 22, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-mark { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links .nav-cta { color: #0a0f1e; background: #fff; font-weight: 600; margin-left: 8px; }
.nav-links .nav-cta:hover { color: #0a0f1e; background: #dfe6ff; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 24px; }
.menu-open .nav-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .nav-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn span { transition: transform .2s ease; }
.btn:hover span { transform: translateX(3px); }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 8px 30px -8px rgba(109, 124, 255, .55); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -8px rgba(34, 211, 238, .5); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .3); background: var(--surface-2); }
.btn-lg { padding: 16px 26px; font-size: 16.5px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; margin-top: -70px; padding-top: 166px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.orb-a { width: 620px; height: 620px; background: radial-gradient(circle, #4f5bff 0%, transparent 70%); top: -220px; left: -160px; animation: drift 18s ease-in-out infinite alternate; }
.orb-b { width: 560px; height: 560px; background: radial-gradient(circle, #0ea5c6 0%, transparent 70%); top: -80px; right: -200px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  opacity: .5;
}
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }
.hero-inner { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); font-size: 13.5px; color: var(--muted); font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 0 4px rgba(34, 211, 238, .15); flex: none; }
.hero h1 { margin-top: 26px; font-size: clamp(38px, 6.2vw, 72px); font-weight: 750; letter-spacing: -0.035em; max-width: 19ch; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 24px; max-width: 640px; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--muted); }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.stats { margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(8px); }
.stat { padding: 24px 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dt { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.03em; }
.stat dd { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: flex; align-items: center; gap: 28px; padding: 22px 0; flex-wrap: wrap; }
.strip-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); font-weight: 600; }
.strip-list { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.strip-list li { color: #c3cadc; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.section h2, .contact h2 { margin-top: 12px; font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -0.03em; }
.sub { margin-top: 16px; color: var(--muted); font-size: 17px; }
.sub.left { max-width: 520px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative; padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .25s, transform .25s, background .25s;
  overflow: hidden;
}
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(600px circle at 0 0, rgba(109, 124, 255, .10), transparent 40%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile:hover::after { opacity: 1; }
.tile-xl { grid-row: span 2; background: linear-gradient(160deg, rgba(109, 124, 255, .16), rgba(34, 211, 238, .05) 60%, var(--surface)); border-color: rgba(109, 124, 255, .3); }
.tile-wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: start; }
.tile-wide .tile-icon { grid-row: span 2; margin-bottom: 0; }
.tile-wide p { max-width: 900px; }
.tile-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); margin-bottom: 22px; }
.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--a2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--a2); border: 1px solid rgba(34, 211, 238, .35); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.tile h3 { font-size: 20px; margin-bottom: 10px; }
.tile-xl h3 { font-size: 26px; }
.tile p { color: var(--muted); font-size: 15.5px; }

.ticks { margin-top: 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: #c9d0e2; font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(34, 211, 238, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- Platforms ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.split h2 { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  padding: 10px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: #d3d9ea;
  border: 1px solid var(--line-2); background: var(--surface);
  transition: border-color .2s, background .2s, color .2s;
}
.chips span:hover { border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .07); color: #fff; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.steps li::before { content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 2px; background: var(--grad); opacity: .7; border-radius: 2px; }
.step-n { font-size: 13px; font-weight: 700; color: var(--dim); letter-spacing: .08em; }
.steps h3 { font-size: 19px; margin: 10px 0 8px; }
.steps p { color: var(--muted); font-size: 14.5px; }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); transition: border-color .25s, transform .25s; }
.case:hover { border-color: var(--line-2); transform: translateY(-2px); }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.case-meta span { font-size: 12.5px; color: var(--muted); padding: 4px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.case h3 { font-size: 21px; margin-bottom: 10px; }
.case > p { color: var(--muted); font-size: 15.5px; }

/* ---------- Engagement ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.model { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.model h3 { font-size: 22px; margin-bottom: 10px; }
.model p { color: var(--muted); font-size: 15.5px; flex: 1; }
.model-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: #c3cadc; font-weight: 500; }
.model-hot { position: relative; border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; border: 1px solid transparent; }

.why { margin-top: 72px; padding: 40px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(109, 124, 255, .08), rgba(34, 211, 238, .04)); }
.why h3 { font-size: 24px; margin-bottom: 26px; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px; }
.why-grid li { color: var(--muted); font-size: 15.5px; padding-left: 18px; border-left: 2px solid rgba(109, 124, 255, .5); }
.why-grid strong { color: var(--text); font-weight: 600; }

/* ---------- Contact ---------- */
.contact { padding: 40px 0 110px; }
.contact-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 26px; position: relative; overflow: hidden;
  border: 1px solid rgba(109, 124, 255, .3);
  background: radial-gradient(700px circle at 100% 0, rgba(34, 211, 238, .16), transparent 55%), radial-gradient(600px circle at 0 100%, rgba(109, 124, 255, .2), transparent 55%), var(--bg-2);
}
.contact-side { display: grid; gap: 18px; justify-items: start; }
.hours { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-inner p { color: var(--dim); font-size: 14px; }
.footer .copy { margin-left: auto; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-xl { grid-row: auto; grid-column: span 2; }
  .tile-wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cases, .models { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 24px;
    background: #0b1122;
    min-height: calc(100vh - 70px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-links .nav-cta { margin: 8px 0 0; text-align: center; }
  .contact-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 28px; }
  .why-grid { grid-template-columns: 1fr; }
}
/* Mobile sticky contact bar (phones only) */
.mbar { display: none; }

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  html { scroll-padding-top: 72px; }
  .nav-inner { height: 62px; }
  .nav-links { top: 62px; min-height: calc(100vh - 62px); }

  /* Hero */
  .hero { padding-top: 108px; padding-bottom: 48px; margin-top: -62px; }
  .orb-a { width: 380px; height: 380px; }
  .orb-b { width: 340px; height: 340px; }
  .eyebrow { font-size: 12.5px; padding: 6px 12px; }
  .hero h1 { margin-top: 20px; font-size: clamp(32px, 9.4vw, 40px); }
  .lead { margin-top: 18px; font-size: 16px; }
  .cta-row { margin-top: 28px; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .cta-row .btn { justify-content: center; padding: 14px 20px; }
  .stats { margin-top: 36px; grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 14px 10px; text-align: center; }
  .stat + .stat { border-left: 1px solid var(--line); border-top: 0; }
  .stat dt { font-size: 22px; }
  .stat dd { font-size: 11.5px; line-height: 1.35; }

  /* Strip: one swipeable row */
  .strip-inner { gap: 10px; padding: 16px 0; }
  .strip-list { flex-wrap: nowrap; overflow-x: auto; gap: 22px; width: 100%; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .strip-list::-webkit-scrollbar { display: none; }
  .strip-list li { white-space: nowrap; font-size: 14px; }

  /* Sections */
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; text-align: left; }
  .section h2, .contact h2 { font-size: clamp(26px, 7.4vw, 32px); }
  .sub { font-size: 15.5px; margin-top: 12px; }

  /* Services: compact cards, icon beside title */
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .tile-xl, .tile-wide { grid-column: auto; grid-row: auto; }
  .tile, .tile-wide { padding: 20px; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center; }
  .tile-icon, .tile-wide .tile-icon { width: 40px; height: 40px; margin: 0; border-radius: 10px; grid-row: auto; }
  .tile-icon svg { width: 20px; height: 20px; }
  .tile h3, .tile-xl h3 { font-size: 17.5px; margin: 0; }
  .tile p, .tile .ticks { grid-column: 1 / -1; }
  .tile p { margin-top: 10px; font-size: 15px; }
  .tile-tag { grid-column: 1 / -1; order: -1; justify-self: start; margin-bottom: 12px; }
  .tile-xl h3 { font-size: 20px; }
  .tile:hover, .case:hover { transform: none; }
  .ticks { margin-top: 14px; gap: 8px; }
  .ticks li { font-size: 14.5px; }

  /* Platforms: smaller chips */
  .split { gap: 24px; }
  .chips { gap: 8px; }
  .chips span { padding: 7px 12px; font-size: 13px; }

  /* Steps: vertical timeline */
  .steps { grid-template-columns: 1fr; gap: 0; position: relative; }
  .steps li { padding: 0 0 22px 46px; border: 0; background: none; border-radius: 0; }
  .steps li::before { left: 15px; right: auto; top: 34px; bottom: 0; width: 2px; height: auto; opacity: .35; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:last-child::before { display: none; }
  .step-n { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: var(--grad); letter-spacing: 0; }
  .steps h3 { font-size: 17.5px; margin: 4px 0 4px; }
  .steps p { font-size: 14.5px; }

  /* Cases + models: horizontal swipe */
  .cases, .models {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 2px 16px 14px; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .cases::-webkit-scrollbar, .models::-webkit-scrollbar { display: none; }
  .case, .model { flex: 0 0 86%; scroll-snap-align: start; padding: 22px; }
  .case h3 { font-size: 18.5px; }
  .model h3 { font-size: 19px; }
  .section .swipe-hint { display: flex; }

  .why { margin-top: 40px; padding: 24px 20px; }
  .why h3 { font-size: 20px; margin-bottom: 18px; }
  .why-grid { gap: 16px; }
  .why-grid li { font-size: 14.5px; }

  /* Contact */
  .contact { padding: 24px 0 72px; }
  .contact-card { padding: 28px 22px; border-radius: 22px; }
  .contact-side { justify-items: stretch; }
  .btn-lg { font-size: 15px; padding: 15px 18px; justify-content: center; word-break: break-all; }

  /* Footer */
  .footer { padding: 28px 0 calc(96px + env(safe-area-inset-bottom)); }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer .copy { margin-left: 0; }

  /* Sticky bar */
  .mbar {
    display: grid; grid-template-columns: 1fr auto; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(7, 11, 22, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .mbar.show { transform: none; }
  .mbar .btn { justify-content: center; padding: 13px 18px; }
  .menu-open .mbar { transform: translateY(110%); }
}

/* Swipe hint label (phones only) */
.swipe-hint { display: none; align-items: center; gap: 6px; margin: -14px 0 12px; font-size: 12.5px; color: var(--dim); }

@media (max-width: 360px) {
  .stat dt { font-size: 19px; }
  .stat dd { font-size: 10.5px; }
  .hero h1 { font-size: 30px; }
}
