/* Modern Refinement: Pure White, YouTube Red, Fine Typography */

:root {
  --red-accent: #ff0e38;
  --white: #FFFFFF;
  --dark-text: #1a1a1a;
  --gray-text: #5f5f5f;
  --spacing-sm: 16px;
  --spacing-md: 32px;
  --spacing-lg: 48px;
  --card-shadow: 0 4px 32px rgba(255, 13, 56, 0.1);
  --hero-height: 60vh;
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  background-color: var(--white);
  color: var(--dark-text);
  overflow-x: hidden;
}

main {
  max-width: none;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

.hero-section {
  position: relative;
  height: var(--hero-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: var(--spacing-sm);
}

.hero-content {
  text-align: center;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header {
  text-align: center;
  padding: var(--spacing-lg) 0;
  margin-bottom: var(--spacing-lg);
  animation: fadeInDown 0.8s ease-out;
}

header img {
  max-width: 140px;
  height: auto;
  margin-bottom: var(--spacing-sm);
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

header img:hover {
  transform: scale(1.05);
}

h1 {
  font-weight: 400;
  font-size: 36px;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-text);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

h2 {
  font-weight: 500;
  font-size: 26px;
  margin: var(--spacing-lg) 0 var(--spacing-md);
  color: var(--dark-text);
  border-bottom: 2px solid var(--red-accent);
  padding-bottom: var(--spacing-sm);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--red-accent);
}

p {
  font-weight: 300;
  font-size: 18px;
  margin-bottom: var(--spacing-md);
  color: var(--dark-text);
  line-height: 1.7;
}

ul, ol {
  margin: var(--spacing-md) 0;
  padding-left: calc(var(--spacing-md) * 2);
}

li {
  margin-bottom: var(--spacing-sm);
  color: var(--dark-text);
  opacity: 0.9;
}

.menu {
  text-align: center;
  margin: var(--spacing-lg) 0;
}

.menu a {
  color: var(--red-accent);
  text-decoration: none;
  margin: 0 var(--spacing-sm);
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.menu a:hover {
  color: var(--red-accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.screenshot {
  display: block;
  margin: var(--spacing-lg) auto;
  max-width: 100%;
  opacity: 0.98;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.screenshot img {
  max-width: 80%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

video {
  max-width: 80%;
  height: auto;
  display: block;
  margin: var(--spacing-lg) auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section {
  margin-bottom: var(--spacing-lg);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

footer {
  text-align: center;
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
  border-top: 1px solid #f0f0f0;
}

footer img {
  margin-bottom: var(--spacing-md);
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s ease;
}

footer img:hover {
  transform: scale(1.02);
}

footer p {
  margin-bottom: var(--spacing-sm);
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: var(--red-accent);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* Animations */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features Grid */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.feature-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 13, 56, 0.15);
}

.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.feature-description {
  padding: var(--spacing-sm);
}

.feature-description h3 {
  color: var(--red-accent);
  font-size: 18px;
  margin-bottom: var(--spacing-sm);
}

/* Hero Section */

.hero-section {
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: var(--spacing-sm);
}

.hero-content {
  text-align: center;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content h1 {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

.hero-content p {
  font-size: 18px;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto var(--spacing-sm);
}

.hero-content a {
  font-size: 16px;
}

.hero-content .menu {
  margin-top: var(--spacing-sm);
}

.hero-content .menu a {
  font-size: 16px;
}

.hero-content .menu a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 768px) {
  main {
    padding: var(--spacing-md) var(--spacing-sm);
  }
}

@media (max-width: 768px) {
  header img {
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 30px;
    line-height: 1.25;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  p {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .menu a {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Popup Styles */

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.popup h2 {
  margin-top: 0;
}

.popup button {
  margin-top: 10px;
}

