/* Huurre Studios – sivuston tyylit */
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/fonts/InterDisplay-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --bg: #0A0E13;
  --bg-2: #0F141A;
  --surface: #141A21;
  --surface-2: #1B222B;
  --line: #242D37;
  --text: #E9EEF3;
  --muted: #A1ADBA;
  --accent: #8FD3FF;
  --accent-2: #C4E8FF;
  --ink: #0A0E13;
  --ok: #3DD68C;
  --soon: #F5C04E;
  --radius: 16px;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.ico { flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Ylätunniste */
.top { position: sticky; top: 0; z-index: 5; background: rgba(10, 14, 19, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand-ico { color: var(--ink); background: var(--accent); border-radius: 9px; padding: 5px; width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 12px; border-radius: 10px; }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav .lang { border: 1px solid var(--line); }

/* Napit */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-2); color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: #33404D; color: var(--text); }
.btn-disabled { background: var(--surface); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn-disabled:hover { transform: none; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background-image: radial-gradient(rgba(143, 211, 255, .09) 1px, transparent 1px); background-size: 26px 26px; }
.hero::after { content: ""; position: absolute; right: -10%; top: 10%; width: 620px; height: 620px; border-radius: 50%; background: var(--accent); opacity: .08; filter: blur(100px); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding: 84px 0 92px; }
.kicker { font: 600 13px/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.lead { font-size: 19px; color: #C9D3DC; max-width: 58ch; }

/* Esimerkkipaneeli (Discord-tyylinen) */
.demo { margin: 0; }
.demo figcaption { font-size: 13px; margin-top: 10px; text-align: center; }
.d-msg { display: flex; gap: 14px; background: #1B1E24; border: 1px solid #2A2F37; border-radius: 18px; padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.d-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; }
.d-main { flex: 1; min-width: 0; }
.d-head { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; flex-wrap: wrap; }
.d-app { font-size: 10px; font-weight: 700; background: #4E5CE6; color: #fff; border-radius: 4px; padding: 1px 5px; }
.d-time { font-size: 12px; color: #9AA3AD; }
.d-embed { background: #24282F; border-left: 4px solid var(--ok); border-radius: 6px; padding: 14px 16px; font-size: 14px; }
.d-title { font-family: var(--display); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.d-desc { color: #C6CDD5; margin-bottom: 12px; }
.d-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin-bottom: 12px; }
.d-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.d-k { font-size: 12px; font-weight: 600; color: #F4F7FA; }
.d-v { color: #D5DCE3; overflow-wrap: anywhere; }
.d-v code { background: #1A1D22; font-size: 11.5px; white-space: nowrap; }
.d-grid .d-v code { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.d-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-right: 6px; }
.d-bar { display: block; width: 100%; max-width: 110px; height: 6px; margin-top: 6px; border-radius: 999px; background: #3A3F48; overflow: hidden; }
.d-bar-fill { display: block; width: 47%; height: 100%; background: var(--ok); border-radius: inherit; }
.d-players .d-v { line-height: 1.9; }
.d-buttons { display: flex; gap: 8px; margin-top: 10px; }
.d-btn { display: inline-flex; align-items: center; gap: 6px; background: #3A3F48; color: #F4F7FA; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 8px; }

/* Tilastot */
.stats { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats-in { display: flex; flex-wrap: wrap; gap: 20px 64px; padding: 30px 0; }
.stat { display: flex; align-items: baseline; gap: 12px; }
.stat-n { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--accent); letter-spacing: -0.03em; }
.stat-l { color: var(--muted); }

/* Osiot */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head p { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.filter:hover { color: var(--text); border-color: #33404D; }
.filter.is-on { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* Tuotekortit */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: #33404D; }
.card.is-featured { border-color: rgba(143, 211, 255, .45); box-shadow: 0 0 0 1px rgba(143, 211, 255, .15), 0 24px 60px rgba(143, 211, 255, .06); }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.card-media .media-img { width: 100%; height: 100%; object-fit: contain; background: #0A0E13; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card-title { margin: 12px 0 6px; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-text { color: var(--muted); font-size: 15.5px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 4px; }
.price { font-weight: 600; }
.price-soon { color: var(--muted); font-weight: 400; font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; text-decoration: none; }
.media-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #5E6B78; background-image: radial-gradient(rgba(143, 211, 255, .08) 1px, transparent 1px); background-size: 18px 18px; }
.media-discord { color: #7F8CF0; }
.media-fivem { color: #F5A35E; }
.media-minecraft { color: #6FD08C; }
.card.is-soon .card-media { filter: saturate(.7); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: #C9D3DC; border: 1px solid var(--line); }
.chip-ok { color: var(--ok); border-color: rgba(61, 214, 140, .35); background: rgba(61, 214, 140, .08); }
.chip-soon { color: var(--soon); border-color: rgba(245, 192, 78, .35); background: rgba(245, 192, 78, .08); }

/* Miksi Huurre */
.why { border-top: 1px solid var(--line); background: var(--bg-2); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 30px; }
.why-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(143, 211, 255, .1); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.why-item p { margin: 0; }

/* UKK */
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Tuotesivu */
.back { display: inline-block; margin-bottom: 28px; text-decoration: none; font-weight: 600; font-size: 15px; }
.product-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.product-media { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 1; position: sticky; top: 92px; }
.product-media .media-img { width: 100%; height: 100%; object-fit: cover; }
.product-copy h1 { margin-top: 14px; }
.price-big { font-family: var(--display); font-weight: 700; font-size: 30px; margin: 8px 0 0; }
.note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; margin-top: 16px; }
.note .ico { color: var(--ok); }
.prose { margin-top: 34px; color: #D0D8E0; }
.prose p, .prose li { max-width: 68ch; }
.prose ul { padding-left: 1.2em; }
.prose strong { color: var(--text); }
.features { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px 30px; }
.features li { display: flex; gap: 12px; align-items: flex-start; }
.features .ok { color: var(--ok); margin-top: 4px; }
.demo-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.steps { padding-left: 1.3em; display: flex; flex-direction: column; gap: 12px; color: #D0D8E0; }
.steps li::marker { color: var(--accent); font-weight: 700; }

/* Ehtosivut */
.legal h2 { font-size: 22px; margin-top: 1.8em; }
.legal li { margin-bottom: .4em; }

/* Alatunniste */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 0; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 56px 0 32px; }
.foot-brand p { margin-top: 14px; max-width: 42ch; font-size: 15px; }
.foot-h { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: "Inter", sans-serif; font-weight: 600; }
.foot-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot-list a { color: var(--text); text-decoration: none; }
.foot-list a:hover { color: var(--accent); }
.foot-bottom { padding: 18px 0 36px; font-size: 14px; border-top: 1px solid var(--line); }

/* Puhelin ja tabletti */
@media (max-width: 900px) {
  .hero-in, .product-in, .demo-row { grid-template-columns: 1fr; gap: 40px; }
  .hero-in { padding: 56px 0 64px; }
  .product-media { position: static; max-width: 460px; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .d-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
