:root {
  --bg-dark: #050505;
  --bg-card: #0d0d12;
  --primary: #004170; /* PSG Blue */
  --accent: #da291c; /* PSG Red */
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-main: "Inter", sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
p {
  color: var(--text-muted);
  font-size: 1.1rem;
}
span {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #002a4a);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 65, 112, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 65, 112, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: white;
}

.btn-outline:hover {
  background: var(--glass);
  border-color: var(--text-main);
}

.btn-secondary {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: white;
  backdrop-filter: blur(10px);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}
.btn-lg {
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
}

/* Navbar */
.navbar {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
}

.logo span {
  font-weight: 300;
  font-size: 1rem;
  opacity: 0.7;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(0, 65, 112, 0.15) 0%,
    transparent 70%
  );
  z-index: -1;
}

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

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hero-actions .btn {
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.mac-downloads {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 615px; /* Matches 2 buttons of 300px + gap */
  justify-content: center;
}

.mac-downloads .btn {
  flex: 1;
}

.mockup-container {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 10px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: auto;
}

.carousel-slide {
  width: 100%;
  min-width: 100%;
  display: none;
  border-radius: 12px;
  object-fit: contain;
}

.carousel-slide.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  pointer-events: none;
}

.carousel-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

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

.carousel-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 4px;
}

/* Pricing Section */
.pricing {
  padding: 8rem 0;
  background: linear-gradient(180deg, #000 0%, var(--bg-dark) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.pricing-card {
  background: var(--bg-card);
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(
    180deg,
    rgba(0, 65, 112, 0.1) 0%,
    var(--bg-card) 100%
  );
  position: relative;
  transform: scale(1.05);
}

.pricing-card.gold {
  border-color: #ffd700;
  background: linear-gradient(
    180deg,
    rgba(255, 215, 0, 0.05) 0%,
    var(--bg-card) 100%
  );
}

.plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pricing-footer {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.telegram-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.telegram-link:hover {
  text-decoration: underline;
}

/* Features */
.features {
  padding: 8rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 3rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  background: linear-gradient(
    180deg,
    var(--bg-card) 0%,
    rgba(0, 65, 112, 0.05) 100%
  );
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Security Section */
.security {
  padding: 4rem 0 8rem;
}

.security-box {
  background: linear-gradient(135deg, #0d0d12 0%, #000 100%);
  border-radius: 32px;
  padding: 4rem;
  text-align: center;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.security-box::after {
  content: "SECURE";
  position: absolute;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.security-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.tech-badge {
  margin-top: 2rem;
  padding: 0.5rem 1.5rem;
  background: rgba(0, 65, 112, 0.1);
  border: 1px solid rgba(0, 65, 112, 0.3);
  border-radius: 50px;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

/* Footer */
.footer {
  padding: 8rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #000 100%);
}

.footer-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.footer-bottom {
  margin-top: 6rem;
  font-size: 0.9rem;
  opacity: 0.5;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}

/* Modal Styles */
.modal {
  display: none; /* Controlled by JS as 'flex' */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-content-wrapper {
  position: relative;
  width: 90%;
  height: 85%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 1);
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#modal-caption {
  text-align: center;
  color: #ccc;
  padding: 20px 0;
  width: 100%;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  padding: 20px;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1002;
  transition: var(--transition);
  border-radius: 5px;
  backdrop-filter: blur(5px);
  user-select: none;
}

.modal-nav:hover {
  background: var(--primary);
}

.modal-nav.prev {
  left: 20px;
}
.modal-nav.next {
  right: 20px;
}

/* Make carousel images clickable */
.carousel-slide {
  cursor: zoom-in;
}

@media (max-width: 768px) {
  .modal-content-wrapper {
    width: 95%;
  }
}
