/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@700;800&family=Noto+Sans:wght@400;600&display=swap');

/* === CORE VARIABLES (LIGHT THEME) === */
:root {
  --bg-primary: #f8f8fc;
  --bg-secondary: #ffffff;
  --text-main: #1a1a2e;
  --text-muted: #64748b;

  /* Stumble Guys Accent - Vibrant Cyan/Blue from the icon */
  --accent: #00d2ff;
  --accent-alt: #0072ff;
  --accent-rgb: 0, 210, 255;

  --primary-gradient: linear-gradient(135deg, var(--accent), var(--accent-alt));

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 8px;

  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.1);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.15);

  --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  --nav-height: 100px;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--text-main);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1.1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* === BACKGROUND TEXTURE === */
.sg-animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(-45deg, #f8f8fc, #ffffff, #eef2ff, #f8f8fc);
  background-size: 400% 400%;
  animation: bgGradient 15s ease infinite;
}

@keyframes bgGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === SCROLL PROGRESS === */
.sg-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--primary-gradient);
  z-index: 1001;
  width: 0%;
}

/* === NAVIGATION (Split Header) === */
.sg-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sg-nav-top {
  height: 32px;
  background: var(--text-main);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.sg-nav-bottom {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.sg-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.sg-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.sg-nav-links {
  display: flex;
  gap: 32px;
}

.sg-nav-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
}

.sg-nav-link:hover, .sg-nav-link.active {
  color: var(--accent-alt);
}

/* === BUTTONS === */
.sg-btn {
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.sg-btn-primary {
  background: var(--primary-gradient);
  color: white;
}

.sg-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3);
}

.sg-btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent-alt);
}

.sg-btn-outline:hover {
  background: rgba(0, 210, 255, 0.05);
}

/* Floating CTA */
.sg-floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.sg-floating-cta.visible {
  transform: translateY(0);
  opacity: 1;
}

/* === HERO SECTION === */
.sg-hero {
  min-height: 100vh;
  padding: 160px 40px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 70% 30%, rgba(0, 210, 255, 0.1), transparent 50%);
}

.sg-hero-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 60px;
}

.sg-hero-content {
  flex: 0 0 55%;
}

.sg-hero-image {
  flex: 0 0 45%;
  perspective: 1000px;
}

.sg-hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: var(--transition);
}

.sg-hero-image:hover img {
  transform: rotateY(0) rotateX(0);
}

.sg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-alt);
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 24px;
}

.sg-hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: -2px;
}

.sg-hero-tagline {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.sg-hero-btns {
  display: flex;
  gap: 16px;
}

/* === SECTION GENERAL === */
section {
  position: relative;
  z-index: 2;
}

.sg-section-overlap {
  margin-top: -60px;
  box-shadow: 0 -30px 60px rgba(0,0,0,0.03);
}

.sg-container-narrow {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.sg-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.sg-section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}

/* === FEATURE CARDS === */
.sg-features {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.sg-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.sg-feature-card {
  background: var(--bg-secondary);
  padding: 48px;
  border-radius: var(--radius-md);
  border: 4px solid transparent;
  background-clip: padding-box;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.sg-feature-card::before {
  content: '';
  position: absolute;
  top: -4px; right: -4px; bottom: -4px; left: -4px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), var(--accent), var(--accent-alt), var(--accent));
  animation: rotateGradient 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* removed animated keyframe */

.sg-feature-card:hover {
  transform: translateY(-10px);
}

.sg-feature-card:hover::before {
  opacity: 1;
}

.sg-feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 210, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--accent-alt);
  margin-bottom: 24px;
}

/* === GALLERY SECTION === */
.sg-gallery {
  padding: 80px 0;
  overflow: hidden;
  background: #f1f5f9;
}

.sg-gallery-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 40px 24px;
  scrollbar-width: none;
}

.sg-gallery-track::-webkit-scrollbar {
  display: none;
}

.sg-gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.sg-gallery-item img {
  height: 500px;
  width: auto;
  min-width: 280px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

/* === STATS SECTION === */
.sg-stats {
  padding: 40px 0;
  background: var(--bg-secondary);
}

.sg-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.sg-stat-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: var(--accent-alt);
  line-height: 1;
  margin-bottom: 8px;
}

.sg-stat-label {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === REVIEWS SECTION === */
.sg-reviews {
  padding: 100px 0;
  background: var(--bg-primary);
}

.sg-review-card {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.sg-review-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.sg-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sg-avatar-init {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.sg-rating {
  color: #ffb800;
  display: flex;
  gap: 4px;
}

.sg-review-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.sg-metric-label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

.sg-metric-value {
  font-weight: 700;
  font-size: 18px;
}

/* === DOWNLOAD CTA FOOTER === */
.sg-cta-footer {
  padding: 120px 0;
  background: var(--text-main);
  color: white;
  text-align: center;
}

.sg-cta-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 24px;
}

.sg-cta-text {
  font-size: 20px;
  opacity: 0.8;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === FOOTER === */
.sg-footer-main {
  background: #ffffff;
  padding: 80px 40px 40px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.sg-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.sg-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
}

.sg-footer-logo img {
  width: 24px;
  height: 24px;
}

.sg-footer-heading {
  font-weight: 700;
  margin-bottom: 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sg-footer-link {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sg-footer-link:hover {
  color: var(--accent-alt);
}

.sg-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}

.sg-socials {
  display: flex;
  gap: 16px;
}

.sg-social-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.sg-social-icon:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

/* === PERSPECTIVE SCROLLING EFFECT === */
.reveal {
  opacity: 0;
  transform: translateY(40px) perspective(1000px) rotateX(10deg);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) perspective(1000px) rotateX(0);
}

/* === MOBILE === */
@media (max-width: 1024px) {
  .sg-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .sg-nav-bottom { padding: 0 20px; }
  .sg-nav-links { display: none; }

  .sg-hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
  }

  .sg-hero-content, .sg-hero-image { flex: 1; }
  .sg-hero-tagline { margin-left: auto; margin-right: auto; }
  .sg-hero-btns { justify-content: center; }

  .sg-feature-grid { grid-template-columns: 1fr; }

  .sg-gallery-item img { height: 350px; min-width: 200px; }

  .sg-stats-grid { grid-template-columns: 1fr; }

  .sg-footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .sg-footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
