/* ================================
   FONT: BANK GOTHIC (BOLD)
================================ */

@font-face {
  font-family: "Bank Gothic";
  src: url("../fonts/BankGothicBold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ================================
   ROOT VARIABLES
================================ */

:root {
  --gunmetal: #2b2f33;
  --cold-forge-blue: #4d6d80;
  --raw-steel: #d9dde0;
  --text-light: #f5f7f8;
  --text-muted: #aeb5bd;
}

/* ================================
   RESET + GLOBAL
================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--gunmetal);
  color: var(--text-light);
  line-height: 1.6;
}

h1, h2, h3, .brand-font {
  font-family: "Bank Gothic", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================================
   NAVBAR
================================ */

.spd-navbar {
  background-color: rgba(17, 21, 25, 0.96);
  border-bottom: 1px solid #1d2125;
  backdrop-filter: blur(8px);
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

/* LOGO — RESPONSIVE SCALING */

/* Mobile — MAX SAFE SIZE while keeping hamburger aligned */
.nav-logo {
  height: 60px; /* was 52 → now bigger */
  width: auto;
}

/* Tablet */
@media (min-width: 768px) {
  .nav-logo {
    height: 72px;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .nav-logo {
    height: 88px;
  }
}

/* Tighten horizontal padding on small screens → more space for logo */
@media (max-width: 576px) {
  .spd-navbar .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Slightly tighter hamburger padding */
@media (max-width: 576px) {
  .navbar-toggler {
    padding: 0.25rem 0.45rem;
  }
}

/* Keep brand left, hamburger right */
.navbar-brand {
  margin-right: auto;
}

/* Nav links */
.navbar-dark .navbar-nav .nav-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--cold-forge-blue);
}

/* ================================
   LANGUAGE SWITCHER
   - näkyy nyt myös hamburger-menun alla
================================ */

.lang-switch {
  display: flex;                 /* näkyy aina */
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;       /* mobiilissa keskelle */
  gap: 0.35rem;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-top: 0.75rem;           /* vähän tilaa nav-linkkien jälkeen */
}

.lang-switch a {
  color: var(--text-muted);
  padding: 0.15rem 0.1rem;
}

.lang-switch a.active {
  color: var(--raw-steel);
}

.lang-switch a:hover {
  color: var(--cold-forge-blue);
}

.lang-switch span {
  opacity: 0.5;
}

/* Desktop-asettelu: oikeaan reunaan, ei ylimääräistä väliä */
@media (min-width: 992px) {
  .lang-switch {
    justify-content: flex-end;
    margin-top: 0;
    margin-left: 1.5rem;
  }
}

/* Language switch – make active language unmistakable */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lang-switch a {
  color: var(--text-muted);
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--raw-steel);
  background: rgba(255, 255, 255, 0.04);
}

/* ACTIVE = brighter + underline + subtle chip */
.lang-switch a.active {
  color: var(--raw-steel);
  background: rgba(77, 109, 128, 0.18); /* cold-forge-blue tint */
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

/* Optional: make the dot separators a bit quieter */
.lang-switch span {
  color: rgba(174, 181, 189, 0.55);
}

/* ================================
   HERO SECTION
================================ */

.hero h1 {
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.hero-subline {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: none;
  font-weight: 500;
  display: block;
  margin-top: 0.15rem;
  opacity: 0.92;
}

.hero .lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.badge-made {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background-color: rgba(77, 109, 128, 0.18);
  color: var(--raw-steel);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */

.btn-primary {
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-color: var(--cold-forge-blue);
  background-color: var(--cold-forge-blue);
  color: #f8fafc;
}

.btn-primary:hover {
  background-color: #658aa2;
  border-color: #658aa2;
}

.btn-ghost {
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid rgba(217, 221, 224, 0.35);
  background-color: transparent;
  color: var(--raw-steel);
}

.btn-ghost:hover {
  border-color: var(--raw-steel);
  background-color: rgba(255, 255, 255, 0.03);
}

.hero-meta {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-meta strong {
  color: var(--raw-steel);
}

/* HERO MEDIA */

.hero-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.7);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.09), transparent 45%);
  pointer-events: none;
}

/* ================================
   SECTIONS
================================ */

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.section-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ================================
   USP CARDS
================================ */

.usp-card {
  background-color: rgba(10, 14, 18, 0.6);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.7);
}

.usp-card h3 {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.usp-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ================================
   FEATURES & SPECS
================================ */

.feature-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 0;
}

.feature-list li {
  margin-bottom: 0.65rem;
  padding-left: 1.25rem;
  position: relative;
}

.feature-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: var(--cold-forge-blue);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.spec-card {
  background-color: rgba(10, 14, 18, 0.7);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(0, 0, 0, 0.7);
  font-size: 0.86rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.18rem 0;
}

.spec-label {
  color: var(--text-muted);
}

.spec-value {
  color: var(--raw-steel);
  text-align: right;
}

.spec-muted {
  color: var(--text-muted);
  font-size: 0.82em;
}


/* ================================
   VIDEO SECTION
================================ */

.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 10% 0%, rgba(255,255,255,0.06), transparent 55%);
  border: 1px solid rgba(0,0,0,0.7);
  min-height: 220px;
}

.video-inner {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-inner iframe,
.video-inner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  pointer-events: none;
}

.video-play-icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 2px solid var(--raw-steel);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
}

.video-play-icon::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 14px solid var(--raw-steel);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}

/* ================================
   BUY SECTION
================================ */

.market-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.market-links a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 221, 224, 0.4);
  color: var(--raw-steel);
}

.market-links a:hover {
  border-color: var(--cold-forge-blue);
  background-color: rgba(77, 109, 128, 0.12);
}

/* ================================
   FOOTER
================================ */

footer {
  border-top: 1px solid #14181b;
  padding: 1.4rem 1.25rem 1.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

/* Footer layout */
footer {
  border-top: 1px solid #14181b;
  padding: 1.6rem 0 1.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Main footer row (desktop: left / right) */
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-left,
.footer-right {
  line-height: 1.4;
}

/* Credits row – always centered, always bottom */
.footer-credits {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-credits a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-credits a:hover {
  color: var(--raw-steel);
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    text-align: center;
  }
}



/* ================================
   HERO CAROUSEL (uniform sizing)
================================ */

.hero-carousel {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

/* Pakota sama kuvapinta kaikille: valitse yksi */
.hero-carousel .carousel {
  /* 16:10 toimii hyvin hero-kuville */
  aspect-ratio: 16 / 10;
  width: 100%;
  background: #0b0f13;
}

/* Fallback jos aspect-ratio ei toimi jossain: */
@media (min-width: 992px) {
  .hero-carousel .carousel { min-height: 420px; }
}
@media (max-width: 576px) {
  .hero-carousel .carousel { min-height: 260px; }
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
}

.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* tärkein: kaikki samaan ikkunaan */
  object-position: center;
  display: block;
}

/* INDICATORS: vasen-alakulmaan */
.hero-carousel .carousel-indicators {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: auto;
  margin: 0;
  justify-content: flex-start;
  gap: 6px;
  z-index: 5;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin: 0;
  background-color: rgba(217, 221, 224, 0.45);
  border: 0;
  opacity: 1;
}

.hero-carousel .carousel-indicators .active {
  background-color: var(--raw-steel);
}

/* CHIP: oikea-alakulmaan (ei päällekkäin indikaattorien kanssa) */
.hero-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--raw-steel);
  background-color: rgba(17, 21, 25, 0.78);
  border: 1px solid rgba(217, 221, 224, 0.22);
  backdrop-filter: blur(6px);
}

/* Controls: hillityt ja premium */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 12%;
  opacity: 0.85;
  z-index: 4;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  opacity: 1;
}

/* Marketplace switch buttons */
.market-switch {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.market-btn {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 221, 224, 0.35);
  background: transparent;
  color: var(--raw-steel);
  cursor: pointer;
  transition: all 0.15s ease;
}

/* ACTIVE = clearly lighter + confident */
.market-btn.active {
  background-color: rgba(217, 221, 224, 0.18);
  border-color: var(--raw-steel);
  color: var(--text-light);
}

/* Hover */
.market-btn:hover:not(.active) {
  border-color: var(--cold-forge-blue);
  background-color: rgba(77, 109, 128, 0.10);
}

/* Panels */
.market-panel {
  display: none;
  background-color: rgba(10, 14, 18, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 14px;
  padding: 0.85rem;
}

.market-panel.show {
  display: block;
}

/* Links */
.market-link {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: var(--raw-steel);
  font-size: 0.9rem;
}

.market-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--raw-steel);
}

.eu-funding{
  text-align:center;
  margin-top:25px;
  opacity:0.8;
}

.eu-funding-img{
  max-width:110px;
  height:auto;
  display:block;
  margin:0 auto 8px auto;
}

.eu-funding-text{
  font-size:11px;
  color:#666;
  margin:0;
}
