/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; color: #333; background: #fff; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #0A1628;
  --white: #FFFFFF;
  --gold: #5bc0da;
  --gold-dark: #5bc0da;
}

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--navy);
  z-index: 1000;
  padding: 0 20px;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links li a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links li a:hover { color: var(--gold); }

/* ===== NAV DROPDOWN ===== */
.nav-links li.has-dropdown { position: relative; }
.nav-links li.has-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; opacity: 0.75; vertical-align: middle; }
.nav-links .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  min-width: 230px;
  border-top: 2px solid var(--gold);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  z-index: 1001;
  padding: 0.4rem 0;
  list-style: none;
}
.nav-links li.has-dropdown:hover > .dropdown { display: block; }
@media (min-width: 1025px) {
  .nav-links li.has-dropdown:focus-within > .dropdown { display: block; }
}
.nav-links .dropdown li { display: block; }
.nav-links .dropdown li a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-links .dropdown li a:hover { background: rgba(201,168,76,0.12); color: var(--gold); }

/* Chevron toggle button — hidden on desktop, used on mobile */
.dropdown-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 0.75rem;
  line-height: 1;
  padding: 0 0.5rem;
  cursor: pointer;
  vertical-align: middle;
  transition: transform 0.2s;
}
.has-dropdown.dropdown-open > .dropdown-toggle { transform: rotate(180deg); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 4px;
  padding: 12px 28px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-block;
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91,192,218,0.35);
}

/* Navbar CTA — smaller than hero buttons to fit the 70px bar */
.nav-cta {
  padding: 7px 18px;
  font-size: 0.82rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91,192,218,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 4px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { background: var(--gold); color: var(--navy); }

/* ===== HERO ===== */
.hero {
  min-height: 80vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
}
.hero-content { max-width: 800px; }
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--gold);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--navy);
  flex-wrap: wrap;
  gap: 2rem;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; }
.stat-label { font-size: 0.95rem; font-weight: 600; margin-top: 0.25rem; }

/* ===== SECTIONS ===== */
.section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.section-full { padding: 80px 20px; }
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
  color: #555;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); border-color: var(--gold); }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.card p { color: #555; line-height: 1.7; }

/* ===== LINK ARROW ===== */
.link-arrow {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
  transition: color 0.2s;
}
.link-arrow:hover { color: var(--gold-dark); }

/* ===== HIGHLIGHT SECTION ===== */
.highlight-section { background: var(--navy); color: var(--white); padding: 80px 20px; }
.highlight-section .card p { color: rgba(255,255,255,0.82); }
.highlight-section .section { max-width: 1200px; margin: 0 auto; }

/* ===== TWO COL SECTION ===== */
.two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  color: var(--navy);
  margin: 1rem 0;
  line-height: 1.3;
}
.two-col-text p { color: #555; margin-bottom: 1.5rem; line-height: 1.7; }

/* ===== TAG ===== */
.tag {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--gold);
  text-align: center;
  padding: 60px 20px;
  color: #fff;
}
.cta-banner h2 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.cta-banner p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ===== FOOTER ===== */
.footer { background: var(--navy); color: var(--white); padding: 60px 20px 0; }
.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col h4,
.footer-col .footer-heading {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  opacity: 1;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col p { margin-bottom: 0.6rem; opacity: 0.8; }
.footer a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 3rem;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { opacity: 0.7; font-size: 0.9rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--white); }
.footer-social-link { color: rgba(255,255,255,0.75); font-size: 0.95rem; display: inline-flex; align-items: center; transition: color 0.2s; }
.footer-social-link:hover { color: #e1306c; }

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--navy);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid #e5e7eb; padding: 0; }
.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1.2rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--gold); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { display: none; padding-bottom: 1.2rem; color: #555; line-height: 1.7; font-size: 0.95rem; }
.faq-item.open .faq-answer { display: block; }

/* ===== EULA ===== */
.eula-section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid #e5e7eb; }
.eula-section:last-of-type { border-bottom: none; }
.eula-section h2 { font-family: 'Syne', sans-serif; color: var(--navy); font-size: 1.25rem; margin-bottom: 1rem; }
.eula-section ul { padding-left: 1.5rem; }
.eula-section ul li { margin-bottom: 0.4rem; color: #444; }
.eula-section p, .eula-section li { line-height: 1.7; color: #444; }
.eula-section a { color: var(--gold); text-decoration: underline; }

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.portfolio-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s;
}
.portfolio-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); border-color: var(--gold); }
.portfolio-card:hover::before { background: var(--gold); }
.portfolio-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

/* ===== TIMELINE ===== */
.timeline { list-style: none; display: flex; flex-direction: column; gap: 2rem; }
.timeline-item { display: flex; gap: 2rem; align-items: flex-start; }
.timeline-num {
  background: var(--gold);
  color: var(--navy);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.timeline-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

/* ===== VALUE CARDS ===== */
.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ===== TRUST LIST ===== */
.trust-list { list-style: none; }
.trust-list li { line-height: 2; }
.trust-list li::before { content: "✅ "; }

/* ===== SCROLL ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SERVICE DETAIL SECTION ===== */
.service-section {
  padding: 60px 0;
  border-bottom: 1px solid #f0f0f0;
}
.service-section:last-child { border-bottom: none; }

/* ===== CONTACT INFO ===== */
.contact-info h3 {
  font-family: 'Syne', sans-serif;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-info-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-info-item h4 { font-weight: 600; color: var(--navy); margin-bottom: 0.25rem; }
.contact-info-item p { color: #555; }
.contact-info-item a { color: var(--gold); }

/* ===== TABLET & MOBILE NAV ===== */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }

  /* Tablet/mobile dropdown: inline list, no absolute positioning */
  .nav-links .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--gold);
    min-width: unset;
    width: 100%;
    padding: 0.25rem 0 0.25rem 0.75rem;
    background: rgba(255,255,255,0.05);
    margin-top: 0.25rem;
  }
  .nav-links li.has-dropdown.dropdown-open > .dropdown { display: block; }
  .nav-links li.has-dropdown > a::after { content: '' !important; }
  .dropdown-toggle { display: inline-block; }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
  .two-col-section { grid-template-columns: 1fr; gap: 2rem; }
  .value-cards { grid-template-columns: 1fr; }
  .section-title { font-size: 1.8rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-bar { flex-direction: column; gap: 1.5rem; }
}

/* Force 4-col grids to stack on mobile */
@media (max-width: 900px) {
  .card-grid[style*="repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .card-grid[style*="repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}

/* 2-col card grid — stacks to 1 col on mobile */
.card-grid--2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
  .card-grid--2col { grid-template-columns: 1fr; }
}

/* ===== BLOG / ARTIKKELIT ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.25s ease;
}
.blog-card:hover {
  box-shadow: 0 16px 48px rgba(10,22,40,0.13);
  transform: translateY(-5px);
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eaeaea;
}
.blog-card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0.6rem 0 0.75rem;
  color: var(--navy);
}
.blog-card-body h2 a {
  color: inherit;
  transition: color 0.2s;
}
.blog-card-body h2 a:hover { color: var(--gold); }
.blog-card-body p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.65;
  flex: 1;
}
.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #999;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}
.blog-meta span { display: flex; align-items: center; gap: 0.3rem; }
.blog-card .btn-primary {
  display: inline-block;
  margin-top: 1.1rem;
  align-self: flex-start;
  font-size: 0.88rem;
  padding: 0.6rem 1.4rem;
}
/* Article page styles */
.article-hero {
  background: linear-gradient(135deg, #0A1628 0%, #12233F 100%);
  padding: 120px 20px 70px;
  text-align: center;
}
.article-hero .tag { margin-bottom: 1.2rem; }
.article-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: #fff;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto 1rem;
}
.article-hero .article-meta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.75rem;
}
.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 20px 4rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}
.article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  font-family: 'Syne', sans-serif;
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.8rem 0 0.7rem;
}
.article-body p { margin-bottom: 1.2rem; }
.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-body ul li, .article-body ol li {
  margin-bottom: 0.5rem;
  list-style: disc;
}
.article-body ol li { list-style: decimal; }
.article-body .highlight-box {
  background: #f4fbfe;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  color: #0A1628;
  font-weight: 500;
}
.article-img-full {
  width: 100%;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
}
.article-cta {
  background: linear-gradient(135deg, #0A1628 0%, #12233F 100%);
  padding: 60px 20px;
  text-align: center;
}
.article-cta h2 { color: #fff; font-size: 1.8rem; margin-bottom: 0.75rem; }
.article-cta p { color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 1.75rem; }
.related-articles { padding: 60px 20px; background: #f9f9fb; }
.related-articles h2 { text-align: center; font-size: 1.5rem; margin-bottom: 2rem; color: var(--navy); }
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 1rem; }
}


