/*
Theme Name: App Landing One Page
Text Domain: app-landing
Version: 1.0.0
*/

:root{
  --bg: #0b1220;
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.1);
  --text: #eaf0ff;
  --muted: rgba(234,240,255,0.75);
  --primary: #6d5efc;
  --primary-2: #3bd7ff;
  --border: rgba(255,255,255,0.12);
  --shadow: 0 18px 40px rgba(0,0,0,0.45);
  --radius: 18px;
  --max: 1120px;
  --header-h: 74px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  color: var(--text);
  background:
    var(--bg-image-url, none),
    radial-gradient(1100px 520px at 20% -10%, var(--glow-1, rgba(109,94,252,0.4)), transparent 60%),
    radial-gradient(900px 560px at 90% 10%, var(--glow-2, rgba(59,215,255,0.25)), transparent 60%),
    linear-gradient(180deg, var(--bg-top, #070b14) 0%, var(--bg, #0b1220) 40%, var(--bg-bottom, #070b14) 100%);
  background-size: cover, auto, auto, auto;
  background-position: center, 20% -10%, 90% 10%, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; height: auto; }

.container{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: var(--header-bg, rgba(11,18,32,0.6));
  border-bottom: 1px solid var(--border);
}
.header-inner{
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}
.brand .site-title{
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 16px;
  opacity: 0.92;
  white-space: nowrap;
}
.custom-logo{
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
}

.nav-wrap{
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.primary-menu ul{
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.primary-menu a{
  display: inline-flex;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.primary-menu a:hover{ color: var(--text); background: rgba(255,255,255,0.06); }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}
.btn:hover{ background: rgba(255,255,255,0.1); }
.btn-primary{
  border-color: rgba(109,94,252,0.35);
  background: linear-gradient(135deg, rgba(109,94,252,0.95), rgba(59,215,255,0.65));
  box-shadow: 0 12px 28px rgba(109,94,252,0.25);
}
.btn-primary:hover{ filter: brightness(1.06); }

.main{
  padding: 34px 0 70px;
}

.section{
  padding: 70px 0;
}
.section-title{
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-subtitle{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.hero{
  padding: 54px 0 74px;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 34px;
}
.hero h1{
  margin: 0 0 14px;
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero p{
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}
.store-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
}
.store-badge strong{
  display: block;
  font-size: 12px;
  letter-spacing: 0.01em;
}
.store-badge span{
  display: block;
  font-size: 14px;
  font-weight: 800;
}
.store-badge-img{
  height: 38px;
  width: auto;
  display: block;
}
.store-badge:hover{ background: rgba(255,255,255,0.1); }

.mockup{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  padding: 18px;
}

.features-grid{
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  padding: 18px 16px;
}
.feature .icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(109,94,252,0.9), rgba(59,215,255,0.55));
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.feature h3{
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.feature p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.screenshots-wrap{
  margin-top: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  padding: 18px;
  box-shadow: var(--shadow);
}
.carousel{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.carousel-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  display: grid;
  place-items: center;
}
.carousel-btn:hover{ background: rgba(255,255,255,0.1); }
.carousel-viewport{
  overflow: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  display: flex;
  gap: 14px;
  padding: 2px;
}
.shot{
  scroll-snap-align: center;
  flex: 0 0 min(280px, 78vw);
  border-radius: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  padding: 14px;
  position: relative;
}
.phone-frame{
  border-radius: 22px;
  background: #0b0f1a;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 12px;
}
.screen{
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(109,94,252,0.28), rgba(59,215,255,0.18));
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.85);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.screen img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-card{
  margin-top: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  padding: 22px 18px;
}
.about-card p{
  margin: 0;
  color: var(--muted);
  max-width: 90ch;
}

.contact-grid{
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  padding: 18px 16px;
}
.contact-card h3{
  margin: 0 0 10px;
  font-size: 16px;
}
.contact-card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.contact-links{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  font-weight: 700;
  font-size: 13px;
}
.chip:hover{ background: rgba(255,255,255,0.1); }

.site-footer{
  border-top: 1px solid var(--border);
  background: rgba(11,18,32,0.6);
}
.menu-overlay{
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.menu-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}
.footer-inner{
  padding: 26px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: start;
}
.footer-left p{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-right{
  display: grid;
  gap: 12px;
  justify-items: end;
}
.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.footer-links a{
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.footer-links a:hover{ color: var(--text); }

.social{
  display: flex;
  gap: 10px;
}
.social a{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
}
.social a:hover{ background: rgba(255,255,255,0.1); }

.legal-page{
  padding: 46px 0 70px;
}
.legal-card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  padding: 24px 18px;
}
.legal-card h1{
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.15;
}
.legal-card .content{
  color: var(--muted);
}

@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .features-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-right{ justify-items: start; }
  .footer-links{ justify-content: flex-start; }
}

@media (max-width: 860px){
  .menu-toggle{ display: inline-flex; }
  .primary-menu{
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(340px, 86vw);
    padding: calc(var(--header-h) + 12px) 18px 18px;
    background: rgba(11,18,32,0.96);
    border-left: 1px solid var(--border);
    backdrop-filter: blur(10px);
    display: block;
    transform: translateX(106%);
    transition: transform 0.2s ease;
    z-index: 45;
  }
  .primary-menu.is-open{ transform: translateX(0); }
  .primary-menu ul{
    flex-direction: column;
    gap: 6px;
  }
  .primary-menu a{ padding: 12px 10px; }
}

html.menu-open,
body.menu-open{
  overflow: hidden;
}
