/* ==========================================================================
   WIN.fi Master Unified Stylesheet v2 — Premium Dark Design System
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Core Colors */
  --bg-dark: #030711;
  --background: #030711;
  --background-secondary: #070c17;
  --bg-card: rgba(15, 21, 39, 0.75);
  --surface: #0a101c;
  --surface-hover: #0e1625;
  --bg-card-hover: rgba(24, 32, 58, 0.9);
  --bg-card-solid: #0d1222;

  /* Borders — subtle by default */
  --border-color: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-color-glow: rgba(155, 77, 255, 0.25);

  --text-main: #f8fafc;
  --text-primary: #ffffff;
  --text-secondary: #94a0b8;
  --text-muted: #64708a;
  --text-subtle: #576278;

  --primary-purple: #7c3aed;
  --primary-violet: #8a3ffc;
  --purple: #9b4dff;
  --purple-bright: #b458ff;
  --primary-blue: #2563eb;
  --blue: #345cff;
  --magenta: #d636ff;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;

  --grad-purple: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --grad-blue-purple: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --grad-accent: linear-gradient(135deg, #b334ff 0%, #7137ff 50%, #304cff 100%);
  --grad-hero-accent: linear-gradient(135deg, #d636ff 0%, #9b4dff 50%, #345cff 100%);
  --grad-hero-text: linear-gradient(135deg, #ffffff 30%, #c084fc 100%);

  /* Glow — reduced, only on interactive elements */
  --glow-purple: 0 0 20px rgba(155, 77, 255, 0.18);
  --glow-purple-strong: 0 0 35px rgba(180, 88, 255, 0.3);
  --glow-blue: 0 0 20px rgba(37, 99, 235, 0.18);
  --shadow-card: 0 12px 30px -8px rgba(0, 0, 0, 0.5);

  /* Typography — Manrope with tight tracking */
  --font-main: 'Manrope', sans-serif;
  --font-display: 'Manrope', sans-serif;
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--background);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  /* No single flat black — zones handle their own atmosphere */
  background: #030711;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow, .card-tag, .section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 0.75rem;
}

.section-heading-row, .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* ==========================================================================
   Variant Bar (Showcase Control)
   ========================================================================== */
.variant-bar {
  background: rgba(10, 14, 28, 0.95);
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1001;
  backdrop-filter: blur(10px);
}

.variant-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.variant-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.variant-title span {
  background: rgba(124, 58, 237, 0.2);
  color: #c084fc;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.variant-options {
  display: flex;
  gap: 0.5rem;
}

.variant-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.variant-btn:hover {
  background: rgba(124, 58, 237, 0.15);
  color: #ffffff;
  border-color: rgba(124, 58, 237, 0.4);
}

.variant-btn.active {
  background: var(--primary-purple);
  color: #ffffff;
  border-color: var(--primary-purple);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(3, 7, 17, 0.88);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 1.9rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: #ffffff;
  letter-spacing: -0.8px;
}

.brand-logo .dot-fi {
  color: #c084fc;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: #ffffff;
}

.nav-secondary-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  color: var(--text-subtle);
}

.header-actions, .header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Countdown Badge */
.header-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(155, 77, 255, 0.12);
  border: 1px solid rgba(180, 88, 255, 0.3);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.header-countdown .countdown-number {
  color: #38bdf8;
  font-weight: 800;
  font-family: var(--font-display);
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 1.6rem;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-header-cta, .btn-primary {
  height: 44px;
  padding: 0 1.3rem;
  border-radius: 8px;
  background: var(--grad-accent);
  color: #ffffff;
  box-shadow: var(--glow-purple);
}

.btn-header-cta:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-purple-strong);
}

.btn-purple {
  background: var(--grad-accent);
  color: #ffffff;
  box-shadow: var(--glow-purple);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-purple-strong);
}

.btn-blue {
  background: linear-gradient(135deg, #1d4ed8 0%, #345cff 100%);
  color: #ffffff;
  box-shadow: 0 0 30px rgba(52, 92, 255, 0.35);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(52, 92, 255, 0.55);
}

.btn-secondary, .btn-outlined {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #ffffff;
}

.btn-secondary:hover, .btn-outlined:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-pill {
  border-radius: 30px;
}

.btn-large {
  height: 56px;
  padding: 0 2.2rem;
  font-size: 1.05rem;
  border-radius: 10px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section — Atmospheric, CSS-masked visual
   ========================================================================== */
.hero-section {
  padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(3.5rem, 6vw, 5rem);
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  /* Hero zone atmosphere */
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(37,99,235,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 65% 30%, rgba(155,77,255,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(12,8,30,0.6) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: clamp(52px, 5.5vw, 78px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin-bottom: 1.6rem;
  text-transform: uppercase;
}

.hero-title .gradient-text {
  background: var(--grad-hero-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-ingress, .hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 520px;
}

.hero-cta-group, .hero-buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Hero Visual — CSS masked, no visible image edge */
.hero-visual-wrapper, .hero-visual {
  position: relative;
  min-height: 560px;
  overflow: visible;
}

/* Blue light behind visual */
.hero-visual-wrapper::before {
  content: '';
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(37,99,235,0.14) 0%, transparent 70%);
  right: -5%;
  top: 10%;
  filter: blur(80px);
  z-index: 0;
}

/* Purple light behind visual */
.hero-visual-wrapper::after {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(155,77,255,0.16) 0%, transparent 70%);
  right: 18%;
  top: -5%;
  filter: blur(70px);
  z-index: 0;
}

/* The actual hero image — masked so edges dissolve */
.hero-visual-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/hero-visual-v2.webp') center center / contain no-repeat;
  z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 85% 90% at 55% 50%, black 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 90% at 55% 50%, black 35%, transparent 100%);
}

/* Legacy img fallback (hidden in v2) */
.hero-visual-img {
  display: none;
}

.hero-visual-glow, .visual-glow {
  display: none;
}

.hero-visual-card, .visual-card-3d {
  display: none;
}

/* Feature Pills in Hero */
.hero-features {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.feature-pill svg {
  color: #a78bfa;
}

/* ==========================================================================
   Trust / Partner Logos Bar
   ========================================================================== */
.trust-section, .trust-bar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.trust-title {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

.partner-logos-grid, .logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.partner-logo-item, .partner-logo {
  opacity: 0.55;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.partner-logo-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  white-space: nowrap;
}

.partner-logo-item:hover, .partner-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.partner-logo-item img, .partner-logo img {
  height: 32px;
  width: auto;
}

/* ==========================================================================
   Audience Section — Art-directed cards with background visuals
   ========================================================================== */
.audience-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  /* Zone: subtle navy mid-tone */
  background: linear-gradient(180deg, #030711 0%, rgba(8,12,24,1) 15%, rgba(8,12,24,1) 85%, #030711 100%);
}

.audience-grid, .cards-grid-2, .cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cards-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.audience-card {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  min-height: 500px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card {
  background: linear-gradient(160deg, rgba(12, 18, 35, 0.95) 0%, rgba(7, 12, 23, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 2.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Visual layer — background image */
.audience-card-visual {
  grid-area: 1 / 1;
  background-size: cover;
  background-position: center bottom;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.15) 25%, rgba(0,0,0,0.55) 50%, black 80%);
  mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.15) 25%, rgba(0,0,0,0.55) 50%, black 80%);
}

/* Content layer — sits on top */
.audience-card-content {
  grid-area: 1 / 1;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.2rem;
}

/* No more ::before gradient strip */
.audience-card::before {
  display: none;
}

.audience-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
}

.solution-card:hover {
  background: rgba(14, 22, 37, 1);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5);
}

.audience-card--casino .audience-label { color: #c084fc; }
.audience-card--betting .audience-label { color: #60a5fa; }
.audience-card--media .audience-label { color: #e879f9; }

.audience-card--casino .checklist svg { color: #c084fc; }
.audience-card--betting .checklist svg { color: #60a5fa; }
.audience-card--media .checklist svg { color: #e879f9; }

.audience-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c084fc;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.audience-card--betting .audience-label { color: #60a5fa; }
.audience-card--media .audience-label { color: #e879f9; }

.audience-title, .card-title {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.checklist {
  list-style: none;
  margin-bottom: 1.8rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.7rem;
}

.checklist li svg {
  color: #c084fc;
  flex-shrink: 0;
  margin-top: 3px;
}

.audience-card--betting .checklist li svg { color: #60a5fa; }
.audience-card--media .checklist li svg { color: #e879f9; }

/* ==========================================================================
   Miksi WIN.fi? / KPI Section
   ========================================================================== */
.kpi-section, .stats-section {
  margin: 0 0 clamp(3rem, 5vw, 4rem);
  background: linear-gradient(135deg, rgba(10, 16, 28, 0.9) 0%, rgba(7, 12, 23, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(20px);
}

.kpi-header {
  text-align: center;
  margin-bottom: 3rem;
}

.kpi-grid, .stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.kpi-item, .stat-item {
  text-align: center;
  padding: 0 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.kpi-item:last-child, .stat-item:last-child {
  border-right: none;
}

.kpi-number, .stat-number {
  font-size: 3.2rem;
  font-weight: 900;
  font-family: var(--font-display);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.kpi-label, .stat-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  line-height: 1.35;
}

/* ==========================================================================
   Näkyvyysratkaisut — Calm, spacious grid
   ========================================================================== */
.solutions-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.solutions-grid, .features-grid-7 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.solution-box, .feature-box {
  background: rgba(8,12,24,0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.solution-box:hover, .feature-box:hover {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(12, 18, 32, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.solution-icon-box, .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(155, 77, 255, 0.07);
  border: 1px solid rgba(155, 77, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.solution-icon-box svg, .feature-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.solution-box:hover .solution-icon-box, .feature-box:hover .feature-icon {
  transform: scale(1.05);
}

.solution-box h4, .feature-box h4, .feature-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.solution-box p, .feature-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Data & Insight — Editorial layout (1 big + 3 small)
   ========================================================================== */
.insight-section, .insights-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  /* Zone: indigo atmosphere */
  background: linear-gradient(180deg, #030711 0%, rgba(6,10,22,1) 15%, rgba(6,10,22,1) 85%, #030711 100%);
}

.insight-grid, .insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 1.15rem;
}

.insight-card:first-child {
  grid-row: 1 / 4;
}

.insight-card:first-child .insight-thumb {
  height: 100%;
  min-height: 340px;
}

.insight-card:first-child .insight-thumb img {
  height: 100%;
  object-fit: cover;
}

.insight-card:first-child .insight-title {
  font-size: 1.4rem;
}

.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.insight-card {
  text-decoration: none;
  color: inherit;
}

.insight-card:hover {
  border-color: rgba(155, 77, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.insight-card:hover .insight-thumb img {
  transform: scale(1.025);
}

.insight-thumb {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.insight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.insight-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(3, 7, 17, 0.7) 0%, transparent 100%);
  pointer-events: none;
}

.insight-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.3rem 0.7rem;
  background: rgba(3, 7, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #c084fc;
  backdrop-filter: blur(8px);
}

.insight-body, .insight-content {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.insight-date {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
}

.insight-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.insight-link {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: #c084fc;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   Tuloksia, jotka puhuvat (Case Study / Social Proof)
   ========================================================================== */
.results-section {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.results-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

.results-metrics {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.result-metric-item {
  border-left: 3px solid #9b4dff;
  padding-left: 1.25rem;
}

.result-metric-number {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: var(--font-display);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.result-metric-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.testimonial-card, .testimonial-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  backdrop-filter: blur(20px);
}

.quote-text {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
  margin-bottom: 2rem;
  font-style: italic;
}

.quote-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: #c084fc;
}

/* ==========================================================================
   Final CTA Banner
   ========================================================================== */
.final-cta-banner, .banner-cta {
  background: linear-gradient(135deg, rgba(155, 77, 255, 0.20) 0%, rgba(52, 92, 255, 0.12) 50%, rgba(155, 77, 255, 0.08) 100%);
  border: 1px solid rgba(155, 77, 255, 0.35);
  border-radius: 18px;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(155, 77, 255, 0.25);
}

.final-cta-banner::before, .banner-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(180, 88, 255, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(60px);
}

.final-cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.final-cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Timeline Stepper Component (Subpages & Main)
   ========================================================================== */
.timeline-section {
  padding: 4rem 0;
  margin: 2rem 0 4rem;
  background: rgba(10, 16, 28, 0.6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.timeline-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-item.completed {
  border-color: rgba(16, 185, 129, 0.4);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 800;
  color: #c084fc;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.timeline-link {
  font-size: 0.8rem;
  color: #38bdf8;
  font-weight: 600;
}

/* ==========================================================================
   Subpages Content & Articles (Cornerstone / Rahapelit / Kasinot / Vedonlyönti)
   ========================================================================== */
.content-section {
  padding: 3.5rem 0;
}

.article-container {
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 3.2rem;
  backdrop-filter: blur(16px);
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.article-body h2 {
  font-size: 1.65rem;
  margin: 2.2rem 0 1rem;
  color: #ffffff;
}

.article-body h3 {
  font-size: 1.3rem;
  margin: 1.8rem 0 0.8rem;
  color: #cbd5e1;
}

.article-body p {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: #cbd5e1;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.faq-box {
  margin: 2.5rem 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.sources-box {
  margin-top: 3rem;
  padding: 1.8rem;
  background: rgba(3, 7, 17, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.sources-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 0.85rem;
}

.sources-list {
  list-style: none;
}

.sources-list li {
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}

.sources-list a {
  color: #38bdf8;
}

.sources-list a:hover {
  text-decoration: underline;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 1.8rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: #ffffff;
}

/* License Registry Empty State */
.registry-empty-card {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.empty-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.registry-info-box {
  margin-top: 1.5rem;
  padding: 0.85rem;
  background: rgba(155, 77, 255, 0.12);
  border: 1px solid rgba(180, 88, 255, 0.3);
  border-radius: 8px;
  font-size: 0.88rem;
  color: #c084fc;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #02040a;
  border-top: 1px solid var(--border);
  padding: 5rem 0 2.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: var(--purple);
  color: #ffffff;
  border-color: var(--purple);
  box-shadow: 0 0 15px rgba(155, 77, 255, 0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 17, 0.88);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #0a101c;
  border: 1px solid rgba(155, 77, 255, 0.4);
  border-radius: 20px;
  width: 90%;
  max-width: 520px;
  padding: 2.5rem;
  box-shadow: var(--glow-purple-strong);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #cbd5e1;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: border-color 0.25s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #c084fc;
  background: rgba(255, 255, 255, 0.07);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .audience-grid, .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .audience-card:last-child {
    grid-column: span 2;
  }
  .solutions-grid, .features-grid-7 {
    grid-template-columns: repeat(3, 1fr);
  }
  .kpi-grid, .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .kpi-item:nth-child(3), .stat-item:nth-child(3) {
    border-right: none;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-section {
    min-height: auto;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-ingress, .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group, .hero-buttons {
    justify-content: center;
  }
  .hero-visual-wrapper {
    min-height: 360px;
    margin-top: 2rem;
  }
  .solutions-grid, .features-grid-7 {
    grid-template-columns: repeat(2, 1fr);
  }
  .insight-grid, .insights-grid {
    grid-template-columns: 1fr;
  }
  .insight-card:first-child {
    grid-row: auto;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
  .final-cta-banner, .banner-cta {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr repeat(2, 1fr);
  }
  .timeline-stepper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .audience-grid, .cards-grid-2, .cards-grid-3 {
    grid-template-columns: 1fr;
  }
  .audience-card {
    min-height: 420px;
  }
  .audience-card:last-child {
    grid-column: span 1;
  }
  .kpi-grid, .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi-item, .stat-item {
    border-right: none;
  }
  .solutions-grid, .features-grid-7, .insight-grid, .insights-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

