:root{
  --accent:#007aff;
  --bg:#f5f6f8;
  --ink:#111;
  --muted:#666;
}

*{box-sizing:border-box;}

body{
  margin:0;
  font-family:Inter,system-ui,sans-serif;
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}

/* ---------- Nav ---------- */
.nav{
  background:white;
  border-bottom:1px solid #e5e7eb;
  position:sticky;
  top:0;
  z-index:10;
}

.nav-inner{
  max-width:1100px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 16px;
}

.nav .logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--ink);
  font-weight:700;
  font-size:18px;
}

.nav .logo img{border-radius:8px;}

.nav nav a{
  margin-left:20px;
  text-decoration:none;
  color:#444;
  font-weight:500;
}

.nav nav a.active{color:var(--accent);}
.nav nav a:hover{color:var(--accent);}

/* ---------- Hero ---------- */
.hero{
  display:flex;
  gap:60px;
  align-items:center;
  justify-content:center;
  padding:80px 20px;
  background:linear-gradient(#fff,var(--bg));
}

.hero-text{max-width:420px;}

.hero h1{font-size:64px;margin:0;line-height:1.05;}

.tag{font-size:24px;color:var(--ink);font-weight:600;margin:14px 0 8px;}

.summary{font-size:17px;color:var(--muted);line-height:1.5;}

.price-note{font-size:14px;color:var(--muted);margin-top:10px;}

/* ---------- App Store badge ---------- */
.appstore{
  display:inline-block;
  margin-top:18px;
  text-decoration:none;
  transition:transform .15s ease;
}
.appstore:hover{transform:translateY(-2px);}
.appstore-badge{display:block;border-radius:8px;}

/* ---------- Phone frame + carousel ---------- */
.phone-frame{
  background:#1c1c1e;
  border-radius:42px;
  padding:12px;
  box-shadow:0 40px 80px rgba(0,0,0,.18);
  flex:0 0 auto;
}

.carousel{
  position:relative;
  width:240px;
  border-radius:32px;
  overflow:hidden;
  background:#000;
}

.carousel-track{
  display:flex;
  transition:transform .5s ease;
}

.carousel-slide{
  flex:0 0 100%;
  width:100%;
  display:block;
  height:auto;
}

.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,.5);
  color:white;
  border:none;
  width:38px;
  height:38px;
  border-radius:50%;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transition:opacity .25s ease, background .2s ease;
}

.carousel-btn:hover{background:rgba(0,0,0,.75);}
.carousel-prev{left:8px;}
.carousel-next{right:8px;}

.carousel-dots{
  position:absolute;
  bottom:14px;
  left:0;
  right:0;
  display:flex;
  justify-content:center;
  gap:8px;
  opacity:0;
  transition:opacity .25s ease;
}

.carousel-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,.5);
  cursor:pointer;
  padding:0;
}

.carousel-dot.is-active{background:white;}

.carousel:hover .carousel-btn,
.carousel:hover .carousel-dots,
.carousel:focus-within .carousel-btn,
.carousel:focus-within .carousel-dots{
  opacity:1;
}

/* ---------- Feature grid ---------- */
.feature-grid{
  max-width:1100px;
  margin:60px auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:24px;
}

.card{
  background:white;
  padding:28px;
  border-radius:14px;
  box-shadow:0 10px 25px rgba(0,0,0,.05);
}

.card h3{margin-top:0;}
.card p{color:var(--muted);line-height:1.5;margin-bottom:0;}

/* ---------- Generic page ---------- */
.page{
  max-width:800px;
  margin:auto;
  padding:60px 20px;
  line-height:1.6;
}

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

.list{list-style:none;padding:0;}
.list li{padding:8px 0;border-bottom:1px solid #e5e7eb;}

/* ---------- Download / App Store page ---------- */
.downloads-sub{font-size:18px;color:var(--muted);}

.get-app{
  background:white;
  border-radius:14px;
  padding:32px;
  box-shadow:0 10px 25px rgba(0,0,0,.05);
  margin:24px 0 40px;
  text-align:center;
}

.get-app .appstore{margin-top:0;}
.version-note{font-size:14px;color:var(--muted);margin:14px 0 0;}

.platform-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:20px;
}

.platform-card h3{margin:0 0 4px;}
.platform-card p{margin:0;color:var(--muted);}

/* ---------- Footer ---------- */
.footer{
  text-align:center;
  padding:40px;
  color:#888;
}
.footer a{color:#888;}

/* ---------- Responsive ---------- */
@media (max-width:760px){
  .hero{flex-direction:column;gap:40px;padding:56px 20px;}
  .hero h1{font-size:48px;}
  .hero-text{text-align:center;}
  .nav nav a{margin-left:14px;font-size:14px;}
}
