:root{
  --black:#0d0d0d;
  --yellow:#ffd400;
  --red:#ff3b30;
  --blue:#1e90ff;
  --cream:#fffdf5;
  --grey:#666;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Helvetica Neue', Arial, sans-serif;
  color:var(--black);
  background:var(--cream);
  line-height:1.6;
}
a{color:inherit; text-decoration:none;}

/* NAV */
header{
  position:sticky; top:0; z-index:100;
  background:#000;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 6%;
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-size:1.3rem; font-weight:800; color:var(--blue); letter-spacing:1px;
  line-height:1.2;
}
.logo img{height:52px; width:52px; border-radius:0; border:none; object-fit:contain; object-position:center center;}
.logo-tag{font-size:0.65rem; font-weight:700; color:#fff; letter-spacing:2px; display:block;}
nav ul{display:flex; gap:24px; list-style:none;}
nav a{color:#fff; font-weight:600; font-size:0.95rem; transition:color .2s;}
nav a:hover, nav a.active{color:var(--blue);}
.nav-toggle{display:none; color:#fff; font-size:1.6rem; background:none; border:none; cursor:pointer;}

/* HERO */
.hero{
  background:#000;
  color:#fff;
  text-align:center;
  padding:70px 6% 90px;
  position:relative;
  overflow:hidden;
}
.hero h1{
  font-size:clamp(2.2rem, 6vw, 3.6rem);
  font-weight:900;
  letter-spacing:1px;
}
.hero h1 span{color:var(--blue);}
.hero p.tagline{
  margin-top:18px;
  font-size:clamp(1rem, 2.5vw, 1.3rem);
  color:#ddd;
  max-width:650px;
  margin-left:auto; margin-right:auto;
}
.hashtag{
  display:inline-block; margin-top:22px;
  color:var(--blue); font-weight:800; font-size:1.4rem;
  letter-spacing:2px;
}
.hero-ctas{
  margin-top:34px;
  display:flex; gap:16px; justify-content:center; flex-wrap:wrap;
}
.btn{
  display:inline-block;
  padding:14px 30px;
  border-radius:50px;
  font-weight:700;
  font-size:0.95rem;
  letter-spacing:0.5px;
  transition:transform .15s ease, box-shadow .15s ease;
  border:2px solid transparent;
}
.btn:hover{transform:translateY(-2px);}
.btn-yellow{background:var(--yellow); color:var(--black);}
.btn-yellow:hover{box-shadow:0 6px 18px rgba(255,212,0,.4);}
.btn-outline{border-color:var(--blue); color:var(--blue);}
.btn-outline:hover{background:var(--blue); color:#fff;}
.btn-red{background:var(--red); color:#fff;}
.btn-red:hover{box-shadow:0 6px 18px rgba(255,59,48,.4);}
.btn-blue{background:var(--blue); color:#fff;}
.btn-blue:hover{box-shadow:0 6px 18px rgba(30,144,255,.4);}
.btn-ghost{border-color:#444; color:#fff;}
.btn-ghost:hover{border-color:var(--blue); color:var(--blue);}
.btn-disabled{background:#333; color:#999; cursor:default;}
.btn-disabled:hover{transform:none;}

/* SECTIONS */
section{padding:70px 6%;}
.section-head{text-align:center; max-width:760px; margin:0 auto 50px;}
.section-head h2{font-size:clamp(1.8rem,4vw,2.6rem); font-weight:900;}
.section-head .accent{color:var(--red);}
.section-head p{margin-top:14px; color:var(--grey); font-size:1.05rem;}

/* WELCOME */
.welcome{background:#fff;}
.welcome-grid{
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:50px; align-items:center; max-width:1100px; margin:0 auto;
}
.welcome-grid img{width:100%; border-radius:16px; box-shadow:0 12px 30px rgba(0,0,0,.12);}
.welcome-text p{margin-bottom:16px; color:#333;}
.pill{
  display:inline-block; background:var(--blue); color:#fff;
  font-weight:800; padding:6px 16px; border-radius:50px; font-size:.85rem;
  letter-spacing:1px; margin-bottom:16px;
}

/* APPS */
.apps{background:var(--black); color:#fff;}
.apps .section-head p{color:var(--grey);}
.app-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr));
  gap:30px; max-width:1200px; margin:0 auto;
}
.app-card{
  background:#fff; border-radius:18px; overflow:hidden;
  display:flex; flex-direction:column;
  border:1px solid #e8e4d8;
  box-shadow:0 4px 16px rgba(0,0,0,.08);
  transition:transform .2s ease, border-color .2s ease;
}
.app-card:hover{transform:translateY(-6px); border-color:var(--blue);}
.app-card img{width:100%; height:220px; object-fit:cover;}
.app-card-body{padding:24px; display:flex; flex-direction:column; flex:1;}
.app-card-body h3{font-size:1.4rem; font-weight:800; margin-bottom:4px; color:var(--black);}
.app-card-body .tag{
  display:inline-block; font-size:.72rem; font-weight:800; letter-spacing:1.5px;
  padding:4px 10px; border-radius:50px; margin-bottom:12px; width:fit-content;
}
.tag-live{background:rgba(46,204,113,.18); color:#2ecc71;}
.tag-soon{background:rgba(30,144,255,.18); color:var(--blue);}
.app-card-body p{color:#555; font-size:.95rem; flex:1; margin-bottom:18px;}
.stars{color:var(--yellow); font-size:1rem; margin-bottom:14px; letter-spacing:2px;}
.stars span{color:#888; font-size:.8rem; letter-spacing:normal; margin-left:6px;}
.card-actions{display:flex; gap:12px; flex-wrap:wrap;}
.card-actions .btn{padding:12px 22px; font-size:.85rem;}
.card-actions .btn-ghost{border-color:#aaa; color:#555;}
.card-actions .btn-ghost:hover{border-color:var(--blue); color:var(--blue);}

/* GALLERY */
.gallery{background:var(--cream);}
.gallery-grid{
  display:grid; grid-template-columns:repeat(6,1fr);
  gap:14px; max-width:1200px; margin:0 auto;
}
.gallery-grid img{
  width:100%; height:180px; object-fit:cover; border-radius:12px;
  box-shadow:0 6px 16px rgba(0,0,0,.08);
  transition:transform .2s ease;
}
.gallery-grid img:hover{transform:scale(1.03);}
@media(max-width:800px){.gallery-grid{grid-template-columns:repeat(3,1fr);}}

/* STORY */
.story{background:#fff;}
.story-wrap{max-width:850px; margin:0 auto; text-align:center;}
.story blockquote{
  font-size:clamp(1.1rem,2.5vw,1.4rem);
  font-style:italic; color:#222;
  border-left:5px solid var(--red);
  padding:8px 0 8px 24px; text-align:left;
  margin:0 auto 18px;
}
.story blockquote + blockquote{border-left:5px solid var(--blue); margin-top:18px;}
.story-sig{text-align:right; font-weight:800; color:var(--grey); margin-top:10px;}
.story-cta{margin-top:30px;}

/* CONTACT */
.contact{background:#000; color:#fff; text-align:center;}
.contact h2{font-size:clamp(1.8rem,4vw,2.6rem); font-weight:900; margin-bottom:14px;}
.contact p{color:#bbb; margin-bottom:6px;}
.contact .email{
  display:inline-block; margin-top:16px; font-size:1.2rem; font-weight:800; color:var(--blue);
}
.contact-photo{
  margin:30px auto 0; max-width:420px; border-radius:16px; overflow:hidden;
  box-shadow:0 14px 36px rgba(0,0,0,.5);
}
.contact-photo img{width:100%; display:block;}
.social-links{
  margin-top:28px; display:flex; gap:24px; justify-content:center; flex-wrap:wrap;
}
.social-links a{
  border:2px solid #333; padding:10px 24px; border-radius:50px; font-weight:700;
  transition:border-color .2s, color .2s;
}
.social-links a:hover{border-color:var(--blue); color:var(--blue);}

/* FOOTER */
footer{
  background:#000; color:#888; text-align:center; padding:26px 6%; font-size:.85rem;
}
footer a{color:#bbb; font-weight:700;}
footer a:hover{color:var(--blue);}

/* APP DETAIL PAGES */
.app-hero{
  background:#000; color:#fff; text-align:center; padding:60px 6% 55px;
}
.app-hero img.app-shot{
  width:100%; max-width:420px; border-radius:18px; margin:0 auto 28px;
  box-shadow:0 14px 36px rgba(0,0,0,.45); display:block;
}
.app-hero h1{font-size:clamp(2rem,5vw,3rem); font-weight:900;}
.app-hero h1 span{color:var(--blue);}
.app-hero p{max-width:650px; margin:16px auto 0; color:#ccc; font-size:1.05rem;}
.app-hero .stars{margin:18px 0 0; justify-content:center; display:flex;}
.app-hero .btn{margin-top:26px;}

/* MASONRY COLLAGE — APP DETAIL PAGES */
.detail-gallery{background:#fff;}
.detail-gallery-grid{
  columns:3; column-gap:12px;
  max-width:1100px;
  margin:0 auto;
}
.detail-gallery-grid img{
  width:100%; display:block; margin-bottom:12px; border-radius:10px;
  break-inside:avoid;
  transition:transform .2s ease;
}
.detail-gallery-grid img:hover{transform:scale(1.02);}
@media(max-width:700px){.detail-gallery-grid{columns:2;}}
@media(max-width:400px){.detail-gallery-grid{columns:1;}}

.back-link{text-align:center; padding:34px 6% 0;}
.back-link a{color:var(--grey); font-weight:700;}
.back-link a:hover{color:var(--red);}

@media (max-width: 800px){
  .welcome-grid{grid-template-columns:1fr;}
  nav ul{
    position:absolute; top:100%; left:0; right:0; background:var(--black);
    flex-direction:column; align-items:center; gap:0; max-height:0; overflow:hidden; transition:max-height .3s ease;
  }
  nav ul.open{max-height:360px; padding:10px 0; overflow-y:auto;}
  nav li{width:100%; text-align:center; padding:12px 0; border-top:1px solid #222;}
  .nav-toggle{display:block;}
  .detail-gallery-grid img{height:150px; min-width:120px;}
}
