:root {
  --primary-color: #a078fd;
  /* Gold/Yellow - Complementary to Purple Banner */
  --secondary-color: #1a191f;
  --background-color: #17151a;
  --text-color: #EEEEEE;
  --accent-color: #d1beff;
  /* Lighter Yellow/Cream */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

.mdi {
  font-size: inherit;
  display: inline-flex;
  vertical-align: middle;
}

body {
  font-family: var(--font-main);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: rgba(9, 9, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-color);
}

.logo img {
  width: 40px;
  height: 40px;
}

nav ul {
  display: flex;
  gap: 30px;
}

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

.btn {
  display: inline-flex;
  /* Changed from inline-block for icon alignment */
  align-items: center;
  gap: 8px;
  /* Space between icon and text */
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  /* Ensure consistent text size */
}

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

.btn-primary:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(224, 122, 255, 0.4);
}

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

.btn-outline:hover {
  background-color: rgba(100, 0, 181, 0.1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  /* Allow content to dictate height on mobile if needed, but 100vh min */
  display: flex;
  flex-direction: row;
  /* Side-by-side on desktop */
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 100px 5%;
  /* Increased padding for fixed header */
  background: linear-gradient(rgba(34, 40, 49, 0.8), rgba(34, 40, 49, 0.8)), url('assets/banner.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  /* Prevent scrollbars from tilted image */
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* .hero-image relative positioning is already set in previous rule */

.hero-image {
  perspective: 1000px;
  /* Add depth */
}

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: absolute;
  /* All images absolute to overlap correctly */
  left: 50%;
  top: 50%;
  transform-origin: center center;
}

/* Main Image - Center */
.screenshot-main {
  max-width: 45%;
  max-height: 75vh;
  z-index: 20;
  transform: translate(-50%, -50%) rotate(-5deg);
}

/* Secondary Images - Left/Right */
.screenshot-secondary {
  max-width: 35%;
  max-height: 60vh;
  z-index: 10;
  opacity: 0.8;
}

.screenshot-left {
  transform: translate(-120%, -45%) rotate(-15deg) scale(0.9);
}

.screenshot-right {
  transform: translate(20%, -45%) rotate(5deg) scale(0.9);
}

/* Tertiary Images - Far Left/Right (Hidden by default, shown on wide screens) */
.screenshot-tertiary {
  max-width: 30%;
  max-height: 50vh;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.8);
  /* Center start for animation */
}

.screenshot-far-left {
  transform: translate(-180%, -40%) rotate(-25deg) scale(0.8);
}

.screenshot-far-right {
  transform: translate(80%, -40%) rotate(15deg) scale(0.8);
}


/* Hover Effects */
/* Hover Effects - Expand Fan */
.hero-image:hover .screenshot-main {
  transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
  z-index: 25;
}

.hero-image:hover .screenshot-left {
  transform: translate(-140%, -50%) rotate(-10deg) scale(0.95);
  z-index: 15;
  opacity: 1;
}

.hero-image:hover .screenshot-right {
  transform: translate(40%, -50%) rotate(10deg) scale(0.95);
  z-index: 15;
  opacity: 1;
}

/* Individual Hover - Bring to Front */
.hero-image .screenshot-main:hover {
  z-index: 100;
  transform: translate(-50%, -50%) rotate(0deg) scale(1.15);
}

.hero-image .screenshot-left:hover {
  z-index: 100;
  transform: translate(-140%, -50%) rotate(-10deg) scale(1.1);
}

.hero-image .screenshot-right:hover {
  z-index: 100;
  transform: translate(40%, -50%) rotate(10deg) scale(1.1);
}

/* Wide Screen Layout (>1200px) */
@media (min-width: 1200px) {
  .hero-image img {
    max-width: 25%;
    /* Smaller relative width to fit 5 */
  }

  .screenshot-main {
    max-width: 28%;
  }

  .screenshot-tertiary {
    opacity: 0.6;
    visibility: visible;
  }

  /* Retune positions for 5 items */
  .hero-image:hover .screenshot-far-left {
    transform: translate(-220%, -50%) rotate(-20deg) scale(0.9);
    opacity: 1;
    z-index: 10;
  }

  .hero-image:hover .screenshot-far-right {
    transform: translate(120%, -50%) rotate(20deg) scale(0.9);
    opacity: 1;
    z-index: 10;
  }

  /* Wide Screen Individual Hover */
  .hero-image .screenshot-far-left:hover {
    z-index: 100;
    transform: translate(-220%, -50%) rotate(-20deg) scale(1.1);
  }

  .hero-image .screenshot-far-right:hover {
    z-index: 100;
    transform: translate(120%, -50%) rotate(20deg) scale(1.1);
  }
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.5rem;
  color: #aeb4be;
  margin-bottom: 40px;
  max-width: 600px;
  /* Keep max-width */
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* Features Section */
.features {
  padding: 100px 5%;
  background-color: var(--secondary-color);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  /* color: var(--primary-color); */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 16px;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(0, 0, 0, 0.8);
  border-color: var(--primary-color);
}

.feature-icon {
  /* font-size: 4rem; */
  /* Increased from 2.5rem */
  margin-bottom: 20px;
  color: var(--primary-color);
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.feature-icon>.mdi {
  font-size: 4rem;
  line-height: 4rem;
}

.platform-icon>.mdi {
  font-size: 8rem;
}

.mdi {
  font-size: 2rem;
  line-height: 24px;
}

.feature-card p {
  color: #aeb4be;
}

/* Download Section */
.download {
  padding: 100px 5%;
  text-align: center;
}

.download-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.download-card {
  background-color: var(--secondary-color);
  padding: 40px;
  border-radius: 20px;
  width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-icon {
  font-size: 6rem;
  /* Increased from 4rem */
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* Setup Section */
.setup {
  padding: 100px 5%;
  background-color: var(--secondary-color);
}

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

.step {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  background-color: var(--background-color);
  padding: 20px;
  border-radius: 12px;
}

.step-number {
  background-color: var(--primary-color);
  color: var(--background-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* Footer */
footer {
  padding: 40px 5%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aeb4be;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-links a {
  font-size: 1.5rem;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding-top: 120px;
    height: auto;
    min-height: 100vh;
  }

  .hero-content {
    margin-bottom: 40px;
    width: 100%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin: 0 auto 30px;
  }

  .hero-image {
    width: 100%;
    height: 350px;
    /* Give explicit height since children are absolute */
    position: relative;
    margin-bottom: 20px;
  }

  .hero-image img {
    max-height: 40vh;
    border-width: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  /* Adjust positioning for mobile vertical stack/fan */
  .screenshot-main {
    max-width: 60%;
    transform: translate(-50%, -50%) rotate(0deg);
    z-index: 20;
  }

  .screenshot-secondary {
    max-width: 50%;
    opacity: 0.8;
  }

  .screenshot-left {
    transform: translate(-90%, -45%) rotate(-10deg) scale(0.9);
    z-index: 10;
  }

  .screenshot-right {
    transform: translate(-10%, -45%) rotate(10deg) scale(0.9);
    z-index: 10;
  }

  /* Ensure tertiary are hidden on mobile */
  .screenshot-tertiary {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  nav ul {
    display: none;
    /* Keep it simple for now on mobile */
  }
}