body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #050d1f;
  color: #ffffff;
  text-align: center;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

/* Insights Hero (full-width video section) */
.insights-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0; /* override section default */
}
.insights-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.insights-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 13, 31, 0.20) 0%, rgba(5, 13, 31, 0.55) 60%, rgba(5, 13, 31, 0.75) 100%);
  z-index: -1;
}
.insights-content {
  padding: 40px 20px;
  max-width: 900px;
}
.insights-content h2 {
  margin: 0 0 12px;
  font-size: 2.2rem;
}
.insights-content p {
  margin: 0 auto;
  color: #d7d7d7;
  font-size: 1.05rem;
  max-width: 760px;
}
.hero-markets {
  position: relative;
  height: 15vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  padding-top: 20%;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.4; /* voit säätää tummuutta tarvittaessa */
}
.logo {
  width: 60px;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
  margin: 0;
}

.highlight {
  background: linear-gradient(to right, #00c6ff, #7ef9a2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.2rem;
  margin: 10px 0 30px;
  color: #ccc;
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
}

.btn.primary {
  background: linear-gradient(to right, #00c6ff, #7ef9a2);
  color: #000;
}

.btn.secondary {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

section {
  padding: 80px 20px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  background-color: #0a0f1c;
  text-align: center;
}

.feature-item {
  flex: 1 1 300px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.feature-item#openai img{
  background-color: #fff;
  padding: 5px;
}

.chart-wrapper {
  width: 100%;
  max-width: 700px;
  height: 350px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 230, 184, 0.2);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 25px rgba(0, 230, 184, 0.2);
  backdrop-filter: blur(4px);
}

.chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.chart-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
}

.trust-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 20px;
}

footer {
  background-color: #020a18;
  padding: 30px 20px;
  font-size: 0.9rem;
  color: #999;
}

.footer-links a {
  margin: 0 10px;
  color: #999;
  text-decoration: none;
}

/* Disclaimer text */
.disclaimer {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #666;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  .feature-item {
    max-width: 90%;
  }
}


.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.logo-title .logo {
  width: 64px;
  height: auto;
}



.trusted-tech {
  text-align: center;
  padding: 80px 20px;
  background-color: #0a0f1c;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.tech-item {
  flex: 0 1 200px;
  text-align: center;
}

.tech-item img {
  width: 80px;
  height: auto;
  margin-bottom: 16px;
}

.tech-item h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.tech-item p {
  color: #ccc;
  font-size: 0.95rem;
}

.contact-section {
  padding: 80px 20px;
  background-color: #0d1224;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-section p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 20px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background-color: #1b223a;
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form button {
  align-self: center;
  padding: 14px 30px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to right, #00c6ff, #00e6b8);
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: linear-gradient(to right, #00aaff, #00d2a8);
}
.header {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 24px));
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* balanced gutters | centered links | actions */
  align-items: center;
  gap: 16px;
  padding: 6px 12px; /* slimmer bar */
  background: linear-gradient(180deg, rgba(26, 34, 54, 0.88), rgba(16, 22, 40, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
  z-index: 1000;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-group img {
  width: 28px; /* slimmer bar */
}
.logo-group h1 {
  font-size: 1.45rem; /* slimmer */
  font-weight: 700;
  color: #00e6b8;
  margin: 0;
}
.main-nav { width: auto; display: flex; justify-content: center; }
.main-nav ul {
  display: flex;
  gap: 36px; /* slimmer spacing */
  list-style: none;
  justify-content: center; /* center like the reference */
}
.main-nav a {
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}
.main-nav a:hover {
  color: #00e6b8;
}

.markets-hero {
  padding-top: 120px;
  text-align: center;
  color: #ffffff;
}

/* General nav layout */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0; /* slimmer header */
  flex-wrap: wrap;
  position: static;
}

/* Logo link */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  justify-self: start; /* anchor to the left gutter */
}

/* Link list (desktop) */
.nav-links {
  display: flex;
  gap: 36px; /* slimmer spacing */
  flex-wrap: wrap;
  justify-content: center; /* center the nav links */
}


/* Link appearance */
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00ffcc;
}

/* Right side actions (globe + CTA) */
.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end; /* anchor to the right gutter */
}
.nav-cta {
  border-radius: 999px;
  padding: 6px 12px; /* slimmer button */
  font-weight: 700;
  color: #fff;               /* keep text white */
  text-decoration: none;     /* remove underline */
  background: transparent;   /* no fill */
}
.nav-cta:visited {
  color: #fff;               /* prevent purple visited state */
}
.nav-cta:hover {
  color: #fff;               /* keep white on hover */
}

/* Built-in SWA auth links */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 8px;
}
.nav-auth a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.nav-auth a:visited { color: #fff; }
.nav-auth a:hover { color: #fff; opacity: 0.9; }

/* Auth dropdown trigger and menu */
.auth-trigger {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.auth-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: rgba(10, 15, 28, 0.98);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 8px;
  display: none;
  z-index: 1100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.auth-menu.open { display: block; }
.auth-menu a, .auth-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #fff;
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.auth-menu a:hover, .auth-menu button:hover {
  background: rgba(255,255,255,0.08);
}
.auth-menu .muted { opacity: 0.7; cursor: default; }

/* Simple modal for profile */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}
.auth-modal-backdrop.show { display: flex; }
.auth-modal {
  background: #0a0f1c;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  min-width: 280px;
  max-width: 90vw;
  padding: 16px;
}
.auth-modal h3 { margin-top: 0; }
.auth-modal .actions { display: flex; gap: 10px; justify-content: flex-end; }
.auth-modal button { padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.25); background: transparent; color: #fff; cursor: pointer; }

/* Sign-in page */
.auth-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px; /* ensure content visible below fixed header */
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(10, 15, 28, 0.9);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.auth-title {
  margin: 8px 0 20px;
}
.auth-oauth-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
}
.auth-oauth-btn:hover { background: rgba(255,255,255,0.1); }
.auth-divider { position: relative; text-align: center; margin: 18px 0; color: #aaa; }
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(255,255,255,0.15);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-divider span { background: transparent; padding: 0 8px; }

.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form label { text-align: left; font-weight: 600; }
.auth-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(27, 34, 58, 0.9);
  color: #fff;
}
.auth-row { display: flex; justify-content: space-between; align-items: baseline; }
.auth-muted { color: #aaa; text-decoration: none; font-size: 0.9rem; }
.auth-submit { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.25); background: #11151f; color: #fff; font-weight: 700; cursor: pointer; }
.auth-small { color: #bbb; text-align: center; }
.auth-error { color: #ff6b6b; text-align: center; margin-top: 4px; }

/* Hide contact link by default (desktop), show only in mobile dropdown */
.nav-links .contact-link { display: none; }

.link-section{
  padding: 80px;
}

section[id] {
  scroll-margin-top: 80px;
}

/* Hamburger icon hidden by default */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  margin-left: auto;
  padding-right: 20px;
}

.hamburger span {
  height: 3px;
  background: white;
  border-radius: 2px;
}


/* Mobile version */
@media screen and (max-width: 768px) {
  nav {
    position: relative;
    width: 100%;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #0a0f1c;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    width: 200px;
  }

  .nav-links.show {
    display: flex !important;
  }

  .nav-links li {
    margin: 12px 0;
    text-align: left;
  }

  .hero-markets{
    padding-top: 40%;
  }

  /* compact header paddings and hide CTA on small screens */
  .header {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 6px 10px; /* slimmer mobile bar */
    width: min(100%, calc(100% - 12px));
  }
  .nav-actions .nav-cta { display: none; } /* keep bar compact on mobile */
  .nav-actions .nav-auth { display: inline-flex; }
  .nav-links .contact-link { display: block; }

  /* Insights hero - mobile sizing */
  .insights-hero {
    min-height: 60vh;
  }
  .insights-content h2 {
    font-size: 1.8rem;
  }
  .insights-content p {
    font-size: 1rem;
  }
}
/* Reports Page */
.report-cards {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
}
.report-card {
  width: 300px;
  cursor: pointer;
}
.report-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.pdf-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#pdf-container {
  position: relative;
  width: 95vw;
  height: 95vh;
  background: #fff;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
#pdf-toolbar {
  position: sticky;
  top: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 8px;
  background: rgba(0,0,0,0.7);
  width: 100%;
  z-index: 10;
}
#pdf-pages {
  width: 100%;
}
#pdf-toolbar button {
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}
#pdf-pages canvas {
  display: block;
  margin: 0 auto 20px;
}

body.no-scroll {
  overflow: hidden;
}


.report-title-centered{
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Portfolio Page */
.portfolio-summary {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 40px;
}

.table-container {
  overflow-x: auto;
}

.portfolio-table {
  width: 100%;
  border-collapse: collapse;
}

.portfolio-table th,
.portfolio-table td {
  padding: 12px;
  text-align: center;
}

.portfolio-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.pl-positive {
  color: #0f0;
}

.pl-negative {
  color: #f00;
}
