/* =========================
   RESET & BASE
========================= */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;scroll-behavior:smooth}
body{
  display:flex;
  flex-direction:column;
  background:#0a0a23;
  color:#fff;
  font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  line-height:1.6;
  overflow-x:hidden;
  min-height:100vh
}
main{flex:1}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
ul{list-style:none}

/* =========================
   VARIABLES
========================= */
:root{
  --primary:#0a0a23;
  --secondary:#1a1a3a;
  --accent:#e50914;
  --text:#fff;
  --text-light:#b3b3b3;
  --card:#141432;
  --success:#00cc66;
  --shadow:0 2px 10px rgba(0,0,0,0.2);
  --shadow-lg:0 15px 30px rgba(0,0,0,0.3)
}

/* =========================
   UTILITY CLASSES
========================= */
.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 15px
}
.section{padding:80px 0}
@media(max-width:768px){.section{padding:60px 0}}
@media(max-width:480px){.section{padding:40px 0}}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-block;
  padding:12px 30px;
  background:var(--accent);
  color:#fff;
  border:none;
  border-radius:4px;
  font-weight:600;
  cursor:pointer;
  transition:.3s;
  text-align:center
}
.btn:hover{
  background:#f40612;
  transform:translateY(-2px);
  box-shadow:0 5px 15px rgba(229,9,20,0.4)
}
.btn-large{padding:15px 40px;font-size:1.1rem}
.btn-outline{
  background:transparent;
  border:2px solid var(--text)
}
.btn-outline:hover{
  background:rgba(255,255,255,0.1);
  transform:none
}
.btn-success{background:var(--success)}
.btn-success:hover{background:#00b359}

/* =========================
   HEADER
========================= */
header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  background:rgba(10,10,35,0.95);
  backdrop-filter:blur(10px);
  z-index:1000;
  box-shadow:var(--shadow)
}
.header-container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 0
}
.logo{
  font-size:28px;
  font-weight:700;
  color:var(--accent)
}
.logo span{color:var(--text)}
nav ul{display:flex;gap:25px}
nav a{
  font-weight:500;
  transition:color .3s;
  font-size:1rem
}
nav a:hover{color:var(--accent)}
.mobile-menu-btn{
  display:none;
  font-size:24px;
  cursor:pointer
}

/* =========================
   HERO SECTION - UPDATED WITH CARD DESIGN
   (Maintains desktop layout while adding card)
========================= */
.hero {
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8));
  background-size: cover;
  background-position: center;
  padding: 180px 0 100px;
  text-align: center;
  min-height: auto;
  position: relative;
}

/* Only apply special card styling to the specific hero section */
.hero .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* App Card - Only affects hero section */
.hero .app-card {
  background: rgba(20, 20, 50, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 30px;
  border: 1px solid rgba(229, 9, 20, 0.3);
  box-shadow: var(--shadow-lg);
  transition: .3s;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.hero .app-card:hover {
  transform: translateY(-5px);
}

.hero .app-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero .app-card-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(229, 9, 20, 0.3);
  flex-shrink: 0;
}

.hero .app-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: white;
  margin: 0;
}

/* App Info Grid */
.hero .app-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.hero .info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero .info-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero .info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
}

/* App Badge */
.hero .app-badge {
  background: linear-gradient(90deg, #2a2a4a, #1a1a3a);
  border-radius: 40px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(229, 9, 20, 0.5);
}

.hero .badge-icon {
  font-size: 1.2rem;
}

.hero .badge-text {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* Hero Description */
.hero .hero-description {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 25px;
  border-left: 4px solid var(--accent);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.hero .hero-description p {
  color: #e0e0e0;
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 1rem;
}

.hero .hero-description p:last-child {
  margin-bottom: 0;
}

.hero .highlight-box {
  background: rgba(229, 9, 20, 0.1);
  border-radius: 12px;
  padding: 15px 20px;
  margin: 20px 0;
  border: 1px solid rgba(229, 9, 20, 0.3);
}

.hero .highlight-box p {
  margin: 0;
  color: white;
}

/* Version Badge */
.hero .version-badge-wrapper {
  text-align: center;
  margin-bottom: 25px;
}

.hero .version-badge {
  display: inline-block;
  background: var(--secondary);
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 0.85rem;
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Hero Buttons - Keep original styling */
.hero .hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Stats */
.hero .hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.hero .stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* =========================
   SECTION HEADERS
========================= */
.section-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:40px
}
.section-title{
  font-size:2.2rem;
  position:relative;
  padding-bottom:15px
}
.section-title::after{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:60px;
  height:4px;
  background:var(--accent)
}
.section-subtitle{
  font-size:1.1rem;
  color:var(--text-light);
  max-width:600px;
  margin-top:10px
}

/* =========================
   FEATURES GRID
========================= */
.features-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:30px
}
.feature-card{
  background:var(--card);
  border-radius:10px;
  padding:30px;
  transition:.3s
}
.feature-card:hover{
  transform:translateY(-10px);
  box-shadow:var(--shadow-lg)
}
.feature-icon{
  width:60px;
  height:60px;
  background:linear-gradient(135deg,var(--accent),#ff6b6b);
  border-radius:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  margin-bottom:20px
}
.feature-title{
  font-size:1.4rem;
  margin-bottom:15px
}
.feature-desc{color:var(--text-light);line-height:1.7}

/* =========================
   SCREENSHOTS
========================= */
.screenshots-container{position:relative;overflow:hidden}
.screenshots-slider{
  display:flex;
  gap:20px;
  overflow-x:auto;
  scroll-behavior:smooth;
  padding:10px 0;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch
}
.screenshots-slider::-webkit-scrollbar{display:none}
.screenshot{
  flex:0 0 auto;
  width:250px;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 10px 20px rgba(0,0,0,0.3)
}
.slider-controls{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:30px
}
.slider-controls button{
  background:var(--secondary);
  color:#fff;
  border:none;
  width:40px;
  height:40px;
  border-radius:50%;
  cursor:pointer;
  transition:.3s
}
.slider-controls button:hover{background:var(--accent)}

/* =========================
   APP INFO
========================= */
.app-info{
  background:var(--secondary);
  border-radius:15px;
  padding:40px;
  margin-top:40px
}
.info-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:30px
}
.info-item{margin-bottom:20px}
.info-label{
  color:var(--text-light);
  font-size:.9rem;
  margin-bottom:5px
}
.info-value{font-size:1.1rem;font-weight:500}

/* =========================
   EXPANDABLE
========================= */
.expandable-content{margin:40px 0}
.expandable-text{
  position:relative;
  max-height:150px;
  overflow:hidden;
  transition:max-height .5s
}
.expandable-text.expanded{max-height:none}
.expandable-text::after{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:60px;
  background:linear-gradient(transparent,var(--primary));
  pointer-events:none
}
.expandable-text.expanded::after{opacity:0}
.expand-btn{
  background:none;
  border:none;
  color:var(--accent);
  font-weight:600;
  cursor:pointer;
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:5px
}

/* =========================
   DOWNLOAD
========================= */
.download-section{
  text-align:center;
  background:linear-gradient(135deg,var(--secondary),var(--primary));
  border-radius:15px;
  padding:60px 40px;
  margin-top:40px
}
.download-section h2{
  font-size:2.5rem;
  margin-bottom:20px
}
.download-section p{
  font-size:1.1rem;
  color:var(--text-light);
  max-width:600px;
  margin:0 auto 40px
}
.download-options{
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap
}
  .btn-success {
    background: #198754;
}

.download-card{
  background:var(--card);
  border-radius:10px;
  padding:30px;
  width:200px;
  transition:.3s
}
.download-card:hover{transform:translateY(-5px)}
.download-icon{
  font-size:40px;
  margin-bottom:15px;
  color:var(--accent)
}

/* =========================
   APP RATING
========================= */
.app-rating{
  margin-top:40px;
  text-align:center;
  width:100%
}
.rating-title{
  font-size:1.2rem;
  font-weight:600;
  margin-bottom:10px
}
.stars{
  font-size:1.8rem;
  color:#f4b400;
  letter-spacing:4px;
  margin-bottom:8px
}
.rating-text{
  font-size:1rem;
  font-weight:500
}

/* =========================
   FAQ
========================= */
.faq-container{max-width:800px;margin:0 auto}
.faq-item{
  background:var(--card);
  border-radius:10px;
  margin-bottom:15px;
  overflow:hidden
}
.faq-question{
  padding:20px;
  font-size:1.1rem;
  font-weight:600;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center
}
.faq-answer{
  padding:0 20px;
  max-height:0;
  overflow:hidden;
  transition:.3s;
  color:var(--text-light)
}
.faq-answer.active{
  padding:0 20px 20px;
  max-height:500px
}
.faq-icon{transition:.3s}
.faq-item.active .faq-icon{transform:rotate(180deg)}

/* =========================
   BLOG/POST
========================= */
.page{padding:120px 0 60px}
.post{max-width:900px;margin:0 auto}
.post-content{
  max-width:720px;
  margin:0 auto;
  text-align:left
}
.post h1{
  text-align:center;
  margin-bottom:32px;
  font-size:2.5rem
}
.post-content p{
  margin-bottom:18px;
  line-height:1.8;
  color:var(--text-light)
}

/* =========================
   FOOTER
========================= */
footer{
  background:var(--secondary);
  padding:60px 0 30px
}
.footer-content{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:40px;
  margin-bottom:40px
}
.footer-column h3{
  font-size:1.2rem;
  margin-bottom:20px;
  position:relative;
  padding-bottom:10px
}
.footer-column h3::after{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:30px;
  height:2px;
  background:var(--accent)
}
.footer-links li{margin-bottom:10px}
.footer-links a{
  color:var(--text-light);
  transition:.3s
}
.footer-links a:hover{color:var(--accent)}
.social-links{
  display:flex;
  gap:15px;
  margin-top:20px
}
.social-links a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  background:rgba(255,255,255,0.1);
  border-radius:50%;
  transition:.3s
}
.social-links a:hover{background:var(--accent)}
.copyright{
  text-align:center;
  padding-top:30px;
  border-top:1px solid rgba(255,255,255,0.1);
  color:var(--text-light);
  font-size:.9rem
}

/* =========================
   RESPONSIVE (Optimized for all devices)
========================= */
@media(max-width:992px){
  .hero h1{font-size:2.8rem}
  .section-title{font-size:2rem}
  .post h1{font-size:2.2rem}
}

@media(max-width:768px){
  .mobile-menu-btn{display:block;margin-right:20px}
  nav{
    position:fixed;
    top:70px;
    left:-100%;
    width:80%;
    height:calc(100vh - 70px);
    background:var(--primary);
    transition:left .3s;
    padding:30px;
    box-shadow:2px 0 10px rgba(0,0,0,0.3);
    z-index:999
  }
  nav.active{left:0}
  nav ul{flex-direction:column;gap:20px}
  .hero{padding:150px 0 80px}
  .hero h1{font-size:2.2rem}
  .hero-buttons{flex-direction:column;align-items:center}
  .hero-stats{gap:20px}
  
  /* Card responsive for tablet */
  .hero .app-card-title{font-size:1rem}
  .hero .app-info-grid{gap:12px}
}

/* Small Mobile */
@media(max-width:576px){
  .hero h1{font-size:1.8rem}
  .section-title{font-size:1.6rem}
  .feature-card{padding:20px}
  .footer-content{grid-template-columns:1fr}
  .logo span{font-size:16px}
  .post h1{font-size:1.8rem}
  .download-section h2{font-size:1.8rem}
  .download-card{width:100%;max-width:280px}
  
  /* Card mobile styles */
  .hero .app-card-header{
    flex-direction:column;
    text-align:center;
    gap:12px
  }
  .hero .app-card-logo{
    width:70px;
    height:70px
  }
  .hero .app-info-grid{
    grid-template-columns:1fr;
    gap:10px
  }
  .hero .info-row{
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    padding:8px 0;
    border-bottom:1px solid rgba(255,255,255,0.05)
  }
  .hero .info-row:last-child{border-bottom:none}
  .hero .hero-description{padding:18px}
  .hero .hero-description p{font-size:.95rem}
}

/* Extra Small Mobile */
@media(max-width:375px){
  .hero h1{font-size:1.5rem}
  .hero p{font-size:1rem}
  .btn-large{padding:12px 30px;font-size:1rem}
  
  /* Card extra small adjustments */
  .hero .app-card{padding:18px}
  .hero .app-card-logo{width:60px;height:60px}
  .hero .badge-text{font-size:.8rem}
  .hero .stat-number{font-size:1.4rem}
}

/* =========================
   ACCESSIBILITY & PRINT
========================= */
@media(prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@media print{
  header,footer,.hero-buttons,.slider-controls{display:none}
  body{background:#fff;color:#000}
  a[href]::after{content:" (" attr(href) ")";font-size:.9em}
}

/* =========================
   PERFORMANCE FIXES
========================= */
.feature-card{will-change:transform}
.screenshots-slider{-webkit-overflow-scrolling:touch}