/* ═══════════════════════════════════════════════
   Darklux — Promotional Website Stylesheet
   ═══════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --bg: #0A0A0A;
  --surface: #121212;
  --card: #1A1A1A;
  --accent: #E94560;
  --accent-secondary: #4C1DB8;
  --text-primary: #FFFFFF;
  --text-secondary: #AAAAAA;
  --divider: #2A2A2A;
  --radius: 12px;
  --transition: 0.3s ease;

  /* Category colors */
  --cat-amoled: #FFFFFF;
  --cat-abstract: #7B68EE;
  --cat-minimal: #888888;
  --cat-nature: #4CAF50;
  --cat-cosmic: #9C27B0;
  --cat-trippy: #FF6B35;
}

/* ── Reset / Normalize ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  opacity: 0.8;
}

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

ul, ol {
  list-style: none;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

.section-title h2 {
  margin-bottom: 0.75rem;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
  padding: 0 1.5rem;
}

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

.navbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.navbar-logo img {
  width: 28px;
  height: 28px;
}

.navbar-logo span {
  color: var(--accent);
}

.navbar-links {
  display: flex;
  gap: 2rem;
}

.navbar-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text-primary);
  opacity: 1;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse at 20% 50%,
      rgba(233, 69, 96, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 50%,
      rgba(76, 29, 184, 0.15) 0%,
      transparent 50%
    );
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    background: radial-gradient(
        ellipse at 20% 50%,
        rgba(233, 69, 96, 0.15) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse at 80% 50%,
        rgba(76, 29, 184, 0.15) 0%,
        transparent 50%
      );
  }
  100% {
    background: radial-gradient(
        ellipse at 80% 50%,
        rgba(233, 69, 96, 0.15) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse at 20% 50%,
        rgba(76, 29, 184, 0.15) 0%,
        transparent 50%
      );
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: var(--text-primary);
  box-shadow: 0 4px 24px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(233, 69, 96, 0.45);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Cards ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--divider);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── Feature Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card .feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Shader Showcase Grid ── */
.shader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.shader-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--divider);
  transition: transform var(--transition), box-shadow var(--transition);
}

.shader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.shader-preview {
  height: 180px;
  position: relative;
}

.shader-card-body {
  padding: 1.25rem;
}

.shader-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.shader-card-header h3 {
  font-size: 1.1rem;
}

.shader-badges {
  display: flex;
  gap: 0.5rem;
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pro {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: var(--text-primary);
}

.badge-new {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.badge-category {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.shader-card-body p {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.shader-features {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.shader-features span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── Screenshots Section ── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.screenshot-placeholder {
  aspect-ratio: 9 / 19.5;
  background: var(--card);
  border-radius: var(--radius);
  border: 2px dashed var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.screenshot-frame {
  aspect-ratio: 9 / 19.5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--divider);
  background: var(--card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.screenshot-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(233, 69, 96, 0.2);
  border-color: var(--accent);
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Pricing / Comparison Table ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  border: 1px solid var(--divider);
  text-align: center;
}

.pricing-card.pro {
  border-color: var(--accent);
  position: relative;
}

.pricing-card.pro::before {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  letter-spacing: 1px;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-card .price-alt {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

.pricing-card .pricing-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-features li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-features li.disabled::before {
  content: '\2717';
  color: #555;
}

.pricing-features li.disabled {
  color: #555;
}

/* ── Footer ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--divider);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand .navbar-logo {
  margin-bottom: 0.5rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.85rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ── Legal Pages ── */
.legal-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-page .updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page ul {
  list-style: disc;
}

.legal-page ol {
  list-style: decimal;
}

.legal-page strong {
  color: var(--text-primary);
}

.legal-page a {
  color: var(--accent);
}

.legal-contact {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
}

/* ── Forms ── */
.form-container {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group .hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #555;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23aaa'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: var(--surface);
  color: var(--text-primary);
}

.form-error {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.invalid .form-error {
  display: block;
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: var(--accent);
}

.form-success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  display: none;
}

.form-success.visible {
  display: block;
}

.form-success h3 {
  color: #4CAF50;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.form-info {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--divider);
}

.form-info p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-info p:last-child {
  margin-bottom: 0;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .navbar-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    border-bottom: 1px solid var(--divider);
  }

  .navbar-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hamburger {
    display: flex;
  }

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

  .hero .subtitle {
    font-size: 1rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .shader-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
