/* Sleeply Landing Page Design System */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,500&display=swap');

:root {
  --bg-dark: #070B14;
  --bg-panel: rgba(13, 20, 38, 0.45);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(32, 217, 210, 0.15);
  --text-primary: #FFFFFF;
  --text-secondary: #9FAEC6;
  --color-accent: #20D9D2;      /* Teal/cyan glow */
  --color-accent-rgb: 32, 217, 210;
  --color-gold: #F59E0B;        /* Golden Moon */
  --color-gold-rgb: 245, 158, 11;
  --glow-shadow: 0 0 20px rgba(32, 217, 210, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

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

/* Starfield Background */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #10162B 0%, #060912 100%);
}

.star {
  position: absolute;
  background-color: #ffffff;
  border-radius: 50%;
  animation: pulse 3s infinite ease-in-out;
}

.star:nth-child(even) {
  animation-duration: 4.5s;
  animation-delay: 1.5s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.8; }
}

.aurora {
  position: fixed;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.08) 0%, rgba(var(--color-gold-rgb), 0.02) 50%, transparent 100%);
  top: -200px;
  left: -200px;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
  animation: float-slow 20s infinite ease-in-out alternate;
}

.aurora-right {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-gold-rgb), 0.05) 0%, rgba(var(--color-accent-rgb), 0.02) 50%, transparent 100%);
  bottom: -100px;
  right: -100px;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 50px) scale(1.1); }
}

/* Header & Navbar */
header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 11, 20, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.nav-links a.active {
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 4px;
}

.nav-btn {
  background: linear-gradient(135deg, var(--color-accent) 0%, #15b3ac 100%);
  color: #070B14 !important;
  font-weight: 600 !important;
  padding: 0.6rem 1.2rem;
  border-radius: 99px;
  box-shadow: 0 4px 15px rgba(32, 217, 210, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32, 217, 210, 0.5);
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tagline-badge {
  align-self: flex-start;
  background: rgba(32, 217, 210, 0.08);
  border: 1px solid rgba(32, 217, 210, 0.2);
  color: var(--color-accent);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 550px;
}

.cta-group {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, #15b3ac 100%);
  color: #070B14;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(32, 217, 210, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(32, 217, 210, 0.5);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 1rem 1.8rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.app-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
}

.meta-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  animation: float 6s infinite ease-in-out alternate;
}

.hero-showcase {
  width: 100%;
  border-radius: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(var(--color-accent-rgb), 0.1);
  border: 4px solid rgba(255, 255, 255, 0.05);
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(1deg); }
}

/* Features Section */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  font-size: 1.1rem;
}

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

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.feature-card:hover::before {
  transform: translateX(100%);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--color-accent-rgb), 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(var(--color-accent-rgb), 0.05);
  background: rgba(13, 20, 38, 0.6);
}

.feature-icon {
  width: 54px;
  height: 54px;
  background: rgba(32, 217, 210, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(32, 217, 210, 0.15);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem 2rem;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.4rem;
  border-radius: 14px;
  align-self: center;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gallery-content {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.gallery-content.active {
  display: grid;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.gallery-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  background: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(var(--color-accent-rgb), 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--color-accent-rgb), 0.1);
}

.gallery-card:hover img {
  transform: scale(1.03);
}

/* Banner section */
.banner-showcase {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1000px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  margin-top: 1rem;
}

.banner-showcase img {
  width: 100%;
  height: auto;
  display: block;
}

/* Specifications Grid */
.specs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  border-top: 1px solid var(--border-color);
}

.specs-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.specs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.spec-item {
  background: rgba(255, 255, 255, 0.01);
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.5rem;
  border-radius: 0 12px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

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

.spec-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cta-box {
  background: radial-gradient(circle at 100% 0%, rgba(var(--color-accent-rgb), 0.05) 0%, transparent 70%), var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(var(--color-accent-rgb), 0.03);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  filter: blur(40px);
}

.cta-box h3 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-color);
  background: rgba(4, 7, 13, 0.9);
  padding: 4rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color 0.3s ease;
}

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

.copyright {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  color: #586981;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
}

.copyright a {
  color: #586981;
  text-decoration: none;
}

.copyright a:hover {
  color: var(--text-secondary);
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 13, 0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--text-primary);
  font-size: 2.5rem;
  cursor: pointer;
  font-weight: 300;
  user-select: none;
}

/* Privacy Policy Styles */
.policy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.policy-container h1 {
  font-size: 3rem;
  font-weight: 800;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.policy-container h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.policy-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.policy-block p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.policy-block ul {
  padding-left: 2rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.policy-block li {
  margin-bottom: 0.5rem;
}

.back-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.back-btn:hover {
  transform: translateX(-4px);
}

/* Responsiveness */
@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 4rem;
  }
  .hero-info {
    text-align: center;
    align-items: center;
  }
  .cta-group {
    justify-content: center;
  }
  .specs-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 600px) {
  header {
    padding: 1rem 1rem;
  }
  .nav-links {
    display: none; /* simple mobile hide for a clean single-download landing page */
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .cta-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .app-meta {
    flex-wrap: wrap;
    justify-content: center;
  }
  .specs-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .copyright {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }
}
