:root {
  --primary: #34d399;
  --primary-glow: rgba(52, 211, 153, 0.4);
  --secondary: #10b981;
  --accent: #a3e635;
  --accent-glow: rgba(163, 230, 53, 0.3);
  --bg-from: #052e16;
  --bg-via: #14532d;
  --bg-to: #022c22;
  --card-bg: rgba(20, 83, 45, 0.6);
  --card-border: rgba(52, 211, 153, 0.2);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --radius: 8px;
}

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

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 400;
  background: linear-gradient(135deg, var(--bg-from) 0%, var(--bg-via) 50%, var(--bg-to) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.saf3-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.saf3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 46, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.saf3-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.saf3-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
}

.saf3-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.saf3-nav { display: flex; align-items: center; gap: 30px; }

.saf3-nav-links { display: flex; gap: 30px; list-style: none; }

.saf3-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease-in-out;
}

.saf3-nav-links a:hover { color: var(--primary); }

.saf3-age-badge {
  background: var(--accent);
  color: #000;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
}

.saf3-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.saf3-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.2s ease-in-out;
}

.saf3-hero {
  padding-top: 140px;
  padding-bottom: 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.saf3-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--bg-from) 0%, var(--bg-via) 50%, var(--bg-to) 100%);
  animation: saf3-gradient-shift 8s ease infinite;
  z-index: -1;
}

@keyframes saf3-gradient-shift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.saf3-hero-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: #000;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 20px;
}

.saf3-hero-content { max-width: 800px; margin: 0 auto; }

.saf3-hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.saf3-hero p {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.saf3-hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.saf3-btn {
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
}

.saf3-btn-primary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.saf3-btn-primary:hover {
  background: var(--primary);
  color: #000;
  transform: scale(1.01);
}

.saf3-btn-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.saf3-btn-secondary:hover {
  background: var(--accent);
  color: #000;
  transform: scale(1.01);
}

.saf3-hero-disclaimer {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.saf3-section {
  padding: 60px 0;
  position: relative;
}

.saf3-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.saf3-section-title {
  font-size: 40px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.saf3-section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
}

.saf3-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

[data-game-card] {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s ease-in-out;
}

[data-game-card]:hover {
  transform: scale(1.01);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.2);
}

[data-game-image-wrap] {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

[data-game-image] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-game-image-fallback] {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #000;
}

[data-game-meta] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

[data-game-category] {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.age-badge {
  background: var(--accent);
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

[data-game-title] {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text);
}

[data-play-demo] {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-family: 'Space Grotesk', sans-serif;
}

[data-play-demo]:hover {
  background: var(--primary);
  color: #000;
  transform: scale(1.01);
}

.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.game-modal.active { display: flex; }

.modal-content {
  background: var(--bg-from);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 16px;
}

#modal-game-title { flex: 1; font-size: 24px; }

.close-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
}

#game-iframe {
  flex: 1;
  border: none;
  width: 100%;
}

.demo-unavailable {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
}

.saf3-cta-band {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 50px 30px;
  text-align: center;
}

.saf3-cta-band h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.saf3-cta-band p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.saf3-trust {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.saf3-trust ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 30px auto 0;
}

.saf3-trust li {
  font-size: 16px;
  color: var(--text-muted);
}

.saf3-trust li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  margin-right: 10px;
}

.saf3-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.saf3-feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  transition: all 0.2s ease-in-out;
}

.saf3-feature-card:hover {
  transform: scale(1.01);
  border-color: var(--primary);
}

.saf3-feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.saf3-feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--primary);
}

.saf3-feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

.saf3-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.saf3-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}

.saf3-step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  line-height: 50px;
  font-weight: 700;
  font-size: 20px;
  color: #000;
  margin-bottom: 16px;
}

.saf3-step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.saf3-step p {
  color: var(--text-muted);
  font-size: 15px;
}

.saf3-responsible {
  background: var(--card-bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
}

.saf3-responsible-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.saf3-responsible h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--accent);
}

.saf3-responsible p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 30px;
}

.saf3-responsible-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.saf3-responsible-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

.saf3-responsible-links a:hover { color: var(--accent); }

.saf3-faq { max-width: 800px; margin: 0 auto; }

.saf3-faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.saf3-faq-question {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
}

.saf3-faq-icon {
  color: var(--primary);
  font-size: 20px;
  transition: transform 0.2s ease-in-out;
}

.saf3-faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.saf3-faq-answer p {
  padding-bottom: 20px;
  color: var(--text-muted);
  line-height: 1.6;
}

.saf3-faq-item.active .saf3-faq-answer { max-height: 500px; }
.saf3-faq-item.active .saf3-faq-icon { transform: rotate(45deg); }

.saf3-footer {
  background: var(--bg-from);
  border-top: 1px solid var(--card-border);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.saf3-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.saf3-footer-section h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--primary);
}

.saf3-footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.saf3-footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease-in-out;
}

.saf3-footer-section a:hover { color: var(--primary); }

.saf3-footer-disclaimer {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.saf3-footer-badge {
  background: var(--accent);
  color: #000;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 32px;
  display: inline-block;
  margin-bottom: 16px;
}

.saf3-footer-disclaimer p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.saf3-footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.saf3-age-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.saf3-age-popup-content {
  background: var(--bg-via);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 50px;
  text-align: center;
  max-width: 500px;
}

.saf3-age-popup-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.saf3-age-popup h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--accent);
}

.saf3-age-popup p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

.saf3-age-popup-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.saf3-filter-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.saf3-filter-btn {
  padding: 10px 24px;
  background: transparent;
  border: 2px solid var(--card-border);
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  font-family: 'Space Grotesk', sans-serif;
}

.saf3-filter-btn.active, .saf3-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(52, 211, 153, 0.1);
}

.saf3-page-banner {
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  margin: 100px 0 40px;
  text-align: center;
}

.saf3-page-banner p {
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
}

.saf3-content-page {
  padding-top: 100px;
  padding-bottom: 80px;
}

.saf3-content-page h1 {
  font-size: 40px;
  margin-bottom: 30px;
  color: var(--primary);
}

.saf3-content-page h2 {
  font-size: 28px;
  margin: 30px 0 16px;
  color: var(--primary);
}

.saf3-content-page p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.saf3-content-page ul {
  margin: 16px 0;
  padding-left: 30px;
  color: var(--text-muted);
}

.saf3-content-page li { margin-bottom: 10px; line-height: 1.6; }

@media (max-width: 768px) {
  .saf3-nav-links { display: none; }
  .saf3-hamburger { display: flex; }
  .saf3-nav.active .saf3-nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 46, 22, 0.98);
    padding: 20px;
    border-bottom: 1px solid var(--card-border);
  }
  .saf3-hero h1 { font-size: 36px; }
  .saf3-hero p { font-size: 16px; }
  .saf3-section-title { font-size: 32px; }
  .saf3-games-grid { grid-template-columns: 1fr; }
  .saf3-hero-badge { top: 10px; right: 10px; padding: 8px 14px; font-size: 16px; }
}

.saf3-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  pointer-events: none;
  animation: saf3-float 8s ease-in-out infinite;
}

.saf3-orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.saf3-orb-2 {
  width: 250px;
  height: 250px;
  background: var(--accent);
  bottom: 15%;
  right: 10%;
  animation-delay: 2s;
}

@keyframes saf3-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.saf3-corner-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--accent);
  color: #000;
  padding: 6px 12px;
  border-radius: 0 var(--radius) 0 var(--radius);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}